OLD | NEW |
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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 DEFINE_BOOL(expose_gc, false, "expose gc extension") | 581 DEFINE_BOOL(expose_gc, false, "expose gc extension") |
582 DEFINE_STRING(expose_gc_as, NULL, | 582 DEFINE_STRING(expose_gc_as, NULL, |
583 "expose gc extension under the specified name") | 583 "expose gc extension under the specified name") |
584 DEFINE_IMPLICATION(expose_gc_as, expose_gc) | 584 DEFINE_IMPLICATION(expose_gc_as, expose_gc) |
585 DEFINE_BOOL(expose_externalize_string, false, | 585 DEFINE_BOOL(expose_externalize_string, false, |
586 "expose externalize string extension") | 586 "expose externalize string extension") |
587 DEFINE_BOOL(expose_trigger_failure, false, "expose trigger-failure extension") | 587 DEFINE_BOOL(expose_trigger_failure, false, "expose trigger-failure extension") |
588 DEFINE_INT(stack_trace_limit, 10, "number of stack frames to capture") | 588 DEFINE_INT(stack_trace_limit, 10, "number of stack frames to capture") |
589 DEFINE_BOOL(builtins_in_stack_traces, false, | 589 DEFINE_BOOL(builtins_in_stack_traces, false, |
590 "show built-in functions in stack traces") | 590 "show built-in functions in stack traces") |
591 DEFINE_BOOL(disable_native_files, false, "disable builtin natives files") | |
592 | 591 |
593 // builtins.cc | 592 // builtins.cc |
594 DEFINE_BOOL(allow_unsafe_function_constructor, false, | 593 DEFINE_BOOL(allow_unsafe_function_constructor, false, |
595 "allow invoking the function constructor without security checks") | 594 "allow invoking the function constructor without security checks") |
596 | 595 |
597 // builtins-ia32.cc | 596 // builtins-ia32.cc |
598 DEFINE_BOOL(inline_new, true, "use fast inline allocation") | 597 DEFINE_BOOL(inline_new, true, "use fast inline allocation") |
599 | 598 |
600 // codegen-ia32.cc / codegen-arm.cc | 599 // codegen-ia32.cc / codegen-arm.cc |
601 DEFINE_BOOL(trace_codegen, false, | 600 DEFINE_BOOL(trace_codegen, false, |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 // Regexp | 866 // Regexp |
868 DEFINE_BOOL(regexp_optimization, true, "generate optimized regexp code") | 867 DEFINE_BOOL(regexp_optimization, true, "generate optimized regexp code") |
869 | 868 |
870 // Testing flags test/cctest/test-{flags,api,serialization}.cc | 869 // Testing flags test/cctest/test-{flags,api,serialization}.cc |
871 DEFINE_BOOL(testing_bool_flag, true, "testing_bool_flag") | 870 DEFINE_BOOL(testing_bool_flag, true, "testing_bool_flag") |
872 DEFINE_MAYBE_BOOL(testing_maybe_bool_flag, "testing_maybe_bool_flag") | 871 DEFINE_MAYBE_BOOL(testing_maybe_bool_flag, "testing_maybe_bool_flag") |
873 DEFINE_INT(testing_int_flag, 13, "testing_int_flag") | 872 DEFINE_INT(testing_int_flag, 13, "testing_int_flag") |
874 DEFINE_FLOAT(testing_float_flag, 2.5, "float-flag") | 873 DEFINE_FLOAT(testing_float_flag, 2.5, "float-flag") |
875 DEFINE_STRING(testing_string_flag, "Hello, world!", "string-flag") | 874 DEFINE_STRING(testing_string_flag, "Hello, world!", "string-flag") |
876 DEFINE_INT(testing_prng_seed, 42, "Seed used for threading test randomness") | 875 DEFINE_INT(testing_prng_seed, 42, "Seed used for threading test randomness") |
877 #ifdef _WIN32 | |
878 DEFINE_STRING(testing_serialization_file, "C:\\Windows\\Temp\\serdes", | |
879 "file in which to testing_serialize heap") | |
880 #else | |
881 DEFINE_STRING(testing_serialization_file, "/tmp/serdes", | |
882 "file in which to serialize heap") | |
883 #endif | |
884 | 876 |
885 // mksnapshot.cc | 877 // mksnapshot.cc |
886 DEFINE_STRING(startup_src, NULL, | 878 DEFINE_STRING(startup_src, NULL, |
887 "Write V8 startup as C++ src. (mksnapshot only)") | 879 "Write V8 startup as C++ src. (mksnapshot only)") |
888 DEFINE_STRING(startup_blob, NULL, | 880 DEFINE_STRING(startup_blob, NULL, |
889 "Write V8 startup blob file. (mksnapshot only)") | 881 "Write V8 startup blob file. (mksnapshot only)") |
890 | 882 |
891 // code-stubs-hydrogen.cc | 883 // code-stubs-hydrogen.cc |
892 DEFINE_BOOL(profile_hydrogen_code_stub_compilation, false, | 884 DEFINE_BOOL(profile_hydrogen_code_stub_compilation, false, |
893 "Print the time it takes to lazily compile hydrogen code stubs.") | 885 "Print the time it takes to lazily compile hydrogen code stubs.") |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 #undef DEFINE_ALIAS_FLOAT | 1191 #undef DEFINE_ALIAS_FLOAT |
1200 #undef DEFINE_ALIAS_ARGS | 1192 #undef DEFINE_ALIAS_ARGS |
1201 | 1193 |
1202 #undef FLAG_MODE_DECLARE | 1194 #undef FLAG_MODE_DECLARE |
1203 #undef FLAG_MODE_DEFINE | 1195 #undef FLAG_MODE_DEFINE |
1204 #undef FLAG_MODE_DEFINE_DEFAULTS | 1196 #undef FLAG_MODE_DEFINE_DEFAULTS |
1205 #undef FLAG_MODE_META | 1197 #undef FLAG_MODE_META |
1206 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1198 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1207 | 1199 |
1208 #undef COMMA | 1200 #undef COMMA |
OLD | NEW |