Closed Bug 729725 Opened 12 years ago Closed 12 years ago

IonMonkey: MTruncateToInt32 should support constant folding

Categories

(Core :: JavaScript Engine, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mjrosenb, Unassigned)

Details

Attachments

(1 file)

If you have |x & 0xffffffff|, 0xffffffff is encoded as 4294967295.0 (the double), then is converted to -1 (the integer) at runtime, every time the constant is needed.

This speeds up nsieve by 11%, and md5 by 17% (on ARM)
It probably has similar benefits on x86 and x64.
Attachment #599782 - Flags: review?(sstangl)
Attachment #599782 - Flags: review?(sstangl) → review+
landed: http://hg.mozilla.org/projects/ionmonkey/rev/3436c259fb42
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.