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

Side by Side Diff: src/flag-definitions.h

Issue 1160143004: Introduce a flag to overwrite Date.now() with a fixed value (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/runtime-date.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file defines all of the flags. It is separated into different section, 5 // This file defines all of the flags. It is separated into different section,
6 // for Debug, Release, Logging and Profiling, etc. To add a new flag, find the 6 // for Debug, Release, Logging and Profiling, etc. To add a new flag, find the
7 // correct section, and use one of the DEFINE_ macros, without a trailing ';'. 7 // correct section, and use one of the DEFINE_ macros, without a trailing ';'.
8 // 8 //
9 // This include does not have a guard, because it is a template-style include, 9 // This include does not have a guard, because it is a template-style include,
10 // which can be included multiple times in different modes. It expects to have 10 // which can be included multiple times in different modes. It expects to have
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 749
750 // snapshot-common.cc 750 // snapshot-common.cc
751 DEFINE_BOOL(profile_deserialization, false, 751 DEFINE_BOOL(profile_deserialization, false,
752 "Print the time it takes to deserialize the snapshot.") 752 "Print the time it takes to deserialize the snapshot.")
753 DEFINE_BOOL(serialization_statistics, false, 753 DEFINE_BOOL(serialization_statistics, false,
754 "Collect statistics on serialized objects.") 754 "Collect statistics on serialized objects.")
755 755
756 // Regexp 756 // Regexp
757 DEFINE_BOOL(regexp_optimization, true, "generate optimized regexp code") 757 DEFINE_BOOL(regexp_optimization, true, "generate optimized regexp code")
758 758
759 // Date
760 DEFINE_INT(fixed_date, 0,
761 "Sets a fixed value for Date.now() if non-zero in seconds since the "
762 "Jan 1, 2014")
763
759 // Testing flags test/cctest/test-{flags,api,serialization}.cc 764 // Testing flags test/cctest/test-{flags,api,serialization}.cc
760 DEFINE_BOOL(testing_bool_flag, true, "testing_bool_flag") 765 DEFINE_BOOL(testing_bool_flag, true, "testing_bool_flag")
761 DEFINE_MAYBE_BOOL(testing_maybe_bool_flag, "testing_maybe_bool_flag") 766 DEFINE_MAYBE_BOOL(testing_maybe_bool_flag, "testing_maybe_bool_flag")
762 DEFINE_INT(testing_int_flag, 13, "testing_int_flag") 767 DEFINE_INT(testing_int_flag, 13, "testing_int_flag")
763 DEFINE_FLOAT(testing_float_flag, 2.5, "float-flag") 768 DEFINE_FLOAT(testing_float_flag, 2.5, "float-flag")
764 DEFINE_STRING(testing_string_flag, "Hello, world!", "string-flag") 769 DEFINE_STRING(testing_string_flag, "Hello, world!", "string-flag")
765 DEFINE_INT(testing_prng_seed, 42, "Seed used for threading test randomness") 770 DEFINE_INT(testing_prng_seed, 42, "Seed used for threading test randomness")
766 #ifdef _WIN32 771 #ifdef _WIN32
767 DEFINE_STRING(testing_serialization_file, "C:\\Windows\\Temp\\serdes", 772 DEFINE_STRING(testing_serialization_file, "C:\\Windows\\Temp\\serdes",
768 "file in which to testing_serialize heap") 773 "file in which to testing_serialize heap")
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 #undef DEFINE_ALIAS_FLOAT 1071 #undef DEFINE_ALIAS_FLOAT
1067 #undef DEFINE_ALIAS_ARGS 1072 #undef DEFINE_ALIAS_ARGS
1068 1073
1069 #undef FLAG_MODE_DECLARE 1074 #undef FLAG_MODE_DECLARE
1070 #undef FLAG_MODE_DEFINE 1075 #undef FLAG_MODE_DEFINE
1071 #undef FLAG_MODE_DEFINE_DEFAULTS 1076 #undef FLAG_MODE_DEFINE_DEFAULTS
1072 #undef FLAG_MODE_META 1077 #undef FLAG_MODE_META
1073 #undef FLAG_MODE_DEFINE_IMPLICATIONS 1078 #undef FLAG_MODE_DEFINE_IMPLICATIONS
1074 1079
1075 #undef COMMA 1080 #undef COMMA
OLDNEW
« no previous file with comments | « no previous file | src/runtime/runtime-date.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698