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

Unified Diff: runtime/vm/object_store.cc

Issue 2768103002: Debugger support for step-into async and async* functions. (Closed)
Patch Set: asiva 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object_store.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_store.cc
diff --git a/runtime/vm/object_store.cc b/runtime/vm/object_store.cc
index 27c92eb2608408974520af087326b82767156a03..475f19ce270cb5fd3e2f6885cdb5d30b3b6653f6 100644
--- a/runtime/vm/object_store.cc
+++ b/runtime/vm/object_store.cc
@@ -96,6 +96,7 @@ ObjectStore::ObjectStore()
simple_instance_of_false_function_(Function::null()),
async_clear_thread_stack_trace_(Function::null()),
async_set_thread_stack_trace_(Function::null()),
+ async_star_move_next_helper_(Function::null()),
library_load_error_table_(Array::null()),
unique_dynamic_targets_(Array::null()),
token_objects_(GrowableObjectArray::null()),
@@ -255,6 +256,13 @@ void ObjectStore::InitKnownObjects() {
ASSERT(!function.IsNull());
set_async_clear_thread_stack_trace(function);
+ function_name ^= async_lib.PrivateName(Symbols::AsyncStarMoveNextHelper());
+ ASSERT(!function_name.IsNull());
+ function ^= Resolver::ResolveStatic(async_lib, Object::null_string(),
+ function_name, 1, Object::null_array());
+ ASSERT(!function.IsNull());
+ set_async_star_move_next_helper(function);
+
const Library& internal_lib = Library::Handle(_internal_library());
cls = internal_lib.LookupClass(Symbols::Symbol());
set_symbol_class(cls);
« no previous file with comments | « runtime/vm/object_store.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698