• Home
  • Raw
  • Download

Lines Matching refs:shared

114             rinfo()->data() - debug_info_->shared()->start_position());  in Next()
119 debug_info_->shared()->start_position()); in Next()
130 if (debug_info_->shared()->HasSourceCode()) { in Next()
131 position_ = debug_info_->shared()->end_position() - in Next()
132 debug_info_->shared()->start_position() - 1; in Next()
439 Handle<SharedFunctionInfo> shared(function->shared()); in Break() local
440 if (!EnsureDebugInfo(shared, function)) { in Break()
444 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in Break()
586 Handle<SharedFunctionInfo> shared(function->shared()); in SetBreakPoint() local
587 if (!EnsureDebugInfo(shared, function)) { in SetBreakPoint()
592 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in SetBreakPoint()
621 Handle<SharedFunctionInfo> shared = Handle<SharedFunctionInfo>::cast(result); in SetBreakPointForScript() local
622 if (!EnsureDebugInfo(shared, Handle<JSFunction>::null())) { in SetBreakPointForScript()
630 if (shared->start_position() > *source_position) { in SetBreakPointForScript()
633 position = *source_position - shared->start_position(); in SetBreakPointForScript()
636 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in SetBreakPointForScript()
650 *source_position = position + shared->start_position(); in SetBreakPointForScript()
714 if (!function->shared()->IsSubjectToDebugging()) { in FloodWithOneShot()
722 Handle<SharedFunctionInfo> shared(function->shared()); in FloodWithOneShot() local
723 if (!EnsureDebugInfo(shared, function)) { in FloodWithOneShot()
729 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in FloodWithOneShot()
789 !it.frame()->function()->shared()->IsSubjectToDebugging()) { in PrepareStepOnThrow()
838 Handle<SharedFunctionInfo> shared(function->shared()); in PrepareStep() local
839 if (!EnsureDebugInfo(shared, function)) { in PrepareStep()
844 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in PrepareStep()
846 if (shared->code() != *summary.code()) summary = GetFirstFrameSummary(frame); in PrepareStep()
869 !frames_it.frame()->function()->shared()->IsSubjectToDebugging()) { in PrepareStep()
907 Handle<SharedFunctionInfo> shared, in GetSourceBreakLocations() argument
909 Isolate* isolate = shared->GetIsolate(); in GetSourceBreakLocations()
911 if (!shared->HasDebugInfo()) { in GetSourceBreakLocations()
914 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in GetSourceBreakLocations()
1061 explicit RedirectActiveFunctions(SharedFunctionInfo* shared) in RedirectActiveFunctions() argument
1062 : shared_(shared) { in RedirectActiveFunctions()
1063 DCHECK(shared->HasDebugCode()); in RedirectActiveFunctions()
1077 Code* new_code = function->shared()->code(); in VisitThread()
1105 bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) { in PrepareFunctionForBreakPoints() argument
1106 DCHECK(shared->is_compiled()); in PrepareFunctionForBreakPoints()
1120 while (SharedFunctionInfo* shared = iterator.Next()) { in PrepareFunctionForBreakPoints() local
1121 if (!shared->OptimizedCodeMapIsCleared()) { in PrepareFunctionForBreakPoints()
1122 shared->ClearOptimizedCodeMap(); in PrepareFunctionForBreakPoints()
1134 bool include_generators = shared->is_generator(); in PrepareFunctionForBreakPoints()
1139 if (!function->Inlines(*shared)) continue; in PrepareFunctionForBreakPoints()
1143 if (function->shared() == *shared) functions.Add(handle(function)); in PrepareFunctionForBreakPoints()
1148 if (!function->Inlines(*shared)) continue; in PrepareFunctionForBreakPoints()
1158 if (!shared->HasDebugCode()) { in PrepareFunctionForBreakPoints()
1164 function->ReplaceCode(shared->code()); in PrepareFunctionForBreakPoints()
1169 int pc_offset = ComputePcOffsetFromContinuationIndex(shared->code(), index); in PrepareFunctionForBreakPoints()
1174 RedirectActiveFunctions redirect_visitor(*shared); in PrepareFunctionForBreakPoints()
1190 void NewCandidate(SharedFunctionInfo* shared, JSFunction* closure = NULL) { in NewCandidate() argument
1191 if (!shared->IsSubjectToDebugging()) return; in NewCandidate()
1192 int start_position = shared->function_token_position(); in NewCandidate()
1194 start_position = shared->start_position(); in NewCandidate()
1198 if (target_position_ > shared->end_position()) return; in NewCandidate()
1202 shared->end_position() == current_candidate_->end_position()) { in NewCandidate()
1208 if (!current_candidate_->is_toplevel() && shared->is_toplevel()) return; in NewCandidate()
1210 current_candidate_->end_position() < shared->end_position()) { in NewCandidate()
1216 current_candidate_ = shared; in NewCandidate()
1248 SharedFunctionInfo* shared; in FindSharedFunctionInfoInScript() local
1256 shared = finder.Result(); in FindSharedFunctionInfoInScript()
1257 if (shared == NULL) break; in FindSharedFunctionInfoInScript()
1259 if (shared->HasDebugCode()) { in FindSharedFunctionInfoInScript()
1260 Handle<SharedFunctionInfo> shared_handle(shared); in FindSharedFunctionInfoInScript()
1273 if (shared->allows_lazy_compilation_without_context()) { in FindSharedFunctionInfoInScript()
1275 if (!Compiler::CompileDebugCode(handle(shared))) break; in FindSharedFunctionInfoInScript()
1289 candidate = candidate_closure->shared(); in FindSharedFunctionInfoInScript()
1301 shared = finder.Result(); in FindSharedFunctionInfoInScript()
1303 if (shared == NULL) break; in FindSharedFunctionInfoInScript()
1306 if (!Compiler::CompileDebugCode(handle(shared))) break; in FindSharedFunctionInfoInScript()
1316 bool Debug::EnsureDebugInfo(Handle<SharedFunctionInfo> shared, in EnsureDebugInfo() argument
1318 if (!shared->IsSubjectToDebugging()) return false; in EnsureDebugInfo()
1321 if (shared->HasDebugInfo()) return true; in EnsureDebugInfo()
1324 DCHECK(shared->HasDebugCode()); in EnsureDebugInfo()
1329 if (!PrepareFunctionForBreakPoints(shared)) return false; in EnsureDebugInfo()
1331 CreateDebugInfo(shared); in EnsureDebugInfo()
1337 void Debug::CreateDebugInfo(Handle<SharedFunctionInfo> shared) { in CreateDebugInfo() argument
1339 DCHECK(shared->HasDebugCode()); in CreateDebugInfo()
1340 Handle<DebugInfo> debug_info = isolate_->factory()->NewDebugInfo(shared); in CreateDebugInfo()
1351 Handle<SharedFunctionInfo> shared(debug_info->shared()); in RemoveDebugInfoAndClearFromShared() local
1366 shared->set_debug_info(isolate_->heap()->undefined_value()); in RemoveDebugInfoAndClearFromShared()
1393 Handle<SharedFunctionInfo> shared(function->shared()); in IsBreakAtReturn() local
1396 if (!shared->HasDebugInfo()) return false; in IsBreakAtReturn()
1397 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in IsBreakAtReturn()
1463 Handle<SharedFunctionInfo> shared = Handle<SharedFunctionInfo>(fun->shared()); in GetStepinPositions() local
1465 if (!EnsureDebugInfo(shared, fun)) return; in GetStepinPositions()
1467 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in GetStepinPositions()
1469 if (shared->code() != *summary.code()) summary = GetFirstFrameSummary(frame); in GetStepinPositions()
1501 script->set_eval_from_shared(it.frame()->function()->shared()); in RecordEvalCaller()
2069 if (!JSFunction::cast(fun)->shared()->IsSubjectToDebugging()) return; in HandleDebugBreak()