Closed Bug 843023 Opened 12 years ago Closed 12 years ago

IonMonkey: inline Math.pow with integer result

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: h4writer, Assigned: h4writer)

Details

Attachments

(1 file)

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.
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)
Attachment #716785 - Flags: review?(sstangl) → review+
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.

Attachment

General

Created:
Updated:
Size: