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

Unified Diff: third_party/WebKit/Source/platform/heap/TraceTraits.h

Issue 2531973002: Simple BlinkGC heap compaction. (Closed)
Patch Set: synchronize on compaction finish Created 4 years 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/platform/heap/TraceTraits.h
diff --git a/third_party/WebKit/Source/platform/heap/TraceTraits.h b/third_party/WebKit/Source/platform/heap/TraceTraits.h
index fe2665f326764619c90169dad99ffba939feedc1..7cb60406c1b87b99bdb3338eb70c8913ea553eba 100644
--- a/third_party/WebKit/Source/platform/heap/TraceTraits.h
+++ b/third_party/WebKit/Source/platform/heap/TraceTraits.h
@@ -220,9 +220,10 @@ class TraceTrait<const T> : public TraceTrait<T> {};
template <typename T>
void TraceTrait<T>::trace(Visitor* visitor, void* self) {
static_assert(WTF::IsTraceable<T>::value, "T should not be traced");
- if (visitor->getMarkingMode() == Visitor::GlobalMarking) {
+ if (visitor->isGlobalMarking()) {
// Switch to inlined global marking dispatch.
- static_cast<T*>(self)->trace(InlinedGlobalMarkingVisitor(visitor->state()));
+ static_cast<T*>(self)->trace(InlinedGlobalMarkingVisitor(
+ visitor->state(), visitor->getMarkingMode()));
} else {
static_cast<T*>(self)->trace(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698