From: yangguo@chromium.org Date: Tue, 15 Apr 2014 07:56:00 +0000 (+0000) Subject: Remove assertion from callers of TryCall. X-Git-Tag: upstream/4.7.83~9621 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf7c8181f0998c87612ec922260eb172a786c8ae;p=platform%2Fupstream%2Fv8.git Remove assertion from callers of TryCall. R=ishell@chromium.org BUG=363280 LOG=N Review URL: https://codereview.chromium.org/238753003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20748 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/debug.cc b/src/debug.cc index e648069..523d21b 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -1127,13 +1127,12 @@ bool Debug::CheckBreakPoint(Handle break_point_object) { // Call HandleBreakPointx. Handle argv[] = { break_id, break_point_object }; Handle result; - ASSIGN_RETURN_ON_EXCEPTION_VALUE( - isolate_, result, - Execution::TryCall(check_break_point, - isolate_->js_builtins_object(), - ARRAY_SIZE(argv), - argv), - false); + if (!Execution::TryCall(check_break_point, + isolate_->js_builtins_object(), + ARRAY_SIZE(argv), + argv).ToHandle(&result)) { + return false; + } // Return whether the break point is triggered. return result->IsTrue(); @@ -2620,8 +2619,7 @@ MaybeHandle Debugger::MakeExecutionState() { MaybeHandle Debugger::MakeBreakEvent(Handle break_points_hit) { Handle exec_state; - ASSIGN_RETURN_ON_EXCEPTION( - isolate_, exec_state, MakeExecutionState(), Object); + if (!MakeExecutionState().ToHandle(&exec_state)) return MaybeHandle(); // Create the new break event object. Handle argv[] = { exec_state, break_points_hit }; return MakeJSObject(CStrVector("MakeBreakEvent"), ARRAY_SIZE(argv), argv); @@ -2631,8 +2629,7 @@ MaybeHandle Debugger::MakeBreakEvent(Handle break_points_hit) { MaybeHandle Debugger::MakeExceptionEvent(Handle exception, bool uncaught) { Handle exec_state; - ASSIGN_RETURN_ON_EXCEPTION( - isolate_, exec_state, MakeExecutionState(), Object); + if (!MakeExecutionState().ToHandle(&exec_state)) return MaybeHandle(); // Create the new exception event object. Handle argv[] = { exec_state, exception, @@ -2643,24 +2640,21 @@ MaybeHandle Debugger::MakeExceptionEvent(Handle exception, MaybeHandle Debugger::MakeCompileEvent(Handle