Lines Matching refs:shared
140 rinfo()->data() - debug_info_->shared()->start_position()); in Next()
145 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()
790 Handle<Script> script(Script::cast(function->shared()->script())); in CompileDebuggerScript()
922 Handle<SharedFunctionInfo> shared = in Break() local
923 Handle<SharedFunctionInfo>(JSFunction::cast(frame->function())->shared()); in Break()
924 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in Break()
1127 bool Debug::HasDebugInfo(Handle<SharedFunctionInfo> shared) { in HasDebugInfo() argument
1128 return !shared->debug_info()->IsUndefined(); in HasDebugInfo()
1134 Handle<DebugInfo> Debug::GetDebugInfo(Handle<SharedFunctionInfo> shared) { in GetDebugInfo() argument
1135 ASSERT(HasDebugInfo(shared)); in GetDebugInfo()
1136 return Handle<DebugInfo>(DebugInfo::cast(shared->debug_info())); in GetDebugInfo()
1140 void Debug::SetBreakPoint(Handle<SharedFunctionInfo> shared, in SetBreakPoint() argument
1147 if (!EnsureDebugInfo(shared)) { in SetBreakPoint()
1152 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in SetBreakPoint()
1179 Handle<SharedFunctionInfo> shared(debug_info->shared()); in ClearBreakPoint() local
1219 void Debug::FloodWithOneShot(Handle<SharedFunctionInfo> shared) { in FloodWithOneShot() argument
1222 if (!EnsureDebugInfo(shared)) { in FloodWithOneShot()
1228 BreakLocationIterator it(GetDebugInfo(shared), ALL_BREAK_LOCATIONS); in FloodWithOneShot()
1242 Handle<SharedFunctionInfo> shared_info(JSFunction::cast(*bindee)->shared()); in FloodBoundFunctionWithOneShot()
1258 Handle<SharedFunctionInfo> shared = in FloodHandlerWithOneShot() local
1260 JSFunction::cast(frame->function())->shared()); in FloodHandlerWithOneShot()
1262 FloodWithOneShot(shared); in FloodHandlerWithOneShot()
1329 FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared())); in PrepareStep()
1334 Handle<SharedFunctionInfo> shared = in PrepareStep() local
1335 Handle<SharedFunctionInfo>(JSFunction::cast(frame->function())->shared()); in PrepareStep()
1336 if (!EnsureDebugInfo(shared)) { in PrepareStep()
1340 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in PrepareStep()
1406 FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared())); in PrepareStep()
1416 FloodWithOneShot(shared); in PrepareStep()
1429 restarted_function->shared()); in PrepareStep()
1467 if (js_function->shared()->bound()) { in PrepareStep()
1472 FloodWithOneShot(Handle<SharedFunctionInfo>(js_function->shared())); in PrepareStep()
1481 FloodWithOneShot(shared); in PrepareStep()
1610 Handle<SharedFunctionInfo> shared) { in GetSourceBreakLocations() argument
1613 if (!HasDebugInfo(shared)) return Handle<Object>(heap->undefined_value()); in GetSourceBreakLocations()
1614 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in GetSourceBreakLocations()
1666 if (function->shared()->bound()) { in HandleStepIn()
1671 if (function->shared()->code() == in HandleStepIn()
1673 function->shared()->code() == in HandleStepIn()
1682 JSFunction::cast(*holder)->shared()); in HandleStepIn()
1686 Debug::FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared())); in HandleStepIn()
1763 static bool CompileFullCodeForDebugging(Handle<SharedFunctionInfo> shared, in CompileFullCodeForDebugging() argument
1767 CompilationInfo info(shared); in CompileFullCodeForDebugging()
1779 Handle<Code> new_code(shared->code()); in CompileFullCodeForDebugging()
1806 function->shared()->code()->set_gc_metadata(active_code_marker); in CollectActiveFunctionsFromThread()
1812 function->shared()->code()->set_gc_metadata(active_code_marker); in CollectActiveFunctionsFromThread()
1833 Handle<Code> new_code(function->shared()->code()); in RedirectActivationsToRecompiledCodeOnThread()
1967 SharedFunctionInfo* shared = function->shared(); in PrepareForBreakPoints() local
1968 if (shared->allows_lazy_compilation() && in PrepareForBreakPoints()
1969 shared->script()->IsScript() && in PrepareForBreakPoints()
1972 shared->code()->gc_metadata() != active_code_marker) { in PrepareForBreakPoints()
1974 function->shared()->set_code(*lazy_compile); in PrepareForBreakPoints()
1982 function->shared()->code()->set_gc_metadata(Smi::FromInt(0)); in PrepareForBreakPoints()
1997 Handle<SharedFunctionInfo> shared(function->shared()); in PrepareForBreakPoints() local
1999 if (shared->is_toplevel() || in PrepareForBreakPoints()
2000 !shared->allows_lazy_compilation() || in PrepareForBreakPoints()
2001 shared->code()->kind() == Code::BUILTIN) { in PrepareForBreakPoints()
2007 if (!shared->code()->has_debug_break_slots()) { in PrepareForBreakPoints()
2010 Handle<Code> current_code(function->shared()->code()); in PrepareForBreakPoints()
2012 shared->set_code(*lazy_compile); in PrepareForBreakPoints()
2017 CompileFullCodeForDebugging(shared, current_code); in PrepareForBreakPoints()
2020 if (!shared->is_compiled()) { in PrepareForBreakPoints()
2021 shared->set_code(*current_code); in PrepareForBreakPoints()
2027 function->set_code(shared->code()); in PrepareForBreakPoints()
2041 bool Debug::EnsureDebugInfo(Handle<SharedFunctionInfo> shared) { in EnsureDebugInfo() argument
2043 if (HasDebugInfo(shared)) { in EnsureDebugInfo()
2044 ASSERT(shared->is_compiled()); in EnsureDebugInfo()
2049 if (!SharedFunctionInfo::EnsureCompiled(shared, CLEAR_EXCEPTION)) { in EnsureDebugInfo()
2054 Handle<DebugInfo> debug_info = FACTORY->NewDebugInfo(shared); in EnsureDebugInfo()
2081 current->debug_info()->shared()->set_debug_info( in RemoveDebugInfo()
2105 Handle<SharedFunctionInfo> shared = in SetAfterBreakTarget() local
2106 Handle<SharedFunctionInfo>(JSFunction::cast(frame->function())->shared()); in SetAfterBreakTarget()
2107 if (!EnsureDebugInfo(shared)) { in SetAfterBreakTarget()
2111 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in SetAfterBreakTarget()
2197 Handle<SharedFunctionInfo> shared = in IsBreakAtReturn() local
2198 Handle<SharedFunctionInfo>(JSFunction::cast(frame->function())->shared()); in IsBreakAtReturn()
2199 if (!EnsureDebugInfo(shared)) { in IsBreakAtReturn()
2203 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in IsBreakAtReturn()