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

Side by Side Diff: src/macros.py

Issue 1353953002: Use a kMaxSafeInteger instead of Number.MAX_SAFE_INTEGER (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Zap unneccessary GlobalNumber in runtime.js Created 5 years, 3 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/runtime.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 define kMinYear = -1000000; 67 define kMinYear = -1000000;
68 define kMaxYear = 1000000; 68 define kMaxYear = 1000000;
69 define kMinMonth = -10000000; 69 define kMinMonth = -10000000;
70 define kMaxMonth = 10000000; 70 define kMaxMonth = 10000000;
71 71
72 # Safe maximum number of arguments to push to stack, when multiplied by 72 # Safe maximum number of arguments to push to stack, when multiplied by
73 # pointer size. Used by Function.prototype.apply(), Reflect.apply() and 73 # pointer size. Used by Function.prototype.apply(), Reflect.apply() and
74 # Reflect.construct(). 74 # Reflect.construct().
75 define kSafeArgumentsLength = 0x800000; 75 define kSafeArgumentsLength = 0x800000;
76 76
77 # 2^53 - 1
78 define kMaxSafeInteger = 9007199254740991;
79
77 # Strict mode flags for passing to %SetProperty 80 # Strict mode flags for passing to %SetProperty
78 define kSloppyMode = 0; 81 define kSloppyMode = 0;
79 define kStrictMode = 1; 82 define kStrictMode = 1;
80 83
81 # Native cache ids. 84 # Native cache ids.
82 define STRING_TO_REGEXP_CACHE_ID = 0; 85 define STRING_TO_REGEXP_CACHE_ID = 0;
83 86
84 # Type query macros. 87 # Type query macros.
85 # 88 #
86 # Note: We have special support for typeof(foo) === 'bar' in the compiler. 89 # Note: We have special support for typeof(foo) === 'bar' in the compiler.
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 define NOT_FOUND = -1; 307 define NOT_FOUND = -1;
305 308
306 # Check whether debug is active. 309 # Check whether debug is active.
307 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); 310 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0);
308 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function)); 311 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function));
309 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (DEBUG_IS_STEPPING(functi on)) %DebugPrepareStepInIfStepping(function); 312 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (DEBUG_IS_STEPPING(functi on)) %DebugPrepareStepInIfStepping(function);
310 313
311 # SharedFlag equivalents 314 # SharedFlag equivalents
312 define kNotShared = false; 315 define kNotShared = false;
313 define kShared = true; 316 define kShared = true;
OLDNEW
« no previous file with comments | « no previous file | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698