Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index aeddfd14b54c2f74fc28868527382e995ca9291f..b36cff97bc1b2129ceeb1be41ecb5a223a6a88e3 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -6536,7 +6536,7 @@ void JSRegExp::SetDataAt(int index, Object* value) { |
ElementsKind JSObject::GetElementsKind() { |
ElementsKind kind = map()->elements_kind(); |
-#if VERIFY_HEAP |
+#if VERIFY_HEAP && DEBUG |
FixedArrayBase* fixed_array = |
reinterpret_cast<FixedArrayBase*>(READ_FIELD(this, kElementsOffset)); |