Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 0beca26cb239bae35987b762720599f354cc14be..cc364e3fa5efef012cfb859ae49fd481aa241e78 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -190,12 +190,6 @@ bool Object::IsConstructor() const { |
} |
-bool Object::IsSpecObject() const { |
- return Object::IsHeapObject() |
- && HeapObject::cast(this)->map()->instance_type() >= FIRST_JS_RECEIVER_TYPE; |
-} |
- |
- |
bool Object::IsTemplateInfo() const { |
return IsObjectTemplateInfo() || IsFunctionTemplateInfo(); |
} |
@@ -2370,7 +2364,7 @@ bool Object::IsStringObjectWithCharacterAt(uint32_t index) { |
void Object::VerifyApiCallResultType() { |
#if DEBUG |
- if (!(IsSmi() || IsString() || IsSymbol() || IsSpecObject() || |
+ if (!(IsSmi() || IsString() || IsSymbol() || IsJSReceiver() || |
IsHeapNumber() || IsSimd128Value() || IsUndefined() || IsTrue() || |
IsFalse() || IsNull())) { |
FATAL("API call returned invalid object"); |