Author: [email protected]
Date: Wed Dec 17 04:08:27 2008
New Revision: 989
Modified:
branches/bleeding_edge/src/ast.h
Log:
Changed (1<<31)-1 into INT_MAX.
Modified: branches/bleeding_edge/src/ast.h
==============================================================================
--- branches/bleeding_edge/src/ast.h (original)
+++ branches/bleeding_edge/src/ast.h Wed Dec 17 04:08:27 2008
@@ -81,7 +81,7 @@
V(Throw) \
V(Property) \
V(Call) \
- V(CallEval) \
+ V(CallEval) \
V(CallNew) \
V(CallRuntime) \
V(UnaryOperation) \
@@ -1213,7 +1213,7 @@
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,
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---