summaryrefslogtreecommitdiffstats
path: root/Source/WebKit
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-07-28 20:21:09 +0100
committerBen Murdoch <benm@google.com>2011-07-28 20:21:09 +0100
commit7178bcff68f2abc8fefe50fa62b7043663034c05 (patch)
tree6a8e367ba59f65e7a231bddbce9f47f8b2e87a32 /Source/WebKit
parent14a561b2c1a0d30c36751ea756c773d70c9c4d76 (diff)
downloadexternal_webkit-7178bcff68f2abc8fefe50fa62b7043663034c05.zip
external_webkit-7178bcff68f2abc8fefe50fa62b7043663034c05.tar.gz
external_webkit-7178bcff68f2abc8fefe50fa62b7043663034c05.tar.bz2
Disable Crankshaft at runtime for performace testing.
Bug: 5052287 Change-Id: Ic2b192a5f22c7bc91b7bc587904452e440cbe505
Diffstat (limited to 'Source/WebKit')
-rw-r--r--Source/WebKit/android/jni/WebViewCore.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp
index 1c51b14..a883075 100644
--- a/Source/WebKit/android/jni/WebViewCore.cpp
+++ b/Source/WebKit/android/jni/WebViewCore.cpp
@@ -437,6 +437,7 @@ WebViewCore::WebViewCore(JNIEnv* env, jobject javaWebViewCore, WebCore::Frame* m
// Static initialisation of certain important V8 static data gets performed at system startup when
// libwebcore gets loaded. We now need to associate the WebCore thread with V8 to complete
// initialisation.
+ WebCore::ScriptController::setFlags("--nocrankshaft", strlen("--nocrankshaft"));
v8::V8::Initialize();
#endif
}