Title: [163504] trunk/Source/WebKit2
Revision
163504
Author
[email protected]
Date
2014-02-05 18:26:17 -0800 (Wed, 05 Feb 2014)

Log Message

[WebKit2, FTL] Add user default to enable the FTL
https://bugs.webkit.org/show_bug.cgi?id=128281

Reviewed by Geoffrey Garen.

* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
(WebKit::WebProcessCreationParameters::encode):
(WebKit::WebProcessCreationParameters::decode):
* Shared/WebProcessCreationParameters.h:
* UIProcess/mac/WebContextMac.mm:
(WebKit::registerUserDefaultsIfNeeded):
(WebKit::WebContext::platformInitializeWebProcess):
* WebProcess/mac/WebProcessMac.mm:
(WebKit::WebProcess::platformInitializeWebProcess):
Pipe through the default.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (163503 => 163504)


--- trunk/Source/WebKit2/ChangeLog	2014-02-06 02:23:35 UTC (rev 163503)
+++ trunk/Source/WebKit2/ChangeLog	2014-02-06 02:26:17 UTC (rev 163504)
@@ -1,3 +1,22 @@
+2014-02-05  Sam Weinig  <[email protected]>
+
+        [WebKit2, FTL] Add user default to enable the FTL
+        https://bugs.webkit.org/show_bug.cgi?id=128281
+
+        Reviewed by Geoffrey Garen.
+
+        * Shared/WebProcessCreationParameters.cpp:
+        (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
+        (WebKit::WebProcessCreationParameters::encode):
+        (WebKit::WebProcessCreationParameters::decode):
+        * Shared/WebProcessCreationParameters.h:
+        * UIProcess/mac/WebContextMac.mm:
+        (WebKit::registerUserDefaultsIfNeeded):
+        (WebKit::WebContext::platformInitializeWebProcess):
+        * WebProcess/mac/WebProcessMac.mm:
+        (WebKit::WebProcess::platformInitializeWebProcess):
+        Pipe through the default.
+
 2014-02-05  Anders Carlsson  <[email protected]>
 
         Add sourceFrame to WKNavigationAction

Modified: trunk/Source/WebKit2/Shared/WebProcessCreationParameters.cpp (163503 => 163504)


--- trunk/Source/WebKit2/Shared/WebProcessCreationParameters.cpp	2014-02-06 02:23:35 UTC (rev 163503)
+++ trunk/Source/WebKit2/Shared/WebProcessCreationParameters.cpp	2014-02-06 02:26:17 UTC (rev 163504)
@@ -40,6 +40,7 @@
     , nsURLCacheDiskCapacity(0)
     , shouldForceScreenFontSubstitution(false)
     , shouldEnableKerningAndLigaturesByDefault(false)
+    , shouldEnableFTL(false)
 #endif
 #if ENABLE(NETWORK_PROCESS)
     , usesNetworkProcess(false)
@@ -108,6 +109,7 @@
     encoder << uiProcessBundleResourcePathExtensionHandle;
     encoder << shouldForceScreenFontSubstitution;
     encoder << shouldEnableKerningAndLigaturesByDefault;
+    encoder << shouldEnableFTL;
 #endif
 
 #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
@@ -231,6 +233,8 @@
         return false;
     if (!decoder.decode(parameters.shouldEnableKerningAndLigaturesByDefault))
         return false;
+    if (!decoder.decode(parameters.shouldEnableFTL))
+        return false;
 #endif
 
 #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)

Modified: trunk/Source/WebKit2/Shared/WebProcessCreationParameters.h (163503 => 163504)


--- trunk/Source/WebKit2/Shared/WebProcessCreationParameters.h	2014-02-06 02:23:35 UTC (rev 163503)
+++ trunk/Source/WebKit2/Shared/WebProcessCreationParameters.h	2014-02-06 02:26:17 UTC (rev 163504)
@@ -131,6 +131,7 @@
 
     bool shouldForceScreenFontSubstitution;
     bool shouldEnableKerningAndLigaturesByDefault;
+    bool shouldEnableFTL;
 #endif // PLATFORM(MAC)
 
 #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)

Modified: trunk/Source/WebKit2/UIProcess/mac/WebContextMac.mm (163503 => 163504)


--- trunk/Source/WebKit2/UIProcess/mac/WebContextMac.mm	2014-02-06 02:23:35 UTC (rev 163503)
+++ trunk/Source/WebKit2/UIProcess/mac/WebContextMac.mm	2014-02-06 02:26:17 UTC (rev 163504)
@@ -67,6 +67,7 @@
 NSString *WebKitLocalCacheDefaultsKey = @"WebKitLocalCache";
 NSString *WebStorageDirectoryDefaultsKey = @"WebKitLocalStorageDatabasePathPreferenceKey";
 NSString *WebKitKerningAndLigaturesEnabledByDefaultDefaultsKey = @"WebKitKerningAndLigaturesEnabledByDefault";
+NSString *WebKitFTLEnabledDefaultsKey = @"WebKitFTLEnabledDefaultsKey";
 
 #if !PLATFORM(IOS)
 static NSString *WebKitApplicationDidChangeAccessibilityEnhancedUserInterfaceNotification = @"NSApplicationDidChangeAccessibilityEnhancedUserInterfaceNotification";
@@ -96,6 +97,7 @@
     
 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
     [registrationDictionary setObject:[NSNumber numberWithBool:YES] forKey:WebKitKerningAndLigaturesEnabledByDefaultDefaultsKey];
+    [registrationDictionary setObject:[NSNumber numberWithBool:NO] forKey:WebKitFTLEnabledDefaultsKey];
 #endif
 
     [[NSUserDefaults standardUserDefaults] registerDefaults:registrationDictionary];
@@ -153,6 +155,7 @@
     parameters.shouldForceScreenFontSubstitution = [[NSUserDefaults standardUserDefaults] boolForKey:@"NSFontDefaultScreenFontSubstitutionEnabled"];
 #endif
     parameters.shouldEnableKerningAndLigaturesByDefault = [[NSUserDefaults standardUserDefaults] boolForKey:WebKitKerningAndLigaturesEnabledByDefaultDefaultsKey];
+    parameters.shouldEnableFTL = [[NSUserDefaults standardUserDefaults] boolForKey:WebKitFTLEnabledDefaultsKey];
 
 #if HAVE(HOSTED_CORE_ANIMATION)
 #if !PLATFORM(IOS)

Modified: trunk/Source/WebKit2/WebProcess/mac/WebProcessMac.mm (163503 => 163504)


--- trunk/Source/WebKit2/WebProcess/mac/WebProcessMac.mm	2014-02-06 02:23:35 UTC (rev 163503)
+++ trunk/Source/WebKit2/WebProcess/mac/WebProcessMac.mm	2014-02-06 02:26:17 UTC (rev 163504)
@@ -36,6 +36,7 @@
 #import "WebPage.h"
 #import "WebProcessCreationParameters.h"
 #import "WebProcessProxyMessages.h"
+#import <_javascript_Core/Options.h>
 #import <WebCore/AXObjectCache.h>
 #import <WebCore/FileSystem.h>
 #import <WebCore/Font.h>
@@ -172,6 +173,8 @@
     m_shouldForceScreenFontSubstitution = parameters.shouldForceScreenFontSubstitution;
     Font::setDefaultTypesettingFeatures(parameters.shouldEnableKerningAndLigaturesByDefault ? Kerning | Ligatures : 0);
 
+    JSC::Options::useFTLJIT() = parameters.shouldEnableFTL;
+
     m_compositingRenderServerPort = parameters.acceleratedCompositingPort.port();
 
     m_presenterApplicationPid = parameters.presenterApplicationPid;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to