@@ -54,7 +54,7 @@ RUNTIME_FUNCTION(Runtime_SetDebugEventListener) {
5454}
5555
5656
57- RUNTIME_FUNCTION (Runtime_Break ) {
57+ RUNTIME_FUNCTION (Runtime_ScheduleBreak ) {
5858 SealHandleScope shs (isolate);
5959 DCHECK (args.length () == 0 );
6060 isolate->stack_guard ()->RequestDebugBreak ();
@@ -2572,40 +2572,6 @@ RUNTIME_FUNCTION(Runtime_DebugSetScriptSource) {
25722572}
25732573
25742574
2575- RUNTIME_FUNCTION (Runtime_DebugDisassembleFunction) {
2576- HandleScope scope (isolate);
2577- #ifdef DEBUG
2578- DCHECK (args.length () == 1 );
2579- // Get the function and make sure it is compiled.
2580- CONVERT_ARG_HANDLE_CHECKED (JSFunction, func, 0 );
2581- if (!Compiler::EnsureCompiled (func, KEEP_EXCEPTION )) {
2582- return isolate->heap ()->exception ();
2583- }
2584- OFStream os (stdout);
2585- func->code ()->Print (os);
2586- os << std::endl;
2587- #endif // DEBUG
2588- return isolate->heap ()->undefined_value ();
2589- }
2590-
2591-
2592- RUNTIME_FUNCTION (Runtime_DebugDisassembleConstructor) {
2593- HandleScope scope (isolate);
2594- #ifdef DEBUG
2595- DCHECK (args.length () == 1 );
2596- // Get the function and make sure it is compiled.
2597- CONVERT_ARG_HANDLE_CHECKED (JSFunction, func, 0 );
2598- if (!Compiler::EnsureCompiled (func, KEEP_EXCEPTION )) {
2599- return isolate->heap ()->exception ();
2600- }
2601- OFStream os (stdout);
2602- func->shared ()->construct_stub ()->Print (os);
2603- os << std::endl;
2604- #endif // DEBUG
2605- return isolate->heap ()->undefined_value ();
2606- }
2607-
2608-
26092575RUNTIME_FUNCTION (Runtime_FunctionGetInferredName) {
26102576 SealHandleScope shs (isolate);
26112577 DCHECK (args.length () == 1 );
@@ -2666,21 +2632,15 @@ RUNTIME_FUNCTION(Runtime_GetFunctionCodePositionFromSource) {
26662632// to have a stack with C++ frame in the middle.
26672633RUNTIME_FUNCTION (Runtime_ExecuteInDebugContext) {
26682634 HandleScope scope (isolate);
2669- DCHECK (args.length () == 2 );
2635+ DCHECK (args.length () == 1 );
26702636 CONVERT_ARG_HANDLE_CHECKED (JSFunction, function, 0 );
2671- CONVERT_BOOLEAN_ARG_CHECKED (without_debugger, 1 );
26722637
2673- MaybeHandle<Object> maybe_result;
2674- if (without_debugger) {
2675- maybe_result = Execution::Call (isolate, function,
2676- handle (function->global_proxy ()), 0 , NULL );
2677- } else {
2678- DebugScope debug_scope (isolate->debug ());
2679- maybe_result = Execution::Call (isolate, function,
2680- handle (function->global_proxy ()), 0 , NULL );
2681- }
2638+ DebugScope debug_scope (isolate->debug ());
26822639 Handle<Object> result;
2683- ASSIGN_RETURN_FAILURE_ON_EXCEPTION (isolate, result, maybe_result);
2640+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION (
2641+ isolate, result,
2642+ Execution::Call (isolate, function, handle (function->global_proxy ()), 0 ,
2643+ NULL ));
26842644 return *result;
26852645}
26862646
0 commit comments