| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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_OBJECT_STORE_H_ | 5 #ifndef VM_OBJECT_STORE_H_ |
| 6 #define VM_OBJECT_STORE_H_ | 6 #define VM_OBJECT_STORE_H_ |
| 7 | 7 |
| 8 #include "vm/object.h" | 8 #include "vm/object.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 kVoidType, | 30 kVoidType, |
| 31 kFunctionInterface, | 31 kFunctionInterface, |
| 32 kNumberInterface, | 32 kNumberInterface, |
| 33 kDoubleInterface, | 33 kDoubleInterface, |
| 34 kIntInterface, | 34 kIntInterface, |
| 35 kBoolInterface, | 35 kBoolInterface, |
| 36 kStringInterface, | 36 kStringInterface, |
| 37 kListInterface, | 37 kListInterface, |
| 38 kByteArrayInterface, | 38 kByteArrayInterface, |
| 39 kObjectClass, | 39 kObjectClass, |
| 40 kIntegerImplementationClass, |
| 40 kSmiClass, | 41 kSmiClass, |
| 41 kMintClass, | 42 kMintClass, |
| 42 kBigintClass, | 43 kBigintClass, |
| 43 kDoubleClass, | 44 kDoubleClass, |
| 44 kOneByteStringClass, | 45 kOneByteStringClass, |
| 45 kTwoByteStringClass, | 46 kTwoByteStringClass, |
| 46 kFourByteStringClass, | 47 kFourByteStringClass, |
| 47 kExternalOneByteStringClass, | 48 kExternalOneByteStringClass, |
| 48 kExternalTwoByteStringClass, | 49 kExternalTwoByteStringClass, |
| 49 kExternalFourByteStringClass, | 50 kExternalFourByteStringClass, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 RawType* number_interface() const { return number_interface_; } | 119 RawType* number_interface() const { return number_interface_; } |
| 119 void set_number_interface(const Type& value) { | 120 void set_number_interface(const Type& value) { |
| 120 number_interface_ = value.raw(); | 121 number_interface_ = value.raw(); |
| 121 } | 122 } |
| 122 | 123 |
| 123 RawType* int_interface() const { return int_interface_; } | 124 RawType* int_interface() const { return int_interface_; } |
| 124 void set_int_interface(const Type& value) { | 125 void set_int_interface(const Type& value) { |
| 125 int_interface_ = value.raw(); | 126 int_interface_ = value.raw(); |
| 126 } | 127 } |
| 127 | 128 |
| 129 RawClass* integer_implementation_class() const { |
| 130 return integer_implementation_class_; |
| 131 } |
| 132 void set_integer_implementation_class(const Class& value) { |
| 133 integer_implementation_class_ = value.raw(); } |
| 134 |
| 128 RawClass* smi_class() const { return smi_class_; } | 135 RawClass* smi_class() const { return smi_class_; } |
| 129 void set_smi_class(const Class& value) { smi_class_ = value.raw(); } | 136 void set_smi_class(const Class& value) { smi_class_ = value.raw(); } |
| 130 static intptr_t smi_class_offset() { | 137 static intptr_t smi_class_offset() { |
| 131 return OFFSET_OF(ObjectStore, smi_class_); | 138 return OFFSET_OF(ObjectStore, smi_class_); |
| 132 } | 139 } |
| 133 | 140 |
| 134 RawType* double_interface() const { return double_interface_; } | 141 RawType* double_interface() const { return double_interface_; } |
| 135 void set_double_interface(const Type& value) { | 142 void set_double_interface(const Type& value) { |
| 136 double_interface_ = value.raw(); | 143 double_interface_ = value.raw(); |
| 137 } | 144 } |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 523 |
| 517 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } | 524 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } |
| 518 RawClass* object_class_; | 525 RawClass* object_class_; |
| 519 RawType* object_type_; | 526 RawType* object_type_; |
| 520 RawType* null_type_; | 527 RawType* null_type_; |
| 521 RawType* dynamic_type_; | 528 RawType* dynamic_type_; |
| 522 RawType* void_type_; | 529 RawType* void_type_; |
| 523 RawType* function_interface_; | 530 RawType* function_interface_; |
| 524 RawType* number_interface_; | 531 RawType* number_interface_; |
| 525 RawType* int_interface_; | 532 RawType* int_interface_; |
| 533 RawClass* integer_implementation_class_; |
| 526 RawClass* smi_class_; | 534 RawClass* smi_class_; |
| 527 RawClass* mint_class_; | 535 RawClass* mint_class_; |
| 528 RawClass* bigint_class_; | 536 RawClass* bigint_class_; |
| 529 RawType* double_interface_; | 537 RawType* double_interface_; |
| 530 RawClass* double_class_; | 538 RawClass* double_class_; |
| 531 RawType* string_interface_; | 539 RawType* string_interface_; |
| 532 RawClass* one_byte_string_class_; | 540 RawClass* one_byte_string_class_; |
| 533 RawClass* two_byte_string_class_; | 541 RawClass* two_byte_string_class_; |
| 534 RawClass* four_byte_string_class_; | 542 RawClass* four_byte_string_class_; |
| 535 RawClass* external_one_byte_string_class_; | 543 RawClass* external_one_byte_string_class_; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 596 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 589 | 597 |
| 590 friend class SnapshotReader; | 598 friend class SnapshotReader; |
| 591 | 599 |
| 592 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 600 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 593 }; | 601 }; |
| 594 | 602 |
| 595 } // namespace dart | 603 } // namespace dart |
| 596 | 604 |
| 597 #endif // VM_OBJECT_STORE_H_ | 605 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |