Closed
Bug 931488
Opened 12 years ago
Closed 12 years ago
basic range analysis for MBoundsCheck, MArrayLength, MRandom, MMathFunction
Categories
(Core :: JavaScript Engine: JIT, enhancement)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: sunfish, Assigned: sunfish)
Details
(Whiteboard: [qa-])
Attachments
(1 file)
|
4.34 KB,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
Attached is a patch which implements basic range analysis for several more MIR nodes.
Attachment #822916 -
Flags: review?(nicolas.b.pierron)
Comment 1•12 years ago
|
||
Comment on attachment 822916 [details] [diff] [review]
range-more-compute-ranges.patch
Review of attachment 822916 [details] [diff] [review]:
-----------------------------------------------------------------
Awesome, thanks for adding these functions. I am sure this would be useful in tons of cases :)
::: js/src/jit/RangeAnalysis.cpp
@@ +1410,5 @@
> +
> +void
> +MRandom::computeRange()
> +{
> + setRange(Range::NewDoubleRange(0.0, 1.0));
hum … Does not sounds that Random to me :P
Attachment #822916 -
Flags: review?(nicolas.b.pierron) → review+
| Assignee | ||
Comment 2•12 years ago
|
||
(In reply to Nicolas B. Pierron [:nbp] from comment #1)
> Comment on attachment 822916 [details] [diff] [review]
> range-more-compute-ranges.patch
>
> Review of attachment 822916 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Awesome, thanks for adding these functions. I am sure this would be useful
> in tons of cases :)
>
> ::: js/src/jit/RangeAnalysis.cpp
> @@ +1410,5 @@
> > +
> > +void
> > +MRandom::computeRange()
> > +{
> > + setRange(Range::NewDoubleRange(0.0, 1.0));
>
> hum … Does not sounds that Random to me :P
It's a double range between 0 and 1.
https://hg.mozilla.org/integration/mozilla-inbound/rev/dd86744caa3a
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•