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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 define kMaxMonth = 10000000; | 66 define kMaxMonth = 10000000; |
67 | 67 |
68 # Safe maximum number of arguments to push to stack, when multiplied by | 68 # Safe maximum number of arguments to push to stack, when multiplied by |
69 # pointer size. Used by Function.prototype.apply(), Reflect.apply() and | 69 # pointer size. Used by Function.prototype.apply(), Reflect.apply() and |
70 # Reflect.construct(). | 70 # Reflect.construct(). |
71 define kSafeArgumentsLength = 0x800000; | 71 define kSafeArgumentsLength = 0x800000; |
72 | 72 |
73 # 2^53 - 1 | 73 # 2^53 - 1 |
74 define kMaxSafeInteger = 9007199254740991; | 74 define kMaxSafeInteger = 9007199254740991; |
75 | 75 |
| 76 # 2^32 - 1 |
| 77 define kMaxUint32 = 4294967295; |
| 78 |
76 # Strict mode flags for passing to %SetProperty | 79 # Strict mode flags for passing to %SetProperty |
77 define kSloppyMode = 0; | 80 define kSloppyMode = 0; |
78 define kStrictMode = 1; | 81 define kStrictMode = 1; |
79 | 82 |
80 # Native cache ids. | 83 # Native cache ids. |
81 define STRING_TO_REGEXP_CACHE_ID = 0; | 84 define STRING_TO_REGEXP_CACHE_ID = 0; |
82 | 85 |
83 # Type query macros. | 86 # Type query macros. |
84 # | 87 # |
85 # Note: We have special support for typeof(foo) === 'bar' in the compiler. | 88 # Note: We have special support for typeof(foo) === 'bar' in the compiler. |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 define NOT_FOUND = -1; | 305 define NOT_FOUND = -1; |
303 | 306 |
304 # Check whether debug is active. | 307 # Check whether debug is active. |
305 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); | 308 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); |
306 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup
portsStepping(function)); | 309 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup
portsStepping(function)); |
307 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (%_DebugIsActive() != 0)
%DebugPrepareStepInIfStepping(function); | 310 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (%_DebugIsActive() != 0)
%DebugPrepareStepInIfStepping(function); |
308 | 311 |
309 # SharedFlag equivalents | 312 # SharedFlag equivalents |
310 define kNotShared = false; | 313 define kNotShared = false; |
311 define kShared = true; | 314 define kShared = true; |
OLD | NEW |