Fix compilation with verify heap on in release mode
authorJochen Eisinger <jochen@chromium.org>
Mon, 8 Dec 2014 09:52:44 +0000 (10:52 +0100)
committerJochen Eisinger <jochen@chromium.org>
Mon, 8 Dec 2014 09:52:51 +0000 (09:52 +0000)
BUG=none
TBR=rossberg@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/788603002

Cr-Commit-Position: refs/heads/master@{#25702}

src/objects-inl.h

index aeddfd1..b36cff9 100644 (file)
@@ -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));