Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index bb24a2f8544ef73e069031be3bd38c0ed6315855..5b6227c5053e5b0558bd3ae2096d9f738e364ea6 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -165,6 +165,13 @@ bool Object::IsSpecObject() { |
} |
+bool Object::IsSpecFunction() { |
+ 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::IsSymbol() { |
if (!this->IsHeapObject()) return false; |
uint32_t type = HeapObject::cast(this)->map()->instance_type(); |