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

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

Issue 2625093002: [wrapper-tracing] Add heap snapshot generator infrastructure (Closed)
Patch Set: Rebase and fix CHECK Created 3 years, 11 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/V8PerIsolateData.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/V8PerIsolateData.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
index 36bdec1839d60e3e065a7e0f18e12c74babca12a..cb16358744644028c53a5bb817c9aa02f77c92a0 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
@@ -406,4 +406,15 @@ void V8PerIsolateData::addActiveScriptWrappable(
m_activeScriptWrappables->add(wrappable);
}
+void V8PerIsolateData::TemporaryScriptWrappableVisitorScope::
+ swapWithV8PerIsolateDataVisitor(
+ std::unique_ptr<ScriptWrappableVisitor>& visitor) {
+ ScriptWrappableVisitor* current = currentVisitor(m_isolate);
+ if (current)
+ current->performCleanup();
+
+ V8PerIsolateData::from(m_isolate)->m_scriptWrappableVisitor.swap(visitor);
+ m_isolate->SetEmbedderHeapTracer(visitor.get());
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698