OLD | NEW |
1 # Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 # Copyright 2006-2009 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 const kYearShift = 9; | 75 const kYearShift = 9; |
76 const kMonthShift = 5; | 76 const kMonthShift = 5; |
77 | 77 |
78 # Limits for parts of the date, so that we support all the dates that | 78 # Limits for parts of the date, so that we support all the dates that |
79 # ECMA 262 - 15.9.1.1 requires us to, but at the same time be sure that | 79 # ECMA 262 - 15.9.1.1 requires us to, but at the same time be sure that |
80 # the date (days since 1970) is in SMI range. | 80 # the date (days since 1970) is in SMI range. |
81 const kMinYear = -1000000; | 81 const kMinYear = -1000000; |
82 const kMaxYear = 1000000; | 82 const kMaxYear = 1000000; |
83 const kMinMonth = -10000000; | 83 const kMinMonth = -10000000; |
84 const kMaxMonth = 10000000; | 84 const kMaxMonth = 10000000; |
85 const kMinDate = -100000000; | |
86 const kMaxDate = 100000000; | |
87 | 85 |
88 # Native cache ids. | 86 # Native cache ids. |
89 const STRING_TO_REGEXP_CACHE_ID = 0; | 87 const STRING_TO_REGEXP_CACHE_ID = 0; |
90 | 88 |
91 # Type query macros. | 89 # Type query macros. |
92 # | 90 # |
93 # Note: We have special support for typeof(foo) === 'bar' in the compiler. | 91 # Note: We have special support for typeof(foo) === 'bar' in the compiler. |
94 # It will *not* generate a runtime typeof call for the most important | 92 # It will *not* generate a runtime typeof call for the most important |
95 # values of 'bar'. | 93 # values of 'bar'. |
96 macro IS_NULL(arg) = (arg === null); | 94 macro IS_NULL(arg) = (arg === null); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 const TYPE_EXTENSION = 1; | 197 const TYPE_EXTENSION = 1; |
200 const TYPE_NORMAL = 2; | 198 const TYPE_NORMAL = 2; |
201 | 199 |
202 # Matches Script::CompilationType from objects.h | 200 # Matches Script::CompilationType from objects.h |
203 const COMPILATION_TYPE_HOST = 0; | 201 const COMPILATION_TYPE_HOST = 0; |
204 const COMPILATION_TYPE_EVAL = 1; | 202 const COMPILATION_TYPE_EVAL = 1; |
205 const COMPILATION_TYPE_JSON = 2; | 203 const COMPILATION_TYPE_JSON = 2; |
206 | 204 |
207 # Matches Messages::kNoLineNumberInfo from v8.h | 205 # Matches Messages::kNoLineNumberInfo from v8.h |
208 const kNoLineNumberInfo = 0; | 206 const kNoLineNumberInfo = 0; |
OLD | NEW |