Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: src/ast.h

Issue 14506: Fixed constant calculation that's not allowed on windows. (Closed)
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698