Chromium Code Reviews| Index: runtime/vm/raw_object.h |
| diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h |
| index 35be68ab7643c5e93aa04ecb288549b3dda52c38..358f1ac954560a700bfb78a149a9ff2788594b7c 100644 |
| --- a/runtime/vm/raw_object.h |
| +++ b/runtime/vm/raw_object.h |
| @@ -431,6 +431,9 @@ class RawObject { |
| bool IsCode() { |
| return ((GetClassId() == kCodeCid)); |
| } |
| + bool IsString() { |
| + return IsStringClassId(GetClassId()); |
| + } |
| intptr_t Size() const { |
| uword tags = ptr()->tags_; |