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, false, "activate new semantics for global var declarat ions") | |
Michael Starzinger
2012/04/20 13:28:45
Longer than 80 characters.
rossberg
2012/04/20 14:01:07
Done.
| |
135 | 136 |
136 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof") | 137 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof") |
137 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") | 138 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") |
138 DEFINE_bool(harmony_modules, false, | 139 DEFINE_bool(harmony_modules, false, |
139 "enable harmony modules (implies block scoping)") | 140 "enable harmony modules (implies block scoping)") |
140 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") | 141 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") |
141 DEFINE_bool(harmony_collections, false, | 142 DEFINE_bool(harmony_collections, false, |
142 "enable harmony collections (sets, maps, and weak maps)") | 143 "enable harmony collections (sets, maps, and weak maps)") |
143 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") | 144 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") |
144 DEFINE_implication(harmony, harmony_scoping) | 145 DEFINE_implication(harmony, harmony_scoping) |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
649 #undef DEFINE_bool | 650 #undef DEFINE_bool |
650 #undef DEFINE_int | 651 #undef DEFINE_int |
651 #undef DEFINE_string | 652 #undef DEFINE_string |
652 #undef DEFINE_implication | 653 #undef DEFINE_implication |
653 | 654 |
654 #undef FLAG_MODE_DECLARE | 655 #undef FLAG_MODE_DECLARE |
655 #undef FLAG_MODE_DEFINE | 656 #undef FLAG_MODE_DEFINE |
656 #undef FLAG_MODE_DEFINE_DEFAULTS | 657 #undef FLAG_MODE_DEFINE_DEFAULTS |
657 #undef FLAG_MODE_META | 658 #undef FLAG_MODE_META |
658 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 659 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
OLD | NEW |