Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 1e0b6838af4aad30ed35c1f920cfef9069d21dda..4aa0ea18b56950802b79c2c1c82f2a5091b28fa6 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -198,14 +198,6 @@ bool Object::IsSpecObject() const { |
} |
-// TODO(rossberg): Remove this and use the spec compliant IsCallable instead. |
-bool Object::IsSpecFunction() const { |
- if (!Object::IsHeapObject()) return false; |
- InstanceType type = HeapObject::cast(this)->map()->instance_type(); |
- return type == JS_FUNCTION_TYPE || type == JS_FUNCTION_PROXY_TYPE; |
-} |
- |
- |
bool Object::IsTemplateInfo() const { |
return IsObjectTemplateInfo() || IsFunctionTemplateInfo(); |
} |
@@ -7359,7 +7351,7 @@ bool AccessorPair::ContainsAccessor() { |
bool AccessorPair::IsJSAccessor(Object* obj) { |
- return obj->IsSpecFunction() || obj->IsUndefined(); |
+ return obj->IsCallable() || obj->IsUndefined(); |
} |