Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: runtime/vm/object_store.h

Issue 2774233003: Cleanups needed for async step-out (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 async_set_thread_stack_trace_ = func.raw(); 452 async_set_thread_stack_trace_ = func.raw();
453 ASSERT(async_set_thread_stack_trace_ != Object::null()); 453 ASSERT(async_set_thread_stack_trace_ != Object::null());
454 } 454 }
455 RawFunction* async_star_move_next_helper() const { 455 RawFunction* async_star_move_next_helper() const {
456 return async_star_move_next_helper_; 456 return async_star_move_next_helper_;
457 } 457 }
458 void set_async_star_move_next_helper(const Function& func) { 458 void set_async_star_move_next_helper(const Function& func) {
459 async_star_move_next_helper_ = func.raw(); 459 async_star_move_next_helper_ = func.raw();
460 ASSERT(async_star_move_next_helper_ != Object::null()); 460 ASSERT(async_star_move_next_helper_ != Object::null());
461 } 461 }
462 RawFunction* complete_on_async_return() const {
463 return complete_on_async_return_;
464 }
465 void set_complete_on_async_return(const Function& func) {
466 complete_on_async_return_ = func.raw();
467 ASSERT(complete_on_async_return_ != Object::null());
468 }
469 RawClass* async_star_stream_controller() const {
470 return async_star_stream_controller_;
471 }
472 void set_async_star_stream_controller(const Class& cls) {
473 async_star_stream_controller_ = cls.raw();
474 ASSERT(async_star_stream_controller_ != Object::null());
475 }
462 476
463 // Visit all object pointers. 477 // Visit all object pointers.
464 void VisitObjectPointers(ObjectPointerVisitor* visitor); 478 void VisitObjectPointers(ObjectPointerVisitor* visitor);
465 479
466 // Called to initialize objects required by the vm but which invoke 480 // Called to initialize objects required by the vm but which invoke
467 // dart code. If an error occurs the error object is returned otherwise 481 // dart code. If an error occurs the error object is returned otherwise
468 // a null object is returned. 482 // a null object is returned.
469 RawError* PreallocateObjects(); 483 RawError* PreallocateObjects();
470 484
471 void InitKnownObjects(); 485 void InitKnownObjects();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 V(RawStackTrace*, preallocated_stack_trace_) \ 571 V(RawStackTrace*, preallocated_stack_trace_) \
558 V(RawFunction*, lookup_port_handler_) \ 572 V(RawFunction*, lookup_port_handler_) \
559 V(RawTypedData*, empty_uint32_array_) \ 573 V(RawTypedData*, empty_uint32_array_) \
560 V(RawFunction*, handle_message_function_) \ 574 V(RawFunction*, handle_message_function_) \
561 V(RawFunction*, simple_instance_of_function_) \ 575 V(RawFunction*, simple_instance_of_function_) \
562 V(RawFunction*, simple_instance_of_true_function_) \ 576 V(RawFunction*, simple_instance_of_true_function_) \
563 V(RawFunction*, simple_instance_of_false_function_) \ 577 V(RawFunction*, simple_instance_of_false_function_) \
564 V(RawFunction*, async_clear_thread_stack_trace_) \ 578 V(RawFunction*, async_clear_thread_stack_trace_) \
565 V(RawFunction*, async_set_thread_stack_trace_) \ 579 V(RawFunction*, async_set_thread_stack_trace_) \
566 V(RawFunction*, async_star_move_next_helper_) \ 580 V(RawFunction*, async_star_move_next_helper_) \
581 V(RawFunction*, complete_on_async_return_) \
582 V(RawClass*, async_star_stream_controller_) \
567 V(RawArray*, library_load_error_table_) \ 583 V(RawArray*, library_load_error_table_) \
568 V(RawArray*, unique_dynamic_targets_) \ 584 V(RawArray*, unique_dynamic_targets_) \
569 V(RawGrowableObjectArray*, token_objects_) \ 585 V(RawGrowableObjectArray*, token_objects_) \
570 V(RawArray*, token_objects_map_) \ 586 V(RawArray*, token_objects_map_) \
571 V(RawGrowableObjectArray*, megamorphic_cache_table_) \ 587 V(RawGrowableObjectArray*, megamorphic_cache_table_) \
572 V(RawCode*, megamorphic_miss_code_) \ 588 V(RawCode*, megamorphic_miss_code_) \
573 V(RawFunction*, megamorphic_miss_function_) \ 589 V(RawFunction*, megamorphic_miss_function_) \
574 // Please remember the last entry must be referred in the 'to' function below. 590 // Please remember the last entry must be referred in the 'to' function below.
575 591
576 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } 592 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); }
(...skipping 22 matching lines...) Expand all
599 615
600 friend class Serializer; 616 friend class Serializer;
601 friend class Deserializer; 617 friend class Deserializer;
602 618
603 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 619 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
604 }; 620 };
605 621
606 } // namespace dart 622 } // namespace dart
607 623
608 #endif // RUNTIME_VM_OBJECT_STORE_H_ 624 #endif // RUNTIME_VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698