This change has two outcomes: 1) Slightly reduces the likelihood that a function will be optimized both standalone and via inlining. Previously, if you had a call sequence like foo() calls bar() exactly once, and nobody else calls bar(), then bar() would get optimized first (because it returns first) and then foo() gets optimized. If foo() can inline bar() then that means that bar() gets optimized twice. But now, if we optimize in prologues, then foo() will be optimized first. If it inlines bar(), that means that there will no longer be any calls to bar(). 2) It lets us kill some code in JITStubs. Epilogue tier-up was very different from loop tier-up, since epilogue tier-up should not attempt OSR. But prologue tier-up requires OSR (albeit really easy OSR since it's the top of the compilation unit), so it becomes just like loop tier-up. As a result, we now have one optimizatio hook (cti_optimize) instead of two (cti_optimize_from_loop and cti_optimize_from_ret).
Created attachment 148984 [details] the patch
Comment on attachment 148984 [details] the patch Attachment 148984 [details] did not pass qt-wk2-ews (qt): Output: http://queues.webkit.org/results/13035353
Comment on attachment 148984 [details] the patch Attachment 148984 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/13025353
Comment on attachment 148984 [details] the patch Attachment 148984 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/13027425
Created attachment 149114 [details] the patch And now, with 32-bit support!
Comment on attachment 149114 [details] the patch r=me
Landed in http://trac.webkit.org/changeset/121073