Chromium Code Reviews| 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> |
|
Mads Ager (chromium)
2008/12/17 12:00:49
Remove this and use kMaxInt from globals.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, |