| 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 return OFFSET_OF(ObjectStore, library_load_error_table_); | 437 return OFFSET_OF(ObjectStore, library_load_error_table_); |
| 438 } | 438 } |
| 439 | 439 |
| 440 RawArray* compile_time_constants() const { | 440 RawArray* compile_time_constants() const { |
| 441 return compile_time_constants_; | 441 return compile_time_constants_; |
| 442 } | 442 } |
| 443 void set_compile_time_constants(const Array& value) { | 443 void set_compile_time_constants(const Array& value) { |
| 444 compile_time_constants_ = value.raw(); | 444 compile_time_constants_ = value.raw(); |
| 445 } | 445 } |
| 446 | 446 |
| 447 RawArray* unique_dynamic_targets() const { |
| 448 return unique_dynamic_targets_; |
| 449 } |
| 450 void set_unique_dynamic_targets(const Array& value) { |
| 451 unique_dynamic_targets_ = value.raw(); |
| 452 } |
| 453 |
| 447 RawGrowableObjectArray* token_objects() const { | 454 RawGrowableObjectArray* token_objects() const { |
| 448 return token_objects_; | 455 return token_objects_; |
| 449 } | 456 } |
| 450 void set_token_objects(const GrowableObjectArray& value) { | 457 void set_token_objects(const GrowableObjectArray& value) { |
| 451 token_objects_ = value.raw(); | 458 token_objects_ = value.raw(); |
| 452 } | 459 } |
| 453 | 460 |
| 454 RawArray* token_objects_map() const { | 461 RawArray* token_objects_map() const { |
| 455 return token_objects_map_; | 462 return token_objects_map_; |
| 456 } | 463 } |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 RawUnhandledException* preallocated_unhandled_exception_; | 570 RawUnhandledException* preallocated_unhandled_exception_; |
| 564 RawStacktrace* preallocated_stack_trace_; | 571 RawStacktrace* preallocated_stack_trace_; |
| 565 RawFunction* lookup_port_handler_; | 572 RawFunction* lookup_port_handler_; |
| 566 RawTypedData* empty_uint32_array_; | 573 RawTypedData* empty_uint32_array_; |
| 567 RawFunction* handle_message_function_; | 574 RawFunction* handle_message_function_; |
| 568 RawArray* library_load_error_table_; | 575 RawArray* library_load_error_table_; |
| 569 RawArray* compile_time_constants_; | 576 RawArray* compile_time_constants_; |
| 570 RawObject** to_snapshot() { | 577 RawObject** to_snapshot() { |
| 571 return reinterpret_cast<RawObject**>(&compile_time_constants_); | 578 return reinterpret_cast<RawObject**>(&compile_time_constants_); |
| 572 } | 579 } |
| 580 RawArray* unique_dynamic_targets_; |
| 573 RawGrowableObjectArray* token_objects_; | 581 RawGrowableObjectArray* token_objects_; |
| 574 RawArray* token_objects_map_; | 582 RawArray* token_objects_map_; |
| 575 RawGrowableObjectArray* megamorphic_cache_table_; | 583 RawGrowableObjectArray* megamorphic_cache_table_; |
| 576 RawCode* megamorphic_miss_code_; | 584 RawCode* megamorphic_miss_code_; |
| 577 RawFunction* megamorphic_miss_function_; | 585 RawFunction* megamorphic_miss_function_; |
| 578 RawObject** to() { | 586 RawObject** to() { |
| 579 return reinterpret_cast<RawObject**>(&megamorphic_miss_function_); | 587 return reinterpret_cast<RawObject**>(&megamorphic_miss_function_); |
| 580 } | 588 } |
| 581 | 589 |
| 582 friend class FullSnapshotWriter; | 590 friend class FullSnapshotWriter; |
| 583 friend class SnapshotReader; | 591 friend class SnapshotReader; |
| 584 friend class VmIsolateSnapshotReader; | 592 friend class VmIsolateSnapshotReader; |
| 585 | 593 |
| 586 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 594 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 587 }; | 595 }; |
| 588 | 596 |
| 589 } // namespace dart | 597 } // namespace dart |
| 590 | 598 |
| 591 #endif // VM_OBJECT_STORE_H_ | 599 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |