Lines Matching refs:debug_info
62 BreakLocation::BreakLocation(Handle<DebugInfo> debug_info, RelocInfo* rinfo, in BreakLocation() argument
64 : debug_info_(debug_info), in BreakLocation()
65 pc_offset_(static_cast<int>(rinfo->pc() - debug_info->code()->entry())), in BreakLocation()
72 BreakLocation::Iterator::Iterator(Handle<DebugInfo> debug_info, in Iterator() argument
74 : debug_info_(debug_info), in Iterator()
75 reloc_iterator_(debug_info->code(), GetModeMask(type)), in Iterator()
147 BreakLocation BreakLocation::FromAddress(Handle<DebugInfo> debug_info, in FromAddress() argument
149 Iterator it(debug_info, ALL_BREAK_LOCATIONS); in FromAddress()
150 it.SkipTo(BreakIndexFromAddress(debug_info, pc)); in FromAddress()
157 void BreakLocation::FromAddressSameStatement(Handle<DebugInfo> debug_info, in FromAddressSameStatement() argument
160 int break_index = BreakIndexFromAddress(debug_info, pc); in FromAddressSameStatement()
161 Iterator it(debug_info, ALL_BREAK_LOCATIONS); in FromAddressSameStatement()
171 int BreakLocation::BreakIndexFromAddress(Handle<DebugInfo> debug_info, in BreakIndexFromAddress() argument
176 for (Iterator it(debug_info, ALL_BREAK_LOCATIONS); !it.Done(); it.Next()) { in BreakIndexFromAddress()
189 BreakLocation BreakLocation::FromPosition(Handle<DebugInfo> debug_info, in FromPosition() argument
197 for (Iterator it(debug_info, ALL_BREAK_LOCATIONS); !it.Done(); it.Next()) { in FromPosition()
213 Iterator it(debug_info, ALL_BREAK_LOCATIONS); in FromPosition()
359 DebugInfoListNode::DebugInfoListNode(DebugInfo* debug_info): next_(NULL) { in DebugInfoListNode() argument
361 GlobalHandles* global_handles = debug_info->GetIsolate()->global_handles(); in DebugInfoListNode()
363 Handle<DebugInfo>::cast(global_handles->Create(debug_info)).location(); in DebugInfoListNode()
444 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in Break() local
450 BreakLocation location = BreakLocation::FromAddress(debug_info, call_pc); in Break()
592 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in SetBreakPoint() local
598 debug_info, *source_position, STATEMENT_ALIGNED); in SetBreakPoint()
605 return debug_info->GetBreakPointCount() > 0; in SetBreakPoint()
636 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in SetBreakPointForScript() local
642 BreakLocation::FromPosition(debug_info, position, alignment); in SetBreakPointForScript()
653 DCHECK(debug_info->GetBreakPointCount() > 0); in SetBreakPointForScript()
664 DebugInfo::FindBreakPointInfo(node->debug_info(), break_point_object); in ClearBreakPoint()
669 Handle<DebugInfo> debug_info = node->debug_info(); in ClearBreakPoint() local
673 debug_info->code()->entry() + break_point_info->code_position(); in ClearBreakPoint()
675 BreakLocation location = BreakLocation::FromAddress(debug_info, pc); in ClearBreakPoint()
680 if (debug_info->GetBreakPointCount() == 0) { in ClearBreakPoint()
681 RemoveDebugInfoAndClearFromShared(debug_info); in ClearBreakPoint()
697 for (BreakLocation::Iterator it(node->debug_info(), ALL_BREAK_LOCATIONS); in ClearAllBreakPoints()
704 RemoveDebugInfoAndClearFromShared(debug_info_list_->debug_info()); in ClearAllBreakPoints()
729 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in FloodWithOneShot() local
730 for (BreakLocation::Iterator it(debug_info, type); !it.Done(); it.Next()) { in FloodWithOneShot()
844 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in PrepareStep() local
851 BreakLocation location = BreakLocation::FromAddress(debug_info, call_pc); in PrepareStep()
857 debug_info->code()->SourceStatementPosition(summary.pc()); in PrepareStep()
914 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in GetSourceBreakLocations() local
915 if (debug_info->GetBreakPointCount() == 0) { in GetSourceBreakLocations()
919 isolate->factory()->NewFixedArray(debug_info->GetBreakPointCount()); in GetSourceBreakLocations()
921 for (int i = 0; i < debug_info->break_points()->length(); ++i) { in GetSourceBreakLocations()
922 if (!debug_info->break_points()->get(i)->IsUndefined()) { in GetSourceBreakLocations()
924 BreakPointInfo::cast(debug_info->break_points()->get(i)); in GetSourceBreakLocations()
964 for (BreakLocation::Iterator it(node->debug_info(), ALL_BREAK_LOCATIONS); in ClearOneShot()
1340 Handle<DebugInfo> debug_info = isolate_->factory()->NewDebugInfo(shared); in CreateDebugInfo() local
1343 DebugInfoListNode* node = new DebugInfoListNode(*debug_info); in CreateDebugInfo()
1349 void Debug::RemoveDebugInfoAndClearFromShared(Handle<DebugInfo> debug_info) { in RemoveDebugInfoAndClearFromShared() argument
1351 Handle<SharedFunctionInfo> shared(debug_info->shared()); in RemoveDebugInfoAndClearFromShared()
1358 if (current->debug_info().is_identical_to(debug_info)) { in RemoveDebugInfoAndClearFromShared()
1397 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in IsBreakAtReturn() local
1398 Handle<Code> code(debug_info->code()); in IsBreakAtReturn()
1467 Handle<DebugInfo> debug_info(shared->GetDebugInfo()); in GetStepinPositions() local
1475 BreakLocation::FromAddressSameStatement(debug_info, call_pc, &locations); in GetStepinPositions()