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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 RawType* number_type() const { return number_type_; } | 75 RawType* number_type() const { return number_type_; } |
76 void set_number_type(const Type& value) { | 76 void set_number_type(const Type& value) { |
77 number_type_ = value.raw(); | 77 number_type_ = value.raw(); |
78 } | 78 } |
79 | 79 |
80 RawType* int_type() const { return int_type_; } | 80 RawType* int_type() const { return int_type_; } |
81 void set_int_type(const Type& value) { | 81 void set_int_type(const Type& value) { |
82 int_type_ = value.raw(); | 82 int_type_ = value.raw(); |
83 } | 83 } |
84 static intptr_t int_type_offset() { | |
85 return OFFSET_OF(ObjectStore, int_type_); | |
86 } | |
87 | 84 |
88 RawClass* integer_implementation_class() const { | 85 RawClass* integer_implementation_class() const { |
89 return integer_implementation_class_; | 86 return integer_implementation_class_; |
90 } | 87 } |
91 void set_integer_implementation_class(const Class& value) { | 88 void set_integer_implementation_class(const Class& value) { |
92 integer_implementation_class_ = value.raw(); | 89 integer_implementation_class_ = value.raw(); |
93 } | 90 } |
94 | 91 |
95 RawClass* smi_class() const { return smi_class_; } | 92 RawClass* smi_class() const { return smi_class_; } |
96 void set_smi_class(const Class& value) { smi_class_ = value.raw(); } | 93 void set_smi_class(const Class& value) { smi_class_ = value.raw(); } |
97 | 94 |
98 RawType* smi_type() const { return smi_type_; } | 95 RawType* smi_type() const { return smi_type_; } |
99 void set_smi_type(const Type& value) { smi_type_ = value.raw(); } | 96 void set_smi_type(const Type& value) { smi_type_ = value.raw(); |
| 97 } |
100 | 98 |
101 RawClass* double_class() const { return double_class_; } | 99 RawClass* double_class() const { return double_class_; } |
102 void set_double_class(const Class& value) { double_class_ = value.raw(); } | 100 void set_double_class(const Class& value) { double_class_ = value.raw(); } |
103 | 101 |
104 RawType* double_type() const { return double_type_; } | 102 RawType* double_type() const { return double_type_; } |
105 void set_double_type(const Type& value) { double_type_ = value.raw(); } | 103 void set_double_type(const Type& value) { double_type_ = value.raw(); } |
106 static intptr_t double_type_offset() { | |
107 return OFFSET_OF(ObjectStore, double_type_); | |
108 } | |
109 | 104 |
110 RawClass* mint_class() const { return mint_class_; } | 105 RawClass* mint_class() const { return mint_class_; } |
111 void set_mint_class(const Class& value) { mint_class_ = value.raw(); } | 106 void set_mint_class(const Class& value) { mint_class_ = value.raw(); } |
112 | 107 |
113 RawType* mint_type() const { return mint_type_; } | 108 RawType* mint_type() const { return mint_type_; } |
114 void set_mint_type(const Type& value) { mint_type_ = value.raw(); } | 109 void set_mint_type(const Type& value) { mint_type_ = value.raw(); } |
115 | 110 |
116 RawClass* bigint_class() const { return bigint_class_; } | 111 RawClass* bigint_class() const { return bigint_class_; } |
117 void set_bigint_class(const Class& value) { bigint_class_ = value.raw(); } | 112 void set_bigint_class(const Class& value) { bigint_class_ = value.raw(); } |
118 | 113 |
119 RawType* string_type() const { return string_type_; } | 114 RawType* string_type() const { return string_type_; } |
120 void set_string_type(const Type& value) { | 115 void set_string_type(const Type& value) { |
121 string_type_ = value.raw(); | 116 string_type_ = value.raw(); |
122 } | 117 } |
123 static intptr_t string_type_offset() { | |
124 return OFFSET_OF(ObjectStore, string_type_); | |
125 } | |
126 | 118 |
127 RawClass* compiletime_error_class() const { | 119 RawClass* compiletime_error_class() const { |
128 return compiletime_error_class_; | 120 return compiletime_error_class_; |
129 } | 121 } |
130 void set_compiletime_error_class(const Class& value) { | 122 void set_compiletime_error_class(const Class& value) { |
131 compiletime_error_class_ = value.raw(); | 123 compiletime_error_class_ = value.raw(); |
132 } | 124 } |
133 | 125 |
134 RawClass* future_class() const { return future_class_; } | 126 RawClass* future_class() const { return future_class_; } |
135 void set_future_class(const Class& value) { | 127 void set_future_class(const Class& value) { |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 | 633 |
642 friend class Serializer; | 634 friend class Serializer; |
643 friend class Deserializer; | 635 friend class Deserializer; |
644 | 636 |
645 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 637 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
646 }; | 638 }; |
647 | 639 |
648 } // namespace dart | 640 } // namespace dart |
649 | 641 |
650 #endif // RUNTIME_VM_OBJECT_STORE_H_ | 642 #endif // RUNTIME_VM_OBJECT_STORE_H_ |
OLD | NEW |