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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) | 125 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) |
126 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) | 126 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) |
127 | 127 |
128 // | 128 // |
129 // Flags in all modes. | 129 // Flags in all modes. |
130 // | 130 // |
131 #define FLAG FLAG_FULL | 131 #define FLAG FLAG_FULL |
132 | 132 |
133 // Flags for language modes and experimental language features. | 133 // Flags for language modes and experimental language features. |
134 DEFINE_bool(use_strict, false, "enforce strict mode") | 134 DEFINE_bool(use_strict, false, "enforce strict mode") |
135 DEFINE_bool(es52_globals, true, | 135 DEFINE_bool(es52_globals, false, |
136 "activate new semantics for global var declarations") | 136 "activate new semantics for global var declarations") |
137 | 137 |
138 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof") | 138 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof") |
139 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") | 139 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") |
140 DEFINE_bool(harmony_modules, false, | 140 DEFINE_bool(harmony_modules, false, |
141 "enable harmony modules (implies block scoping)") | 141 "enable harmony modules (implies block scoping)") |
142 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") | 142 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") |
143 DEFINE_bool(harmony_collections, false, | 143 DEFINE_bool(harmony_collections, false, |
144 "enable harmony collections (sets, maps, and weak maps)") | 144 "enable harmony collections (sets, maps, and weak maps)") |
145 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") | 145 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 #undef DEFINE_bool | 653 #undef DEFINE_bool |
654 #undef DEFINE_int | 654 #undef DEFINE_int |
655 #undef DEFINE_string | 655 #undef DEFINE_string |
656 #undef DEFINE_implication | 656 #undef DEFINE_implication |
657 | 657 |
658 #undef FLAG_MODE_DECLARE | 658 #undef FLAG_MODE_DECLARE |
659 #undef FLAG_MODE_DEFINE | 659 #undef FLAG_MODE_DEFINE |
660 #undef FLAG_MODE_DEFINE_DEFAULTS | 660 #undef FLAG_MODE_DEFINE_DEFAULTS |
661 #undef FLAG_MODE_META | 661 #undef FLAG_MODE_META |
662 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 662 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
OLD | NEW |