Lines Matching refs:LifetimePosition
64 LifetimePosition pos) { in GetInstructionBlock()
106 bool CanCover(LifetimePosition position) { in CanCover()
111 const LifetimePosition start_;
112 const LifetimePosition end_;
145 LiveRangeBound* Find(const LifetimePosition position) const { in Find()
163 LifetimePosition pred_end = in FindPred()
164 LifetimePosition::InstructionFromInstructionIndex( in FindPred()
170 LifetimePosition succ_start = LifetimePosition::GapFromInstructionIndex( in FindSucc()
178 LifetimePosition pred_end = in FindConnectableSubranges()
179 LifetimePosition::InstructionFromInstructionIndex( in FindConnectableSubranges()
183 LifetimePosition cur_start = LifetimePosition::GapFromInstructionIndex( in FindConnectableSubranges()
259 UsePosition::UsePosition(LifetimePosition pos, InstructionOperand* operand, in UsePosition()
370 UseInterval* UseInterval::SplitAt(LifetimePosition pos, Zone* zone) { in SplitAt()
379 void LifetimePosition::Print() const { StdoutStream{} << *this << std::endl; } in Print()
381 std::ostream& operator<<(std::ostream& os, const LifetimePosition pos) { in operator <<()
432 LifetimePosition last_end = first_interval()->end(); in VerifyIntervals()
475 UsePosition* LiveRange::NextUsePosition(LifetimePosition start) const { in NextUsePosition()
489 LifetimePosition start) const { in NextUsePositionRegisterIsBeneficial()
497 LifetimePosition LiveRange::NextLifetimePositionRegisterIsBeneficial( in NextLifetimePositionRegisterIsBeneficial()
498 const LifetimePosition& start) const { in NextLifetimePositionRegisterIsBeneficial()
505 LifetimePosition start) const { in PreviousUsePositionRegisterIsBeneficial()
516 UsePosition* LiveRange::NextRegisterPosition(LifetimePosition start) const { in NextRegisterPosition()
525 UsePosition* LiveRange::NextSlotPosition(LifetimePosition start) const { in NextSlotPosition()
535 bool LiveRange::CanBeSpilled(LifetimePosition pos) const { in CanBeSpilled()
565 LifetimePosition position) const { in FirstSearchIntervalForPosition()
576 UseInterval* to_start_of, LifetimePosition but_not_past) const { in AdvanceLastProcessedMarker()
579 LifetimePosition start = current_interval_ == nullptr in AdvanceLastProcessedMarker()
580 ? LifetimePosition::Invalid() in AdvanceLastProcessedMarker()
588 LiveRange* LiveRange::SplitAt(LifetimePosition position, Zone* zone) { in SplitAt()
601 UsePosition* LiveRange::DetachAt(LifetimePosition position, LiveRange* result, in DetachAt()
730 LifetimePosition start = Start(); in ShouldBeAllocatedBefore()
731 LifetimePosition other_start = other->Start(); in ShouldBeAllocatedBefore()
759 bool LiveRange::CanCover(LifetimePosition position) const { in CanCover()
765 bool LiveRange::Covers(LifetimePosition position) const { in Covers()
780 LifetimePosition LiveRange::FirstIntersection(LiveRange* other) const { in FirstIntersection()
782 if (b == nullptr) return LifetimePosition::Invalid(); in FirstIntersection()
783 LifetimePosition advance_last_processed_up_to = b->start(); in FirstIntersection()
788 LifetimePosition cur_intersection = a->Intersect(b); in FirstIntersection()
800 return LifetimePosition::Invalid(); in FirstIntersection()
916 void TopLevelLiveRange::Splinter(LifetimePosition start, LifetimePosition end, in Splinter()
1073 LifetimePosition last_end = End(); in VerifyChildrenInOrder()
1090 void TopLevelLiveRange::ShortenTo(LifetimePosition start) { in ShortenTo()
1099 void TopLevelLiveRange::EnsureInterval(LifetimePosition start, in EnsureInterval()
1100 LifetimePosition end, Zone* zone) { in EnsureInterval()
1103 LifetimePosition new_end = end; in EnsureInterval()
1120 void TopLevelLiveRange::AddUseInterval(LifetimePosition start, in AddUseInterval()
1121 LifetimePosition end, Zone* zone) { in AddUseInterval()
1148 LifetimePosition pos = use_pos->pos(); in AddUsePosition()
1268 LifetimePosition max = LifetimePosition::MaxPosition(); in TryMerge()
1582 bool RegisterAllocationData::IsBlockBoundary(LifetimePosition pos) const { in IsBlockBoundary()
1889 LifetimePosition start = LifetimePosition::GapFromInstructionIndex( in AddInitialIntervals()
1891 LifetimePosition end = LifetimePosition::InstructionFromInstructionIndex( in AddInitialIntervals()
1988 UsePosition* LiveRangeBuilder::NewUsePosition(LifetimePosition pos, in NewUsePosition()
1996 UsePosition* LiveRangeBuilder::Define(LifetimePosition position, in Define()
2018 UsePosition* LiveRangeBuilder::Use(LifetimePosition block_start, in Use()
2019 LifetimePosition position, in Use()
2038 LifetimePosition block_start_position = in ProcessInstructions()
2039 LifetimePosition::GapFromInstructionIndex(block_start); in ProcessInstructions()
2050 LifetimePosition curr_position = in ProcessInstructions()
2051 LifetimePosition::InstructionFromInstructionIndex(index); in ProcessInstructions()
2075 Define(LifetimePosition::GapFromInstructionIndex(index), output); in ProcessInstructions()
2136 LifetimePosition use_pos; in ProcessInstructions()
2353 LifetimePosition block_start = LifetimePosition::GapFromInstructionIndex( in ProcessPhis()
2368 LifetimePosition start = LifetimePosition::GapFromInstructionIndex( in ProcessLoopHeader()
2370 LifetimePosition end = LifetimePosition::GapFromInstructionIndex( in ProcessLoopHeader()
2506 LifetimePosition start = interval->start(); in IntervalStartsAtBlockBoundary()
2516 LifetimePosition start = interval->start(); in IntervalPredecessorsCoveredByRange()
2523 LifetimePosition last_pos = LifetimePosition::GapFromInstructionIndex( in IntervalPredecessorsCoveredByRange()
2534 LifetimePosition end = interval->end(); in NextIntervalStartsInDifferentBlocks()
2535 LifetimePosition next_start = interval->next()->start(); in NextIntervalStartsInDifferentBlocks()
2563 LifetimePosition RegisterAllocator::GetSplitPositionForInstruction( in GetSplitPositionForInstruction()
2565 LifetimePosition ret = LifetimePosition::Invalid(); in GetSplitPositionForInstruction()
2567 ret = LifetimePosition::GapFromInstructionIndex(instruction_index); in GetSplitPositionForInstruction()
2569 return LifetimePosition::Invalid(); in GetSplitPositionForInstruction()
2585 LifetimePosition start = range->Start(); in SplitAndSpillRangesDefinedByMemoryOperand()
2588 LifetimePosition next_pos = start; in SplitAndSpillRangesDefinedByMemoryOperand()
2606 LifetimePosition split_pos = GetSplitPositionForInstruction( in SplitAndSpillRangesDefinedByMemoryOperand()
2622 LifetimePosition pos) { in SplitRangeAt()
2641 LifetimePosition start, in SplitBetween()
2642 LifetimePosition end) { in SplitBetween()
2648 LifetimePosition split_pos = FindOptimalSplitPos(start, end); in SplitBetween()
2654 LifetimePosition RegisterAllocator::FindOptimalSplitPos(LifetimePosition start, in FindOptimalSplitPos()
2655 LifetimePosition end) { in FindOptimalSplitPos()
2688 return LifetimePosition::GapFromInstructionIndex( in FindOptimalSplitPos()
2693 LifetimePosition RegisterAllocator::FindOptimalSpillingPos( in FindOptimalSpillingPos()
2694 LiveRange* range, LifetimePosition pos) { in FindOptimalSpillingPos()
2708 LifetimePosition loop_start = LifetimePosition::GapFromInstructionIndex( in FindOptimalSpillingPos()
2801 LifetimePosition position = current->Start(); in AllocateRegisters()
2942 LiveRange* range, Vector<LifetimePosition> positions) { in FindFreeRegistersForRange()
2953 positions[i] = LifetimePosition::MaxPosition(); in FindFreeRegistersForRange()
2959 positions[cur_reg] = LifetimePosition::GapFromInstructionIndex(0); in FindFreeRegistersForRange()
2961 LifetimePosition::GapFromInstructionIndex(0).value()); in FindFreeRegistersForRange()
2969 positions[aliased_reg] = LifetimePosition::GapFromInstructionIndex(0); in FindFreeRegistersForRange()
2985 LifetimePosition next_intersection = cur_inactive->FirstIntersection(range); in FindFreeRegistersForRange()
3040 LifetimePosition free_until_pos_buff[RegisterConfiguration::kMaxFPRegisters]; in ProcessCurrentRange()
3041 Vector<LifetimePosition> free_until_pos( in ProcessCurrentRange()
3058 LiveRange* current, const Vector<LifetimePosition>& free_until_pos) { in TryAllocatePreferredReg()
3080 LiveRange* current, const Vector<LifetimePosition>& free_until_pos) { in TryAllocateFreeReg()
3112 LifetimePosition pos = free_until_pos[reg]; in TryAllocateFreeReg()
3159 LifetimePosition use_pos[RegisterConfiguration::kMaxFPRegisters]; in AllocateBlockedReg()
3160 LifetimePosition block_pos[RegisterConfiguration::kMaxFPRegisters]; in AllocateBlockedReg()
3162 use_pos[i] = block_pos[i] = LifetimePosition::MaxPosition(); in AllocateBlockedReg()
3172 LifetimePosition::GapFromInstructionIndex(0); in AllocateBlockedReg()
3174 DCHECK_NE(LifetimePosition::GapFromInstructionIndex(0), in AllocateBlockedReg()
3188 LifetimePosition::GapFromInstructionIndex(0); in AllocateBlockedReg()
3215 LifetimePosition next_intersection = range->FirstIntersection(current); in AllocateBlockedReg()
3255 if (LifetimePosition::ExistsGapPositionBetween(current->Start(), in AllocateBlockedReg()
3288 LifetimePosition split_pos = current->Start(); in SplitAndSpillIntersecting()
3302 LifetimePosition spill_pos = FindOptimalSpillingPos(range, split_pos); in SplitAndSpillIntersecting()
3314 DCHECK(LifetimePosition::ExistsGapPositionBetween(current->Start(), in SplitAndSpillIntersecting()
3335 LifetimePosition next_intersection = range->FirstIntersection(current); in SplitAndSpillIntersecting()
3368 LifetimePosition pred_end = in TryReuseSpillForPhi()
3369 LifetimePosition::InstructionFromInstructionIndex( in TryReuseSpillForPhi()
3412 LifetimePosition next_pos = range->Start(); in TryReuseSpillForPhi()
3438 void LinearScanAllocator::SpillAfter(LiveRange* range, LifetimePosition pos) { in SpillAfter()
3444 void LinearScanAllocator::SpillBetween(LiveRange* range, LifetimePosition start, in SpillBetween()
3445 LifetimePosition end) { in SpillBetween()
3451 LifetimePosition start, in SpillBetweenUntil()
3452 LifetimePosition until, in SpillBetweenUntil()
3453 LifetimePosition end) { in SpillBetweenUntil()
3461 LifetimePosition third_part_end = end.PrevStart().End(); in SpillBetweenUntil()
3622 LifetimePosition this_end = cur->End(); in PopulateReferenceMaps()
3665 LifetimePosition safe_point_pos = in PopulateReferenceMaps()
3666 LifetimePosition::InstructionFromInstructionIndex(safe_point); in PopulateReferenceMaps()
3759 LifetimePosition block_start = in ResolveControlFlow()
3760 LifetimePosition::GapFromInstructionIndex(block->code_start()); in ResolveControlFlow()
3761 LifetimePosition block_end = in ResolveControlFlow()
3762 LifetimePosition::GapFromInstructionIndex(block->code_end()); in ResolveControlFlow()
3847 LifetimePosition pos = second_range->Start(); in ConnectRanges()
3983 LifetimePosition pred_end = in CommitSpillsInDeferredBlocks()
3984 LifetimePosition::InstructionFromInstructionIndex( in CommitSpillsInDeferredBlocks()