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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
358 } | 358 } |
359 | 359 |
360 RawGrowableObjectArray* exit_listeners() const { | 360 RawGrowableObjectArray* exit_listeners() const { |
361 return exit_listeners_; | 361 return exit_listeners_; |
362 } | 362 } |
363 | 363 |
364 RawGrowableObjectArray* error_listeners() const { | 364 RawGrowableObjectArray* error_listeners() const { |
365 return error_listeners_; | 365 return error_listeners_; |
366 } | 366 } |
367 | 367 |
368 // This sticky_error is used to preserve Thread::sticky_error_ after the | |
369 // mutator thread has been unscheduled. | |
370 RawError* sticky_error() const { return sticky_error_; } | |
371 void SetStickyErrorFromThread(const Thread* value); | |
Ivan Posva
2016/03/09 08:27:18
Now we are putting functionality into the ObjectSt
| |
372 void clear_sticky_error() { sticky_error_ = Error::null(); } | |
373 | |
368 RawContext* empty_context() const { return empty_context_; } | 374 RawContext* empty_context() const { return empty_context_; } |
369 void set_empty_context(const Context& value) { | 375 void set_empty_context(const Context& value) { |
370 empty_context_ = value.raw(); | 376 empty_context_ = value.raw(); |
371 } | 377 } |
372 | 378 |
373 RawInstance* stack_overflow() const { return stack_overflow_; } | 379 RawInstance* stack_overflow() const { return stack_overflow_; } |
374 void set_stack_overflow(const Instance& value) { | 380 void set_stack_overflow(const Instance& value) { |
375 stack_overflow_ = value.raw(); | 381 stack_overflow_ = value.raw(); |
376 } | 382 } |
377 | 383 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
547 RawLibrary* root_library_; | 553 RawLibrary* root_library_; |
548 RawLibrary* typed_data_library_; | 554 RawLibrary* typed_data_library_; |
549 RawLibrary* vmservice_library_; | 555 RawLibrary* vmservice_library_; |
550 RawGrowableObjectArray* libraries_; | 556 RawGrowableObjectArray* libraries_; |
551 RawGrowableObjectArray* closure_functions_; | 557 RawGrowableObjectArray* closure_functions_; |
552 RawGrowableObjectArray* pending_classes_; | 558 RawGrowableObjectArray* pending_classes_; |
553 RawGrowableObjectArray* pending_deferred_loads_; | 559 RawGrowableObjectArray* pending_deferred_loads_; |
554 RawGrowableObjectArray* resume_capabilities_; | 560 RawGrowableObjectArray* resume_capabilities_; |
555 RawGrowableObjectArray* exit_listeners_; | 561 RawGrowableObjectArray* exit_listeners_; |
556 RawGrowableObjectArray* error_listeners_; | 562 RawGrowableObjectArray* error_listeners_; |
563 RawError* sticky_error_; | |
557 RawContext* empty_context_; | 564 RawContext* empty_context_; |
558 RawInstance* stack_overflow_; | 565 RawInstance* stack_overflow_; |
559 RawInstance* out_of_memory_; | 566 RawInstance* out_of_memory_; |
560 RawUnhandledException* preallocated_unhandled_exception_; | 567 RawUnhandledException* preallocated_unhandled_exception_; |
561 RawStacktrace* preallocated_stack_trace_; | 568 RawStacktrace* preallocated_stack_trace_; |
562 RawFunction* lookup_port_handler_; | 569 RawFunction* lookup_port_handler_; |
563 RawTypedData* empty_uint32_array_; | 570 RawTypedData* empty_uint32_array_; |
564 RawFunction* handle_message_function_; | 571 RawFunction* handle_message_function_; |
565 RawArray* library_load_error_table_; | 572 RawArray* library_load_error_table_; |
566 RawArray* compile_time_constants_; | 573 RawArray* compile_time_constants_; |
(...skipping 13 matching lines...) Expand all Loading... | |
580 friend class FullSnapshotWriter; | 587 friend class FullSnapshotWriter; |
581 friend class SnapshotReader; | 588 friend class SnapshotReader; |
582 friend class VmIsolateSnapshotReader; | 589 friend class VmIsolateSnapshotReader; |
583 | 590 |
584 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 591 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
585 }; | 592 }; |
586 | 593 |
587 } // namespace dart | 594 } // namespace dart |
588 | 595 |
589 #endif // VM_OBJECT_STORE_H_ | 596 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |