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

Side by Side Diff: src/macros.py

Issue 1314493005: Remove unnecessary checks and runtime calls from ToLength (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add NaN check 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') | src/runtime.js » ('J')
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 define NOT_FOUND = -1; 304 define NOT_FOUND = -1;
302 305
303 # Check whether debug is active. 306 # Check whether debug is active.
304 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); 307 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0);
305 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function)); 308 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function));
306 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (DEBUG_IS_STEPPING(functi on)) %DebugPrepareStepInIfStepping(function); 309 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (DEBUG_IS_STEPPING(functi on)) %DebugPrepareStepInIfStepping(function);
307 310
308 # SharedFlag equivalents 311 # SharedFlag equivalents
309 define kNotShared = false; 312 define kNotShared = false;
310 define kShared = true; 313 define kShared = true;
OLDNEW
« no previous file with comments | « no previous file | src/runtime.js » ('j') | src/runtime.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698