Index: runtime/vm/raw_object.h |
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h |
index f9d4b752ca6a73f5f89267e07bf80a6e295c0024..4e387e2c4b70f792af8311073af4323eef30add1 100644 |
--- a/runtime/vm/raw_object.h |
+++ b/runtime/vm/raw_object.h |
@@ -392,6 +392,9 @@ class RawObject { |
bool IsScript() { |
return ((GetClassId() == kScriptCid)); |
} |
+ bool IsFunction() { |
+ return ((GetClassId() == kFunctionCid)); |
+ } |
intptr_t Size() const { |
uword tags = ptr()->tags_; |