| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 pending_classes_ = value.raw(); | 428 pending_classes_ = value.raw(); |
| 429 } | 429 } |
| 430 | 430 |
| 431 RawError* sticky_error() const { return sticky_error_; } | 431 RawError* sticky_error() const { return sticky_error_; } |
| 432 void set_sticky_error(const Error& value) { | 432 void set_sticky_error(const Error& value) { |
| 433 ASSERT(!value.IsNull()); | 433 ASSERT(!value.IsNull()); |
| 434 sticky_error_ = value.raw(); | 434 sticky_error_ = value.raw(); |
| 435 } | 435 } |
| 436 void clear_sticky_error() { sticky_error_ = Error::null(); } | 436 void clear_sticky_error() { sticky_error_ = Error::null(); } |
| 437 | 437 |
| 438 RawString* unhandled_exception_handler() const { |
| 439 return unhandled_exception_handler_; |
| 440 } |
| 441 void set_unhandled_exception_handler(const String& value) { |
| 442 unhandled_exception_handler_ = value.raw(); |
| 443 } |
| 444 |
| 438 RawBool* true_value() const { return true_value_; } | 445 RawBool* true_value() const { return true_value_; } |
| 439 void set_true_value(const Bool& value) { true_value_ = value.raw(); } | 446 void set_true_value(const Bool& value) { true_value_ = value.raw(); } |
| 440 | 447 |
| 441 RawBool* false_value() const { return false_value_; } | 448 RawBool* false_value() const { return false_value_; } |
| 442 void set_false_value(const Bool& value) { false_value_ = value.raw(); } | 449 void set_false_value(const Bool& value) { false_value_ = value.raw(); } |
| 443 | 450 |
| 444 RawContext* empty_context() const { return empty_context_; } | 451 RawContext* empty_context() const { return empty_context_; } |
| 445 void set_empty_context(const Context& value) { | 452 void set_empty_context(const Context& value) { |
| 446 empty_context_ = value.raw(); | 453 empty_context_ = value.raw(); |
| 447 } | 454 } |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 RawLibrary* math_library_; | 548 RawLibrary* math_library_; |
| 542 RawLibrary* isolate_library_; | 549 RawLibrary* isolate_library_; |
| 543 RawLibrary* mirrors_library_; | 550 RawLibrary* mirrors_library_; |
| 544 RawLibrary* scalarlist_library_; | 551 RawLibrary* scalarlist_library_; |
| 545 RawLibrary* native_wrappers_library_; | 552 RawLibrary* native_wrappers_library_; |
| 546 RawLibrary* builtin_library_; | 553 RawLibrary* builtin_library_; |
| 547 RawLibrary* root_library_; | 554 RawLibrary* root_library_; |
| 548 RawGrowableObjectArray* libraries_; | 555 RawGrowableObjectArray* libraries_; |
| 549 RawGrowableObjectArray* pending_classes_; | 556 RawGrowableObjectArray* pending_classes_; |
| 550 RawError* sticky_error_; | 557 RawError* sticky_error_; |
| 558 RawString* unhandled_exception_handler_; |
| 551 RawContext* empty_context_; | 559 RawContext* empty_context_; |
| 552 RawInstance* stack_overflow_; | 560 RawInstance* stack_overflow_; |
| 553 RawInstance* out_of_memory_; | 561 RawInstance* out_of_memory_; |
| 554 RawArray* keyword_symbols_; | 562 RawArray* keyword_symbols_; |
| 555 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 563 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } |
| 556 | 564 |
| 557 friend class SnapshotReader; | 565 friend class SnapshotReader; |
| 558 | 566 |
| 559 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 567 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 560 }; | 568 }; |
| 561 | 569 |
| 562 } // namespace dart | 570 } // namespace dart |
| 563 | 571 |
| 564 #endif // VM_OBJECT_STORE_H_ | 572 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |