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

Unified Diff: runtime/vm/ast_transformer.cc

Issue 878243002: Cleanup: use const reference for ParsedFunction where possible. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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/ast_transformer.h ('k') | runtime/vm/block_scheduler.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 43213)
+++ runtime/vm/ast_transformer.cc (working copy)
@@ -45,7 +45,7 @@
#undef DEFINE_UNREACHABLE
AwaitTransformer::AwaitTransformer(SequenceNode* preamble,
- ParsedFunction* const parsed_function,
+ const ParsedFunction& parsed_function,
LocalScope* function_top)
: preamble_(preamble),
temp_cnt_(0),
@@ -212,13 +212,13 @@
// If this expression is part of a try block, also append the code for
// restoring the saved try context that lives on the stack.
const String& async_saved_try_ctx_name =
- String::Handle(Z, parsed_function_->async_saved_try_ctx_name());
+ String::Handle(Z, parsed_function_.async_saved_try_ctx_name());
if (!async_saved_try_ctx_name.IsNull()) {
LocalVariable* async_saved_try_ctx =
GetVariableInScope(preamble_->scope(), async_saved_try_ctx_name);
preamble_->Add(new (Z) StoreLocalNode(
Scanner::kNoSourcePos,
- parsed_function_->saved_try_ctx(),
+ parsed_function_.saved_try_ctx(),
new (Z) LoadLocalNode(Scanner::kNoSourcePos, async_saved_try_ctx)));
}
« no previous file with comments | « runtime/vm/ast_transformer.h ('k') | runtime/vm/block_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698