Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp

Issue 2948983002: Low memory page navigation GC for low end devices (Closed)
Patch Set: fix Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
index d8c2cd101c1a4d38de65d939beee3e7c39063e5d..c6917f364d78d0d7834aabb950b46496a0e3173b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
@@ -64,7 +64,8 @@
namespace blink {
-void LocalWindowProxy::DisposeContext(Lifecycle next_status) {
+void LocalWindowProxy::DisposeContext(Lifecycle next_status,
+ FrameReuseStatus frame_reuse_status) {
DCHECK(next_status == Lifecycle::kGlobalObjectIsDetached ||
next_status == Lifecycle::kFrameIsDetached);
@@ -99,12 +100,11 @@ void LocalWindowProxy::DisposeContext(Lifecycle next_status) {
}
script_state_->DisposePerContextData();
-
// It's likely that disposing the context has created a lot of
// garbage. Notify V8 about this so it'll have a chance of cleaning
// it up when idle.
V8GCForContextDispose::Instance().NotifyContextDisposed(
- GetFrame()->IsMainFrame());
+ GetFrame()->IsMainFrame(), frame_reuse_status);
if (next_status == Lifecycle::kFrameIsDetached) {
// The context's frame is detached from the DOM, so there shouldn't be a

Powered by Google App Engine
This is Rietveld 408576698