Bug 15627 - Avoid moving floats into integer registers in jsNumber() for 3% speedup on SunSpider
Summary: Avoid moving floats into integer registers in jsNumber() for 3% speedup on Su...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P3 Normal
Assignee: Maciej Stachowiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-22 14:21 PDT by Maciej Stachowiak
Modified: 2007-10-22 14:37 PDT (History)
0 users

See Also:


Attachments
patch (1.36 KB, patch)
2007-10-22 14:35 PDT, Maciej Stachowiak
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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