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

Unified Diff: runtime/vm/ast.h

Issue 10350003: Step toward eliminating increment nodes, starting with increment local. Fix a bug in evaluating sid… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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/ast.cc » ('j') | runtime/vm/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
===================================================================
--- runtime/vm/ast.h (revision 7257)
+++ runtime/vm/ast.h (working copy)
@@ -24,7 +24,6 @@
V(StringConcatNode, "concat") \
V(ComparisonNode, "compare") \
V(UnaryOpNode, "unaryop") \
- V(IncrOpLocalNode, "incr local") \
V(IncrOpInstanceFieldNode, "incr instance field") \
V(IncrOpIndexedNode, "incr indexed") \
V(ConditionalExprNode, "?:") \
@@ -662,35 +661,6 @@
};
-class IncrOpLocalNode : public AstNode {
- public:
- IncrOpLocalNode(intptr_t token_index,
- Token::Kind kind,
- bool prefix,
- const LocalVariable& local)
- : AstNode(token_index), kind_(kind), prefix_(prefix), local_(local) {
- ASSERT(kind_ == Token::kINCR || kind_ == Token::kDECR);
- }
-
- Token::Kind kind() const { return kind_; }
- bool prefix() const { return prefix_; }
- const LocalVariable& local() const { return local_; }
-
- virtual void VisitChildren(AstNodeVisitor* visitor) const {}
-
- virtual const char* Name() const;
-
- DECLARE_COMMON_NODE_FUNCTIONS(IncrOpLocalNode);
-
- private:
- const Token::Kind kind_;
- const bool prefix_;
- const LocalVariable& local_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(IncrOpLocalNode);
-};
-
-
class IncrOpInstanceFieldNode : public AstNode {
public:
IncrOpInstanceFieldNode(intptr_t token_index,
« no previous file with comments | « no previous file | runtime/vm/ast.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698