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

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

Issue 2043033002: Trace ScriptWrappableVisitor.m_markingDeque by oilpan gc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Polish Created 4 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/ActiveScriptWrappable.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp b/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp
index f474df72e42c419b4e16b92208eca9f24315aa73..16ac4fc65b0cbfb50838f4fc8a92975b841f00c7 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp
@@ -28,10 +28,13 @@ void ActiveScriptWrappable::traceActiveScriptWrappables(v8::Isolate* isolate, Sc
}
for (auto activeWrappable : *activeScriptWrappables) {
- if (!activeWrappable->hasPendingActivity())
+ if (!activeWrappable->hasPendingActivity()) {
continue;
+ }
- activeWrappable->toScriptWrappable()->traceWrappers(visitor);
+ auto scriptWrappable = activeWrappable->toScriptWrappable();
+ auto wrapperTypeInfo = const_cast<WrapperTypeInfo*>(scriptWrappable->wrapperTypeInfo());
+ visitor->RegisterV8Reference(std::make_pair(wrapperTypeInfo, scriptWrappable));
haraken 2016/06/08 14:38:23 Would you help me understand why you need to push
Marcel Hlopko 2016/06/08 15:12:48 Here it's just for the consistency. Objects extern
}
}

Powered by Google App Engine
This is Rietveld 408576698