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

Unified Diff: runtime/vm/ast_transformer.cc

Issue 969903002: More fixes in async machinery (issue 22438 and maybe more). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_transformer.cc
===================================================================
--- runtime/vm/ast_transformer.cc (revision 44150)
+++ runtime/vm/ast_transformer.cc (working copy)
@@ -113,7 +113,7 @@
LocalScope* scope,
int16_t try_index) {
LocalVariable* saved_try_ctx =
- scope->LookupVariable(Symbols::SavedTryContextVar(), false);
+ scope->LocalLookupVariable(Symbols::SavedTryContextVar());
ASSERT((saved_try_ctx != NULL) && !saved_try_ctx->is_captured());
const String& async_saved_try_ctx_name = String::ZoneHandle(zone,
Symbols::New(String::Handle(zone,
@@ -121,7 +121,7 @@
Symbols::AsyncSavedTryCtxVarPrefix().ToCString(),
try_index))));
LocalVariable* async_saved_try_ctx =
- scope->LookupVariable(async_saved_try_ctx_name, false);
+ scope->LocalLookupVariable(async_saved_try_ctx_name);
ASSERT(async_saved_try_ctx != NULL);
ASSERT(async_saved_try_ctx->is_captured());
return new (zone) StoreLocalNode(
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698