Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index b8fb1e8a26ba9d68ce6bd4bbd8a85ca4e33c6a42..7b64a3b20b4fae0d4cbc2c48651d3cf145fa327b 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -781,6 +781,18 @@ AlwaysAllocateScope::~AlwaysAllocateScope() { |
} |
+#ifdef VERIFY_HEAP |
+NoWeakEmbeddedMapsVerificationScope::NoWeakEmbeddedMapsVerificationScope() { |
+ HEAP->no_weak_embedded_maps_verification_scope_depth_++; |
+} |
+ |
+ |
+NoWeakEmbeddedMapsVerificationScope::~NoWeakEmbeddedMapsVerificationScope() { |
+ HEAP->no_weak_embedded_maps_verification_scope_depth_--; |
+} |
+#endif |
+ |
+ |
void VerifyPointersVisitor::VisitPointers(Object** start, Object** end) { |
for (Object** current = start; current < end; current++) { |
if ((*current)->IsHeapObject()) { |