Lines Matching refs:isolate_
108 isolate_(isolate) {
130 Handle<FixedArray> break_points_hit = isolate_->factory()->NewFixedArray(
131 debug_info->GetBreakPointCount(isolate_));
152 break_points_hit->Shrink(isolate_, break_points_hit_count);
373 isolate_->counters()->debug_feature_usage()->AddSample(feature);
417 StackTraceFrameIterator frames_it(isolate_);
470 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
479 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
482 HandleScope scope(isolate_);
485 Handle<Context> native_context(isolate_->native_context());
491 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
500 Handle<SharedFunctionInfo> shared(break_target->shared(), isolate_);
504 Handle<DebugInfo> debug_info(shared->GetDebugInfo(), isolate_);
525 : isolate_->factory()->empty_fixed_array(),
600 OnDebugBreak(isolate_->factory()->empty_fixed_array(), lastStepAction);
609 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
611 break_points_active_ && location.HasBreakPoint(isolate_, debug_info);
615 debug_info->GetBreakPoints(isolate_, location.position());
616 DCHECK(!break_points->IsUndefined(isolate_));
623 Handle<FixedArray> array(FixedArray::cast(*break_points), isolate_);
626 Handle<BreakPoint>::cast(handle(array->get(i), isolate_));
642 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
644 break_points_active_ && location->HasBreakPoint(isolate_, debug_info);
660 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
661 HandleScope scope(isolate_);
670 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
677 Handle<DebugInfo> debug_info(function->shared().GetDebugInfo(), isolate_);
689 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
690 HandleScope scope(isolate_);
698 Handle<String> condition(break_point->condition(), isolate_);
703 maybe_result = DebugEvaluate::WithTopmostArguments(isolate_, condition);
710 DebugEvaluate::Local(isolate_, break_frame_id(), inlined_jsframe_index,
715 if (isolate_->has_pending_exception()) {
716 isolate_->clear_pending_exception();
720 return result->BooleanValue(isolate_);
726 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
727 HandleScope scope(isolate_);
733 Handle<DebugInfo> debug_info(shared->GetDebugInfo(), isolate_);
739 DebugInfo::SetBreakPoint(isolate_, debug_info, *source_position, break_point);
741 DCHECK_LT(0, debug_info->GetBreakPointCount(isolate_));
753 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
756 isolate_->factory()->NewBreakPoint(*id, condition);
764 HandleScope scope(isolate_);
770 if (result->IsUndefined(isolate_)) return false;
787 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
799 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
807 if (break_points.get(i).IsUndefined(isolate_)) continue;
809 if (info.GetBreakPointCount(isolate_) == 0) continue;
820 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
839 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
840 HandleScope scope(isolate_);
846 isolate_, node->debug_info(), break_point);
847 if (result->IsUndefined(isolate_)) continue;
849 if (DebugInfo::ClearBreakPoint(isolate_, debug_info, break_point)) {
851 if (debug_info->GetBreakPointCount(isolate_) == 0) {
862 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
863 Handle<SharedFunctionInfo> shared = handle(function->shared(), isolate_);
867 id = isolate_->heap()->NextDebuggingId();
876 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
883 isolate_->factory()->NewBreakPoint(*id, condition);
890 shared->wasm_exported_function_data().instance(), isolate_);
892 isolate_);
901 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
902 Handle<BreakPoint> breakpoint = isolate_->factory()->NewBreakPoint(
903 id, isolate_->factory()->empty_string());
910 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
914 Handle<BreakPoint> break_point = isolate_->factory()->NewBreakPoint(
915 *id, isolate_->factory()->empty_string());
921 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
928 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
930 Handle<WeakArrayList> new_list = isolate_->factory()->NewWeakArrayList(4);
932 isolate_->global_handles()->Create(*new_list);
947 isolate_, wasm_scripts_with_break_points_, MaybeObjectHandle{script});
949 isolate_->global_handles()->Destroy(
952 isolate_->global_handles()->Create(*new_list);
959 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
962 info->ClearBreakInfo(isolate_);
976 isolate_);
986 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
992 Handle<DebugInfo> debug_info(shared->GetDebugInfo(), isolate_);
1020 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1021 Handle<Object> break_points = debug_info->GetBreakPoints(isolate_, position);
1023 DCHECK(!break_points->IsUndefined(isolate_));
1031 Handle<FixedArray> break_points_hit = isolate_->factory()->NewFixedArray(1);
1036 Handle<FixedArray> array(FixedArray::cast(*break_points), isolate_);
1039 isolate_->factory()->NewFixedArray(num_objects);
1044 Handle<BreakPoint>::cast(handle(array->get(i), isolate_));
1051 break_points_hit->Shrink(isolate_, break_points_hit_count);
1072 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1077 Handle<SharedFunctionInfo> shared(function->shared(), isolate_);
1081 FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared(), isolate_));
1085 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1094 isolate_);
1095 FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared(), isolate_));
1100 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1111 JavaScriptFrameIterator it(isolate_);
1162 summary.AsJavaScript().function()->shared(), isolate_);
1172 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1173 HandleScope scope(isolate_);
1189 StackTraceFrameIterator frames_it(isolate_, frame_id);
1203 shared = Handle<SharedFunctionInfo>(function->shared(), isolate_);
1210 Handle<DebugInfo> debug_info(shared->GetDebugInfo(), isolate_);
1278 JSReceiver::cast(thread_local_.return_value_), isolate_);
1280 isolate_, return_value,
1281 isolate_->factory()->promise_awaited_by_symbol());
1312 HandleScope inner_scope(isolate_);
1371 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1389 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1452 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1474 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1476 visitor.VisitThread(isolate_, isolate_->thread_local_top());
1477 HeapObjectIterator iterator(isolate_->heap());
1478 auto trampoline = BUILTIN_CODE(isolate_, InterpreterEntryTrampoline);
1479 isolate_->thread_manager()->IterateArchivedThreads(&visitor);
1497 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1500 isolate_->AbortConcurrentOptimization(BlockingBehavior::kBlock);
1507 Code::OptimizedCodeIterator iterator(isolate_);
1519 Deoptimizer::DeoptimizeMarkedCode(isolate_);
1525 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1540 Deoptimizer::DeoptimizeAll(isolate_);
1548 SharedFunctionInfo::InstallDebugBytecode(shared, isolate_);
1557 redirect_visitor.VisitThread(isolate_, isolate_->thread_local_top());
1558 isolate_->thread_manager()->IterateArchivedThreads(&redirect_visitor);
1567 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1571 HandleScope scope(isolate_);
1589 Handle<CodeT> trampoline = BUILTIN_CODE(isolate_, DebugBreakTrampoline);
1592 HeapObjectIterator iterator(isolate_->heap());
1596 FeedbackVector::cast(obj).ClearSlots(isolate_);
1604 needs_compile.push_back(handle(fun, isolate_));
1616 Compiler::Compile(isolate_, fun, Compiler::CLEAR_EXCEPTION,
1666 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1670 if (result->IsUndefined(isolate_)) return false;
1678 Handle<DebugInfo> debug_info(shared->GetDebugInfo(), isolate_);
1683 HandleScope scope(isolate_);
1691 Handle<DebugInfo> debug_info(candidate->GetDebugInfo(), isolate_);
1772 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1775 Handle<DebugInfo>(outer_shared->GetDebugInfo(), isolate_), position);
1794 Handle<DebugInfo> debug_info(candidate->GetDebugInfo(), isolate_);
1817 SharedFunctionInfo::ScriptIterator iterator(isolate_, *script);
1828 candidates.push_back(i::handle(info, isolate_));
1843 const bool success = CompileTopLevel(isolate_, script);
1851 IsCompiledScope is_compiled_scope(candidate->is_compiled_scope(isolate_));
1855 if (!Compiler::Compile(isolate_, candidate, Compiler::CLEAR_EXCEPTION,
1882 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1892 shared = FindSharedFunctionInfoCandidate(position, script, isolate_);
1898 const bool success = CompileTopLevel(isolate_, script);
1903 is_compiled_scope = shared.is_compiled_scope(isolate_);
1905 Handle<SharedFunctionInfo> shared_handle(shared, isolate_);
1917 HandleScope scope(isolate_);
1920 if (!Compiler::Compile(isolate_, handle(shared, isolate_),
1925 return isolate_->factory()->undefined_value();
1930 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1936 IsCompiledScope is_compiled_scope = shared->is_compiled_scope(isolate_);
1938 !Compiler::Compile(isolate_, shared, Compiler::CLEAR_EXCEPTION,
1947 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1948 HandleScope scope(isolate_);
1955 Factory* factory = isolate_->factory();
1965 SharedFunctionInfo::EnsureSourcePositionsAvailable(isolate_, shared);
1970 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1971 if (shared->HasDebugInfo()) return handle(shared->GetDebugInfo(), isolate_);
1974 Handle<DebugInfo> debug_info = isolate_->factory()->NewDebugInfo(shared);
1975 DebugInfoListNode* node = new DebugInfoListNode(isolate_, *debug_info);
1984 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
1999 [=](Handle<DebugInfo> info) { info->ClearCoverageInfo(isolate_); });
2009 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2010 HandleScope scope(isolate_);
2023 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2041 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2042 debug_info->ClearBreakInfo(isolate_);
2053 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2073 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2074 HandleScope scope(isolate_);
2077 Handle<SharedFunctionInfo> shared(frame->function().shared(), isolate_);
2083 Handle<DebugInfo> debug_info(shared->GetDebugInfo(), isolate_);
2089 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2090 isolate_->heap()->CollectAllGarbage(Heap::kNoGCFlags,
2092 Factory* factory = isolate_->factory();
2101 Script::Iterator iterator(isolate_);
2107 return FixedArray::ShrinkOrEmpty(isolate_, results, length);
2111 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2115 HandleScope scope(isolate_);
2117 if (isolate_->has_scheduled_exception()) {
2118 scheduled_exception = handle(isolate_->scheduled_exception(), isolate_);
2119 isolate_->clear_scheduled_exception();
2121 Handle<Object> maybe_promise = isolate_->GetPromiseOnStackOnThrow();
2126 isolate_->set_scheduled_exception(*scheduled_exception);
2132 if (isolate_->stack_guard()->CheckTerminateExecution()) {
2133 isolate_->stack_guard()->ClearTerminateExecution();
2134 return isolate_->TerminateExecution();
2140 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2142 HandleScope scope(isolate_);
2144 Handle<Symbol> key = isolate_->factory()->promise_debug_marker_symbol();
2146 JSReceiver::GetDataProperty(isolate_, Handle<JSObject>::cast(promise),
2148 ->IsUndefined(isolate_)) {
2154 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2157 StackTraceFrameIterator it(isolate_);
2168 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2169 HandleScope scope(isolate_);
2180 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2183 StackLimitCheck stack_limit_check(isolate_);
2192 Isolate::CatchType catch_type = isolate_->PredictExceptionCatcher();
2198 Handle<Symbol> key = isolate_->factory()->promise_debug_marker_symbol();
2199 Object::SetProperty(isolate_, jsobject, key, key, StoreOrigin::kMaybeKeyed,
2209 uncaught = !isolate_->PromiseHasUserDefinedRejectHandler(jspromise);
2223 JavaScriptFrameIterator it(isolate_);
2233 HandleScope scope(isolate_);
2237 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebuggerCallback);
2238 Handle<Context> native_context(isolate_->native_context());
2248 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2261 HandleScope scope(isolate_);
2278 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebuggerCallback);
2279 Handle<Context> native_context(isolate_->native_context());
2303 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2311 HandleScope handle_scope(isolate_);
2312 PostponeInterruptsScope no_interrupts(isolate_);
2315 Handle<Script> script(Script::cast(shared->script()), isolate_);
2320 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebuggerCallback);
2332 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2334 PostponeInterruptsScope no_interrupts(isolate_);
2337 StackTraceFrameIterator iterator(isolate_);
2349 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebuggerCallback);
2356 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2357 HandleScope scope(isolate_);
2358 for (StackTraceFrameIterator it(isolate_); !it.done(); it.Advance()) {
2366 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2378 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2382 LiveEdit::PatchScript(isolate_, script, source, preview, result);
2396 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2404 script->set_context_data(isolate_->native_context()->debug_context_id());
2416 HandleScope scope(isolate_);
2418 AllowJavascriptExecution allow_script(isolate_);
2420 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebuggerCallback);
2427 StackTraceFrameIterator it(isolate_);
2446 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2452 isolate_->compilation_cache()->DisableScriptAndEval();
2453 isolate_->CollectSourcePositionsForAllBytecodeArrays();
2457 isolate_->compilation_cache()->EnableScriptAndEval();
2461 isolate_->PromiseHookStateUpdated();
2468 isolate_->debug_execution_mode() == DebugInfo::kSideEffects ||
2474 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2476 if (isolate_->bootstrapper()->IsActive()) return;
2482 StackLimitCheck check(isolate_);
2485 HandleScope scope(isolate_);
2488 JavaScriptFrameIterator it(isolate_);
2492 Handle<JSFunction> function(JSFunction::cast(fun), isolate_);
2494 Handle<SharedFunctionInfo> shared(function->shared(), isolate_);
2501 isolate_);
2535 OnDebugBreak(break_points.is_null() ? isolate_->factory()->empty_fixed_array()
2543 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2544 HandleScope scope(isolate_);
2545 StackTraceFrameIterator iterator(isolate_);
2551 FrameInspector inspector(frame, inlined_frame_index, isolate_);
2559 Handle<String> source(String::cast(script->source()), isolate_);
2560 Script::InitLineEnds(isolate_, script);
2566 isolate_);
2588 no_interrupts_(debug_->isolate_) {
2612 debug_->isolate_->stack_guard()->RequestTerminateExecution();
2636 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2643 debug_info->DebugExecutionMode() != isolate_->debug_execution_mode()) {
2645 if (isolate_->debug_execution_mode() == DebugInfo::kBreakpoints) {
2658 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2666 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2667 DCHECK(isolate_->debug_execution_mode() != DebugInfo::kSideEffects);
2668 isolate_->set_debug_execution_mode(DebugInfo::kSideEffects);
2674 isolate_->heap()->AddHeapObjectAllocationTracker(temporary_objects_.get());
2675 Handle<FixedArray> array(isolate_->native_context()->regexp_last_match_info(),
2676 isolate_);
2678 Handle<RegExpMatchInfo>::cast(isolate_->factory()->CopyFixedArray(array));
2685 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2686 DCHECK(isolate_->debug_execution_mode() == DebugInfo::kSideEffects);
2688 DCHECK(isolate_->has_pending_exception());
2689 DCHECK_EQ(ReadOnlyRoots(isolate_).termination_exception(),
2690 isolate_->pending_exception());
2692 isolate_->CancelTerminateExecution();
2693 isolate_->Throw(*isolate_->factory()->NewEvalError(
2696 isolate_->set_debug_execution_mode(DebugInfo::kBreakpoints);
2701 isolate_->heap()->RemoveHeapObjectAllocationTracker(temporary_objects_.get());
2703 isolate_->native_context()->set_regexp_last_match_info(*regexp_match_info_);
2711 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2714 isolate_);
2720 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2723 isolate_);
2724 Handle<BytecodeArray> original(debug_info->OriginalBytecodeArray(), isolate_);
2736 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2737 DCHECK_EQ(isolate_->debug_execution_mode(), DebugInfo::kSideEffects);
2738 DisallowJavascriptExecution no_js(isolate_);
2740 function->shared().is_compiled_scope(isolate_));
2742 !Compiler::Compile(isolate_, function, Compiler::KEEP_EXCEPTION,
2747 Handle<SharedFunctionInfo> shared(function->shared(), isolate_);
2750 debug_info->GetSideEffectState(isolate_);
2759 isolate_->TerminateExecution();
2781 return handle(thread_local_.return_value_, isolate_);
2787 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2789 DCHECK_EQ(isolate_->debug_execution_mode(), DebugInfo::kSideEffects);
2811 isolate_->OptionalRescheduleException(false);
2837 isolate_->TerminateExecution();
2838 isolate_->OptionalRescheduleException(false);
2843 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2846 DCHECK_EQ(isolate_->debug_execution_mode(), DebugInfo::kSideEffects);
2848 BytecodeArray bytecode_array = shared.GetBytecodeArray(isolate_);
2851 handle(bytecode_array, isolate_), offset);
2863 isolate_->TerminateExecution();
2876 handle(frame->ReadInterpreterRegister(reg.index()), isolate_);
2881 RCS_SCOPE(isolate_, RuntimeCallCounterId::kDebugger);
2882 DCHECK_EQ(isolate_->debug_execution_mode(), DebugInfo::kSideEffects);
2897 isolate_->TerminateExecution();