Index: runtime/vm/raw_object.h |
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h |
index 217f30f4bf54851e7e75a45ce60e0de3add2c71d..6e2f5bd2eaeec416ef0caebd879360dde6a72247 100644 |
--- a/runtime/vm/raw_object.h |
+++ b/runtime/vm/raw_object.h |
@@ -389,6 +389,9 @@ class RawObject { |
bool IsFreeListElement() { |
return ((GetClassId() == kFreeListElement)); |
} |
+ bool IsScript() { |
+ return ((GetClassId() == kScriptCid)); |
+ } |
intptr_t Size() const { |
uword tags = ptr()->tags_; |