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

Unified Diff: third_party/WebKit/Source/platform/heap/InlinedGlobalMarkingVisitor.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/InlinedGlobalMarkingVisitor.h
diff --git a/third_party/WebKit/Source/platform/heap/InlinedGlobalMarkingVisitor.h b/third_party/WebKit/Source/platform/heap/InlinedGlobalMarkingVisitor.h
index 1eb9eb6a373633da2ad9a75eddb358a10ff70d4c..cfe134730d90e5f26d6f899c7ed14f3a13edf67c 100644
--- a/third_party/WebKit/Source/platform/heap/InlinedGlobalMarkingVisitor.h
+++ b/third_party/WebKit/Source/platform/heap/InlinedGlobalMarkingVisitor.h
@@ -18,9 +18,8 @@
friend class MarkingVisitorImpl<InlinedGlobalMarkingVisitor>;
using Impl = MarkingVisitorImpl<InlinedGlobalMarkingVisitor>;
- InlinedGlobalMarkingVisitor(ThreadState* state,
- Visitor::MarkingMode markingMode)
- : VisitorHelper(state), m_markingMode(markingMode) {}
+ explicit InlinedGlobalMarkingVisitor(ThreadState* state)
+ : VisitorHelper(state) {}
// Hack to unify interface to visitor->trace().
// Without this hack, we need to use visitor.trace() for
@@ -55,15 +54,14 @@
return true;
}
- inline Visitor::MarkingMode getMarkingMode() const { return m_markingMode; }
+ inline Visitor::MarkingMode getMarkingMode() const {
+ return Visitor::GlobalMarking;
+ }
private:
static InlinedGlobalMarkingVisitor fromHelper(Helper* helper) {
return *static_cast<InlinedGlobalMarkingVisitor*>(helper);
}
-
- // TODO(sof): attempt to unify this field with Visitor::m_markingMode.
- const Visitor::MarkingMode m_markingMode;
};
inline void GarbageCollectedMixin::trace(InlinedGlobalMarkingVisitor) {}
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapTest.cpp ('k') | third_party/WebKit/Source/platform/heap/MarkingVisitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698