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

Unified Diff: runtime/vm/parser.h

Issue 14942010: Eliminate temporary locals for some expressions (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/intermediate_language.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.h
===================================================================
--- runtime/vm/parser.h (revision 23243)
+++ runtime/vm/parser.h (working copy)
@@ -39,7 +39,6 @@
saved_current_context_var_(NULL),
saved_entry_context_var_(NULL),
expression_temp_var_(NULL),
- array_literal_var_(NULL),
first_parameter_index_(0),
first_stack_local_index_(0),
num_copied_params_(0),
@@ -102,17 +101,6 @@
}
static LocalVariable* CreateExpressionTempVar(intptr_t token_pos);
- void set_array_literal_var(LocalVariable* local) {
- ASSERT((local != NULL) && (array_literal_var_ == NULL));
- array_literal_var_ = local;
- }
- LocalVariable* array_literal_var() const {
- ASSERT(array_literal_var_ != NULL);
- return array_literal_var_;
- }
-
- static LocalVariable* CreateArrayLiteralVar(intptr_t token_pos);
-
int first_parameter_index() const { return first_parameter_index_; }
int first_stack_local_index() const { return first_stack_local_index_; }
int num_copied_params() const { return num_copied_params_; }
@@ -128,9 +116,6 @@
LocalVariable* saved_current_context_var_;
LocalVariable* saved_entry_context_var_;
LocalVariable* expression_temp_var_;
- // TODO(hausner): Remove once ArrayNode creation is removed from flow
- // graph builder.
- LocalVariable* array_literal_var_;
int first_parameter_index_;
int first_stack_local_index_;
@@ -600,7 +585,7 @@
Token::Kind assignment_op,
AstNode* lhs,
AstNode* rhs);
- AstNode* PrepareCompoundAssignmentNodes(AstNode** expr);
+ LetNode* PrepareCompoundAssignmentNodes(AstNode** expr);
LocalVariable* CreateTempConstVariable(intptr_t token_pos, const char* s);
static bool IsAssignableExpr(AstNode* expr);
@@ -636,8 +621,6 @@
const Function& constructor,
ArgumentListNode* arguments);
- LocalVariable* BuildArrayTempLocal(intptr_t token_pos);
-
Script& script_;
TokenStream::Iterator tokens_iterator_;
Token::Kind token_kind_; // Cached token kind for current token.
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698