| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } | 347 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } |
| 348 void set_pending_classes(const GrowableObjectArray& value) { | 348 void set_pending_classes(const GrowableObjectArray& value) { |
| 349 ASSERT(!value.IsNull()); | 349 ASSERT(!value.IsNull()); |
| 350 pending_classes_ = value.raw(); | 350 pending_classes_ = value.raw(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 RawGrowableObjectArray* pending_functions() const { | 353 RawGrowableObjectArray* pending_functions() const { |
| 354 return pending_functions_; | 354 return pending_functions_; |
| 355 } | 355 } |
| 356 | 356 |
| 357 RawGrowableObjectArray* pending_deferred_loads() const { |
| 358 return pending_deferred_loads_; |
| 359 } |
| 360 void clear_pending_deferred_loads() { |
| 361 pending_deferred_loads_ = GrowableObjectArray::New(); |
| 362 } |
| 363 |
| 357 RawGrowableObjectArray* resume_capabilities() const { | 364 RawGrowableObjectArray* resume_capabilities() const { |
| 358 return resume_capabilities_; | 365 return resume_capabilities_; |
| 359 } | 366 } |
| 360 | 367 |
| 361 RawError* sticky_error() const { return sticky_error_; } | 368 RawError* sticky_error() const { return sticky_error_; } |
| 362 void set_sticky_error(const Error& value) { | 369 void set_sticky_error(const Error& value) { |
| 363 ASSERT(!value.IsNull()); | 370 ASSERT(!value.IsNull()); |
| 364 sticky_error_ = value.raw(); | 371 sticky_error_ = value.raw(); |
| 365 } | 372 } |
| 366 void clear_sticky_error() { sticky_error_ = Error::null(); } | 373 void clear_sticky_error() { sticky_error_ = Error::null(); } |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 RawLibrary* isolate_library_; | 504 RawLibrary* isolate_library_; |
| 498 RawLibrary* math_library_; | 505 RawLibrary* math_library_; |
| 499 RawLibrary* mirrors_library_; | 506 RawLibrary* mirrors_library_; |
| 500 RawLibrary* native_wrappers_library_; | 507 RawLibrary* native_wrappers_library_; |
| 501 RawLibrary* root_library_; | 508 RawLibrary* root_library_; |
| 502 RawLibrary* typed_data_library_; | 509 RawLibrary* typed_data_library_; |
| 503 RawLibrary* profiler_library_; | 510 RawLibrary* profiler_library_; |
| 504 RawGrowableObjectArray* libraries_; | 511 RawGrowableObjectArray* libraries_; |
| 505 RawGrowableObjectArray* pending_classes_; | 512 RawGrowableObjectArray* pending_classes_; |
| 506 RawGrowableObjectArray* pending_functions_; | 513 RawGrowableObjectArray* pending_functions_; |
| 514 RawGrowableObjectArray* pending_deferred_loads_; |
| 507 RawGrowableObjectArray* resume_capabilities_; | 515 RawGrowableObjectArray* resume_capabilities_; |
| 508 RawError* sticky_error_; | 516 RawError* sticky_error_; |
| 509 RawString* unhandled_exception_handler_; | 517 RawString* unhandled_exception_handler_; |
| 510 RawContext* empty_context_; | 518 RawContext* empty_context_; |
| 511 RawInstance* stack_overflow_; | 519 RawInstance* stack_overflow_; |
| 512 RawInstance* out_of_memory_; | 520 RawInstance* out_of_memory_; |
| 513 RawUnhandledException* preallocated_unhandled_exception_; | 521 RawUnhandledException* preallocated_unhandled_exception_; |
| 514 RawStacktrace* preallocated_stack_trace_; | 522 RawStacktrace* preallocated_stack_trace_; |
| 515 RawFunction* lookup_port_handler_; | 523 RawFunction* lookup_port_handler_; |
| 516 RawFunction* handle_message_function_; | 524 RawFunction* handle_message_function_; |
| 517 RawUserTag* default_tag_; | 525 RawUserTag* default_tag_; |
| 518 RawObject** to() { | 526 RawObject** to() { |
| 519 return reinterpret_cast<RawObject**>(&handle_message_function_); | 527 return reinterpret_cast<RawObject**>(&handle_message_function_); |
| 520 } | 528 } |
| 521 | 529 |
| 522 friend class SnapshotReader; | 530 friend class SnapshotReader; |
| 523 | 531 |
| 524 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 532 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 525 }; | 533 }; |
| 526 | 534 |
| 527 } // namespace dart | 535 } // namespace dart |
| 528 | 536 |
| 529 #endif // VM_OBJECT_STORE_H_ | 537 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |