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