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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 RawLibrary* core_library() const { return core_library_; } | 398 RawLibrary* core_library() const { return core_library_; } |
399 void set_core_library(const Library& value) { | 399 void set_core_library(const Library& value) { |
400 core_library_ = value.raw(); | 400 core_library_ = value.raw(); |
401 } | 401 } |
402 | 402 |
403 RawLibrary* core_impl_library() const { return core_impl_library_; } | 403 RawLibrary* core_impl_library() const { return core_impl_library_; } |
404 void set_core_impl_library(const Library& value) { | 404 void set_core_impl_library(const Library& value) { |
405 core_impl_library_ = value.raw(); | 405 core_impl_library_ = value.raw(); |
406 } | 406 } |
407 | 407 |
| 408 RawLibrary* math_library() const { |
| 409 return math_library_; |
| 410 } |
| 411 void set_math_library(const Library& value) { |
| 412 math_library_ = value.raw(); |
| 413 } |
| 414 |
408 RawLibrary* isolate_library() const { | 415 RawLibrary* isolate_library() const { |
409 return isolate_library_; | 416 return isolate_library_; |
410 } | 417 } |
411 | |
412 void set_isolate_library(const Library& value) { | 418 void set_isolate_library(const Library& value) { |
413 isolate_library_ = value.raw(); | 419 isolate_library_ = value.raw(); |
414 } | 420 } |
415 | 421 |
416 RawLibrary* native_wrappers_library() const { | 422 RawLibrary* native_wrappers_library() const { |
417 return native_wrappers_library_; | 423 return native_wrappers_library_; |
418 } | 424 } |
419 void set_native_wrappers_library(const Library& value) { | 425 void set_native_wrappers_library(const Library& value) { |
420 native_wrappers_library_ = value.raw(); | 426 native_wrappers_library_ = value.raw(); |
421 } | 427 } |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 RawClass* external_float64_array_class_; | 560 RawClass* external_float64_array_class_; |
555 RawClass* stacktrace_class_; | 561 RawClass* stacktrace_class_; |
556 RawClass* jsregexp_class_; | 562 RawClass* jsregexp_class_; |
557 RawBool* true_value_; | 563 RawBool* true_value_; |
558 RawBool* false_value_; | 564 RawBool* false_value_; |
559 RawArray* empty_array_; | 565 RawArray* empty_array_; |
560 RawArray* symbol_table_; | 566 RawArray* symbol_table_; |
561 RawArray* canonical_type_arguments_; | 567 RawArray* canonical_type_arguments_; |
562 RawLibrary* core_library_; | 568 RawLibrary* core_library_; |
563 RawLibrary* core_impl_library_; | 569 RawLibrary* core_impl_library_; |
| 570 RawLibrary* math_library_; |
564 RawLibrary* isolate_library_; | 571 RawLibrary* isolate_library_; |
565 RawLibrary* mirrors_library_; | 572 RawLibrary* mirrors_library_; |
566 RawLibrary* native_wrappers_library_; | 573 RawLibrary* native_wrappers_library_; |
567 RawLibrary* builtin_library_; | 574 RawLibrary* builtin_library_; |
568 RawLibrary* root_library_; | 575 RawLibrary* root_library_; |
569 RawLibrary* registered_libraries_; | 576 RawLibrary* registered_libraries_; |
570 RawGrowableObjectArray* pending_classes_; | 577 RawGrowableObjectArray* pending_classes_; |
571 RawError* sticky_error_; | 578 RawError* sticky_error_; |
572 RawContext* empty_context_; | 579 RawContext* empty_context_; |
573 RawInstance* stack_overflow_; | 580 RawInstance* stack_overflow_; |
574 RawInstance* out_of_memory_; | 581 RawInstance* out_of_memory_; |
575 RawArray* keyword_symbols_; | 582 RawArray* keyword_symbols_; |
576 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 583 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
577 | 584 |
578 friend class SnapshotReader; | 585 friend class SnapshotReader; |
579 | 586 |
580 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 587 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
581 }; | 588 }; |
582 | 589 |
583 } // namespace dart | 590 } // namespace dart |
584 | 591 |
585 #endif // VM_OBJECT_STORE_H_ | 592 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |