Bug 156277

Summary: Improve some other cases of context-sensitive inlining
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Filip Pizlo <fpizlo>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, keith_miller, mark.lam, msaboff, saam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
the patch benjamin: review+

Description Filip Pizlo 2016-04-05 20:55:00 PDT
I found some simple improvements in the bytecode parser that greatly improve the chances of context-sensitive inlining happening by revealing the callee constant.
Comment 1 Filip Pizlo 2016-04-05 21:03:57 PDT
Created attachment 275744 [details]
the patch
Comment 2 Benjamin Poulain 2016-04-05 21:14:52 PDT
Comment on attachment 275744 [details]
the patch

View in context: https://bugs.webkit.org/attachment.cgi?id=275744&action=review

> Source/JavaScriptCore/ChangeLog:32
> +        This is a 14% speed-up on Octane/raytrace.

On one hand, optimizing at the parser level is pretty weird.
On the other hand...14%!

> Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:1176
> +        return;

You don't need the return.
Comment 3 Filip Pizlo 2016-04-05 21:46:39 PDT
Landed in http://trac.webkit.org/changeset/199093