| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 return resume_capabilities_; | 342 return resume_capabilities_; |
| 343 } | 343 } |
| 344 | 344 |
| 345 RawError* sticky_error() const { return sticky_error_; } | 345 RawError* sticky_error() const { return sticky_error_; } |
| 346 void set_sticky_error(const Error& value) { | 346 void set_sticky_error(const Error& value) { |
| 347 ASSERT(!value.IsNull()); | 347 ASSERT(!value.IsNull()); |
| 348 sticky_error_ = value.raw(); | 348 sticky_error_ = value.raw(); |
| 349 } | 349 } |
| 350 void clear_sticky_error() { sticky_error_ = Error::null(); } | 350 void clear_sticky_error() { sticky_error_ = Error::null(); } |
| 351 | 351 |
| 352 RawString* unhandled_exception_handler() const { | |
| 353 return unhandled_exception_handler_; | |
| 354 } | |
| 355 void set_unhandled_exception_handler(const String& value) { | |
| 356 unhandled_exception_handler_ = value.raw(); | |
| 357 } | |
| 358 | |
| 359 RawContext* empty_context() const { return empty_context_; } | 352 RawContext* empty_context() const { return empty_context_; } |
| 360 void set_empty_context(const Context& value) { | 353 void set_empty_context(const Context& value) { |
| 361 empty_context_ = value.raw(); | 354 empty_context_ = value.raw(); |
| 362 } | 355 } |
| 363 | 356 |
| 364 RawInstance* stack_overflow() const { return stack_overflow_; } | 357 RawInstance* stack_overflow() const { return stack_overflow_; } |
| 365 void set_stack_overflow(const Instance& value) { | 358 void set_stack_overflow(const Instance& value) { |
| 366 stack_overflow_ = value.raw(); | 359 stack_overflow_ = value.raw(); |
| 367 } | 360 } |
| 368 | 361 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 RawLibrary* native_wrappers_library_; | 482 RawLibrary* native_wrappers_library_; |
| 490 RawLibrary* root_library_; | 483 RawLibrary* root_library_; |
| 491 RawLibrary* typed_data_library_; | 484 RawLibrary* typed_data_library_; |
| 492 RawLibrary* profiler_library_; | 485 RawLibrary* profiler_library_; |
| 493 RawGrowableObjectArray* libraries_; | 486 RawGrowableObjectArray* libraries_; |
| 494 RawGrowableObjectArray* pending_classes_; | 487 RawGrowableObjectArray* pending_classes_; |
| 495 RawGrowableObjectArray* pending_functions_; | 488 RawGrowableObjectArray* pending_functions_; |
| 496 RawGrowableObjectArray* pending_deferred_loads_; | 489 RawGrowableObjectArray* pending_deferred_loads_; |
| 497 RawGrowableObjectArray* resume_capabilities_; | 490 RawGrowableObjectArray* resume_capabilities_; |
| 498 RawError* sticky_error_; | 491 RawError* sticky_error_; |
| 499 RawString* unhandled_exception_handler_; | |
| 500 RawContext* empty_context_; | 492 RawContext* empty_context_; |
| 501 RawInstance* stack_overflow_; | 493 RawInstance* stack_overflow_; |
| 502 RawInstance* out_of_memory_; | 494 RawInstance* out_of_memory_; |
| 503 RawUnhandledException* preallocated_unhandled_exception_; | 495 RawUnhandledException* preallocated_unhandled_exception_; |
| 504 RawStacktrace* preallocated_stack_trace_; | 496 RawStacktrace* preallocated_stack_trace_; |
| 505 RawFunction* lookup_port_handler_; | 497 RawFunction* lookup_port_handler_; |
| 506 RawTypedData* empty_uint32_array_; | 498 RawTypedData* empty_uint32_array_; |
| 507 RawFunction* handle_message_function_; | 499 RawFunction* handle_message_function_; |
| 508 RawArray* library_load_error_table_; | 500 RawArray* library_load_error_table_; |
| 509 RawObject** to() { | 501 RawObject** to() { |
| 510 return reinterpret_cast<RawObject**>(&library_load_error_table_); | 502 return reinterpret_cast<RawObject**>(&library_load_error_table_); |
| 511 } | 503 } |
| 512 | 504 |
| 513 friend class SnapshotReader; | 505 friend class SnapshotReader; |
| 514 | 506 |
| 515 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 507 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 516 }; | 508 }; |
| 517 | 509 |
| 518 } // namespace dart | 510 } // namespace dart |
| 519 | 511 |
| 520 #endif // VM_OBJECT_STORE_H_ | 512 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |