Lines Matching refs:left
52 static bool WouldAddOverflowOrUnderflow(int32_t left, int32_t right) { in WouldAddOverflowOrUnderflow() argument
56 if ((right > 0) && (left <= (std::numeric_limits<int32_t>::max() - right))) { in WouldAddOverflowOrUnderflow()
60 if ((right < 0) && (left >= (std::numeric_limits<int32_t>::min() - right))) { in WouldAddOverflowOrUnderflow()
75 HInstruction* left = bin_op->GetLeft(); in IsAddOrSubAConstant() local
81 instruction = left; in IsAddOrSubAConstant()
82 left_so_far = left; in IsAddOrSubAConstant()
100 HInstruction *left; in AsValueBound() local
102 if (IsAddOrSubAConstant(instruction, &left, &right)) { in AsValueBound()
103 return ValueBound(left, right); in AsValueBound()
122 HInstruction *left; in DetectValueBoundFromValue() local
124 if (IsAddOrSubAConstant(instruction, &left, &right)) { in DetectValueBoundFromValue()
125 if (left->IsArrayLength()) { in DetectValueBoundFromValue()
127 return ValueBound(left, right); in DetectValueBoundFromValue()
640 HInstruction* left, in HandleIfBetweenTwoMonotonicValueRanges() argument
645 DCHECK(left->IsLoopHeaderPhi()); in HandleIfBetweenTwoMonotonicValueRanges()
647 if (instruction->GetBlock() != left->GetBlock()) { in HandleIfBetweenTwoMonotonicValueRanges()
688 ApplyRangeFromComparison(left, instruction->GetBlock(), successor, in HandleIfBetweenTwoMonotonicValueRanges()
705 void HandleIf(HIf* instruction, HInstruction* left, HInstruction* right, IfCondition cond) { in HandleIf() argument
716 ValueRange* left_range = LookupValueRange(left, block); in HandleIf()
743 HandleIfBetweenTwoMonotonicValueRanges(instruction, left, right, cond, in HandleIf()
767 ApplyRangeFromComparison(left, block, true_successor, new_range); in HandleIf()
779 ApplyRangeFromComparison(left, block, false_successor, new_range); in HandleIf()
791 ApplyRangeFromComparison(left, block, true_successor, new_range); in HandleIf()
802 ApplyRangeFromComparison(left, block, false_successor, new_range); in HandleIf()
805 if (left->IsArrayLength()) { in HandleIf()
813 left, block, cond == kCondEQ ? true_successor : false_successor, new_range); in HandleIf()
822 left, block, cond == kCondEQ ? false_successor : true_successor, new_range); in HandleIf()
831 left, block, cond == kCondEQ ? true_successor : false_successor, new_range); in HandleIf()
968 HInstruction *left; in VisitPhi() local
970 if (ValueBound::IsAddOrSubAConstant(instruction, &left, &increment)) { in VisitPhi()
971 if (left == phi) { in VisitPhi()
1133 HInstruction* left = sub->GetLeft(); in VisitSub() local
1136 ValueRange* left_range = LookupValueRange(left, sub->GetBlock()); in VisitSub()
1154 if (ValueBound::IsAddOrSubAConstant(left, &left_of_left, &right_const)) { in VisitSub()
1155 left = left_of_left; in VisitSub()
1159 if (left->IsArrayLength()) { in VisitSub()
1160 HInstruction* array_length = left->AsArrayLength(); in VisitSub()
1208 HInstruction* left = instruction->GetLeft(); in FindAndHandlePartialArrayLength() local
1211 if (ValueBound::IsAddOrSubAConstant(left, &left_of_left, &c)) { in FindAndHandlePartialArrayLength()
1212 left = left_of_left; in FindAndHandlePartialArrayLength()
1219 if (left->IsArrayLength() && c <= 1) { in FindAndHandlePartialArrayLength()
1229 ValueBound(left, 0)); in FindAndHandlePartialArrayLength()
1262 HInstruction* left = instruction->GetLeft(); in VisitRem() local
1283 ValueRange* left_range = LookupValueRange(left, instruction->GetBlock()); in VisitRem()
1312 ValueRange* left_range = LookupValueRange(left, instruction->GetBlock()); in VisitRem()
1324 HInstruction *left; in VisitNewArray() local
1326 if (ValueBound::IsAddOrSubAConstant(len, &left, &right_const)) { in VisitNewArray()
1335 ValueRange* existing_range = LookupValueRange(left, new_array->GetBlock()); in VisitNewArray()
1339 AssignRange(new_array->GetBlock(), left, range); in VisitNewArray()