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

Side by Side Diff: src/macros.py

Issue 1346893003: [es6] Use the correct ToPrimitive in the Date Constructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « src/date.js ('k') | 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 21 matching lines...) Expand all
32 define READ_ONLY = 1; 32 define READ_ONLY = 1;
33 define DONT_ENUM = 2; 33 define DONT_ENUM = 2;
34 define DONT_DELETE = 4; 34 define DONT_DELETE = 4;
35 define NEW_ONE_BYTE_STRING = true; 35 define NEW_ONE_BYTE_STRING = true;
36 define NEW_TWO_BYTE_STRING = false; 36 define NEW_TWO_BYTE_STRING = false;
37 37
38 # Constants used for getter and setter operations. 38 # Constants used for getter and setter operations.
39 define GETTER = 0; 39 define GETTER = 0;
40 define SETTER = 1; 40 define SETTER = 1;
41 41
42 define NO_HINT = 0;
43 define NUMBER_HINT = 1;
44 define STRING_HINT = 2;
45
46 # For date.js. 42 # For date.js.
47 define HoursPerDay = 24; 43 define HoursPerDay = 24;
48 define MinutesPerHour = 60; 44 define MinutesPerHour = 60;
49 define SecondsPerMinute = 60; 45 define SecondsPerMinute = 60;
50 define msPerSecond = 1000; 46 define msPerSecond = 1000;
51 define msPerMinute = 60000; 47 define msPerMinute = 60000;
52 define msPerHour = 3600000; 48 define msPerHour = 3600000;
53 define msPerDay = 86400000; 49 define msPerDay = 86400000;
54 define msPerMonth = 2592000000; 50 define msPerMonth = 2592000000;
55 51
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 define NOT_FOUND = -1; 303 define NOT_FOUND = -1;
308 304
309 # Check whether debug is active. 305 # Check whether debug is active.
310 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0); 306 define DEBUG_IS_ACTIVE = (%_DebugIsActive() != 0);
311 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function)); 307 macro DEBUG_IS_STEPPING(function) = (%_DebugIsActive() != 0 && %DebugCallbackSup portsStepping(function));
312 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (DEBUG_IS_STEPPING(functi on)) %DebugPrepareStepInIfStepping(function); 308 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (DEBUG_IS_STEPPING(functi on)) %DebugPrepareStepInIfStepping(function);
313 309
314 # SharedFlag equivalents 310 # SharedFlag equivalents
315 define kNotShared = false; 311 define kNotShared = false;
316 define kShared = true; 312 define kShared = true;
OLDNEW
« no previous file with comments | « src/date.js ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698