Closed
Bug 876916
Opened 11 years ago
Closed 11 years ago
optimize sqrt on asm.js
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: sunfish, Unassigned)
Details
Attachments
(1 file)
3.34 KB,
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
Math.sqrt under asm.js is currently lowered to a library call. IonMonkey already has an optimized implementation of Math.sqrt which is capable of emitting a single instruction on platforms which support it, so asm.js just needs to use it.
Reporter | ||
Comment 1•11 years ago
|
||
Attachment #755047 -
Flags: review?(luke)
Updated•11 years ago
|
Attachment #755047 -
Flags: review?(luke) → review+
Comment 2•11 years ago
|
||
Thanks!
Updated•11 years ago
|
Keywords: checkin-needed
Comment 3•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/17143afc4fab
Keywords: checkin-needed
Comment 4•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/17143afc4fab Do we have tests for this? If not, should we?
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Reporter | ||
Comment 5•11 years ago
|
||
There are existing tests that Math.sqrt returns the right answer for a variety of interesting inputs and existing tests that call Math.sqrt from asm.js. Unfortunately however, there's no framework for testing that the JIT performed a particular optimization or emitted a particular code sequence.
Comment 6•11 years ago
|
||
Correctness is my concern, so it sounds like we're good. Thanks.
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•