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

Unified Diff: third_party/WebKit/Source/platform/heap/Visitor.cpp

Issue 1974693002: Make Visitor use heap for the current thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/platform/heap/Visitor.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/platform/heap/Visitor.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Visitor.cpp b/third_party/WebKit/Source/platform/heap/Visitor.cpp
index 6f5d00fbaf3f812f5692f202b3d57277f2a446e4..36498604a8a9fb8f7b3f631541261b7f5cf40e73 100644
--- a/third_party/WebKit/Source/platform/heap/Visitor.cpp
+++ b/third_party/WebKit/Source/platform/heap/Visitor.cpp
@@ -29,19 +29,19 @@ PassOwnPtr<Visitor> Visitor::create(ThreadState* state, BlinkGC::GCType gcType)
}
Visitor::Visitor(ThreadState* state, MarkingMode markingMode)
- : m_state(state)
+ : VisitorHelper(state)
, m_markingMode(markingMode)
{
// See ThreadState::runScheduledGC() why we need to already be in a
// GCForbiddenScope before any safe point is entered.
- m_state->enterGCForbiddenScope();
+ state->enterGCForbiddenScope();
- ASSERT(m_state->checkThread());
+ ASSERT(state->checkThread());
}
Visitor::~Visitor()
{
- m_state->leaveGCForbiddenScope();
+ state()->leaveGCForbiddenScope();
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Visitor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698