| 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 25 matching lines...) Expand all Loading... |
| 36 kStringInterface, | 36 kStringInterface, |
| 37 kListInterface, | 37 kListInterface, |
| 38 kObjectClass, | 38 kObjectClass, |
| 39 kSmiClass, | 39 kSmiClass, |
| 40 kMintClass, | 40 kMintClass, |
| 41 kBigintClass, | 41 kBigintClass, |
| 42 kDoubleClass, | 42 kDoubleClass, |
| 43 kOneByteStringClass, | 43 kOneByteStringClass, |
| 44 kTwoByteStringClass, | 44 kTwoByteStringClass, |
| 45 kFourByteStringClass, | 45 kFourByteStringClass, |
| 46 kExternalOneByteStringClass, |
| 47 kExternalTwoByteStringClass, |
| 48 kExternalFourByteStringClass, |
| 46 kBoolClass, | 49 kBoolClass, |
| 47 kArrayClass, | 50 kArrayClass, |
| 48 kImmutableArrayClass, | 51 kImmutableArrayClass, |
| 49 kByteBufferClass, | 52 kByteBufferClass, |
| 50 kUnhandledExceptionClass, | 53 kUnhandledExceptionClass, |
| 51 kStacktraceClass, | 54 kStacktraceClass, |
| 52 kJSRegExpClass, | 55 kJSRegExpClass, |
| 53 kMaxId, | 56 kMaxId, |
| 54 kInvalidIndex = -1, | 57 kInvalidIndex = -1, |
| 55 }; | 58 }; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 RawClass* two_byte_string_class() const { return two_byte_string_class_; } | 123 RawClass* two_byte_string_class() const { return two_byte_string_class_; } |
| 121 void set_two_byte_string_class(const Class& value) { | 124 void set_two_byte_string_class(const Class& value) { |
| 122 two_byte_string_class_ = value.raw(); | 125 two_byte_string_class_ = value.raw(); |
| 123 } | 126 } |
| 124 | 127 |
| 125 RawClass* four_byte_string_class() const { return four_byte_string_class_; } | 128 RawClass* four_byte_string_class() const { return four_byte_string_class_; } |
| 126 void set_four_byte_string_class(const Class& value) { | 129 void set_four_byte_string_class(const Class& value) { |
| 127 four_byte_string_class_ = value.raw(); | 130 four_byte_string_class_ = value.raw(); |
| 128 } | 131 } |
| 129 | 132 |
| 133 RawClass* external_one_byte_string_class() const { |
| 134 return external_one_byte_string_class_; |
| 135 } |
| 136 void set_external_one_byte_string_class(const Class& value) { |
| 137 external_one_byte_string_class_ = value.raw(); |
| 138 } |
| 139 |
| 140 RawClass* external_two_byte_string_class() const { |
| 141 return external_two_byte_string_class_; |
| 142 } |
| 143 void set_external_two_byte_string_class(const Class& value) { |
| 144 external_two_byte_string_class_ = value.raw(); |
| 145 } |
| 146 |
| 147 RawClass* external_four_byte_string_class() const { |
| 148 return external_four_byte_string_class_; |
| 149 } |
| 150 void set_external_four_byte_string_class(const Class& value) { |
| 151 external_four_byte_string_class_ = value.raw(); |
| 152 } |
| 153 |
| 130 RawType* bool_interface() const { return bool_interface_; } | 154 RawType* bool_interface() const { return bool_interface_; } |
| 131 void set_bool_interface(const Type& value) { bool_interface_ = value.raw(); } | 155 void set_bool_interface(const Type& value) { bool_interface_ = value.raw(); } |
| 132 | 156 |
| 133 RawClass* bool_class() const { return bool_class_; } | 157 RawClass* bool_class() const { return bool_class_; } |
| 134 void set_bool_class(const Class& value) { bool_class_ = value.raw(); } | 158 void set_bool_class(const Class& value) { bool_class_ = value.raw(); } |
| 135 | 159 |
| 136 RawType* list_interface() const { return list_interface_; } | 160 RawType* list_interface() const { return list_interface_; } |
| 137 void set_list_interface(const Type& value) { | 161 void set_list_interface(const Type& value) { |
| 138 list_interface_ = value.raw(); | 162 list_interface_ = value.raw(); |
| 139 } | 163 } |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 RawType* int_interface_; | 289 RawType* int_interface_; |
| 266 RawClass* smi_class_; | 290 RawClass* smi_class_; |
| 267 RawClass* mint_class_; | 291 RawClass* mint_class_; |
| 268 RawClass* bigint_class_; | 292 RawClass* bigint_class_; |
| 269 RawType* double_interface_; | 293 RawType* double_interface_; |
| 270 RawClass* double_class_; | 294 RawClass* double_class_; |
| 271 RawType* string_interface_; | 295 RawType* string_interface_; |
| 272 RawClass* one_byte_string_class_; | 296 RawClass* one_byte_string_class_; |
| 273 RawClass* two_byte_string_class_; | 297 RawClass* two_byte_string_class_; |
| 274 RawClass* four_byte_string_class_; | 298 RawClass* four_byte_string_class_; |
| 299 RawClass* external_one_byte_string_class_; |
| 300 RawClass* external_two_byte_string_class_; |
| 301 RawClass* external_four_byte_string_class_; |
| 275 RawType* bool_interface_; | 302 RawType* bool_interface_; |
| 276 RawClass* bool_class_; | 303 RawClass* bool_class_; |
| 277 RawType* list_interface_; | 304 RawType* list_interface_; |
| 278 RawClass* array_class_; | 305 RawClass* array_class_; |
| 279 RawClass* immutable_array_class_; | 306 RawClass* immutable_array_class_; |
| 280 RawClass* byte_buffer_class_; | 307 RawClass* byte_buffer_class_; |
| 281 RawClass* unhandled_exception_class_; | 308 RawClass* unhandled_exception_class_; |
| 282 RawClass* stacktrace_class_; | 309 RawClass* stacktrace_class_; |
| 283 RawClass* jsregexp_class_; | 310 RawClass* jsregexp_class_; |
| 284 RawBool* true_value_; | 311 RawBool* true_value_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 296 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); } | 323 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); } |
| 297 | 324 |
| 298 friend class SnapshotReader; | 325 friend class SnapshotReader; |
| 299 | 326 |
| 300 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 327 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 301 }; | 328 }; |
| 302 | 329 |
| 303 } // namespace dart | 330 } // namespace dart |
| 304 | 331 |
| 305 #endif // VM_OBJECT_STORE_H_ | 332 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |