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

Unified Diff: Source/platform/heap/InlinedGlobalMarkingVisitor.h

Issue 824513004: ASSERT that Visitor::mark is only called when inGC() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
Index: Source/platform/heap/InlinedGlobalMarkingVisitor.h
diff --git a/Source/platform/heap/InlinedGlobalMarkingVisitor.h b/Source/platform/heap/InlinedGlobalMarkingVisitor.h
index b3708e87f2c4b39023405ffd227ee9099c8af0d8..754b1c1d4eea3671651765bc4197607db1fcf1e2 100644
--- a/Source/platform/heap/InlinedGlobalMarkingVisitor.h
+++ b/Source/platform/heap/InlinedGlobalMarkingVisitor.h
@@ -80,6 +80,14 @@ private:
return *static_cast<InlinedGlobalMarkingVisitor*>(helper);
}
+#if ENABLE(ASSERT)
+ inline void checkIsMarkingAllowed() { getUninlined()->checkIsMarkingAllowed(); }
+ inline void setAllowTraceForHashTableWeakProcessing(bool allow)
+ {
+ getUninlined()->setAllowTraceForHashTableWeakProcessing(allow);
+ }
+#endif
+
Visitor* m_visitor;
};

Powered by Google App Engine
This is Rietveld 408576698