| 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_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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 RawType* function_type() const { return function_type_; } | 63 RawType* function_type() const { return function_type_; } |
| 64 void set_function_type(const Type& value) { | 64 void set_function_type(const Type& value) { |
| 65 function_type_ = value.raw(); | 65 function_type_ = value.raw(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 RawType* function_impl_type() const { return function_impl_type_; } | 68 RawType* function_impl_type() const { return function_impl_type_; } |
| 69 void set_function_impl_type(const Type& value) { | 69 void set_function_impl_type(const Type& value) { |
| 70 function_impl_type_ = value.raw(); | 70 function_impl_type_ = value.raw(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 RawClass* library_prefix_class() const { return library_prefix_class_; } | |
| 74 void set_library_prefix_class(const Class& value) { | |
| 75 library_prefix_class_ = value.raw(); | |
| 76 } | |
| 77 | |
| 78 RawClass* type_class() const { return type_class_; } | |
| 79 void set_type_class(const Class& value) { type_class_ = value.raw(); } | |
| 80 | |
| 81 RawClass* type_ref_class() const { return type_ref_class_; } | |
| 82 void set_type_ref_class(const Class& value) { type_ref_class_ = value.raw(); } | |
| 83 | |
| 84 RawClass* type_parameter_class() const { return type_parameter_class_; } | |
| 85 void set_type_parameter_class(const Class& value) { | |
| 86 type_parameter_class_ = value.raw(); | |
| 87 } | |
| 88 | |
| 89 RawClass* bounded_type_class() const { return bounded_type_class_; } | |
| 90 void set_bounded_type_class(const Class& value) { | |
| 91 bounded_type_class_ = value.raw(); | |
| 92 } | |
| 93 | |
| 94 RawClass* mixin_app_type_class() const { return mixin_app_type_class_; } | |
| 95 void set_mixin_app_type_class(const Class& value) { | |
| 96 mixin_app_type_class_ = value.raw(); | |
| 97 } | |
| 98 | |
| 99 RawType* number_type() const { return number_type_; } | 73 RawType* number_type() const { return number_type_; } |
| 100 void set_number_type(const Type& value) { | 74 void set_number_type(const Type& value) { |
| 101 number_type_ = value.raw(); | 75 number_type_ = value.raw(); |
| 102 } | 76 } |
| 103 | 77 |
| 104 RawType* int_type() const { return int_type_; } | 78 RawType* int_type() const { return int_type_; } |
| 105 void set_int_type(const Type& value) { | 79 void set_int_type(const Type& value) { |
| 106 int_type_ = value.raw(); | 80 int_type_ = value.raw(); |
| 107 } | 81 } |
| 108 | 82 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 RawClass* float64x2_class() const { | 198 RawClass* float64x2_class() const { |
| 225 return float64x2_class_; | 199 return float64x2_class_; |
| 226 } | 200 } |
| 227 void set_float64x2_class(const Class& value) { | 201 void set_float64x2_class(const Class& value) { |
| 228 float64x2_class_ = value.raw(); | 202 float64x2_class_ = value.raw(); |
| 229 } | 203 } |
| 230 | 204 |
| 231 RawType* float64x2_type() const { return float64x2_type_; } | 205 RawType* float64x2_type() const { return float64x2_type_; } |
| 232 void set_float64x2_type(const Type& value) { float64x2_type_ = value.raw(); } | 206 void set_float64x2_type(const Type& value) { float64x2_type_ = value.raw(); } |
| 233 | 207 |
| 234 RawArray* typed_data_classes() const { | |
| 235 return typed_data_classes_; | |
| 236 } | |
| 237 void set_typed_data_classes(const Array& value) { | |
| 238 typed_data_classes_ = value.raw(); | |
| 239 } | |
| 240 | |
| 241 RawClass* error_class() const { | 208 RawClass* error_class() const { |
| 242 return error_class_; | 209 return error_class_; |
| 243 } | 210 } |
| 244 void set_error_class(const Class& value) { | 211 void set_error_class(const Class& value) { |
| 245 error_class_ = value.raw(); | 212 error_class_ = value.raw(); |
| 246 } | 213 } |
| 247 static intptr_t error_class_offset() { | 214 static intptr_t error_class_offset() { |
| 248 return OFFSET_OF(ObjectStore, error_class_); | 215 return OFFSET_OF(ObjectStore, error_class_); |
| 249 } | 216 } |
| 250 | 217 |
| 251 RawClass* stacktrace_class() const { | |
| 252 return stacktrace_class_; | |
| 253 } | |
| 254 void set_stacktrace_class(const Class& value) { | |
| 255 stacktrace_class_ = value.raw(); | |
| 256 } | |
| 257 static intptr_t stacktrace_class_offset() { | |
| 258 return OFFSET_OF(ObjectStore, stacktrace_class_); | |
| 259 } | |
| 260 | |
| 261 RawClass* weak_property_class() const { | 218 RawClass* weak_property_class() const { |
| 262 return weak_property_class_; | 219 return weak_property_class_; |
| 263 } | 220 } |
| 264 void set_weak_property_class(const Class& value) { | 221 void set_weak_property_class(const Class& value) { |
| 265 weak_property_class_ = value.raw(); | 222 weak_property_class_ = value.raw(); |
| 266 } | 223 } |
| 267 | 224 |
| 268 RawArray* symbol_table() const { return symbol_table_; } | 225 RawArray* symbol_table() const { return symbol_table_; } |
| 269 void set_symbol_table(const Array& value) { symbol_table_ = value.raw(); } | 226 void set_symbol_table(const Array& value) { symbol_table_ = value.raw(); } |
| 270 | 227 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 private: | 412 private: |
| 456 ObjectStore(); | 413 ObjectStore(); |
| 457 | 414 |
| 458 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } | 415 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } |
| 459 RawClass* object_class_; | 416 RawClass* object_class_; |
| 460 RawType* object_type_; | 417 RawType* object_type_; |
| 461 RawClass* null_class_; | 418 RawClass* null_class_; |
| 462 RawType* null_type_; | 419 RawType* null_type_; |
| 463 RawType* function_type_; | 420 RawType* function_type_; |
| 464 RawType* function_impl_type_; | 421 RawType* function_impl_type_; |
| 465 RawClass* library_prefix_class_; | |
| 466 RawClass* type_class_; | |
| 467 RawClass* type_ref_class_; | |
| 468 RawClass* type_parameter_class_; | |
| 469 RawClass* bounded_type_class_; | |
| 470 RawClass* mixin_app_type_class_; | |
| 471 RawType* number_type_; | 422 RawType* number_type_; |
| 472 RawType* int_type_; | 423 RawType* int_type_; |
| 473 RawClass* integer_implementation_class_; | 424 RawClass* integer_implementation_class_; |
| 474 RawClass* smi_class_; | 425 RawClass* smi_class_; |
| 475 RawType* smi_type_; | 426 RawType* smi_type_; |
| 476 RawClass* mint_class_; | 427 RawClass* mint_class_; |
| 477 RawType* mint_type_; | 428 RawType* mint_type_; |
| 478 RawClass* bigint_class_; | 429 RawClass* bigint_class_; |
| 479 RawClass* double_class_; | 430 RawClass* double_class_; |
| 480 RawType* double_type_; | 431 RawType* double_type_; |
| 481 RawType* float32x4_type_; | 432 RawType* float32x4_type_; |
| 482 RawType* int32x4_type_; | 433 RawType* int32x4_type_; |
| 483 RawType* float64x2_type_; | 434 RawType* float64x2_type_; |
| 484 RawType* string_type_; | 435 RawType* string_type_; |
| 485 RawClass* one_byte_string_class_; | 436 RawClass* one_byte_string_class_; |
| 486 RawClass* two_byte_string_class_; | 437 RawClass* two_byte_string_class_; |
| 487 RawClass* external_one_byte_string_class_; | 438 RawClass* external_one_byte_string_class_; |
| 488 RawClass* external_two_byte_string_class_; | 439 RawClass* external_two_byte_string_class_; |
| 489 RawType* bool_type_; | 440 RawType* bool_type_; |
| 490 RawClass* bool_class_; | 441 RawClass* bool_class_; |
| 491 RawClass* array_class_; | 442 RawClass* array_class_; |
| 492 RawType* array_type_; | 443 RawType* array_type_; |
| 493 RawClass* immutable_array_class_; | 444 RawClass* immutable_array_class_; |
| 494 RawClass* growable_object_array_class_; | 445 RawClass* growable_object_array_class_; |
| 495 RawClass* linked_hash_map_class_; | 446 RawClass* linked_hash_map_class_; |
| 496 RawClass* float32x4_class_; | 447 RawClass* float32x4_class_; |
| 497 RawClass* int32x4_class_; | 448 RawClass* int32x4_class_; |
| 498 RawClass* float64x2_class_; | 449 RawClass* float64x2_class_; |
| 499 RawArray* typed_data_classes_; | |
| 500 RawClass* error_class_; | 450 RawClass* error_class_; |
| 501 RawClass* stacktrace_class_; | |
| 502 RawClass* weak_property_class_; | 451 RawClass* weak_property_class_; |
| 503 RawArray* symbol_table_; | 452 RawArray* symbol_table_; |
| 504 RawArray* canonical_type_arguments_; | 453 RawArray* canonical_type_arguments_; |
| 505 RawLibrary* async_library_; | 454 RawLibrary* async_library_; |
| 506 RawLibrary* builtin_library_; | 455 RawLibrary* builtin_library_; |
| 507 RawLibrary* core_library_; | 456 RawLibrary* core_library_; |
| 508 RawLibrary* collection_library_; | 457 RawLibrary* collection_library_; |
| 509 RawLibrary* convert_library_; | 458 RawLibrary* convert_library_; |
| 510 RawLibrary* internal_library_; | 459 RawLibrary* internal_library_; |
| 511 RawLibrary* isolate_library_; | 460 RawLibrary* isolate_library_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 536 } | 485 } |
| 537 | 486 |
| 538 friend class SnapshotReader; | 487 friend class SnapshotReader; |
| 539 | 488 |
| 540 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 489 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 541 }; | 490 }; |
| 542 | 491 |
| 543 } // namespace dart | 492 } // namespace dart |
| 544 | 493 |
| 545 #endif // VM_OBJECT_STORE_H_ | 494 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |