| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 } | 353 } |
| 354 void set_canonical_type_arguments(const Array& value) { | 354 void set_canonical_type_arguments(const Array& value) { |
| 355 canonical_type_arguments_ = value.raw(); | 355 canonical_type_arguments_ = value.raw(); |
| 356 } | 356 } |
| 357 | 357 |
| 358 RawLibrary* async_library() const { return async_library_; } | 358 RawLibrary* async_library() const { return async_library_; } |
| 359 void set_async_library(const Library& value) { | 359 void set_async_library(const Library& value) { |
| 360 async_library_ = value.raw(); | 360 async_library_ = value.raw(); |
| 361 } | 361 } |
| 362 | 362 |
| 363 RawLibrary* builtin_library() const { |
| 364 return builtin_library_; |
| 365 } |
| 366 void set_builtin_library(const Library& value) { |
| 367 builtin_library_ = value.raw(); |
| 368 } |
| 369 |
| 363 RawLibrary* core_library() const { return core_library_; } | 370 RawLibrary* core_library() const { return core_library_; } |
| 364 void set_core_library(const Library& value) { | 371 void set_core_library(const Library& value) { |
| 365 core_library_ = value.raw(); | 372 core_library_ = value.raw(); |
| 366 } | 373 } |
| 367 | 374 |
| 368 RawLibrary* core_impl_library() const { return core_impl_library_; } | 375 RawLibrary* core_impl_library() const { return core_impl_library_; } |
| 369 void set_core_impl_library(const Library& value) { | 376 void set_core_impl_library(const Library& value) { |
| 370 core_impl_library_ = value.raw(); | 377 core_impl_library_ = value.raw(); |
| 371 } | 378 } |
| 372 | 379 |
| 373 RawLibrary* collection_library() const { | 380 RawLibrary* collection_library() const { |
| 374 return collection_library_; | 381 return collection_library_; |
| 375 } | 382 } |
| 376 void set_collection_library(const Library& value) { | 383 void set_collection_library(const Library& value) { |
| 377 collection_library_ = value.raw(); | 384 collection_library_ = value.raw(); |
| 378 } | 385 } |
| 379 | 386 |
| 380 RawLibrary* collection_dev_library() const { | 387 RawLibrary* collection_dev_library() const { |
| 381 return collection_dev_library_; | 388 return collection_dev_library_; |
| 382 } | 389 } |
| 383 void set_collection_dev_library(const Library& value) { | 390 void set_collection_dev_library(const Library& value) { |
| 384 collection_dev_library_ = value.raw(); | 391 collection_dev_library_ = value.raw(); |
| 385 } | 392 } |
| 386 | 393 |
| 387 RawLibrary* math_library() const { | 394 RawLibrary* crypto_library() const { |
| 388 return math_library_; | 395 return crypto_library_; |
| 389 } | 396 } |
| 390 void set_math_library(const Library& value) { | 397 void set_crypto_library(const Library& value) { |
| 391 math_library_ = value.raw(); | 398 crypto_library_ = value.raw(); |
| 392 } | 399 } |
| 393 | 400 |
| 394 RawLibrary* isolate_library() const { | 401 RawLibrary* isolate_library() const { |
| 395 return isolate_library_; | 402 return isolate_library_; |
| 396 } | 403 } |
| 397 void set_isolate_library(const Library& value) { | 404 void set_isolate_library(const Library& value) { |
| 398 isolate_library_ = value.raw(); | 405 isolate_library_ = value.raw(); |
| 399 } | 406 } |
| 400 | 407 |
| 408 RawLibrary* json_library() const { |
| 409 return json_library_; |
| 410 } |
| 411 void set_json_library(const Library& value) { |
| 412 json_library_ = value.raw(); |
| 413 } |
| 414 |
| 415 RawLibrary* math_library() const { |
| 416 return math_library_; |
| 417 } |
| 418 void set_math_library(const Library& value) { |
| 419 math_library_ = value.raw(); |
| 420 } |
| 421 |
| 422 RawLibrary* mirrors_library() const { return mirrors_library_; } |
| 423 void set_mirrors_library(const Library& value) { |
| 424 mirrors_library_ = value.raw(); |
| 425 } |
| 426 |
| 401 RawLibrary* native_wrappers_library() const { | 427 RawLibrary* native_wrappers_library() const { |
| 402 return native_wrappers_library_; | 428 return native_wrappers_library_; |
| 403 } | 429 } |
| 404 void set_native_wrappers_library(const Library& value) { | 430 void set_native_wrappers_library(const Library& value) { |
| 405 native_wrappers_library_ = value.raw(); | 431 native_wrappers_library_ = value.raw(); |
| 406 } | 432 } |
| 407 | 433 |
| 408 RawLibrary* mirrors_library() const { return mirrors_library_; } | 434 RawLibrary* root_library() const { return root_library_; } |
| 409 void set_mirrors_library(const Library& value) { | 435 void set_root_library(const Library& value) { |
| 410 mirrors_library_ = value.raw(); | 436 root_library_ = value.raw(); |
| 411 } | 437 } |
| 412 | 438 |
| 413 RawLibrary* scalarlist_library() const { | 439 RawLibrary* scalarlist_library() const { |
| 414 return scalarlist_library_; | 440 return scalarlist_library_; |
| 415 } | 441 } |
| 416 void set_scalarlist_library(const Library& value) { | 442 void set_scalarlist_library(const Library& value) { |
| 417 scalarlist_library_ = value.raw(); | 443 scalarlist_library_ = value.raw(); |
| 418 } | 444 } |
| 419 | 445 |
| 420 RawLibrary* builtin_library() const { | 446 RawLibrary* uri_library() const { |
| 421 return builtin_library_; | 447 return uri_library_; |
| 422 } | 448 } |
| 423 void set_builtin_library(const Library& value) { | 449 void set_uri_library(const Library& value) { |
| 424 builtin_library_ = value.raw(); | 450 uri_library_ = value.raw(); |
| 425 } | 451 } |
| 426 | 452 |
| 427 RawLibrary* root_library() const { return root_library_; } | 453 RawLibrary* utf_library() const { |
| 428 void set_root_library(const Library& value) { | 454 return utf_library_; |
| 429 root_library_ = value.raw(); | 455 } |
| 456 void set_utf_library(const Library& value) { |
| 457 utf_library_ = value.raw(); |
| 430 } | 458 } |
| 431 | 459 |
| 432 RawGrowableObjectArray* libraries() const { return libraries_; } | 460 RawGrowableObjectArray* libraries() const { return libraries_; } |
| 433 void set_libraries(const GrowableObjectArray& value) { | 461 void set_libraries(const GrowableObjectArray& value) { |
| 434 libraries_ = value.raw(); | 462 libraries_ = value.raw(); |
| 435 } | 463 } |
| 436 | 464 |
| 437 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } | 465 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } |
| 438 void set_pending_classes(const GrowableObjectArray& value) { | 466 void set_pending_classes(const GrowableObjectArray& value) { |
| 439 ASSERT(!value.IsNull()); | 467 ASSERT(!value.IsNull()); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 RawClass* external_int64_array_class_; | 589 RawClass* external_int64_array_class_; |
| 562 RawClass* external_uint64_array_class_; | 590 RawClass* external_uint64_array_class_; |
| 563 RawClass* external_float32_array_class_; | 591 RawClass* external_float32_array_class_; |
| 564 RawClass* external_float64_array_class_; | 592 RawClass* external_float64_array_class_; |
| 565 RawClass* stacktrace_class_; | 593 RawClass* stacktrace_class_; |
| 566 RawClass* jsregexp_class_; | 594 RawClass* jsregexp_class_; |
| 567 RawClass* weak_property_class_; | 595 RawClass* weak_property_class_; |
| 568 RawArray* symbol_table_; | 596 RawArray* symbol_table_; |
| 569 RawArray* canonical_type_arguments_; | 597 RawArray* canonical_type_arguments_; |
| 570 RawLibrary* async_library_; | 598 RawLibrary* async_library_; |
| 599 RawLibrary* builtin_library_; |
| 571 RawLibrary* core_library_; | 600 RawLibrary* core_library_; |
| 572 RawLibrary* core_impl_library_; | 601 RawLibrary* core_impl_library_; |
| 573 RawLibrary* collection_library_; | 602 RawLibrary* collection_library_; |
| 574 RawLibrary* collection_dev_library_; | 603 RawLibrary* collection_dev_library_; |
| 604 RawLibrary* crypto_library_; |
| 605 RawLibrary* isolate_library_; |
| 606 RawLibrary* json_library_; |
| 575 RawLibrary* math_library_; | 607 RawLibrary* math_library_; |
| 576 RawLibrary* isolate_library_; | |
| 577 RawLibrary* mirrors_library_; | 608 RawLibrary* mirrors_library_; |
| 609 RawLibrary* native_wrappers_library_; |
| 610 RawLibrary* root_library_; |
| 578 RawLibrary* scalarlist_library_; | 611 RawLibrary* scalarlist_library_; |
| 579 RawLibrary* native_wrappers_library_; | 612 RawLibrary* uri_library_; |
| 580 RawLibrary* builtin_library_; | 613 RawLibrary* utf_library_; |
| 581 RawLibrary* root_library_; | |
| 582 RawGrowableObjectArray* libraries_; | 614 RawGrowableObjectArray* libraries_; |
| 583 RawGrowableObjectArray* pending_classes_; | 615 RawGrowableObjectArray* pending_classes_; |
| 584 RawError* sticky_error_; | 616 RawError* sticky_error_; |
| 585 RawString* unhandled_exception_handler_; | 617 RawString* unhandled_exception_handler_; |
| 586 RawContext* empty_context_; | 618 RawContext* empty_context_; |
| 587 RawInstance* stack_overflow_; | 619 RawInstance* stack_overflow_; |
| 588 RawInstance* out_of_memory_; | 620 RawInstance* out_of_memory_; |
| 589 RawArray* keyword_symbols_; | 621 RawArray* keyword_symbols_; |
| 590 RawFunction* receive_port_create_function_; | 622 RawFunction* receive_port_create_function_; |
| 591 RawFunction* lookup_receive_port_function_; | 623 RawFunction* lookup_receive_port_function_; |
| 592 RawFunction* handle_message_function_; | 624 RawFunction* handle_message_function_; |
| 593 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 625 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 594 | 626 |
| 595 friend class SnapshotReader; | 627 friend class SnapshotReader; |
| 596 | 628 |
| 597 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 629 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 598 }; | 630 }; |
| 599 | 631 |
| 600 } // namespace dart | 632 } // namespace dart |
| 601 | 633 |
| 602 #endif // VM_OBJECT_STORE_H_ | 634 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |