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