Closed Bug 1023300 Opened 11 years ago Closed 11 years ago

Do edgeCaseAnalysis on ranges for MDiv

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: h4writer, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

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.
Blocks: 998485
Attached patch RangeAnalysis for MDiv (obsolete) — Splinter Review
Attachment #8439937 - Flags: review?(hv1989)
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+
Attached patch RangeAnalysis for MDiv (obsolete) — Splinter Review
Attachment #8439937 - Attachment is obsolete: true
Attachment #8441400 - Flags: review?(hv1989)
Attachment #8441400 - Attachment is patch: true
Attachment #8441400 - Attachment is obsolete: true
Attachment #8441400 - Flags: review?(hv1989)
Attachment #8441409 - Flags: review?(hv1989)
Attachment #8441409 - Flags: review?(hv1989) → review+
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.

Attachment

General

Creator:
Created:
Updated:
Size: