Revision: 10670
Author:   [email protected]
Date:     Fri Feb 10 00:35:57 2012
Log:      Small cleanup of ast.h.

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

[email protected]
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/9372056
http://code.google.com/p/v8/source/detail?r=10670

Modified:
 /branches/bleeding_edge/src/ast.h

=======================================
--- /branches/bleeding_edge/src/ast.h   Thu Feb  9 05:54:45 2012
+++ /branches/bleeding_edge/src/ast.h   Fri Feb 10 00:35:57 2012
@@ -154,7 +154,7 @@

 #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 @@
 };


-#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 @@
   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