summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorFeng Qian <fqian@google.com>2009-08-13 21:54:48 -0700
committerFeng Qian <fqian@google.com>2009-08-13 21:54:48 -0700
commite631646ae9030296d7c00c2298031aa01040351d (patch)
tree186cf537222bc7e24dff0b59bf09374027dc2529 /WebKit
parent6280de499aecbc9f7c0d1fb56d5c19ec4ace3b68 (diff)
downloadexternal_webkit-e631646ae9030296d7c00c2298031aa01040351d.zip
external_webkit-e631646ae9030296d7c00c2298031aa01040351d.tar.gz
external_webkit-e631646ae9030296d7c00c2298031aa01040351d.tar.bz2
Add GC support in V8 and calling GC in WebCoreFrameBridge::clearCache.
This is experimental, we'd like to see the impact on page cycler intl1 and intl2.
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/jni/WebCoreFrameBridge.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebCoreFrameBridge.cpp b/WebKit/android/jni/WebCoreFrameBridge.cpp
index f47603b..4672427 100644
--- a/WebKit/android/jni/WebCoreFrameBridge.cpp
+++ b/WebKit/android/jni/WebCoreFrameBridge.cpp
@@ -1136,6 +1136,9 @@ static void ClearCache(JNIEnv *env, jobject obj)
#if USE(JSC)
// force JavaScript to GC when clear cache
WebCore::gcController().garbageCollectSoon();
+#elif USE(V8)
+ WebCore::Frame* pFrame = GET_NATIVE_FRAME(env, obj);
+ pFrame->script()->collectGarbage();
#endif // USE(JSC)
}