mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 998156 - IonMonkey: Misc RangeAnslysis code cleanups. r=nbp
This commit is contained in:
parent
9baaa60015
commit
3590965f20
@ -29,7 +29,6 @@ using mozilla::NumberEqualsInt32;
|
||||
using mozilla::ExponentComponent;
|
||||
using mozilla::FloorLog2;
|
||||
using mozilla::IsInfinite;
|
||||
using mozilla::IsFinite;
|
||||
using mozilla::IsNaN;
|
||||
using mozilla::IsNegative;
|
||||
using mozilla::NegativeInfinity;
|
||||
@ -591,8 +590,7 @@ Range::setDouble(double l, double h)
|
||||
static inline bool
|
||||
MissingAnyInt32Bounds(const Range *lhs, const Range *rhs)
|
||||
{
|
||||
return !lhs->hasInt32LowerBound() || !lhs->hasInt32UpperBound() ||
|
||||
!rhs->hasInt32LowerBound() || !rhs->hasInt32UpperBound();
|
||||
return !lhs->hasInt32Bounds() || !rhs->hasInt32Bounds();
|
||||
}
|
||||
|
||||
Range *
|
||||
@ -920,7 +918,7 @@ Range::abs(TempAllocator &alloc, const Range *op)
|
||||
return new(alloc) Range(Max(Max(int32_t(0), l), u == INT32_MIN ? INT32_MAX : -u),
|
||||
true,
|
||||
Max(Max(int32_t(0), u), l == INT32_MIN ? INT32_MAX : -l),
|
||||
op->hasInt32LowerBound_ && op->hasInt32UpperBound_ && l != INT32_MIN,
|
||||
op->hasInt32Bounds() && l != INT32_MIN,
|
||||
op->canHaveFractionalPart_,
|
||||
op->max_exponent_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user