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

Unified Diff: vm/ast.h

Issue 10693092: Remove unused code for StringConcatNode from the AST and the graph builder. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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 | vm/ast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/ast.h
===================================================================
--- vm/ast.h (revision 9395)
+++ vm/ast.h (working copy)
@@ -21,7 +21,6 @@
V(TypeNode, "type") \
V(AssignableNode, "assignable") \
V(BinaryOpNode, "binop") \
- V(StringConcatNode, "concat") \
V(ComparisonNode, "compare") \
V(UnaryOpNode, "unaryop") \
V(ConditionalExprNode, "?:") \
@@ -574,33 +573,6 @@
};
-class StringConcatNode : public AstNode {
- public:
- explicit StringConcatNode(intptr_t token_pos)
- : AstNode(token_pos),
- values_(new ArrayNode(token_pos, TypeArguments::ZoneHandle())) {
- }
-
- ArrayNode* values() const { return values_; }
-
- virtual const Instance* EvalConstExpr() const;
-
- void AddExpr(AstNode* expr) const {
- values_->AddElement(expr);
- }
-
- virtual void VisitChildren(AstNodeVisitor* visitor) const {
- values_->Visit(visitor);
- }
-
- DECLARE_COMMON_NODE_FUNCTIONS(StringConcatNode);
-
- private:
- ArrayNode* values_;
- DISALLOW_IMPLICIT_CONSTRUCTORS(StringConcatNode);
-};
-
-
class UnaryOpNode : public AstNode {
public:
// Returns optimized version, e.g., for ('-' '1') ('-1') literal is returned.
« no previous file with comments | « no previous file | vm/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698