Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 857270f674a288cec36cb450b0f6e204e0c1a175..188722e62814e655b73ec21039b769a64bcf157f 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -695,8 +695,7 @@ bool Object::IsJSReceiver() const { |
bool Object::IsJSObject() const { |
STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE); |
- return IsHeapObject() && |
- HeapObject::cast(this)->map()->instance_type() >= FIRST_JS_OBJECT_TYPE; |
+ return IsHeapObject() && HeapObject::cast(this)->map()->IsJSObjectMap(); |
} |