| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 #else | 141 #else |
| 142 # define ENABLE_ARMV7_DEFAULT false | 142 # define ENABLE_ARMV7_DEFAULT false |
| 143 #endif | 143 #endif |
| 144 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST) | 144 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST) |
| 145 # define ENABLE_32DREGS_DEFAULT true | 145 # define ENABLE_32DREGS_DEFAULT true |
| 146 #else | 146 #else |
| 147 # define ENABLE_32DREGS_DEFAULT false | 147 # define ENABLE_32DREGS_DEFAULT false |
| 148 #endif | 148 #endif |
| 149 | 149 |
| 150 #define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) | 150 #define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) |
| 151 #define DEFINE_maybe_bool(nam, cmt) FLAG(MAYBE_BOOL, Maybe<bool>, nam, \ | |
| 152 Maybe<bool>(), cmt) | |
| 153 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) | 151 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) |
| 154 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) | 152 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) |
| 155 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) | 153 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) |
| 156 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) | 154 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) |
| 157 | 155 |
| 158 #define DEFINE_ALIAS_bool(alias, nam) FLAG_ALIAS(BOOL, bool, alias, nam) | 156 #define DEFINE_ALIAS_bool(alias, nam) FLAG_ALIAS(BOOL, bool, alias, nam) |
| 159 #define DEFINE_ALIAS_int(alias, nam) FLAG_ALIAS(INT, int, alias, nam) | 157 #define DEFINE_ALIAS_int(alias, nam) FLAG_ALIAS(INT, int, alias, nam) |
| 160 #define DEFINE_ALIAS_float(alias, nam) FLAG_ALIAS(FLOAT, double, alias, nam) | 158 #define DEFINE_ALIAS_float(alias, nam) FLAG_ALIAS(FLOAT, double, alias, nam) |
| 161 #define DEFINE_ALIAS_string(alias, nam) \ | 159 #define DEFINE_ALIAS_string(alias, nam) \ |
| 162 FLAG_ALIAS(STRING, const char*, alias, nam) | 160 FLAG_ALIAS(STRING, const char*, alias, nam) |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 DEFINE_bool(preallocate_message_memory, false, | 593 DEFINE_bool(preallocate_message_memory, false, |
| 596 "preallocate some memory to build stack traces.") | 594 "preallocate some memory to build stack traces.") |
| 597 DEFINE_bool(randomize_hashes, | 595 DEFINE_bool(randomize_hashes, |
| 598 true, | 596 true, |
| 599 "randomize hashes to avoid predictable hash collisions " | 597 "randomize hashes to avoid predictable hash collisions " |
| 600 "(with snapshots this option cannot override the baked-in seed)") | 598 "(with snapshots this option cannot override the baked-in seed)") |
| 601 DEFINE_int(hash_seed, | 599 DEFINE_int(hash_seed, |
| 602 0, | 600 0, |
| 603 "Fixed seed to use to hash property keys (0 means random)" | 601 "Fixed seed to use to hash property keys (0 means random)" |
| 604 "(with snapshots this option cannot override the baked-in seed)") | 602 "(with snapshots this option cannot override the baked-in seed)") |
| 605 DEFINE_maybe_bool(force_memory_constrained, | |
| 606 "force (if true) or prevent (if false) the runtime from treating " | |
| 607 "the device as being memory constrained.") | |
| 608 | 603 |
| 609 // v8.cc | 604 // v8.cc |
| 610 DEFINE_bool(preemption, false, | 605 DEFINE_bool(preemption, false, |
| 611 "activate a 100ms timer that switches between V8 threads") | 606 "activate a 100ms timer that switches between V8 threads") |
| 612 | 607 |
| 613 // Regexp | 608 // Regexp |
| 614 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") | 609 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") |
| 615 | 610 |
| 616 // Testing flags test/cctest/test-{flags,api,serialization}.cc | 611 // Testing flags test/cctest/test-{flags,api,serialization}.cc |
| 617 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag") | 612 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag") |
| 618 DEFINE_maybe_bool(testing_maybe_bool_flag, "testing_maybe_bool_flag") | |
| 619 DEFINE_int(testing_int_flag, 13, "testing_int_flag") | 613 DEFINE_int(testing_int_flag, 13, "testing_int_flag") |
| 620 DEFINE_float(testing_float_flag, 2.5, "float-flag") | 614 DEFINE_float(testing_float_flag, 2.5, "float-flag") |
| 621 DEFINE_string(testing_string_flag, "Hello, world!", "string-flag") | 615 DEFINE_string(testing_string_flag, "Hello, world!", "string-flag") |
| 622 DEFINE_int(testing_prng_seed, 42, "Seed used for threading test randomness") | 616 DEFINE_int(testing_prng_seed, 42, "Seed used for threading test randomness") |
| 623 #ifdef _WIN32 | 617 #ifdef _WIN32 |
| 624 DEFINE_string(testing_serialization_file, "C:\\Windows\\Temp\\serdes", | 618 DEFINE_string(testing_serialization_file, "C:\\Windows\\Temp\\serdes", |
| 625 "file in which to testing_serialize heap") | 619 "file in which to testing_serialize heap") |
| 626 #else | 620 #else |
| 627 DEFINE_string(testing_serialization_file, "/tmp/serdes", | 621 DEFINE_string(testing_serialization_file, "/tmp/serdes", |
| 628 "file in which to serialize heap") | 622 "file in which to serialize heap") |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 #endif | 827 #endif |
| 834 #endif | 828 #endif |
| 835 | 829 |
| 836 // Cleanup... | 830 // Cleanup... |
| 837 #undef FLAG_FULL | 831 #undef FLAG_FULL |
| 838 #undef FLAG_READONLY | 832 #undef FLAG_READONLY |
| 839 #undef FLAG | 833 #undef FLAG |
| 840 #undef FLAG_ALIAS | 834 #undef FLAG_ALIAS |
| 841 | 835 |
| 842 #undef DEFINE_bool | 836 #undef DEFINE_bool |
| 843 #undef DEFINE_maybe_bool | |
| 844 #undef DEFINE_int | 837 #undef DEFINE_int |
| 845 #undef DEFINE_string | 838 #undef DEFINE_string |
| 846 #undef DEFINE_float | 839 #undef DEFINE_float |
| 847 #undef DEFINE_args | 840 #undef DEFINE_args |
| 848 #undef DEFINE_implication | 841 #undef DEFINE_implication |
| 849 #undef DEFINE_ALIAS_bool | 842 #undef DEFINE_ALIAS_bool |
| 850 #undef DEFINE_ALIAS_int | 843 #undef DEFINE_ALIAS_int |
| 851 #undef DEFINE_ALIAS_string | 844 #undef DEFINE_ALIAS_string |
| 852 #undef DEFINE_ALIAS_float | 845 #undef DEFINE_ALIAS_float |
| 853 #undef DEFINE_ALIAS_args | 846 #undef DEFINE_ALIAS_args |
| 854 | 847 |
| 855 #undef FLAG_MODE_DECLARE | 848 #undef FLAG_MODE_DECLARE |
| 856 #undef FLAG_MODE_DEFINE | 849 #undef FLAG_MODE_DEFINE |
| 857 #undef FLAG_MODE_DEFINE_DEFAULTS | 850 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 858 #undef FLAG_MODE_META | 851 #undef FLAG_MODE_META |
| 859 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 852 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| OLD | NEW |