| 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 intptr_t next_field_offset_in_words_; // Offset of the next instance field. | 506 intptr_t next_field_offset_in_words_; // Offset of the next instance field. |
| 507 int16_t num_type_arguments_; // Number of type arguments in flatten vector. | 507 int16_t num_type_arguments_; // Number of type arguments in flatten vector. |
| 508 int16_t num_own_type_arguments_; // Number of non-overlapping type arguments. | 508 int16_t num_own_type_arguments_; // Number of non-overlapping type arguments. |
| 509 uint16_t num_native_fields_; // Number of native fields in class. | 509 uint16_t num_native_fields_; // Number of native fields in class. |
| 510 uint16_t state_bits_; | 510 uint16_t state_bits_; |
| 511 | 511 |
| 512 friend class Instance; | 512 friend class Instance; |
| 513 friend class Object; | 513 friend class Object; |
| 514 friend class RawInstance; | 514 friend class RawInstance; |
| 515 friend class RawInstructions; | 515 friend class RawInstructions; |
| 516 friend class RawType; // TODO(regis): To temporarily print unfinalized types. | |
| 517 friend class RawTypeParameter; // To temporarily print unfinalized types. | |
| 518 friend class SnapshotReader; | 516 friend class SnapshotReader; |
| 519 }; | 517 }; |
| 520 | 518 |
| 521 | 519 |
| 522 class RawUnresolvedClass : public RawObject { | 520 class RawUnresolvedClass : public RawObject { |
| 523 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass); | 521 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass); |
| 524 | 522 |
| 525 RawObject** from() { | 523 RawObject** from() { |
| 526 return reinterpret_cast<RawObject**>(&ptr()->library_prefix_); | 524 return reinterpret_cast<RawObject**>(&ptr()->library_prefix_); |
| 527 } | 525 } |
| (...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1746 // Make sure this is updated when new TypedData types are added. | 1744 // Make sure this is updated when new TypedData types are added. |
| 1747 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); | 1745 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); |
| 1748 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); | 1746 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); |
| 1749 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); | 1747 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); |
| 1750 return (kNullCid - kTypedDataInt8ArrayCid); | 1748 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1751 } | 1749 } |
| 1752 | 1750 |
| 1753 } // namespace dart | 1751 } // namespace dart |
| 1754 | 1752 |
| 1755 #endif // VM_RAW_OBJECT_H_ | 1753 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |