OSDN Git Service

Disable Crankshaft at runtime for performace testing.
authorBen Murdoch <benm@google.com>
Thu, 28 Jul 2011 19:21:09 +0000 (20:21 +0100)
committerBen Murdoch <benm@google.com>
Thu, 28 Jul 2011 19:21:09 +0000 (20:21 +0100)
Bug: 5052287
Change-Id: Ic2b192a5f22c7bc91b7bc587904452e440cbe505

Source/WebKit/android/jni/WebViewCore.cpp

index 1c51b14..a883075 100644 (file)
@@ -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
 }