Home | History | Annotate | Download | only in debug

Lines Matching refs:isolate_

53       isolate_(isolate) {
365 isolate_->counters()->debug_feature_usage()->AddSample(feature);
436 PostponeInterruptsScope postpone(isolate_);
439 HandleScope scope(isolate_);
445 Handle<Context> context = isolate_->bootstrapper()->CreateEnvironment(
454 isolate_->global_handles()->Create(*context));
487 PostponeInterruptsScope postpone(isolate_);
494 Handle<DebugInfo> debug_info(shared->GetDebugInfo(), isolate_);
506 Handle<JSArray> jsarr = isolate_->factory()->NewJSArrayWithElements(
548 OnDebugBreak(isolate_->factory()->undefined_value());
574 HandleScope scope(isolate_);
604 PostponeInterruptsScope no_interrupts(isolate_);
607 Handle<JSReceiver>::cast(isolate_->natives_utils_object());
609 JSReceiver::GetProperty(isolate_, holder, name).ToHandleChecked());
610 Handle<Object> undefined = isolate_->factory()->undefined_value();
612 return Execution::TryCall(isolate_, fun, undefined, argc, args,
620 Factory* factory = isolate_->factory();
621 HandleScope scope(isolate_);
638 return result->IsTrue(isolate_);
645 HandleScope scope(isolate_);
675 WasmCompiledModule::cast(script->wasm_compiled_module()), isolate_);
680 HandleScope scope(isolate_);
685 if (result->IsUndefined(isolate_)) return false;
735 if (debug_info->break_points()->IsUndefined(isolate_)) return;
738 if (break_points->get(i)->IsUndefined(isolate_)) continue;
769 HandleScope scope(isolate_);
775 if (result->IsUndefined(isolate_)) continue;
840 DCHECK(!break_point_objects->IsUndefined(isolate_));
843 Handle<FixedArray> break_points_hit = isolate_->factory()->NewFixedArray(1);
851 isolate_->factory()->NewFixedArray(num_objects);
854 Handle<Object> break_point_object(array->get(i), isolate_);
869 FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared(), isolate_));
881 FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared(), isolate_));
896 JavaScriptFrameIterator it(isolate_);
959 HandleScope scope(isolate_);
976 StackTraceFrameIterator frames_it(isolate_, frame_id);
1034 HandleScope scope(isolate_);
1246 if (isolate_->concurrent_recompilation_enabled()) {
1247 isolate_->optimizing_compile_dispatcher()->Flush(
1257 SharedFunctionInfo::GlobalIterator iterator(isolate_);
1264 isolate_->ClearOSROptimizedCode();
1267 isolate_->heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask,
1277 HeapIterator iterator(isolate_->heap());
1309 redirect_visitor.VisitThread(isolate_, isolate_->thread_local_top());
1310 isolate_->thread_manager()->IterateArchivedThreads(&redirect_visitor);
1348 HandleScope scope(isolate_);
1492 HandleScope scope(isolate_);
1497 return isolate_->factory()->undefined_value();
1521 Handle<DebugInfo> debug_info = isolate_->factory()->NewDebugInfo(shared);
1531 HandleScope scope(isolate_);
1559 HandleScope scope(isolate_);
1584 StackTraceFrameIterator it(isolate_);
1586 for (StackTraceFrameIterator it(isolate_); !it.done(); it.Advance()) {
1601 isolate_->heap()->CollectAllGarbage(Heap::kFinalizeIncrementalMarkingMask,
1603 Factory* factory = isolate_->factory();
1612 Script::Iterator iterator(isolate_);
1625 Handle<Object> argv[] = { isolate_->factory()->NewNumberFromInt(break_id()) };
1632 Handle<Object> argv[] = { isolate_->factory()->NewNumberFromInt(break_id()),
1642 Handle<Object> argv[] = { isolate_->factory()->NewNumberFromInt(break_id()),
1644 isolate_->factory()->ToBoolean(uncaught),
1655 isolate_->factory()->NewNumberFromInt(type) };
1662 Handle<Object> argv[] = {Handle<Smi>(Smi::FromInt(type), isolate_),
1663 Handle<Smi>(Smi::FromInt(id), isolate_)};
1672 HandleScope scope(isolate_);
1674 if (isolate_->has_scheduled_exception()) {
1675 scheduled_exception = handle(isolate_->scheduled_exception(), isolate_);
1676 isolate_->clear_scheduled_exception();
1678 OnException(exception, isolate_->GetPromiseOnStackOnThrow());
1680 isolate_->thread_local_top()->scheduled_exception_ = *scheduled_exception;
1687 HandleScope scope(isolate_);
1689 Handle<Symbol> key = isolate_->factory()->promise_debug_marker_symbol();
1692 ->IsUndefined(isolate_)) {
1709 JavaScriptFrameIterator it(isolate_);
1724 HandleScope scope(isolate_);
1726 Handle<SharedFunctionInfo> shared(frame->function()->shared(), isolate_);
1740 if (!AllowJavascriptExecution::IsAllowed(isolate_)) return;
1742 Isolate::CatchType catch_type = isolate_->PredictExceptionCatcher();
1751 Handle<Symbol> key = isolate_->factory()->promise_debug_marker_symbol();
1754 uncaught = !isolate_->PromiseHasUserDefinedRejectHandler(jspromise);
1769 JavaScriptFrameIterator it(isolate_);
1780 HandleScope scope(isolate_);
1781 PostponeInterruptsScope postpone(isolate_);
1790 GetDebugEventContext(isolate_),
1806 HandleScope scope(isolate_);
1807 PostponeInterruptsScope no_interrupts(isolate_);
1816 GetDebugEventContext(isolate_),
1894 int id = GetReferenceAsyncTaskId(isolate_, promise);
1900 isolate_, Handle<JSPromise>::cast(parent))
1917 LookupIterator it(promise, isolate_->factory()->promise_async_id_symbol());
1924 handle(Smi::FromInt(++thread_local_.async_task_count_), isolate_);
1927 Handle<Object> global_handle = isolate_->global_handles()->Create(*promise);
1938 this, isolate_),
1957 HandleScope handle_scope(isolate_);
1958 PostponeInterruptsScope no_interrupts(isolate_);
1980 DebugScope debug_scope(isolate_->debug());
1982 HandleScope scope(isolate_);
1983 PostponeInterruptsScope no_interrupts(isolate_);
1998 HandleScope scope(isolate_);
1999 PostponeInterruptsScope postpone(isolate_);
2011 return handle(*debug_context(), isolate_);
2015 StackTraceFrameIterator it(isolate_);
2057 isolate_->compilation_cache()->Disable();
2060 isolate_->compilation_cache()->Enable();
2064 isolate_->DebugStateUpdated();
2070 isolate_->needs_side_effect_check();
2075 if (debug_scope.failed()) return isolate_->factory()->undefined_value();
2080 return isolate_->factory()->undefined_value();
2085 isolate_,
2087 Handle<Object>(debug_context()->global_proxy(), isolate_),
2097 if (isolate_->bootstrapper()->IsActive()) return;
2103 StackLimitCheck check(isolate_);
2106 { JavaScriptFrameIterator it(isolate_);
2110 HandleScope scope(isolate_);
2113 isolate_);
2134 isolate_->stack_guard()->ClearDebugBreak();
2139 HandleScope scope(isolate_);
2143 OnDebugBreak(isolate_->factory()->undefined_value());
2149 HandleScope scope(isolate_);
2150 StackTraceFrameIterator iterator(isolate_);
2189 save_(debug_->isolate_),
2190 no_termination_exceptons_(debug_->isolate_,
2237 DCHECK(isolate_
2238 DisallowJavascriptExecution no_js(isolate_);
2248 isolate_->TerminateExecution();
2255 DCHECK(isolate_->needs_side_effect_check());
2259 isolate_->TerminateExecution();
2260 isolate_->OptionalRescheduleException(false);
2267 if (isolate_->debug()->MakeAsyncTaskEvent(type, id).ToHandle(&event_data)) {
2276 if (isolate_->debug()
2287 if (isolate_->debug()
2302 if (isolate_->debug()
2315 if (isolate_->debug()->MakeExecutionState().ToHandle(&exec_state)) {
2337 Handle<Object> argv[] = {Handle<Object>(Smi::FromInt(event), isolate_),
2339 Handle<JSReceiver> global = isolate_->global_proxy();
2341 Execution::Call(isolate_, listener_, global, arraysize(argv), argv)
2396 Isolate* isolate = isolate_;
2402 if (isolate_->needs_side_effect_check() &&
2403 isolate_->debug()->side_effect_check_failed_) {
2404 DCHECK(isolate_->has_pending_exception());
2405 DCHECK_EQ(isolate_->heap()->termination_exception(),
2406 isolate_->pending_exception());
2408 isolate_->CancelTerminateExecution();
2409 isolate_->Throw(*isolate_->factory()->NewEvalError(
2412 isolate_->set_needs_side_effect_check(old_needs_side_effect_check_);
2413 isolate_->debug()->UpdateHookOnFunctionCall();
2414 isolate_->debug()->side_effect_check_failed_ = false;