summaryrefslogtreecommitdiff
path: root/deps/v8/src/macros.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-03-10 10:50:46 -0800
committerRyan Dahl <ry@tinyclouds.org>2010-03-10 10:50:46 -0800
commit073947c150316cfc0bd440851e590663c3b67814 (patch)
tree892fc64c0d5cdfd021c14af01a631f6b6c91b982 /deps/v8/src/macros.py
parentc2c0cfb75f46ddcb3a0900f244966764d2640240 (diff)
downloadnode-new-073947c150316cfc0bd440851e590663c3b67814.tar.gz
Upgrade V8 to 2.1.3
Diffstat (limited to 'deps/v8/src/macros.py')
-rw-r--r--deps/v8/src/macros.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/v8/src/macros.py b/deps/v8/src/macros.py
index ccc2037f23..9da2552479 100644
--- a/deps/v8/src/macros.py
+++ b/deps/v8/src/macros.py
@@ -73,6 +73,16 @@ const kDayMask = 0x01f;
const kYearShift = 9;
const kMonthShift = 5;
+# Limits for parts of the date, so that we support all the dates that
+# ECMA 262 - 15.9.1.1 requires us to, but at the same time be sure that
+# the date (days since 1970) is in SMI range.
+const kMinYear = -1000000;
+const kMaxYear = 1000000;
+const kMinMonth = -10000000;
+const kMaxMonth = 10000000;
+const kMinDate = -100000000;
+const kMaxDate = 100000000;
+
# Type query macros.
#
# Note: We have special support for typeof(foo) === 'bar' in the compiler.