Lines Matching defs:script

750 bool Debug::SetBreakPointForScript(Handle<Script> script,
758 if (script->type() == Script::TYPE_WASM) {
759 RecordWasmScriptWithBreakpoints(script);
760 return WasmScript::SetBreakPoint(script, source_position, break_point);
769 FindInnermostContainingFunctionInfo(script, *source_position);
778 shared = FindClosestSharedFunctionInfoFromPosition(*source_position, script,
891 Handle<Script> script(Script::cast(wasm_instance->module_object().script()),
894 script, func_index, breakpoint);
908 void Debug::SetInstrumentationBreakpointForWasmScript(Handle<Script> script,
911 DCHECK_EQ(Script::TYPE_WASM, script->type());
916 RecordWasmScriptWithBreakpoints(script);
917 WasmScript::SetInstrumentationBreakpoint(script, break_point);
920 void Debug::RemoveBreakpointForWasmScript(Handle<Script> script, int id) {
922 if (script->type() == Script::TYPE_WASM) {
923 WasmScript::ClearBreakPointById(script, id);
927 void Debug::RecordWasmScriptWithBreakpoints(Handle<Script> script) {
941 wasm_script == *script) {
947 isolate_, wasm_scripts_with_break_points_, MaybeObjectHandle{script});
1643 bool CompileTopLevel(Isolate* isolate, Handle<Script> script) {
1647 UnoptimizedCompileFlags::ForScriptCompile(isolate, *script);
1651 Compiler::CompileToplevel(&parse_info, script, isolate,
1663 bool Debug::GetPossibleBreakpoints(Handle<Script> script, int start_position,
1669 FindInnermostContainingFunctionInfo(script, start_position);
1685 if (!FindSharedFunctionInfosIntersectingRange(script, start_position,
1714 // are assumptions in various places in the debugger that for script level
1716 // the script. It might be worth revisiting the overall design here at
1757 Handle<Script> script,
1760 SharedFunctionInfo::ScriptIterator iterator(isolate, *script);
1770 int position, Handle<Script> script,
1788 script, position, closest_position, &candidates)) {
1807 Handle<Script> script, int start_position, int end_position,
1817 SharedFunctionInfo::ScriptIterator iterator(isolate_, *script);
1833 script->shared_function_info_count() > 0) {
1834 DCHECK_LE(script->shared_function_info_count(),
1835 script->shared_function_infos().length());
1836 MaybeObject maybeToplevel = script->shared_function_infos().Get(0);
1843 const bool success = CompileTopLevel(isolate_, script);
1880 Handle<Object> Debug::FindInnermostContainingFunctionInfo(Handle<Script> script,
1884 // Go through all shared function infos associated with this script to
1886 // If there is no shared function info for this script at all, there is
1892 shared = FindSharedFunctionInfoCandidate(position, script, isolate_);
1898 const bool success = CompileTopLevel(isolate_, script);
2063 // Pack script back into the
2066 debug_info->shared().set_script_or_debug_info(debug_info->script(),
2102 for (Script script = iterator.Next(); !script.is_null();
2103 script = iterator.Next()) {
2104 if (script.HasValidSource()) results->set(length++, script);
2289 debug::Location GetDebugLocation(Handle<Script> script, int source_position) {
2291 Script::GetPositionInfo(script, source_position, &info, Script::WITH_OFFSET);
2308 !shared->IsSubjectToDebugging() || !shared->script().IsScript();
2314 DCHECK(shared->script().IsScript());
2315 Handle<Script> script(Script::cast(shared->script()), isolate_);
2316 DCHECK(script->IsUserJavaScript());
2317 debug::Location start = GetDebugLocation(script, shared->StartPosition());
2318 debug::Location end = GetDebugLocation(script, shared->EndPosition());
2322 ToApiHandle<debug::Script>(script), start, end);
2339 Handle<Object> script_obj = summary.script();
2342 Handle<Script> script = Handle<Script>::cast(script_obj);
2345 int line = Script::GetLineNumber(script, source_position);
2346 int column = Script::GetColumnNumber(script, source_position);
2350 return debug_delegate_->ShouldBeSkipped(ToApiHandle<debug::Script>(script),
2376 bool Debug::SetScriptSource(Handle<Script> script, Handle<String> source,
2382 LiveEdit::PatchScript(isolate_, script, source, preview, result);
2387 void Debug::OnCompileError(Handle<Script> script) {
2388 ProcessCompileEvent(true, script);
2391 void Debug::OnAfterCompile(Handle<Script> script) {
2392 ProcessCompileEvent(false, script);
2395 void Debug::ProcessCompileEvent(bool has_compile_error, Handle<Script> script) {
2398 if (script->id() == Script::kTemporaryScriptId) return;
2402 // Attach the correct debug id to the script. The debug id is used by the
2404 script->set_context_data(isolate_->native_context()->debug_context_id());
2407 if (!script->IsUserJavaScript() && script->type() != i::Script::TYPE_WASM) {
2411 if (!script->IsUserJavaScript()) return;
2421 debug_delegate_->ScriptCompiled(ToApiHandle<debug::Script>(script),
2558 Handle<Script> script = Handle<Script>::cast(script_obj);
2559 Handle<String> source(String::cast(script->source()), isolate_);
2560 Script::InitLineEnds(isolate_, script);
2562 Script::GetLineNumber(script, source_position) - script->line_offset();
2563 int column = Script::GetColumnNumber(script, source_position) -
2564 (line == 0 ? script->column_offset() : 0);
2565 Handle<FixedArray> line_ends(FixedArray::cast(script->line_ends()),