Closed
Bug 843023
Opened 12 years ago
Closed 12 years ago
IonMonkey: inline Math.pow with integer result
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: h4writer, Assigned: h4writer)
Details
Attachments
(1 file)
4.95 KB,
patch
|
sstangl
:
review+
|
Details | Diff | Splinter Review |
Currently Math.pow gets inlined when the result type is double. We should do the same for Int32 result type, because now we do a call for these.
Assignee | ||
Comment 1•12 years ago
|
||
Quick patch to do this. I noticed there are some places in benchmarks that do this. So should be minor/really small win.
I see a 10x improvement on:
eval("");
function pow(a, b) { return Math.pow(a, b);}
for (var i=0; i<100000000; i++)
pow(1, 5);
Assignee: general → hv1989
Attachment #716785 -
Flags: review?(sstangl)
Updated•12 years ago
|
Attachment #716785 -
Flags: review?(sstangl) → review+
Assignee | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in
before you can comment on or make changes to this bug.
Description
•