Reviewers: Jakob,

Description:
Small cleanup of ast.h.

Somehow the definition of DECLARE_NODE_TYPE was duplicated and never undef'd.

[email protected]
BUG=
TEST=


Please review this at https://chromiumcodereview.appspot.com/9372056/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/ast.h


Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index 7f812326fae0fb6acebe987da8783ad7cb88491c..20316944c0ee2f09a4f9a2c924acd8fd6987c93e 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -154,7 +154,7 @@ typedef ZoneList<Handle<Object> > ZoneObjectList;

 #define DECLARE_NODE_TYPE(type)                                         \
   virtual void Accept(AstVisitor* v);                                   \
-  virtual AstNode::Type node_type() const { return AstNode::k##type; }  \
+  virtual AstNode::Type node_type() const { return AstNode::k##type; }


 enum AstPropertiesFlag {
@@ -245,11 +245,6 @@ class AstNode: public ZoneObject {
 };


-#define DECLARE_NODE_TYPE(type)                                         \
-  virtual void Accept(AstVisitor* v);                                   \
-  virtual AstNode::Type node_type() const { return AstNode::k##type; }  \
-
-
 class Statement: public AstNode {
  public:
   Statement() : statement_pos_(RelocInfo::kNoPosition) {}
@@ -2050,6 +2045,8 @@ class ThisFunction: public Expression {
   explicit ThisFunction(Isolate* isolate): Expression(isolate) {}
 };

+#undef DECLARE_NODE_TYPE
+

// ----------------------------------------------------------------------------
 // Regular expressions


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to