Chromium Code Reviews| Index: runtime/vm/object.h |
| =================================================================== |
| --- runtime/vm/object.h (revision 22901) |
| +++ runtime/vm/object.h (working copy) |
| @@ -216,7 +216,10 @@ |
| ASSERT(!IsNull()); |
| raw()->SetCanonical(); |
| } |
| - |
| + intptr_t GetClassId() const { |
| + return !raw()->IsHeapObject() ? |
| + static_cast<intptr_t>(kSmiCid) : raw()->GetClassId(); |
| + } |
| inline RawClass* clazz() const; |
| static intptr_t tags_offset() { return OFFSET_OF(RawObject, tags_); } |