Home | History | Annotate | Download | only in debug

Lines Matching refs:Handle

41     : debug_context_(Handle<Context>()),
57 BreakLocation BreakLocation::FromFrame(Handle<DebugInfo> debug_info,
61 Handle<AbstractCode> abstract_code = summary.abstract_code();
68 void BreakLocation::AllAtCurrentStatement(Handle<DebugInfo> debug_info,
73 Handle<AbstractCode> abstract_code = summary.abstract_code();
89 int BreakLocation::BreakIndexFromCodeOffset(Handle<DebugInfo> debug_info,
90 Handle<AbstractCode> abstract_code,
109 bool BreakLocation::HasBreakPoint(Handle<DebugInfo> debug_info) const {
129 Handle<DebugInfo> debug_info, Handle<AbstractCode> abstract_code) {
141 BreakIterator::BreakIterator(Handle<DebugInfo> debug_info)
171 CodeBreakIterator::CodeBreakIterator(Handle<DebugInfo> debug_info)
241 Handle<Code> target = debug_break_type == DEBUG_BREAK_SLOT_AT_RETURN
258 Handle<AbstractCode> code(AbstractCode::cast(debug_info_->DebugCode()));
263 Handle<DebugInfo> debug_info)
355 Handle<AbstractCode> code(
413 Handle<DebugInfo>::cast(global_handles->Create(debug_info)).location();
445 Handle<Context> context = isolate_->bootstrapper()->CreateEnvironment(
453 debug_context_ = Handle<Context>::cast(
470 // Clear debugger context global handle.
471 GlobalHandles::Destroy(Handle<Object>::cast(debug_context_).location());
472 debug_context_ = Handle<Context>();
491 Handle<JSFunction> function(frame->function());
492 Handle<SharedFunctionInfo> shared(function->shared());
494 Handle<DebugInfo> debug_info(shared->GetDebugInfo(), isolate_);
506 Handle<JSArray> jsarr = isolate_->factory()->NewJSArrayWithElements(
558 // handle if none evaluated true.
559 MaybeHandle<FixedArray> Debug::CheckBreakPoints(Handle<DebugInfo> debug_info,
567 Handle<Object> break_point_objects =
582 Handle<JSFunction> function = summary.AsJavaScript().function();
584 Handle<DebugInfo> debug_info(function->shared()->GetDebugInfo());
603 Handle<Object> args[]) {
606 Handle<JSReceiver> holder =
607 Handle<JSReceiver>::cast(isolate_->natives_utils_object());
608 Handle<JSFunction> fun = Handle<JSFunction>::cast(
610 Handle<Object> undefined = isolate_->factory()->undefined_value();
619 bool Debug::CheckBreakPoint(Handle<Object> break_point_object) {
627 Handle<Object> break_id = factory->NewNumberFromInt(Debug::break_id());
630 Handle<Object> argv[] = { break_id, break_point_object };
631 Handle<Object> result;
642 bool Debug::SetBreakPoint(Handle<JSFunction> function,
643 Handle<Object> break_point_object,
648 Handle<SharedFunctionInfo> shared(function->shared());
650 Handle<DebugInfo> debug_info(shared->GetDebugInfo());
669 bool Debug::SetBreakPointForScript(Handle<Script> script,
670 Handle<Object> break_point_object,
674 Handle<WasmCompiledModule> compiled_module(
683 Handle<Object> result =
688 Handle<SharedFunctionInfo> shared = Handle<SharedFunctionInfo>::cast(result);
697 Handle<DebugInfo> debug_info(shared->GetDebugInfo());
713 int Debug::FindBreakablePosition(Handle<DebugInfo> debug_info,
733 void Debug::ApplyBreakPoints(Handle<DebugInfo> debug_info) {
754 void Debug::ClearBreakPoints(Handle<DebugInfo> debug_info) {
768 void Debug::ClearBreakPoint(Handle<Object> break_point_object) {
773 Handle<Object> result =
776 Handle<DebugInfo> debug_info = node->debug_info();
803 void Debug::FloodWithOneShot(Handle<SharedFunctionInfo> shared) {
807 Handle<DebugInfo> debug_info(shared->GetDebugInfo());
839 Handle<Object> break_point_objects) {
843 Handle<FixedArray> break_points_hit = isolate_->factory()->NewFixedArray(1);
848 Handle<FixedArray> array(FixedArray::cast(*break_point_objects));
850 Handle<FixedArray> break_points_hit =
854 Handle<Object> break_point_object(array->get(i), isolate_);
864 void Debug::PrepareStepIn(Handle<JSFunction> function) {
869 FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared(), isolate_));
879 Handle<JSFunction> function(
881 FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared(), isolate_));
926 Handle<AbstractCode> code =
947 Handle<SharedFunctionInfo> info(
979 // Handle stepping in wasm functions via the wasm interpreter.
994 Handle<JSFunction> function(summary.function());
995 Handle<SharedFunctionInfo> shared(function->shared());
997 Handle<DebugInfo> debug_info(shared->GetDebugInfo());
1035 List<Handle<SharedFunctionInfo>> infos;
1038 Handle<SharedFunctionInfo> info = infos.RemoveLast();
1063 Handle<Object> Debug::GetSourceBreakLocations(
1064 Handle<SharedFunctionInfo> shared,
1070 Handle<DebugInfo> debug_info(shared->GetDebugInfo());
1074 Handle<FixedArray> locations =
1128 Handle<DebugInfo> debug_info = node->debug_info();
1243 bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) {
1251 List<Handle<JSFunction> > functions;
1288 functions.Add(handle(function));
1302 for (Handle<JSFunction> const function : functions) {
1329 void FindBreakablePositions(Handle<DebugInfo> debug_info, int start_position,
1345 bool Debug::GetPossibleBreakpoints(Handle<Script> script, int start_position,
1349 List<Handle<SharedFunctionInfo>> candidates;
1359 candidates.Add(i::handle(info));
1379 Handle<DebugInfo> debug_info(candidates[i]->GetDebugInfo());
1389 void Debug::RecordGenerator(Handle<JSGeneratorObject> generator_object) {
1459 Handle<Object> Debug::FindSharedFunctionInfoInScript(Handle<Script> script,
1479 Handle<SharedFunctionInfo> shared_handle(shared);
1495 if (!Compiler::CompileDebugCode(handle(shared))) break;
1502 bool Debug::EnsureDebugInfo(Handle<SharedFunctionInfo> shared) {
1519 void Debug::CreateDebugInfo(Handle<SharedFunctionInfo> shared) {
1521 Handle<DebugInfo> debug_info = isolate_->factory()->NewDebugInfo(shared);
1530 void Debug::RemoveDebugInfoAndClearFromShared(Handle<DebugInfo> debug_info) {
1532 Handle<SharedFunctionInfo> shared(debug_info->shared());
1562 Handle<SharedFunctionInfo> shared(frame->function()->shared());
1568 Handle<DebugInfo> debug_info(shared->GetDebugInfo());
1600 Handle<FixedArray> Debug::GetLoadedScripts() {
1607 Handle<WeakFixedArray> array =
1608 Handle<WeakFixedArray>::cast(factory->script_list());
1609 Handle<FixedArray> results = factory->NewFixedArray(array->Length());
1625 Handle<Object> argv[] = { isolate_->factory()->NewNumberFromInt(break_id()) };
1630 MaybeHandle<Object> Debug::MakeBreakEvent(Handle<Object> break_points_hit) {
1632 Handle<Object> argv[] = { isolate_->factory()->NewNumberFromInt(break_id()),
1638 MaybeHandle<Object> Debug::MakeExceptionEvent(Handle<Object> exception,
1640 Handle<Object> promise) {
1642 Handle<Object> argv[] = { isolate_->factory()->NewNumberFromInt(break_id()),
1650 MaybeHandle<Object> Debug::MakeCompileEvent(Handle<Script> script,
1653 Handle<Object> script_wrapper = Script::GetWrapper(script);
1654 Handle<Object> argv[] = { script_wrapper,
1662 Handle<Object> argv[] = {Handle<Smi>(Smi::FromInt(type), isolate_),
1663 Handle<Smi>(Smi::FromInt(id), isolate_)};
1668 void Debug::OnThrow(Handle<Object> exception) {
1673 Handle<Object> scheduled_exception;
1675 scheduled_exception = handle(isolate_->scheduled_exception(), isolate_);
1685 void Debug::OnPromiseReject(Handle<Object> promise, Handle<Object> value) {
1689 Handle<Symbol> key = isolate_->factory()->promise_debug_marker_symbol();
1691 JSReceiver::GetDataProperty(Handle<JSObject>::cast(promise), key)
1699 Handle<Context> context = isolate->debug()->debugger_entry()->GetContext();
1703 Handle<Context> native_context(context->native_context());
1726 Handle<SharedFunctionInfo> shared(frame->function()->shared(), isolate_);
1729 List<Handle<SharedFunctionInfo>> infos;
1736 void Debug::OnException(Handle<Object> exception, Handle<Object> promise) {
1749 Handle<JSObject> jspromise = Handle<JSObject>::cast(promise);
1751 Handle<Symbol> key = isolate_->factory()->promise_debug_marker_symbol();
1785 Handle<Object> exec_state;
1791 v8::Utils::ToLocal(Handle<JSObject>::cast(exec_state)),
1795 void Debug::OnDebugBreak(Handle<Object> break_points_hit) {
1811 Handle<Object> exec_state;
1817 v8::Utils::ToLocal(Handle<JSObject>::cast(exec_state)),
1822 void Debug::OnCompileError(Handle<Script> script) {
1827 // Handle debugger actions when a new script is compiled.
1828 void Debug::OnAfterCompile(Handle<Script> script) {
1870 int GetReferenceAsyncTaskId(Isolate* isolate, Handle<JSPromise> promise) {
1871 Handle<Symbol> handled_by_symbol =
1873 Handle<Object> handled_by_promise =
1878 Handle<JSPromise> handled_by_promise_js =
1879 Handle<JSPromise>::cast(handled_by_promise);
1880 Handle<Symbol> async_stack_id_symbol =
1882 Handle<Object> async_task_id =
1887 return Handle<Smi>::cast(async_task_id)->value();
1891 void Debug::RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise,
1892 Handle<Object> parent) {
1900 isolate_, Handle<JSPromise>::cast(parent))
1916 int Debug::NextAsyncTaskId(Handle<JSObject> promise) {
1921 return Handle<Smi>::cast(result.ToHandleChecked())->value();
1923 Handle<Smi> async_id =
1924 handle(Smi::FromInt(++thread_local_.async_task_count_), isolate_);
1927 Handle<Object> global_handle = isolate_->global_handles()->Create(*promise);
1944 debug::Location GetDebugLocation(Handle<Script> script, int source_position) {
1951 bool Debug::IsBlackboxed(Handle<SharedFunctionInfo> shared) {
1960 Handle<Script> script(Script::cast(shared->script()));
1988 void Debug::ProcessCompileEvent(v8::DebugEvent event, Handle<Script> script) {
2006 Handle<Context> Debug::GetDebugContext() {
2007 if (!is_loaded()) return Handle<Context>();
2009 if (debug_scope.failed()) return Handle<Context>();
2010 // The global handle may be destroyed soon after. Return it reboxed.
2011 return handle(*debug_context(), isolate_);
2073 MaybeHandle<Object> Debug::Call(Handle<Object> fun, Handle<Object> data) {
2078 Handle<Object> exec_state;
2083 Handle<Object> argv[] = { exec_state, data };
2087 Handle<Object>(debug_context()->global_proxy(), isolate_),
2112 Handle<SharedFunctionInfo> shared(JSFunction::cast(fun)->shared(),
2155 Handle<Object> script_obj = summary.script();
2160 Handle<Script> script = Handle<Script>::cast(script_obj);
2161 Handle<String> source(String::cast(script->source()));
2167 Handle<FixedArray> line_ends(FixedArray::cast(script->line_ends()));
2236 bool Debug::PerformSideEffectCheck(Handle<JSFunction> function) {
2266 Handle<Object> event_data;
2268 ProcessDebugEvent(v8::AsyncTaskEvent, Handle<JSObject>::cast(event_data));
2274 Handle<Object> event_data;
2279 ProcessDebugEvent(event, Handle<JSObject>::cast(event_data));
2286 Handle<Object> event_data;
2291 v8::Break, Handle<JSObject>::cast(event_data),
2292 Handle<JSObject>::cast(v8::Utils::OpenHandle(*exec_state)));
2301 Handle<Object> event_data;
2307 v8::Exception, Handle<JSObject>::cast(event_data),
2308 Handle<JSObject>::cast(v8::Utils::OpenHandle(*exec_state)));
2313 Handle<JSObject> event_data) {
2314 Handle<Object> exec_state;
2316 ProcessDebugEvent(event, event_data, Handle<JSObject>::cast(exec_state));
2321 Handle<JSFunction> listener,
2322 Handle<Object> data)
2325 listener_ = Handle<JSFunction>::cast(global_handles->Create(*listener));
2330 GlobalHandles::Destroy(Handle<Object>::cast(listener_).location());
2335 Handle<JSObject> event_data,
2336 Handle<JSObject> exec_state) {
2337 Handle<Object> argv[] = {Handle<Object>(Smi::FromInt(event), isolate_),
2339 Handle<JSReceiver> global = isolate_->global_proxy();
2347 Handle<Object> data)
2357 Handle<JSObject> exec_state,
2358 Handle<JSObject> event_data,
2359 Handle<Object> callback_data)
2393 Handle<JSObject> event_data,
2394 Handle<JSObject> exec_state) {