Summary: | FloatTypedArrayAdaptor::toJSValue should almost certainly not use jsNumber() since that attempts int conversions | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Filip Pizlo <fpizlo> | ||||||
Component: | JavaScriptCore | Assignee: | Filip Pizlo <fpizlo> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | barraclough, buildbot, eflews.bot, ggaren, gtk-ews, gyuyoung.kim, mark.lam, mhahnenberg, msaboff, oliver, rniwa, sam, webkit-ews, xan.lopez | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Filip Pizlo
2013-08-23 13:27:23 PDT
Well. This is turning out awesome. So, my use of JSValue as an in-between for conversions between different types appears to totally confuse C compilers. They don't have the bitwise algebra knowledge to simplify it. There is only one solution: template double-dispatch! Created attachment 209532 [details]
work in progress
This ought to be done but I need to write *a lot* more tests.
Comment on attachment 209532 [details] work in progress Attachment 209532 [details] did not pass qt-ews (qt): Output: http://webkit-queues.appspot.com/results/1558205 Comment on attachment 209532 [details] work in progress Attachment 209532 [details] did not pass qt-wk2-ews (qt-wk2): Output: http://webkit-queues.appspot.com/results/1558206 Comment on attachment 209532 [details] work in progress Attachment 209532 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/1543534 Comment on attachment 209532 [details] work in progress Attachment 209532 [details] did not pass gtk-ews (gtk): Output: http://webkit-queues.appspot.com/results/1527790 Comment on attachment 209532 [details] work in progress Attachment 209532 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/1556432 Comment on attachment 209532 [details] work in progress Attachment 209532 [details] did not pass efl-ews (efl): Output: http://webkit-queues.appspot.com/results/1527794 Comment on attachment 209532 [details] work in progress Attachment 209532 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/1544481 Comment on attachment 209532 [details] work in progress Attachment 209532 [details] did not pass gtk-wk2-ews (gtk-wk2): Output: http://webkit-queues.appspot.com/results/1557360 Created attachment 209555 [details]
the patch
Comment on attachment 209555 [details]
the patch
mmmm templates
(In reply to comment #12) > (From update of attachment 209555 [details]) > mmmm templates they are delicious! Landed in http://trac.webkit.org/changeset/154569 |