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

Side by Side Diff: src/macros.py

Issue 913073003: [es6] implement Reflect.apply() & Reflect.construct() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm Created 5 years, 9 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 | « src/ia32/builtins-ia32.cc ('k') | src/messages.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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const kMonthShift = 5; 62 const kMonthShift = 5;
63 63
64 # Limits for parts of the date, so that we support all the dates that 64 # Limits for parts of the date, so that we support all the dates that
65 # ECMA 262 - 15.9.1.1 requires us to, but at the same time be sure that 65 # ECMA 262 - 15.9.1.1 requires us to, but at the same time be sure that
66 # the date (days since 1970) is in SMI range. 66 # the date (days since 1970) is in SMI range.
67 const kMinYear = -1000000; 67 const kMinYear = -1000000;
68 const kMaxYear = 1000000; 68 const kMaxYear = 1000000;
69 const kMinMonth = -10000000; 69 const kMinMonth = -10000000;
70 const kMaxMonth = 10000000; 70 const kMaxMonth = 10000000;
71 71
72 # Safe maximum number of arguments to push to stack, when multiplied by
73 # pointer size. Used by Function.prototype.apply(), Reflect.apply() and
74 # Reflect.construct().
75 const kSafeArgumentsLength = 0x800000;
76
72 # Strict mode flags for passing to %SetProperty 77 # Strict mode flags for passing to %SetProperty
73 const kSloppyMode = 0; 78 const kSloppyMode = 0;
74 const kStrictMode = 1; 79 const kStrictMode = 1;
75 80
76 # Native cache ids. 81 # Native cache ids.
77 const STRING_TO_REGEXP_CACHE_ID = 0; 82 const STRING_TO_REGEXP_CACHE_ID = 0;
78 83
79 # Type query macros. 84 # Type query macros.
80 # 85 #
81 # Note: We have special support for typeof(foo) === 'bar' in the compiler. 86 # Note: We have special support for typeof(foo) === 'bar' in the compiler.
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 273
269 # Use for keys, values and entries iterators. 274 # Use for keys, values and entries iterators.
270 const ITERATOR_KIND_KEYS = 1; 275 const ITERATOR_KIND_KEYS = 1;
271 const ITERATOR_KIND_VALUES = 2; 276 const ITERATOR_KIND_VALUES = 2;
272 const ITERATOR_KIND_ENTRIES = 3; 277 const ITERATOR_KIND_ENTRIES = 3;
273 278
274 # Check whether debug is active. 279 # Check whether debug is active.
275 const DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); 280 const DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0);
276 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function)); 281 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function));
277 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (DEBUG_IS_STEPPING(functi on)) %DebugPrepareStepInIfStepping(function); 282 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (DEBUG_IS_STEPPING(functi on)) %DebugPrepareStepInIfStepping(function);
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698