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

Unified Diff: runtime/vm/ast_transformer.cc

Issue 1875643002: Dart VM: Simplify token positions in the translation of await. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase before committing. Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_transformer.cc
diff --git a/runtime/vm/ast_transformer.cc b/runtime/vm/ast_transformer.cc
index c731c33df3d3368c7dbf191dbd112f1a213a8214..974259e158e15a22a031f00294b73fd1b48f0aae 100644
--- a/runtime/vm/ast_transformer.cc
+++ b/runtime/vm/ast_transformer.cc
@@ -215,9 +215,7 @@ void AwaitTransformer::VisitAwaitNode(AwaitNode* node) {
new (Z) LiteralNode(token_pos, Object::null_instance())),
error_ne_null_branch, NULL));
- LocalVariable* result = AddNewTempVarToPreamble(
- new (Z) LoadLocalNode(token_pos, result_param), ST(node->token_pos()));
- result_ = new (Z) LoadLocalNode(token_pos, result);
+ result_ = MakeName(new (Z) LoadLocalNode(token_pos, result_param));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698