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

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

Issue 2570483002: Revert of Simple BlinkGC heap compaction. (Closed)
Patch Set: 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 a56ccf1a0f3d4a5cebfea9e0068a3adaed65eb1d..fca21397b212cd3fb3cb73fe15823525430eca09 100644
--- a/third_party/WebKit/Source/platform/heap/TraceTraits.h
+++ b/third_party/WebKit/Source/platform/heap/TraceTraits.h
@@ -231,10 +231,9 @@
template <typename T>
void TraceTrait<T>::trace(Visitor* visitor, void* self) {
static_assert(WTF::IsTraceable<T>::value, "T should not be traced");
- if (visitor->isGlobalMarking()) {
+ if (visitor->getMarkingMode() == Visitor::GlobalMarking) {
// Switch to inlined global marking dispatch.
- static_cast<T*>(self)->trace(InlinedGlobalMarkingVisitor(
- visitor->state(), visitor->getMarkingMode()));
+ static_cast<T*>(self)->trace(InlinedGlobalMarkingVisitor(visitor->state()));
} else {
static_cast<T*>(self)->trace(visitor);
}
« no previous file with comments | « third_party/WebKit/Source/platform/heap/ThreadState.cpp ('k') | third_party/WebKit/Source/platform/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698