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

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

Issue 2076133002: Trace active script wrappables on entering final pause (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp
index 23b013f90e87424ad9d7c77b7dfa1ae51e1cc96d..5f6683a57b3af0e18922f35f165b5ac4d4eb7113 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp
@@ -27,11 +27,23 @@ void ScriptWrappableVisitor::TracePrologue()
m_tracingInProgress = true;
}
-void ScriptWrappableVisitor::TraceEpilogue()
+void ScriptWrappableVisitor::EnterFinalPause()
{
ActiveScriptWrappable::traceActiveScriptWrappables(m_isolate, this);
- AdvanceTracing(0, AdvanceTracingActions(ForceCompletionAction::FORCE_COMPLETION));
+}
+
+void ScriptWrappableVisitor::TraceEpilogue()
+{
+ performCleanup();
+}
+void ScriptWrappableVisitor::AbortTracing()
+{
+ performCleanup();
+}
+
+void ScriptWrappableVisitor::performCleanup()
+{
for (auto header : m_headersToUnmark) {
header->unmarkWrapperHeader();
}
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698