Lines Matching refs:shared
141 rinfo()->data() - debug_info_->shared()->start_position()); in Next()
146 rinfo()->data() - debug_info_->shared()->start_position()); in Next()
192 if (debug_info_->shared()->HasSourceCode()) { in Next()
193 position_ = debug_info_->shared()->end_position() - in Next()
194 debug_info_->shared()->start_position() - 1; in Next()
834 Handle<Script> script(Script::cast(function->shared()->script())); in CompileDebuggerScript()
970 Handle<SharedFunctionInfo> shared = in Break() local
971 Handle<SharedFunctionInfo>(frame->function()->shared()); in Break()
972 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in Break()
1176 bool Debug::HasDebugInfo(Handle<SharedFunctionInfo> shared) { in HasDebugInfo() argument
1177 return !shared->debug_info()->IsUndefined(); in HasDebugInfo()
1183 Handle<DebugInfo> Debug::GetDebugInfo(Handle<SharedFunctionInfo> shared) { in GetDebugInfo() argument
1184 ASSERT(HasDebugInfo(shared)); in GetDebugInfo()
1185 return Handle<DebugInfo>(DebugInfo::cast(shared->debug_info())); in GetDebugInfo()
1197 Handle<SharedFunctionInfo> shared(function->shared()); in SetBreakPoint() local
1198 if (!EnsureDebugInfo(shared, function)) { in SetBreakPoint()
1203 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in SetBreakPoint()
1232 Handle<SharedFunctionInfo> shared(SharedFunctionInfo::cast(result)); in SetBreakPointForScript() local
1233 if (!EnsureDebugInfo(shared, Handle<JSFunction>::null())) { in SetBreakPointForScript()
1241 if (shared->start_position() > *source_position) { in SetBreakPointForScript()
1244 position = *source_position - shared->start_position(); in SetBreakPointForScript()
1247 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in SetBreakPointForScript()
1256 *source_position = it.position() + shared->start_position(); in SetBreakPointForScript()
1315 Handle<SharedFunctionInfo> shared(function->shared()); in FloodWithOneShot() local
1316 if (!EnsureDebugInfo(shared, function)) { in FloodWithOneShot()
1322 BreakLocationIterator it(GetDebugInfo(shared), ALL_BREAK_LOCATIONS); in FloodWithOneShot()
1432 Handle<SharedFunctionInfo> shared(function->shared()); in PrepareStep() local
1433 if (!EnsureDebugInfo(shared, function)) { in PrepareStep()
1437 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in PrepareStep()
1564 if (js_function->shared()->bound()) { in PrepareStep()
1710 Handle<SharedFunctionInfo> shared, in GetSourceBreakLocations() argument
1712 Isolate* isolate = shared->GetIsolate(); in GetSourceBreakLocations()
1714 if (!HasDebugInfo(shared)) { in GetSourceBreakLocations()
1717 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in GetSourceBreakLocations()
1783 if (function->shared()->bound()) { in HandleStepIn()
1788 if (function->shared()->code() == in HandleStepIn()
1790 function->shared()->code() == in HandleStepIn()
1800 } else if (js_function->shared()->bound()) { in HandleStepIn()
1899 Handle<Code> new_code(function->shared()->code()); in CompileFullCodeForDebugging()
1926 function->shared()->code()->set_gc_metadata(active_code_marker); in CollectActiveFunctionsFromThread()
1932 function->shared()->code()->set_gc_metadata(active_code_marker); in CollectActiveFunctionsFromThread()
1953 Handle<Code> new_code(function->shared()->code()); in RedirectActivationsToRecompiledCodeOnThread()
2105 SharedFunctionInfo* shared = function->shared(); in PrepareForBreakPoints() local
2107 if (!shared->allows_lazy_compilation()) continue; in PrepareForBreakPoints()
2108 if (!shared->script()->IsScript()) continue; in PrepareForBreakPoints()
2110 if (shared->code()->gc_metadata() == active_code_marker) continue; in PrepareForBreakPoints()
2116 function->shared()->set_code(*lazy_compile); in PrepareForBreakPoints()
2122 Code* shared_code = function->shared()->code(); in PrepareForBreakPoints()
2128 function->shared()->set_code(*lazy_compile); in PrepareForBreakPoints()
2137 function->shared()->code()->set_gc_metadata(Smi::FromInt(0)); in PrepareForBreakPoints()
2145 Handle<SharedFunctionInfo> shared(function->shared()); in PrepareForBreakPoints() local
2154 if (shared->is_toplevel() || in PrepareForBreakPoints()
2155 !shared->allows_lazy_compilation() || in PrepareForBreakPoints()
2156 shared->code()->kind() == Code::BUILTIN) { in PrepareForBreakPoints()
2162 if (!shared->code()->has_debug_break_slots()) { in PrepareForBreakPoints()
2165 Handle<Code> current_code(function->shared()->code()); in PrepareForBreakPoints()
2166 shared->set_code(*lazy_compile); in PrepareForBreakPoints()
2174 if (!shared->is_compiled()) { in PrepareForBreakPoints()
2175 shared->set_code(*current_code); in PrepareForBreakPoints()
2181 function->set_code(shared->code()); in PrepareForBreakPoints()
2222 Handle<SharedFunctionInfo> shared; in FindSharedFunctionInfoInScript() local
2225 shared = Handle<SharedFunctionInfo>(function->shared()); in FindSharedFunctionInfoInScript()
2226 ASSERT(shared->allows_lazy_compilation() || shared->is_compiled()); in FindSharedFunctionInfoInScript()
2229 shared = Handle<SharedFunctionInfo>(SharedFunctionInfo::cast(obj)); in FindSharedFunctionInfoInScript()
2232 found_next_candidate = shared->is_compiled() || in FindSharedFunctionInfoInScript()
2233 shared->allows_lazy_compilation_without_context(); in FindSharedFunctionInfoInScript()
2236 if (shared->script() == *script) { in FindSharedFunctionInfoInScript()
2239 int start_position = shared->function_token_position(); in FindSharedFunctionInfoInScript()
2241 start_position = shared->start_position(); in FindSharedFunctionInfoInScript()
2244 position <= shared->end_position()) { in FindSharedFunctionInfoInScript()
2250 target = shared; in FindSharedFunctionInfoInScript()
2253 shared->end_position() == target->end_position()) { in FindSharedFunctionInfoInScript()
2257 if (!shared->is_toplevel()) { in FindSharedFunctionInfoInScript()
2260 target = shared; in FindSharedFunctionInfoInScript()
2263 shared->end_position() <= target->end_position()) { in FindSharedFunctionInfoInScript()
2269 target = shared; in FindSharedFunctionInfoInScript()
2303 bool Debug::EnsureDebugInfo(Handle<SharedFunctionInfo> shared, in EnsureDebugInfo() argument
2305 Isolate* isolate = shared->GetIsolate(); in EnsureDebugInfo()
2308 if (HasDebugInfo(shared)) { in EnsureDebugInfo()
2309 ASSERT(shared->is_compiled()); in EnsureDebugInfo()
2323 Handle<DebugInfo> debug_info = isolate->factory()->NewDebugInfo(shared); in EnsureDebugInfo()
2347 current->debug_info()->shared()->set_debug_info( in RemoveDebugInfo()
2372 Handle<SharedFunctionInfo> shared(function->shared()); in SetAfterBreakTarget() local
2373 if (!EnsureDebugInfo(shared, function)) { in SetAfterBreakTarget()
2377 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in SetAfterBreakTarget()
2464 Handle<SharedFunctionInfo> shared(function->shared()); in IsBreakAtReturn() local
2465 if (!EnsureDebugInfo(shared, function)) { in IsBreakAtReturn()
2469 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in IsBreakAtReturn()