Lines Matching refs:other

889 bool HLoopInformation::IsIn(const HLoopInformation& other) const {  in IsIn()
890 return other.blocks_.IsBitSet(header_->GetBlockId()); in IsIn()
938 bool HBasicBlock::Dominates(HBasicBlock* other) const { in Dominates()
941 HBasicBlock* current = other; in Dominates()
1280 void HInstruction::ReplaceWith(HInstruction* other) { in ReplaceWith() argument
1281 DCHECK(other != nullptr); in ReplaceWith()
1283 auto fixup_end = other->uses_.empty() ? other->uses_.begin() : ++other->uses_.begin(); in ReplaceWith()
1284 other->uses_.splice_after(other->uses_.before_begin(), uses_); in ReplaceWith()
1285 other->FixUpUserRecordsAfterUseInsertion(fixup_end); in ReplaceWith()
1289 other->env_uses_.empty() ? other->env_uses_.begin() : ++other->env_uses_.begin(); in ReplaceWith()
1290 other->env_uses_.splice_after(other->env_uses_.before_begin(), env_uses_); in ReplaceWith()
1291 other->FixUpUserRecordsAfterEnvUseInsertion(env_fixup_end); in ReplaceWith()
1460 void HConstructorFence::Merge(HConstructorFence* other) { in Merge() argument
1462 DCHECK(this != other); in Merge()
1464 DCHECK(other->GetBlock() != nullptr); in Merge()
1467 DCHECK(!other->HasEnvironmentUses()); in Merge()
1480 for (size_t input_count = 0; input_count < other->InputCount(); ++input_count) { in Merge()
1481 HInstruction* other_input = other->InputAt(input_count); in Merge()
1487 other->GetBlock()->RemoveInstruction(other); in Merge()
1724 bool HInstruction::Equals(const HInstruction* other) const { in Equals()
1725 if (GetKind() != other->GetKind()) return false; in Equals()
1726 if (GetType() != other->GetType()) return false; in Equals()
1727 if (!InstructionDataEquals(other)) return false; in Equals()
1729 HConstInputsRef other_inputs = other->GetInputs(); in Equals()
1735 DCHECK_EQ(ComputeHashCode(), other->ComputeHashCode()); in Equals()
2033 bool HTryBoundary::HasSameExceptionHandlersAs(const HTryBoundary& other) const { in HasSameExceptionHandlersAs()
2035 ArrayRef<HBasicBlock* const> handlers2 = other.GetExceptionHandlers(); in HasSameExceptionHandlersAs()
2266 void HBasicBlock::MergeInstructionsWith(HBasicBlock* other) { in MergeInstructionsWith() argument
2269 instructions_.Add(other->GetInstructions()); in MergeInstructionsWith()
2270 other->instructions_.SetBlockOfInstructions(this); in MergeInstructionsWith()
2271 other->instructions_.Clear(); in MergeInstructionsWith()
2274 void HBasicBlock::MergeWith(HBasicBlock* other) { in MergeWith() argument
2275 DCHECK_EQ(GetGraph(), other->GetGraph()); in MergeWith()
2276 DCHECK(ContainsElement(dominated_blocks_, other)); in MergeWith()
2277 DCHECK_EQ(GetSingleSuccessor(), other); in MergeWith()
2278 DCHECK_EQ(other->GetSinglePredecessor(), this); in MergeWith()
2279 DCHECK(other->GetPhis().IsEmpty()); in MergeWith()
2282 MergeInstructionsWith(other); in MergeWith()
2285 for (HLoopInformationOutwardIterator it(*other); !it.Done(); it.Advance()) { in MergeWith()
2287 loop_info->Remove(other); in MergeWith()
2288 if (loop_info->IsBackEdge(*other)) { in MergeWith()
2289 loop_info->ReplaceBackEdge(other, this); in MergeWith()
2295 for (HBasicBlock* successor : other->GetSuccessors()) { in MergeWith()
2296 successor->predecessors_[successor->GetPredecessorIndexOf(other)] = this; in MergeWith()
2298 successors_.swap(other->successors_); in MergeWith()
2299 DCHECK(other->successors_.empty()); in MergeWith()
2302 RemoveDominatedBlock(other); in MergeWith()
2303 for (HBasicBlock* dominated : other->GetDominatedBlocks()) { in MergeWith()
2307 dominated_blocks_.end(), other->dominated_blocks_.begin(), other->dominated_blocks_.end()); in MergeWith()
2308 other->dominated_blocks_.clear(); in MergeWith()
2309 other->dominator_ = nullptr; in MergeWith()
2312 other->predecessors_.clear(); in MergeWith()
2315 graph_->DeleteDeadEmptyBlock(other); in MergeWith()
2316 other->SetGraph(nullptr); in MergeWith()
2319 void HBasicBlock::MergeWithInlined(HBasicBlock* other) { in MergeWithInlined() argument
2320 DCHECK_NE(GetGraph(), other->GetGraph()); in MergeWithInlined()
2324 DCHECK(other->GetSinglePredecessor()->IsEntryBlock()); in MergeWithInlined()
2325 DCHECK(other->GetPhis().IsEmpty()); in MergeWithInlined()
2326 DCHECK(!other->IsInLoop()); in MergeWithInlined()
2329 instructions_.Add(other->GetInstructions()); in MergeWithInlined()
2330 other->instructions_.SetBlockOfInstructions(this); in MergeWithInlined()
2334 for (HBasicBlock* successor : other->GetSuccessors()) { in MergeWithInlined()
2335 successor->predecessors_[successor->GetPredecessorIndexOf(other)] = this; in MergeWithInlined()
2337 successors_.swap(other->successors_); in MergeWithInlined()
2338 DCHECK(other->successors_.empty()); in MergeWithInlined()
2341 for (HBasicBlock* dominated : other->GetDominatedBlocks()) { in MergeWithInlined()
2345 dominated_blocks_.end(), other->dominated_blocks_.begin(), other->dominated_blocks_.end()); in MergeWithInlined()
2346 other->dominated_blocks_.clear(); in MergeWithInlined()
2347 other->dominator_ = nullptr; in MergeWithInlined()
2348 other->graph_ = nullptr; in MergeWithInlined()
2351 void HBasicBlock::ReplaceWith(HBasicBlock* other) { in ReplaceWith() argument
2354 predecessor->ReplaceSuccessor(this, other); in ReplaceWith()
2358 successor->ReplacePredecessor(this, other); in ReplaceWith()
2361 other->AddDominatedBlock(dominated); in ReplaceWith()
2363 GetDominator()->ReplaceDominatedBlock(this, other); in ReplaceWith()
2364 other->SetDominator(GetDominator()); in ReplaceWith()
2814 bool HBoundType::InstructionDataEquals(const HInstruction* other) const { in InstructionDataEquals()
2815 const HBoundType* other_bt = other->AsBoundType(); in InstructionDataEquals()
2855 bool HInstruction::HasAnyEnvironmentUseBefore(HInstruction* other) { in HasAnyEnvironmentUseBefore() argument
2859 if (GetBlock() != other->GetBlock()) { in HasAnyEnvironmentUseBefore()
2866 for (; current != other && current != nullptr; current = current->GetNext()) { in HasAnyEnvironmentUseBefore()
2951 bool HLoadClass::InstructionDataEquals(const HInstruction* other) const { in InstructionDataEquals()
2952 const HLoadClass* other_load_class = other->AsLoadClass(); in InstructionDataEquals()
2972 bool HLoadString::InstructionDataEquals(const HInstruction* other) const { in InstructionDataEquals()
2973 const HLoadString* other_load_string = other->AsLoadString(); in InstructionDataEquals()