Index: Source/platform/heap/Visitor.h |
diff --git a/Source/platform/heap/Visitor.h b/Source/platform/heap/Visitor.h |
index c20522251b88795d2a001314e81d1b0bedd93483..b9f438beb51db6d0073e1de4844d54b7879faada 100644 |
--- a/Source/platform/heap/Visitor.h |
+++ b/Source/platform/heap/Visitor.h |
@@ -343,6 +343,7 @@ public: |
return; |
#if ENABLE(ASSERT) |
TraceTrait<T>::checkGCInfo(t); |
+ Derived::fromHelper(this)->checkIsMarkingAllowed(); |
#endif |
TraceTrait<T>::mark(Derived::fromHelper(this), t); |
@@ -631,6 +632,10 @@ public: |
inline bool isGlobalMarkingVisitor() const { return m_isGlobalMarkingVisitor; } |
+#if ENABLE(ASSERT) |
+ virtual void setAllowTraceForHashTableWeakProcessing(bool) { } |
+#endif |
+ |
protected: |
explicit Visitor(VisitorType type) |
: m_isGlobalMarkingVisitor(type == GlobalMarkingVisitorType) |
@@ -649,6 +654,10 @@ protected: |
String m_hostName; |
#endif |
+#if ENABLE(ASSERT) |
+ virtual void checkIsMarkingAllowed() { } |
+#endif |
+ |
private: |
static Visitor* fromHelper(VisitorHelper<Visitor>* helper) { return static_cast<Visitor*>(helper); } |