| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_RAW_OBJECT_H_ | 5 #ifndef VM_RAW_OBJECT_H_ |
| 6 #define VM_RAW_OBJECT_H_ | 6 #define VM_RAW_OBJECT_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/token.h" | 10 #include "vm/token.h" |
| (...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1623 RawString* label_; | 1623 RawString* label_; |
| 1624 | 1624 |
| 1625 RawObject** to() { | 1625 RawObject** to() { |
| 1626 return reinterpret_cast<RawObject**>(&ptr()->label_); | 1626 return reinterpret_cast<RawObject**>(&ptr()->label_); |
| 1627 } | 1627 } |
| 1628 | 1628 |
| 1629 // Isolate unique tag. | 1629 // Isolate unique tag. |
| 1630 uword tag_; | 1630 uword tag_; |
| 1631 | 1631 |
| 1632 friend class SnapshotReader; | 1632 friend class SnapshotReader; |
| 1633 friend class Object; |
| 1633 | 1634 |
| 1634 public: | 1635 public: |
| 1635 uword tag() const { return tag_; } | 1636 uword tag() const { return tag_; } |
| 1636 }; | 1637 }; |
| 1637 | 1638 |
| 1638 // Class Id predicates. | 1639 // Class Id predicates. |
| 1639 | 1640 |
| 1640 inline bool RawObject::IsErrorClassId(intptr_t index) { | 1641 inline bool RawObject::IsErrorClassId(intptr_t index) { |
| 1641 // Make sure this function is updated when new Error types are added. | 1642 // Make sure this function is updated when new Error types are added. |
| 1642 ASSERT(kApiErrorCid == kErrorCid + 1 && | 1643 ASSERT(kApiErrorCid == kErrorCid + 1 && |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1834 // Make sure this is updated when new TypedData types are added. | 1835 // Make sure this is updated when new TypedData types are added. |
| 1835 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1836 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
| 1836 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); | 1837 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); |
| 1837 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1838 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
| 1838 return (kNullCid - kTypedDataInt8ArrayCid); | 1839 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1839 } | 1840 } |
| 1840 | 1841 |
| 1841 } // namespace dart | 1842 } // namespace dart |
| 1842 | 1843 |
| 1843 #endif // VM_RAW_OBJECT_H_ | 1844 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |