| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 friend class Object; | 423 friend class Object; |
| 424 friend class RawExternalTypedData; | 424 friend class RawExternalTypedData; |
| 425 friend class RawInstructions; | 425 friend class RawInstructions; |
| 426 friend class RawInstance; | 426 friend class RawInstance; |
| 427 friend class RawTypedData; | 427 friend class RawTypedData; |
| 428 friend class Scavenger; | 428 friend class Scavenger; |
| 429 friend class SnapshotReader; | 429 friend class SnapshotReader; |
| 430 friend class SnapshotWriter; | 430 friend class SnapshotWriter; |
| 431 friend class String; | 431 friend class String; |
| 432 friend class TypedData; | 432 friend class TypedData; |
| 433 friend class TypedDataView; |
| 433 | 434 |
| 434 DISALLOW_ALLOCATION(); | 435 DISALLOW_ALLOCATION(); |
| 435 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); | 436 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); |
| 436 }; | 437 }; |
| 437 | 438 |
| 438 | 439 |
| 439 class RawClass : public RawObject { | 440 class RawClass : public RawObject { |
| 440 public: | 441 public: |
| 441 enum ClassState { | 442 enum ClassState { |
| 442 kAllocated, // Initial state. | 443 kAllocated, // Initial state. |
| (...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1667 // Make sure this is updated when new TypedData types are added. | 1668 // Make sure this is updated when new TypedData types are added. |
| 1668 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); | 1669 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); |
| 1669 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); | 1670 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); |
| 1670 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); | 1671 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); |
| 1671 return (kNullCid - kTypedDataInt8ArrayCid); | 1672 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1672 } | 1673 } |
| 1673 | 1674 |
| 1674 } // namespace dart | 1675 } // namespace dart |
| 1675 | 1676 |
| 1676 #endif // VM_RAW_OBJECT_H_ | 1677 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |