Closed
Bug 1023300
Opened 11 years ago
Closed 11 years ago
Do edgeCaseAnalysis on ranges for MDiv
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: h4writer, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
2.47 KB,
patch
|
h4writer
:
review+
|
Details | Diff | Splinter Review |
Bug 998485 for MDiv:
We calculate
- canBeDivideByZero_
- canBeNegativeOverflow_
- canBeNegativeZero_
based on particular values flowing in during MDiv::analyzeEdgeCasesForward.
(http://dxr.mozilla.org/mozilla-central/source/js/src/jit/MIR.cpp#1498)
We should do the same in:
MDiv::collectRangeInfoPreTrunc
(http://dxr.mozilla.org/mozilla-central/source/js/src/jit/RangeAnalysis.cpp#2671)
But now based on the input range instead of the value.
Comment 1•11 years ago
|
||
Attachment #8439937 -
Flags: review?(hv1989)
Reporter | ||
Comment 2•11 years ago
|
||
Comment on attachment 8439937 [details] [diff] [review]
RangeAnalysis for MDiv
Review of attachment 8439937 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jit/RangeAnalysis.cpp
@@ +2694,5 @@
> + // negative zero check can be skipped.
> + if (!lhsRange.canBeZero())
> + canBeNegativeZero_ = false;
> +
> + // If rhsRange does not contain a zero likewise.
This comment is incorrect. It checks if rhs is non-negative.
::: js/src/jit/RangeAnalysis.h
@@ +454,5 @@
> bool canHaveRoundingErrors() const {
> return canHaveFractionalPart() || max_exponent_ >= MaxTruncatableExponent;
> }
>
> + //Test if an integer x belongs to the range.
Space between // and Test
Attachment #8439937 -
Flags: review?(hv1989) → review+
Reporter | ||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Attachment #8439937 -
Attachment is obsolete: true
Attachment #8441400 -
Flags: review?(hv1989)
Updated•11 years ago
|
Attachment #8441400 -
Attachment is patch: true
Comment 5•11 years ago
|
||
Attachment #8441400 -
Attachment is obsolete: true
Attachment #8441400 -
Flags: review?(hv1989)
Attachment #8441409 -
Flags: review?(hv1989)
Reporter | ||
Updated•11 years ago
|
Attachment #8441409 -
Flags: review?(hv1989) → review+
Reporter | ||
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•