Lines Matching refs:current
52 HInstruction* current = inst_it.Current(); in NumberInstructions() local
53 codegen_->AllocateLocations(current); in NumberInstructions()
54 LocationSummary* locations = current->GetLocations(); in NumberInstructions()
56 instructions_from_ssa_index_.push_back(current); in NumberInstructions()
57 current->SetSsaIndex(ssa_index++); in NumberInstructions()
58 current->SetLiveInterval( in NumberInstructions()
59 LiveInterval::MakeInterval(allocator_, current->GetType(), current)); in NumberInstructions()
61 current->SetLifetimePosition(lifetime_position); in NumberInstructions()
70 HInstruction* current = inst_it.Current(); in NumberInstructions() local
71 codegen_->AllocateLocations(current); in NumberInstructions()
72 LocationSummary* locations = current->GetLocations(); in NumberInstructions()
74 instructions_from_ssa_index_.push_back(current); in NumberInstructions()
75 current->SetSsaIndex(ssa_index++); in NumberInstructions()
76 current->SetLiveInterval( in NumberInstructions()
77 LiveInterval::MakeInterval(allocator_, current->GetType(), current)); in NumberInstructions()
79 instructions_from_lifetime_position_.push_back(current); in NumberInstructions()
80 current->SetLifetimePosition(lifetime_position); in NumberInstructions()
106 void SsaLivenessAnalysis::RecursivelyProcessInputs(HInstruction* current, in RecursivelyProcessInputs() argument
109 HInputsRef inputs = current->GetInputs(); in RecursivelyProcessInputs()
112 bool has_in_location = current->GetLocations()->InAt(i).IsValid(); in RecursivelyProcessInputs()
117 << "Instruction " << current->DebugName() << current->GetId() in RecursivelyProcessInputs()
123 input->GetLiveInterval()->AddUse(current, /* environment= */ nullptr, i, actual_user); in RecursivelyProcessInputs()
140 void SsaLivenessAnalysis::ProcessEnvironment(HInstruction* current, in ProcessEnvironment() argument
143 for (HEnvironment* environment = current->GetEnvironment(); in ProcessEnvironment()
153 bool should_be_live = ShouldBeLiveForEnvironment(current, instruction); in ProcessEnvironment()
159 instruction->GetLiveInterval()->AddUse(current, in ProcessEnvironment()
204 HInstruction* current = GetInstructionFromSsaIndex(idx); in ComputeLiveRanges() local
205 current->GetLiveInterval()->AddRange(block->GetLifetimeStart(), block->GetLifetimeEnd()); in ComputeLiveRanges()
210 HInstruction* current = back_it.Current(); in ComputeLiveRanges() local
211 if (current->HasSsaIndex()) { in ComputeLiveRanges()
213 kill->SetBit(current->GetSsaIndex()); in ComputeLiveRanges()
214 live_in->ClearBit(current->GetSsaIndex()); in ComputeLiveRanges()
215 current->GetLiveInterval()->SetFrom(current->GetLifetimePosition()); in ComputeLiveRanges()
219 if (current->IsEmittedAtUseSite()) { in ComputeLiveRanges()
221 DCHECK(!current->GetLocations()->Out().IsValid()); in ComputeLiveRanges()
222 for (const HUseListNode<HInstruction*>& use : current->GetUses()) { in ComputeLiveRanges()
227 DCHECK(!current->HasEnvironmentUses()); in ComputeLiveRanges()
232 ProcessEnvironment(current, current, live_in); in ComputeLiveRanges()
236 HNullCheck* check = current->GetImplicitNullCheck(); in ComputeLiveRanges()
238 ProcessEnvironment(check, current, live_in); in ComputeLiveRanges()
240 RecursivelyProcessInputs(current, current, live_in); in ComputeLiveRanges()
246 HInstruction* current = inst_it.Current(); in ComputeLiveRanges() local
247 if (current->HasSsaIndex()) { in ComputeLiveRanges()
248 kill->SetBit(current->GetSsaIndex()); in ComputeLiveRanges()
249 live_in->ClearBit(current->GetSsaIndex()); in ComputeLiveRanges()
250 LiveInterval* interval = current->GetLiveInterval(); in ComputeLiveRanges()
252 || (interval->GetStart() == current->GetLifetimePosition())); in ComputeLiveRanges()
253 interval->SetFrom(current->GetLifetimePosition()); in ComputeLiveRanges()
265 HInstruction* current = GetInstructionFromSsaIndex(idx); in ComputeLiveRanges() local
266 current->GetLiveInterval()->AddLoopRange(block->GetLifetimeStart(), last_position); in ComputeLiveRanges()
541 LiveInterval* current = this; in GetSiblingAt() local
542 while (current != nullptr && !current->IsDefinedAt(position)) { in GetSiblingAt()
543 current = current->GetNextSibling(); in GetSiblingAt()
545 return current; in GetSiblingAt()