summaryrefslogtreecommitdiffstats
path: root/WebCore
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 /WebCore
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 'WebCore')
-rw-r--r--WebCore/bindings/v8/ScriptController.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/WebCore/bindings/v8/ScriptController.cpp b/WebCore/bindings/v8/ScriptController.cpp
index eecff45..674de43 100644
--- a/WebCore/bindings/v8/ScriptController.cpp
+++ b/WebCore/bindings/v8/ScriptController.cpp
@@ -251,8 +251,11 @@ void ScriptController::collectGarbage()
return;
v8::Context::Scope scope(context);
-
+#if PLATFORM(ANDROID)
+ v8::V8::CollectAllGarbage();
+#else
m_proxy->evaluate(ScriptSourceCode("if (window.gc) void(gc());"), 0);
+#endif
}
bool ScriptController::haveInterpreter() const