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

Unified Diff: runtime/vm/parser.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/intrinsifier.cc ('k') | runtime/vm/regexp_assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 43213)
+++ runtime/vm/parser.cc (working copy)
@@ -361,9 +361,7 @@
async_temp_scope_(NULL) {
ASSERT(tokens_iterator_.IsValid());
ASSERT(!current_function().IsNull());
- if (FLAG_enable_type_checks) {
- EnsureExpressionTemp();
- }
+ EnsureExpressionTemp();
}
@@ -7593,7 +7591,7 @@
AstNode* await_moveNext = new (Z) AwaitNode(stream_pos, iterator_moveNext);
OpenBlock();
AwaitTransformer at(current_block_->statements,
- parsed_function(),
+ *parsed_function(),
async_temp_scope_);
AstNode* transformed_await = at.Transform(await_moveNext);
SequenceNode* await_preamble = CloseBlock();
@@ -9287,7 +9285,7 @@
// are created.
OpenBlock();
AwaitTransformer at(current_block_->statements,
- parsed_function(),
+ *parsed_function(),
async_temp_scope_);
AstNode* result = at.Transform(expr);
SequenceNode* preamble = CloseBlock();
« no previous file with comments | « runtime/vm/intrinsifier.cc ('k') | runtime/vm/regexp_assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698