Reviewers: mads.ager,

Message:
Quick review.

Description:
Changed (1<<31)-1 into INT_MAX.

Please review this at http://codereview.chromium.org/14506

Affected files:
   M src/ast.h


Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index  
0d703350519051a4e78145b4b0ca690a0638b8bb..b954d647e82fc98d91e679409ad48a3664674702
  
100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -28,6 +28,8 @@
  #ifndef V8_AST_H_
  #define V8_AST_H_

+#include <limits.h>
+
  #include "execution.h"
  #include "factory.h"
  #include "runtime.h"
@@ -81,7 +83,7 @@ namespace v8 { namespace internal {
    V(Throw)                                      \
    V(Property)                                   \
    V(Call)                                       \
-  V(CallEval)                                    \
+  V(CallEval)                                   \
    V(CallNew)                                    \
    V(CallRuntime)                                \
    V(UnaryOperation)                             \
@@ -1213,7 +1215,7 @@ class ThisFunction: public Expression {

  class RegExpTree: public ZoneObject {
   public:
-  static const int kInfinity = (1<<31)-1;
+  static const int kInfinity = INT_MAX;
    virtual ~RegExpTree() { }
    virtual void* Accept(RegExpVisitor* visitor, void* data) = 0;
    virtual RegExpNode* ToNode(RegExpCompiler* compiler,



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

Reply via email to