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 RUNTIME_VM_OBJECT_STORE_H_ | 5 #ifndef RUNTIME_VM_OBJECT_STORE_H_ |
6 #define RUNTIME_VM_OBJECT_STORE_H_ | 6 #define RUNTIME_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 RawType* number_type() const { return number_type_; } | 84 RawType* number_type() const { return number_type_; } |
85 void set_number_type(const Type& value) { number_type_ = value.raw(); } | 85 void set_number_type(const Type& value) { number_type_ = value.raw(); } |
86 | 86 |
87 RawType* int_type() const { return int_type_; } | 87 RawType* int_type() const { return int_type_; } |
88 void set_int_type(const Type& value) { int_type_ = value.raw(); } | 88 void set_int_type(const Type& value) { int_type_ = value.raw(); } |
89 static intptr_t int_type_offset() { | 89 static intptr_t int_type_offset() { |
90 return OFFSET_OF(ObjectStore, int_type_); | 90 return OFFSET_OF(ObjectStore, int_type_); |
91 } | 91 } |
92 | 92 |
93 RawType* int64_type() const { return int64_type_; } | |
94 void set_int64_type(const Type& value) { int64_type_ = value.raw(); } | |
95 | |
96 RawClass* integer_implementation_class() const { | 93 RawClass* integer_implementation_class() const { |
97 return integer_implementation_class_; | 94 return integer_implementation_class_; |
98 } | 95 } |
99 void set_integer_implementation_class(const Class& value) { | 96 void set_integer_implementation_class(const Class& value) { |
100 integer_implementation_class_ = value.raw(); | 97 integer_implementation_class_ = value.raw(); |
101 } | 98 } |
102 | 99 |
103 RawClass* smi_class() const { return smi_class_; } | 100 RawClass* smi_class() const { return smi_class_; } |
104 void set_smi_class(const Class& value) { smi_class_ = value.raw(); } | 101 void set_smi_class(const Class& value) { smi_class_ = value.raw(); } |
105 | 102 |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 #define OBJECT_STORE_FIELD_LIST(V) \ | 504 #define OBJECT_STORE_FIELD_LIST(V) \ |
508 V(RawClass*, object_class_) \ | 505 V(RawClass*, object_class_) \ |
509 V(RawType*, object_type_) \ | 506 V(RawType*, object_type_) \ |
510 V(RawClass*, null_class_) \ | 507 V(RawClass*, null_class_) \ |
511 V(RawType*, null_type_) \ | 508 V(RawType*, null_type_) \ |
512 V(RawType*, function_type_) \ | 509 V(RawType*, function_type_) \ |
513 V(RawClass*, closure_class_) \ | 510 V(RawClass*, closure_class_) \ |
514 V(RawType*, number_type_) \ | 511 V(RawType*, number_type_) \ |
515 V(RawType*, int_type_) \ | 512 V(RawType*, int_type_) \ |
516 V(RawClass*, integer_implementation_class_) \ | 513 V(RawClass*, integer_implementation_class_) \ |
517 V(RawType*, int64_type_) \ | |
518 V(RawClass*, smi_class_) \ | 514 V(RawClass*, smi_class_) \ |
519 V(RawType*, smi_type_) \ | 515 V(RawType*, smi_type_) \ |
520 V(RawClass*, mint_class_) \ | 516 V(RawClass*, mint_class_) \ |
521 V(RawType*, mint_type_) \ | 517 V(RawType*, mint_type_) \ |
522 V(RawClass*, bigint_class_) \ | 518 V(RawClass*, bigint_class_) \ |
523 V(RawClass*, double_class_) \ | 519 V(RawClass*, double_class_) \ |
524 V(RawType*, double_type_) \ | 520 V(RawType*, double_type_) \ |
525 V(RawType*, float32x4_type_) \ | 521 V(RawType*, float32x4_type_) \ |
526 V(RawType*, int32x4_type_) \ | 522 V(RawType*, int32x4_type_) \ |
527 V(RawType*, float64x2_type_) \ | 523 V(RawType*, float64x2_type_) \ |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 | 620 |
625 friend class Serializer; | 621 friend class Serializer; |
626 friend class Deserializer; | 622 friend class Deserializer; |
627 | 623 |
628 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 624 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
629 }; | 625 }; |
630 | 626 |
631 } // namespace dart | 627 } // namespace dart |
632 | 628 |
633 #endif // RUNTIME_VM_OBJECT_STORE_H_ | 629 #endif // RUNTIME_VM_OBJECT_STORE_H_ |
OLD | NEW |