Lines Matching refs:script
717 bool Debug::SetBreakPointForScript(Handle<Script> script,
721 if (script->type() == Script::TYPE_WASM) {
729 FindSharedFunctionInfoInScript(script, *source_position);
739 // Find position within function. The script position might be before the
1384 bool Debug::GetPossibleBreakpoints(Handle<Script> script, int start_position,
1387 if (!script->shared_function_infos()->IsWeakFixedArray()) return false;
1390 WeakFixedArray::cast(script->shared_function_infos());
1500 Handle<Object> Debug::FindSharedFunctionInfoInScript(Handle<Script> script,
1503 // Go through all shared function infos associated with this script to
1505 // If there is no shared function info for this script at all, there is
1507 if (!script->shared_function_infos()->IsWeakFixedArray()) break;
1512 WeakFixedArray::Iterator iterator(script->shared_function_infos());
1661 Script::Iterator iterator(isolate_);
1662 Script* script;
1663 while ((script = iterator.Next())) {
1664 if (script->HasValidSource()) results->set(length++, script);
1699 MaybeHandle<Object> Debug::MakeCompileEvent(Handle<Script> script,
1702 Handle<Object> script_wrapper = Script::GetWrapper(script);
1823 void Debug::OnCompileError(Handle<Script> script) {
1824 ProcessCompileEvent(v8::CompileError, script);
1828 void Debug::OnBeforeCompile(Handle<Script> script) {
1829 ProcessCompileEvent(v8::BeforeCompile, script);
1833 // Handle debugger actions when a new script is compiled.
1834 void Debug::OnAfterCompile(Handle<Script> script) {
1835 ProcessCompileEvent(v8::AfterCompile, script);
1847 // Create the script collected state object.
1923 void Debug::ProcessCompileEvent(v8::DebugEvent event, Handle<Script> script) {
1933 // If debugging there might be script break points registered for this
1934 // script. Make sure that these break points are set.
1935 Handle<Object> argv[] = {Script::GetWrapper(script)};
1945 if (!MakeCompileEvent(script, event).ToHandle(&event_data)) return;
2017 // in the queue if any. For script collected events don't even process
2267 Handle<Object> script_obj(summary.function()->shared()->script(), isolate_);
2272 Handle<Script> script = Handle<Script>::cast(script_obj);
2273 Handle<String> source(String::cast(script->source()));
2274 Script::InitLineEnds(script);
2276 Script::GetLineNumber(script, source_position) - script->line_offset();
2277 int column = Script::GetColumnNumber(script, source_position) -
2278 (line == 0 ? script->column_offset() : 0);
2279 Handle<FixedArray> line_ends(FixedArray::cast(script->line_ends()));
2458 // Isolate::context() may have been NULL when "script collected" event
2469 // Isolate::context() may be NULL when "script collected" event occurs.