Changed (1<<31)-1 into INT_MAX.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Dec 2008 12:08:27 +0000 (12:08 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Dec 2008 12:08:27 +0000 (12:08 +0000)
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@989 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/ast.h

index 0d703350519051a4e78145b4b0ca690a0638b8bb..80e7df8c321eabd13f7427e986be961716d9d61e 100644 (file)
--- a/src/ast.h
+++ b/src/ast.h
@@ -81,7 +81,7 @@ namespace v8 { namespace internal {
   V(Throw)                                      \
   V(Property)                                   \
   V(Call)                                       \
-  V(CallEval)                                    \
+  V(CallEval)                                   \
   V(CallNew)                                    \
   V(CallRuntime)                                \
   V(UnaryOperation)                             \
@@ -1213,7 +1213,7 @@ class ThisFunction: public Expression {
 
 class RegExpTree: public ZoneObject {
  public:
-  static const int kInfinity = (1<<31)-1;
+  static const int kInfinity = kMaxInt;
   virtual ~RegExpTree() { }
   virtual void* Accept(RegExpVisitor* visitor, void* data) = 0;
   virtual RegExpNode* ToNode(RegExpCompiler* compiler,