• Home
  • Raw
  • Download

Lines Matching refs:right

52   static bool WouldAddOverflowOrUnderflow(int32_t left, int32_t right) {  in WouldAddOverflowOrUnderflow()  argument
53 if (right == 0) { in WouldAddOverflowOrUnderflow()
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()
76 HInstruction* right = bin_op->GetRight(); in IsAddOrSubAConstant() local
77 if (right->IsIntConstant()) { in IsAddOrSubAConstant()
78 int32_t v = right->AsIntConstant()->GetValue(); in IsAddOrSubAConstant()
101 int32_t right; in AsValueBound() local
102 if (IsAddOrSubAConstant(instruction, &left, &right)) { in AsValueBound()
103 return ValueBound(left, right); in AsValueBound()
123 int32_t right; in DetectValueBoundFromValue() local
124 if (IsAddOrSubAConstant(instruction, &left, &right)) { in DetectValueBoundFromValue()
127 return ValueBound(left, right); in DetectValueBoundFromValue()
628 HInstruction* right, in HandleIfBetweenTwoMonotonicValueRanges() argument
633 DCHECK(right->IsLoopHeaderPhi()); in HandleIfBetweenTwoMonotonicValueRanges()
684 ApplyRangeFromComparison(right, instruction->GetBlock(), successor, in HandleIfBetweenTwoMonotonicValueRanges()
692 void HandleIf(HIf* instruction, HInstruction* left, HInstruction* right, IfCondition cond) { in HandleIf() argument
718 ValueBound bound = ValueBound::DetectValueBoundFromValue(right, &found); in HandleIf()
726 ValueRange* right_range = LookupValueRange(right, block); in HandleIf()
730 HandleIfBetweenTwoMonotonicValueRanges(instruction, left, right, cond, in HandleIf()
1005 HInstruction* right = add->GetRight(); in VisitAdd() local
1006 if (right->IsIntConstant()) { in VisitAdd()
1011 ValueRange* range = left_range->Add(right->AsIntConstant()->GetValue()); in VisitAdd()
1020 HInstruction* right = sub->GetRight(); in VisitSub() local
1021 if (right->IsIntConstant()) { in VisitSub()
1026 ValueRange* range = left_range->Add(-right->AsIntConstant()->GetValue()); in VisitSub()
1047 ValueRange* right_range = LookupValueRange(right, sub->GetBlock()); in VisitSub()
1079 HInstruction* right = instruction->GetRight(); in FindAndHandlePartialArrayLength() local
1081 if (right->IsIntConstant()) { in FindAndHandlePartialArrayLength()
1082 right_const = right->AsIntConstant()->GetValue(); in FindAndHandlePartialArrayLength()
1149 HInstruction* right = instruction->GetRight(); in VisitRem() local
1153 if (right->IsIntConstant()) { in VisitRem()
1154 int32_t right_const = std::abs(right->AsIntConstant()->GetValue()); in VisitRem()
1183 if (right->IsDivZeroCheck()) { in VisitRem()
1186 right = right->AsDivZeroCheck()->InputAt(0); in VisitRem()
1191 if (right->IsArrayLength()) { in VisitRem()
1193 ValueBound upper = ValueBound(right, -1); // array_length - 1 in VisitRem()