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