The DFG non-speculative JIT uses C function calls as non-integer or overflow-handling slow-paths for arithmetic against constants. This is obviously inefficient, since the code will almost always see a number in the non-constant operand, and emitting int-to-double conversion (or double unboxing) followed by double arithmetic is both faster and likely involves less code than a C call.
Created attachment 101942 [details] the patch
Comment on attachment 101942 [details] the patch I guess we might want to also be able inline double code for ValueAdd too at some point.
(In reply to comment #2) > (From update of attachment 101942 [details]) > I guess we might want to also be able inline double code for ValueAdd too at some point. Indeed, and I think that we're actually hitting that slow path in Kraken.
Comment on attachment 101942 [details] the patch Clearing flags on attachment: 101942 Committed r91734: <http://trac.webkit.org/changeset/91734>
All reviewed patches have been landed. Closing bug.