Bug 15627

Summary: Avoid moving floats into integer registers in jsNumber() for 3% speedup on SunSpider
Product: WebKit Reporter: Maciej Stachowiak <mjs>
Component: Tools / TestsAssignee: Maciej Stachowiak <mjs>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P3    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
patch oliver: review+

Maciej Stachowiak
Reported 2007-10-22 14:21:13 PDT
JSImmediate::fromDouble() called from jsNumber() does moves from floating point to integer registers to check for loss of precision in a way that safely covers NaN. It is faster to do a floating point compare and a special check for NaN.
Attachments
patch (1.36 KB, patch)
2007-10-22 14:35 PDT, Maciej Stachowiak
oliver: review+
Maciej Stachowiak
Comment 1 2007-10-22 14:35:42 PDT
Note You need to log in before you can comment on or make changes to this bug.