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+

Description Maciej Stachowiak 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.
Comment 1 Maciej Stachowiak 2007-10-22 14:35:42 PDT
Created attachment 16809 [details]
patch