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

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

Issue 2650783002: [wrapper-tracing] Fix V8GCController::getRetainerInfos (Closed)
Patch Set: 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 cb16358744644028c53a5bb817c9aa02f77c92a0..9f60e5b82122bba38021cda16e0241ac41e5566f 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
@@ -409,12 +409,13 @@ void V8PerIsolateData::addActiveScriptWrappable(
void V8PerIsolateData::TemporaryScriptWrappableVisitorScope::
swapWithV8PerIsolateDataVisitor(
std::unique_ptr<ScriptWrappableVisitor>& visitor) {
- ScriptWrappableVisitor* current = currentVisitor(m_isolate);
+ ScriptWrappableVisitor* current = currentVisitor();
if (current)
current->performCleanup();
- V8PerIsolateData::from(m_isolate)->m_scriptWrappableVisitor.swap(visitor);
- m_isolate->SetEmbedderHeapTracer(visitor.get());
+ V8PerIsolateData::from(m_isolate)->m_scriptWrappableVisitor.swap(
+ m_savedVisitor);
+ m_isolate->SetEmbedderHeapTracer(currentVisitor());
}
} // 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