WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
38294
Add fast paths for Math.pow and Math.sqrt
https://bugs.webkit.org/show_bug.cgi?id=38294
Summary
Add fast paths for Math.pow and Math.sqrt
Oliver Hunt
Reported
2010-04-28 17:09:48 PDT
Add fast paths for Math.pow and Math.sqrt
Attachments
Patch
(30.10 KB, patch)
2010-04-28 17:23 PDT
,
Oliver Hunt
barraclough
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Oliver Hunt
Comment 1
2010-04-28 17:23:26 PDT
Created
attachment 54640
[details]
Patch
WebKit Review Bot
Comment 2
2010-04-28 17:29:03 PDT
Attachment 54640
[details]
did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--no-squash']" exit_code: 1 JavaScriptCore/assembler/X86Assembler.h:1397: movsd_mr is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] JavaScriptCore/assembler/X86Assembler.h:1465: sqrtsd_rr is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Total errors found: 2 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Gavin Barraclough
Comment 3
2010-04-28 20:52:20 PDT
Comment on
attachment 54640
[details]
Patch Have you tested USE(JSVALUE32)? – we shouldn't break this. One thought that might help a little on x86-64, you could plant these values:...
> +static const double oneConstant = 1.0; > +static const double negativeHalfConstant = -0.5;
...somewhere in the JIT code buffers, then these could be loaded with a PC-relative memory access.
Oliver Hunt
Comment 4
2010-04-28 20:57:47 PDT
Committed
r58469
WebKit Review Bot
Comment 5
2010-04-28 21:24:05 PDT
http://trac.webkit.org/changeset/58469
might have broken Qt Linux Release
Adam Barth
Comment 6
2010-04-28 21:38:24 PDT
Fix landed in
r58475
.
Zoltan Herczeg
Comment 7
2010-04-28 23:41:27 PDT
https://bugs.webkit.org/show_bug.cgi?id=26987
Maybe we could revive this work as well. I have already tried to play around fast path for Math but they were rejected at that time.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug