| 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 } | 436 } |
| 437 void set_builtin_library(const Library& value) { | 437 void set_builtin_library(const Library& value) { |
| 438 builtin_library_ = value.raw(); | 438 builtin_library_ = value.raw(); |
| 439 } | 439 } |
| 440 | 440 |
| 441 RawLibrary* root_library() const { return root_library_; } | 441 RawLibrary* root_library() const { return root_library_; } |
| 442 void set_root_library(const Library& value) { | 442 void set_root_library(const Library& value) { |
| 443 root_library_ = value.raw(); | 443 root_library_ = value.raw(); |
| 444 } | 444 } |
| 445 | 445 |
| 446 RawArray* import_map() const { return import_map_; } |
| 447 void set_import_map(const Array& value) { |
| 448 import_map_ = value.raw(); |
| 449 } |
| 450 |
| 446 // Returns head of list of registered libraries. | 451 // Returns head of list of registered libraries. |
| 447 RawLibrary* registered_libraries() const { return registered_libraries_; } | 452 RawLibrary* registered_libraries() const { return registered_libraries_; } |
| 448 void set_registered_libraries(const Library& value) { | 453 void set_registered_libraries(const Library& value) { |
| 449 registered_libraries_ = value.raw(); | 454 registered_libraries_ = value.raw(); |
| 450 } | 455 } |
| 451 | 456 |
| 452 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } | 457 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } |
| 453 void set_pending_classes(const GrowableObjectArray& value) { | 458 void set_pending_classes(const GrowableObjectArray& value) { |
| 454 ASSERT(!value.IsNull()); | 459 ASSERT(!value.IsNull()); |
| 455 pending_classes_ = value.raw(); | 460 pending_classes_ = value.raw(); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 RawArray* symbol_table_; | 571 RawArray* symbol_table_; |
| 567 RawArray* canonical_type_arguments_; | 572 RawArray* canonical_type_arguments_; |
| 568 RawLibrary* core_library_; | 573 RawLibrary* core_library_; |
| 569 RawLibrary* core_impl_library_; | 574 RawLibrary* core_impl_library_; |
| 570 RawLibrary* math_library_; | 575 RawLibrary* math_library_; |
| 571 RawLibrary* isolate_library_; | 576 RawLibrary* isolate_library_; |
| 572 RawLibrary* mirrors_library_; | 577 RawLibrary* mirrors_library_; |
| 573 RawLibrary* native_wrappers_library_; | 578 RawLibrary* native_wrappers_library_; |
| 574 RawLibrary* builtin_library_; | 579 RawLibrary* builtin_library_; |
| 575 RawLibrary* root_library_; | 580 RawLibrary* root_library_; |
| 581 RawArray* import_map_; |
| 576 RawLibrary* registered_libraries_; | 582 RawLibrary* registered_libraries_; |
| 577 RawGrowableObjectArray* pending_classes_; | 583 RawGrowableObjectArray* pending_classes_; |
| 578 RawError* sticky_error_; | 584 RawError* sticky_error_; |
| 579 RawContext* empty_context_; | 585 RawContext* empty_context_; |
| 580 RawInstance* stack_overflow_; | 586 RawInstance* stack_overflow_; |
| 581 RawInstance* out_of_memory_; | 587 RawInstance* out_of_memory_; |
| 582 RawArray* keyword_symbols_; | 588 RawArray* keyword_symbols_; |
| 583 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 589 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 584 | 590 |
| 585 friend class SnapshotReader; | 591 friend class SnapshotReader; |
| 586 | 592 |
| 587 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 593 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 588 }; | 594 }; |
| 589 | 595 |
| 590 } // namespace dart | 596 } // namespace dart |
| 591 | 597 |
| 592 #endif // VM_OBJECT_STORE_H_ | 598 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |