Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 8c0035efecfbae4afb13a6651fc7cbded1fcfb9a..d4bd52c364274a208c2a07da9ddc6b84aa430516 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -6608,9 +6608,8 @@ bool JSObject::HasSlowStringWrapperElements() { |
} |
bool JSObject::HasFixedTypedArrayElements() { |
- HeapObject* array = elements(); |
- DCHECK(array != NULL); |
- return array->IsFixedTypedArrayBase(); |
+ DCHECK_NOT_NULL(elements()); |
+ return map()->has_fixed_typed_array_elements(); |
} |
#define FIXED_TYPED_ELEMENTS_CHECK(Type, type, TYPE, ctype, size) \ |