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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) | 99 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) |
100 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) | 100 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) |
101 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) | 101 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) |
102 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) | 102 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) |
103 | 103 |
104 // | 104 // |
105 // Flags in all modes. | 105 // Flags in all modes. |
106 // | 106 // |
107 #define FLAG FLAG_FULL | 107 #define FLAG FLAG_FULL |
108 | 108 |
109 // Flags for experimental language features. | 109 // Flags for language modes and experimental language features. |
| 110 DEFINE_bool(use_strict, false, "enforce strict mode") |
| 111 |
110 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof") | 112 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof") |
111 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") | 113 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") |
112 DEFINE_bool(harmony_modules, false, "enable harmony modules") | 114 DEFINE_bool(harmony_modules, false, "enable harmony modules") |
113 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") | 115 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") |
114 DEFINE_bool(harmony_collections, false, | 116 DEFINE_bool(harmony_collections, false, |
115 "enable harmony collections (sets, maps, and weak maps)") | 117 "enable harmony collections (sets, maps, and weak maps)") |
116 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") | 118 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") |
117 DEFINE_implication(harmony, harmony_scoping) | 119 DEFINE_implication(harmony, harmony_scoping) |
118 DEFINE_implication(harmony, harmony_modules) | 120 DEFINE_implication(harmony, harmony_modules) |
119 DEFINE_implication(harmony, harmony_proxies) | 121 DEFINE_implication(harmony, harmony_proxies) |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 #undef DEFINE_bool | 580 #undef DEFINE_bool |
579 #undef DEFINE_int | 581 #undef DEFINE_int |
580 #undef DEFINE_string | 582 #undef DEFINE_string |
581 #undef DEFINE_implication | 583 #undef DEFINE_implication |
582 | 584 |
583 #undef FLAG_MODE_DECLARE | 585 #undef FLAG_MODE_DECLARE |
584 #undef FLAG_MODE_DEFINE | 586 #undef FLAG_MODE_DEFINE |
585 #undef FLAG_MODE_DEFINE_DEFAULTS | 587 #undef FLAG_MODE_DEFINE_DEFAULTS |
586 #undef FLAG_MODE_META | 588 #undef FLAG_MODE_META |
587 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 589 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
OLD | NEW |