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

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

Issue 2768103002: Debugger support for step-into async and async* functions. (Closed)
Patch Set: tweaks and self review 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 async_clear_thread_stack_trace_ = func.raw(); 445 async_clear_thread_stack_trace_ = func.raw();
446 ASSERT(async_clear_thread_stack_trace_ != Object::null()); 446 ASSERT(async_clear_thread_stack_trace_ != Object::null());
447 } 447 }
448 RawFunction* async_set_thread_stack_trace() const { 448 RawFunction* async_set_thread_stack_trace() const {
449 return async_set_thread_stack_trace_; 449 return async_set_thread_stack_trace_;
450 } 450 }
451 void set_async_set_thread_stack_trace(const Function& func) { 451 void set_async_set_thread_stack_trace(const Function& func) {
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 {
456 return async_star_move_next_helper_;
457 }
458 void set_async_star_move_next_helper(const Function& func) {
459 async_star_move_next_helper_ = func.raw();
460 ASSERT(async_star_move_next_helper_ != Object::null());
461 }
455 462
456 // Visit all object pointers. 463 // Visit all object pointers.
457 void VisitObjectPointers(ObjectPointerVisitor* visitor); 464 void VisitObjectPointers(ObjectPointerVisitor* visitor);
458 465
459 // Called to initialize objects required by the vm but which invoke 466 // Called to initialize objects required by the vm but which invoke
460 // dart code. If an error occurs the error object is returned otherwise 467 // dart code. If an error occurs the error object is returned otherwise
461 // a null object is returned. 468 // a null object is returned.
462 RawError* PreallocateObjects(); 469 RawError* PreallocateObjects();
463 470
464 void InitKnownObjects(); 471 void InitKnownObjects();
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 V(RawUnhandledException*, preallocated_unhandled_exception_) \ 556 V(RawUnhandledException*, preallocated_unhandled_exception_) \
550 V(RawStackTrace*, preallocated_stack_trace_) \ 557 V(RawStackTrace*, preallocated_stack_trace_) \
551 V(RawFunction*, lookup_port_handler_) \ 558 V(RawFunction*, lookup_port_handler_) \
552 V(RawTypedData*, empty_uint32_array_) \ 559 V(RawTypedData*, empty_uint32_array_) \
553 V(RawFunction*, handle_message_function_) \ 560 V(RawFunction*, handle_message_function_) \
554 V(RawFunction*, simple_instance_of_function_) \ 561 V(RawFunction*, simple_instance_of_function_) \
555 V(RawFunction*, simple_instance_of_true_function_) \ 562 V(RawFunction*, simple_instance_of_true_function_) \
556 V(RawFunction*, simple_instance_of_false_function_) \ 563 V(RawFunction*, simple_instance_of_false_function_) \
557 V(RawFunction*, async_clear_thread_stack_trace_) \ 564 V(RawFunction*, async_clear_thread_stack_trace_) \
558 V(RawFunction*, async_set_thread_stack_trace_) \ 565 V(RawFunction*, async_set_thread_stack_trace_) \
566 V(RawFunction*, async_star_move_next_helper_) \
559 V(RawArray*, library_load_error_table_) \ 567 V(RawArray*, library_load_error_table_) \
560 V(RawArray*, unique_dynamic_targets_) \ 568 V(RawArray*, unique_dynamic_targets_) \
561 V(RawGrowableObjectArray*, token_objects_) \ 569 V(RawGrowableObjectArray*, token_objects_) \
562 V(RawArray*, token_objects_map_) \ 570 V(RawArray*, token_objects_map_) \
563 V(RawGrowableObjectArray*, megamorphic_cache_table_) \ 571 V(RawGrowableObjectArray*, megamorphic_cache_table_) \
564 V(RawCode*, megamorphic_miss_code_) \ 572 V(RawCode*, megamorphic_miss_code_) \
565 V(RawFunction*, megamorphic_miss_function_) \ 573 V(RawFunction*, megamorphic_miss_function_) \
566 // Please remember the last entry must be referred in the 'to' function below. 574 // Please remember the last entry must be referred in the 'to' function below.
567 575
568 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); } 576 RawObject** from() { return reinterpret_cast<RawObject**>(&object_class_); }
(...skipping 22 matching lines...) Expand all
591 599
592 friend class Serializer; 600 friend class Serializer;
593 friend class Deserializer; 601 friend class Deserializer;
594 602
595 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 603 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
596 }; 604 };
597 605
598 } // namespace dart 606 } // namespace dart
599 607
600 #endif // RUNTIME_VM_OBJECT_STORE_H_ 608 #endif // RUNTIME_VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698