Bug 131520

Summary: Add user default for FTL JIT
Product: WebKit Reporter: Gavin Barraclough <barraclough>
Component: WebKit2Assignee: Gavin Barraclough <barraclough>
Status: REOPENED ---    
Severity: Normal CC: fpizlo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fix benjamin: review+

Description Gavin Barraclough 2014-04-10 17:56:54 PDT
.
Comment 1 Gavin Barraclough 2014-04-10 17:59:27 PDT
Created attachment 229095 [details]
Fix
Comment 2 Benjamin Poulain 2014-04-10 18:10:10 PDT
Comment on attachment 229095 [details]
Fix

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

Could you remove the environment variable thingy?
Did you perf test this??

> Source/WebKit2/Shared/WebProcessCreationParameters.h:141
> +    

Extra whitespace here!

> Source/WebKit2/UIProcess/mac/WebContextMac.mm:101
> +    

ditto.

> Source/WebKit2/UIProcess/mac/WebContextMac.mm:171
> +    

ditto.
Comment 3 Gavin Barraclough 2014-04-10 18:16:17 PDT
Transmitting file data .....
Committed revision 167102.

D'oh, forgot review comments. :-(
Comment 4 Gavin Barraclough 2014-04-10 18:18:21 PDT
whitespace fixed in.

Transmitting file data ...
Committed revision 167103.
Comment 5 Filip Pizlo 2014-05-01 13:49:28 PDT
This just cost me a day of debugging.

If JSC decides to turn off the FTL JIT, then it shouldn't be possible for WK2 to turn it on.

I don't think that flipping JSC's Options directly is an appropriate way to do this.  I will roll it out with MarkH's rubber stamp.
Comment 6 Filip Pizlo 2014-05-01 13:59:23 PDT
Rolled out in r168120.

We need to find a way of doing this that still allows JSC to disable the FTL JIT regardless of external settings.