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 RUNTIME_VM_OBJECT_STORE_H_ | 5 #ifndef RUNTIME_VM_OBJECT_STORE_H_ |
6 #define RUNTIME_VM_OBJECT_STORE_H_ | 6 #define RUNTIME_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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 out_of_memory_ = value.raw(); | 354 out_of_memory_ = value.raw(); |
355 } | 355 } |
356 | 356 |
357 RawUnhandledException* preallocated_unhandled_exception() const { | 357 RawUnhandledException* preallocated_unhandled_exception() const { |
358 return preallocated_unhandled_exception_; | 358 return preallocated_unhandled_exception_; |
359 } | 359 } |
360 void set_preallocated_unhandled_exception(const UnhandledException& value) { | 360 void set_preallocated_unhandled_exception(const UnhandledException& value) { |
361 preallocated_unhandled_exception_ = value.raw(); | 361 preallocated_unhandled_exception_ = value.raw(); |
362 } | 362 } |
363 | 363 |
364 RawStacktrace* preallocated_stack_trace() const { | 364 RawStackTrace* preallocated_stack_trace() const { |
365 return preallocated_stack_trace_; | 365 return preallocated_stack_trace_; |
366 } | 366 } |
367 void set_preallocated_stack_trace(const Stacktrace& value) { | 367 void set_preallocated_stack_trace(const StackTrace& value) { |
368 preallocated_stack_trace_ = value.raw(); | 368 preallocated_stack_trace_ = value.raw(); |
369 } | 369 } |
370 | 370 |
371 RawFunction* lookup_port_handler() const { return lookup_port_handler_; } | 371 RawFunction* lookup_port_handler() const { return lookup_port_handler_; } |
372 void set_lookup_port_handler(const Function& function) { | 372 void set_lookup_port_handler(const Function& function) { |
373 lookup_port_handler_ = function.raw(); | 373 lookup_port_handler_ = function.raw(); |
374 } | 374 } |
375 | 375 |
376 RawTypedData* empty_uint32_array() const { return empty_uint32_array_; } | 376 RawTypedData* empty_uint32_array() const { return empty_uint32_array_; } |
377 void set_empty_uint32_array(const TypedData& array) { | 377 void set_empty_uint32_array(const TypedData& array) { |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 V(RawGrowableObjectArray*, closure_functions_) \ | 526 V(RawGrowableObjectArray*, closure_functions_) \ |
527 V(RawGrowableObjectArray*, pending_classes_) \ | 527 V(RawGrowableObjectArray*, pending_classes_) \ |
528 V(RawGrowableObjectArray*, pending_deferred_loads_) \ | 528 V(RawGrowableObjectArray*, pending_deferred_loads_) \ |
529 V(RawGrowableObjectArray*, resume_capabilities_) \ | 529 V(RawGrowableObjectArray*, resume_capabilities_) \ |
530 V(RawGrowableObjectArray*, exit_listeners_) \ | 530 V(RawGrowableObjectArray*, exit_listeners_) \ |
531 V(RawGrowableObjectArray*, error_listeners_) \ | 531 V(RawGrowableObjectArray*, error_listeners_) \ |
532 V(RawContext*, empty_context_) \ | 532 V(RawContext*, empty_context_) \ |
533 V(RawInstance*, stack_overflow_) \ | 533 V(RawInstance*, stack_overflow_) \ |
534 V(RawInstance*, out_of_memory_) \ | 534 V(RawInstance*, out_of_memory_) \ |
535 V(RawUnhandledException*, preallocated_unhandled_exception_) \ | 535 V(RawUnhandledException*, preallocated_unhandled_exception_) \ |
536 V(RawStacktrace*, preallocated_stack_trace_) \ | 536 V(RawStackTrace*, preallocated_stack_trace_) \ |
537 V(RawFunction*, lookup_port_handler_) \ | 537 V(RawFunction*, lookup_port_handler_) \ |
538 V(RawTypedData*, empty_uint32_array_) \ | 538 V(RawTypedData*, empty_uint32_array_) \ |
539 V(RawFunction*, handle_message_function_) \ | 539 V(RawFunction*, handle_message_function_) \ |
540 V(RawFunction*, simple_instance_of_function_) \ | 540 V(RawFunction*, simple_instance_of_function_) \ |
541 V(RawFunction*, simple_instance_of_true_function_) \ | 541 V(RawFunction*, simple_instance_of_true_function_) \ |
542 V(RawFunction*, simple_instance_of_false_function_) \ | 542 V(RawFunction*, simple_instance_of_false_function_) \ |
543 V(RawArray*, library_load_error_table_) \ | 543 V(RawArray*, library_load_error_table_) \ |
544 V(RawArray*, unique_dynamic_targets_) \ | 544 V(RawArray*, unique_dynamic_targets_) \ |
545 V(RawGrowableObjectArray*, token_objects_) \ | 545 V(RawGrowableObjectArray*, token_objects_) \ |
546 V(RawArray*, token_objects_map_) \ | 546 V(RawArray*, token_objects_map_) \ |
(...skipping 28 matching lines...) Expand all Loading... |
575 | 575 |
576 friend class Serializer; | 576 friend class Serializer; |
577 friend class Deserializer; | 577 friend class Deserializer; |
578 | 578 |
579 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 579 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
580 }; | 580 }; |
581 | 581 |
582 } // namespace dart | 582 } // namespace dart |
583 | 583 |
584 #endif // RUNTIME_VM_OBJECT_STORE_H_ | 584 #endif // RUNTIME_VM_OBJECT_STORE_H_ |
OLD | NEW |