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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 return OFFSET_OF(ObjectStore, library_load_error_table_); | 422 return OFFSET_OF(ObjectStore, library_load_error_table_); |
423 } | 423 } |
424 | 424 |
425 RawArray* compile_time_constants() const { | 425 RawArray* compile_time_constants() const { |
426 return compile_time_constants_; | 426 return compile_time_constants_; |
427 } | 427 } |
428 void set_compile_time_constants(const Array& value) { | 428 void set_compile_time_constants(const Array& value) { |
429 compile_time_constants_ = value.raw(); | 429 compile_time_constants_ = value.raw(); |
430 } | 430 } |
431 | 431 |
| 432 RawGrowableObjectArray* token_objects() const { |
| 433 return token_objects_; |
| 434 } |
| 435 void set_token_objects(const GrowableObjectArray& value) { |
| 436 token_objects_ = value.raw(); |
| 437 } |
| 438 |
| 439 RawArray* token_objects_map() const { |
| 440 return token_objects_map_; |
| 441 } |
| 442 void set_token_objects_map(const Array& value) { |
| 443 token_objects_map_ = value.raw(); |
| 444 } |
| 445 |
432 RawGrowableObjectArray* megamorphic_cache_table() const { | 446 RawGrowableObjectArray* megamorphic_cache_table() const { |
433 return megamorphic_cache_table_; | 447 return megamorphic_cache_table_; |
434 } | 448 } |
435 void set_megamorphic_cache_table(const GrowableObjectArray& value) { | 449 void set_megamorphic_cache_table(const GrowableObjectArray& value) { |
436 megamorphic_cache_table_ = value.raw(); | 450 megamorphic_cache_table_ = value.raw(); |
437 } | 451 } |
438 RawFunction* megamorphic_miss_function() const { | 452 RawFunction* megamorphic_miss_function() const { |
439 return megamorphic_miss_function_; | 453 return megamorphic_miss_function_; |
440 } | 454 } |
441 void SetMegamorphicMissHandler(const Code& code, const Function& func) { | 455 void SetMegamorphicMissHandler(const Code& code, const Function& func) { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 RawUnhandledException* preallocated_unhandled_exception_; | 543 RawUnhandledException* preallocated_unhandled_exception_; |
530 RawStacktrace* preallocated_stack_trace_; | 544 RawStacktrace* preallocated_stack_trace_; |
531 RawFunction* lookup_port_handler_; | 545 RawFunction* lookup_port_handler_; |
532 RawTypedData* empty_uint32_array_; | 546 RawTypedData* empty_uint32_array_; |
533 RawFunction* handle_message_function_; | 547 RawFunction* handle_message_function_; |
534 RawArray* library_load_error_table_; | 548 RawArray* library_load_error_table_; |
535 RawArray* compile_time_constants_; | 549 RawArray* compile_time_constants_; |
536 RawObject** to_snapshot() { | 550 RawObject** to_snapshot() { |
537 return reinterpret_cast<RawObject**>(&compile_time_constants_); | 551 return reinterpret_cast<RawObject**>(&compile_time_constants_); |
538 } | 552 } |
| 553 RawGrowableObjectArray* token_objects_; |
| 554 RawArray* token_objects_map_; |
539 RawGrowableObjectArray* megamorphic_cache_table_; | 555 RawGrowableObjectArray* megamorphic_cache_table_; |
540 RawCode* megamorphic_miss_code_; | 556 RawCode* megamorphic_miss_code_; |
541 RawFunction* megamorphic_miss_function_; | 557 RawFunction* megamorphic_miss_function_; |
542 RawObject** to() { | 558 RawObject** to() { |
543 return reinterpret_cast<RawObject**>(&megamorphic_miss_function_); | 559 return reinterpret_cast<RawObject**>(&megamorphic_miss_function_); |
544 } | 560 } |
545 | 561 |
546 friend class FullSnapshotWriter; | 562 friend class FullSnapshotWriter; |
547 friend class SnapshotReader; | 563 friend class SnapshotReader; |
548 friend class VmIsolateSnapshotReader; | 564 friend class VmIsolateSnapshotReader; |
549 | 565 |
550 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 566 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
551 }; | 567 }; |
552 | 568 |
553 } // namespace dart | 569 } // namespace dart |
554 | 570 |
555 #endif // VM_OBJECT_STORE_H_ | 571 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |