[JSC] Consider converting ArithSub(..., 0) => ToNumber(...)
https://bugs.webkit.org/show_bug.cgi?id=155240
Summary [JSC] Consider converting ArithSub(..., 0) => ToNumber(...)
Yusuke Suzuki
Reported 2016-03-09 10:28:09 PST
value - 0 is an idiom to apply ToNumber in JS. (+ 0 is not typically used because "string" + 0 => "string0"). I've run octane and found box2d performs this several times. (The code `... - 0` can be seen in kraken's fft, dft, etc. But this path is not used in the benchmark run). Of course, before doing this, we should investigate the impact more...
Attachments
Note You need to log in before you can comment on or make changes to this bug.