| 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 RawLibrary* root_library() const { return root_library_; } | 395 RawLibrary* root_library() const { return root_library_; } |
| 396 void set_root_library(const Library& value) { | 396 void set_root_library(const Library& value) { |
| 397 root_library_ = value.raw(); | 397 root_library_ = value.raw(); |
| 398 } | 398 } |
| 399 | 399 |
| 400 RawGrowableObjectArray* libraries() const { return libraries_; } | 400 RawGrowableObjectArray* libraries() const { return libraries_; } |
| 401 void set_libraries(const GrowableObjectArray& value) { | 401 void set_libraries(const GrowableObjectArray& value) { |
| 402 libraries_ = value.raw(); | 402 libraries_ = value.raw(); |
| 403 } | 403 } |
| 404 | 404 |
| 405 RawArray* import_map() const { return import_map_; } | |
| 406 void set_import_map(const Array& value) { | |
| 407 import_map_ = value.raw(); | |
| 408 } | |
| 409 | |
| 410 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } | 405 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } |
| 411 void set_pending_classes(const GrowableObjectArray& value) { | 406 void set_pending_classes(const GrowableObjectArray& value) { |
| 412 ASSERT(!value.IsNull()); | 407 ASSERT(!value.IsNull()); |
| 413 pending_classes_ = value.raw(); | 408 pending_classes_ = value.raw(); |
| 414 } | 409 } |
| 415 | 410 |
| 416 RawError* sticky_error() const { return sticky_error_; } | 411 RawError* sticky_error() const { return sticky_error_; } |
| 417 void set_sticky_error(const Error& value) { | 412 void set_sticky_error(const Error& value) { |
| 418 ASSERT(!value.IsNull()); | 413 ASSERT(!value.IsNull()); |
| 419 sticky_error_ = value.raw(); | 414 sticky_error_ = value.raw(); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 RawArray* canonical_type_arguments_; | 515 RawArray* canonical_type_arguments_; |
| 521 RawLibrary* core_library_; | 516 RawLibrary* core_library_; |
| 522 RawLibrary* core_impl_library_; | 517 RawLibrary* core_impl_library_; |
| 523 RawLibrary* math_library_; | 518 RawLibrary* math_library_; |
| 524 RawLibrary* isolate_library_; | 519 RawLibrary* isolate_library_; |
| 525 RawLibrary* mirrors_library_; | 520 RawLibrary* mirrors_library_; |
| 526 RawLibrary* native_wrappers_library_; | 521 RawLibrary* native_wrappers_library_; |
| 527 RawLibrary* builtin_library_; | 522 RawLibrary* builtin_library_; |
| 528 RawLibrary* root_library_; | 523 RawLibrary* root_library_; |
| 529 RawGrowableObjectArray* libraries_; | 524 RawGrowableObjectArray* libraries_; |
| 530 RawArray* import_map_; | |
| 531 RawGrowableObjectArray* pending_classes_; | 525 RawGrowableObjectArray* pending_classes_; |
| 532 RawError* sticky_error_; | 526 RawError* sticky_error_; |
| 533 RawContext* empty_context_; | 527 RawContext* empty_context_; |
| 534 RawInstance* stack_overflow_; | 528 RawInstance* stack_overflow_; |
| 535 RawInstance* out_of_memory_; | 529 RawInstance* out_of_memory_; |
| 536 RawArray* keyword_symbols_; | 530 RawArray* keyword_symbols_; |
| 537 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 531 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 538 | 532 |
| 539 friend class SnapshotReader; | 533 friend class SnapshotReader; |
| 540 | 534 |
| 541 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 535 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 542 }; | 536 }; |
| 543 | 537 |
| 544 } // namespace dart | 538 } // namespace dart |
| 545 | 539 |
| 546 #endif // VM_OBJECT_STORE_H_ | 540 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |