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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 experimental language features. |
110 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof") | 110 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof") |
111 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") | 111 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") |
112 DEFINE_bool(harmony_modules, false, "enable harmony modules") | 112 DEFINE_bool(harmony_modules, false, |
| 113 "enable harmony modules (implies block scoping)") |
113 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") | 114 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") |
114 DEFINE_bool(harmony_collections, false, | 115 DEFINE_bool(harmony_collections, false, |
115 "enable harmony collections (sets, maps, and weak maps)") | 116 "enable harmony collections (sets, maps, and weak maps)") |
116 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") | 117 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") |
117 DEFINE_implication(harmony, harmony_scoping) | 118 DEFINE_implication(harmony, harmony_scoping) |
118 DEFINE_implication(harmony, harmony_modules) | 119 DEFINE_implication(harmony, harmony_modules) |
119 DEFINE_implication(harmony, harmony_proxies) | 120 DEFINE_implication(harmony, harmony_proxies) |
120 DEFINE_implication(harmony, harmony_collections) | 121 DEFINE_implication(harmony, harmony_collections) |
| 122 DEFINE_implication(harmony_modules, harmony_scoping) |
121 | 123 |
122 // Flags for experimental implementation features. | 124 // Flags for experimental implementation features. |
123 DEFINE_bool(smi_only_arrays, false, "tracks arrays with only smi values") | 125 DEFINE_bool(smi_only_arrays, false, "tracks arrays with only smi values") |
124 DEFINE_bool(clever_optimizations, | 126 DEFINE_bool(clever_optimizations, |
125 true, | 127 true, |
126 "Optimize object size, Array shift, DOM strings and string +") | 128 "Optimize object size, Array shift, DOM strings and string +") |
127 | 129 |
128 // Flags for data representation optimizations | 130 // Flags for data representation optimizations |
129 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 131 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
130 DEFINE_bool(string_slices, true, "use string slices") | 132 DEFINE_bool(string_slices, true, "use string slices") |
(...skipping 447 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 |