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

Unified Diff: runtime/vm/ast.h

Issue 17977002: - Remove arguments definition test from the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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_printer.cc » ('j') | runtime/vm/flow_graph_builder.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
===================================================================
--- runtime/vm/ast.h (revision 24474)
+++ runtime/vm/ast.h (working copy)
@@ -32,7 +32,6 @@
V(ForNode, "for") \
V(JumpNode, "jump") \
V(ArgumentListNode, "args") \
- V(ArgumentDefinitionTestNode, "defined") \
V(ArrayNode, "array") \
V(ClosureNode, "closure") \
V(InstanceCallNode, "instance call") \
@@ -229,41 +228,6 @@
};
-class ArgumentDefinitionTestNode : public AstNode {
- public:
- ArgumentDefinitionTestNode(intptr_t token_pos,
- intptr_t formal_parameter_index,
- const String& formal_parameter_name,
- LocalVariable* saved_arguments_descriptor)
- : AstNode(token_pos),
- formal_parameter_index_(formal_parameter_index),
- formal_parameter_name_(formal_parameter_name),
- saved_arguments_descriptor_(*saved_arguments_descriptor) {
- ASSERT(formal_parameter_index_ >= 0);
- ASSERT(formal_parameter_name_.IsZoneHandle());
- ASSERT(formal_parameter_name_.IsSymbol());
- ASSERT(saved_arguments_descriptor != NULL);
- }
-
- virtual void VisitChildren(AstNodeVisitor* visitor) const { }
-
- intptr_t formal_parameter_index() const { return formal_parameter_index_; }
- const String& formal_parameter_name() const { return formal_parameter_name_; }
- const LocalVariable& saved_arguments_descriptor() const {
- return saved_arguments_descriptor_;
- }
-
- DECLARE_COMMON_NODE_FUNCTIONS(ArgumentDefinitionTestNode);
-
- private:
- const intptr_t formal_parameter_index_;
- const String& formal_parameter_name_;
- const LocalVariable& saved_arguments_descriptor_;
-
- DISALLOW_COPY_AND_ASSIGN(ArgumentDefinitionTestNode);
-};
-
-
class LetNode : public AstNode {
public:
explicit LetNode(intptr_t token_pos);
« no previous file with comments | « no previous file | runtime/vm/ast_printer.cc » ('j') | runtime/vm/flow_graph_builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698