Lines Matching refs:position

547 static bool IsInstructionStart(size_t position) {  in IsInstructionStart()  argument
548 return (position & 1) == 0; in IsInstructionStart()
551 static bool IsInstructionEnd(size_t position) { in IsInstructionEnd() argument
552 return (position & 1) == 1; in IsInstructionEnd()
555 void RegisterAllocationResolver::InsertParallelMoveAt(size_t position, in InsertParallelMoveAt() argument
562 HInstruction* at = liveness_.GetInstructionFromPosition(position / 2); in InsertParallelMoveAt()
565 if (IsInstructionStart(position)) { in InsertParallelMoveAt()
570 at = liveness_.GetInstructionFromPosition((position + 1) / 2); in InsertParallelMoveAt()
576 if (at->GetLifetimePosition() < position) { in InsertParallelMoveAt()
583 if (at->GetLifetimePosition() != position) { in InsertParallelMoveAt()
584 DCHECK_GT(at->GetLifetimePosition(), position); in InsertParallelMoveAt()
586 move->SetLifetimePosition(position); in InsertParallelMoveAt()
593 } else if (IsInstructionEnd(position)) { in InsertParallelMoveAt()
599 if (move == nullptr || move->GetLifetimePosition() > position) { in InsertParallelMoveAt()
601 move->SetLifetimePosition(position); in InsertParallelMoveAt()
609 || previous->GetLifetimePosition() != position) { in InsertParallelMoveAt()
615 || previous->GetLifetimePosition() < position); in InsertParallelMoveAt()
617 move->SetLifetimePosition(position); in InsertParallelMoveAt()
623 DCHECK_EQ(move->GetLifetimePosition(), position); in InsertParallelMoveAt()
645 size_t position = last->GetLifetimePosition(); in InsertParallelMoveAtExitOf() local
647 || previous->AsParallelMove()->GetLifetimePosition() != position) { in InsertParallelMoveAtExitOf()
649 move->SetLifetimePosition(position); in InsertParallelMoveAtExitOf()
666 size_t position = block->GetLifetimeStart(); in InsertParallelMoveAtEntryOf() local
669 if (move == nullptr || move->GetLifetimePosition() != position) { in InsertParallelMoveAtEntryOf()
671 move->SetLifetimePosition(position); in InsertParallelMoveAtEntryOf()
688 size_t position = instruction->GetLifetimePosition() + 1; in InsertMoveAfter() local
693 if (move == nullptr || move->GetLifetimePosition() != position) { in InsertMoveAfter()
695 move->SetLifetimePosition(position); in InsertMoveAfter()