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

Unified Diff: runtime/vm/parser.cc

Issue 1426513006: Background compilation fixes (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: a Created 5 years, 1 month 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 8271d481700e33dc8d77611b29f6f0d4df24c8fe..86e9ae7c16223cd1ea4284fc3438126e02c12a8f 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -6584,7 +6584,7 @@ RawFunction* Parser::OpenSyncGeneratorFunction(intptr_t func_pos) {
// Create the closure containing the body of this generator function.
String& generator_name = String::Handle(Z, innermost_function().name());
body_closure_name =
- String::NewFormatted("<%s_sync_body>", generator_name.ToCString());
+ Symbols::NewFormatted("<%s_sync_body>", generator_name.ToCString());
body_closure_name = Symbols::New(body_closure_name);
body = Function::NewClosureFunction(body_closure_name,
innermost_function(),
@@ -6861,8 +6861,8 @@ RawFunction* Parser::OpenAsyncGeneratorFunction(intptr_t async_func_pos) {
const String& async_generator_name =
String::Handle(Z, innermost_function().name());
String& closure_name = String::Handle(Z,
- String::NewFormatted("<%s_async_gen_body>",
- async_generator_name.ToCString()));
+ Symbols::NewFormatted("<%s_async_gen_body>",
+ async_generator_name.ToCString()));
closure = Function::NewClosureFunction(
String::Handle(Z, Symbols::New(closure_name)),
innermost_function(),
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698