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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 DEFINE_bool(es52_globals, true, | 137 DEFINE_bool(es52_globals, true, |
138 "activate new semantics for global var declarations") | 138 "activate new semantics for global var declarations") |
139 | 139 |
140 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof") | 140 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof") |
141 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") | 141 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") |
142 DEFINE_bool(harmony_modules, false, | 142 DEFINE_bool(harmony_modules, false, |
143 "enable harmony modules (implies block scoping)") | 143 "enable harmony modules (implies block scoping)") |
144 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") | 144 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") |
145 DEFINE_bool(harmony_collections, false, | 145 DEFINE_bool(harmony_collections, false, |
146 "enable harmony collections (sets, maps, and weak maps)") | 146 "enable harmony collections (sets, maps, and weak maps)") |
147 DEFINE_bool(harmony_object_observe, false, | |
148 "enable harmony object observation") | |
rossberg
2012/10/24 09:57:24
Nit: add "(implies harmony collections)"
rafaelw
2012/10/24 11:18:04
Done.
| |
147 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") | 149 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") |
148 DEFINE_implication(harmony, harmony_scoping) | 150 DEFINE_implication(harmony, harmony_scoping) |
149 DEFINE_implication(harmony, harmony_modules) | 151 DEFINE_implication(harmony, harmony_modules) |
150 DEFINE_implication(harmony, harmony_proxies) | 152 DEFINE_implication(harmony, harmony_proxies) |
151 DEFINE_implication(harmony, harmony_collections) | 153 DEFINE_implication(harmony, harmony_collections) |
154 DEFINE_implication(harmony, harmony_object_observe) | |
152 DEFINE_implication(harmony_modules, harmony_scoping) | 155 DEFINE_implication(harmony_modules, harmony_scoping) |
156 DEFINE_implication(harmony_object_observe, harmony_collections) | |
153 | 157 |
154 // Flags for experimental implementation features. | 158 // Flags for experimental implementation features. |
155 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") | 159 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") |
156 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") | 160 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") |
157 DEFINE_bool(clever_optimizations, | 161 DEFINE_bool(clever_optimizations, |
158 true, | 162 true, |
159 "Optimize object size, Array shift, DOM strings and string +") | 163 "Optimize object size, Array shift, DOM strings and string +") |
160 | 164 |
161 // Flags for data representation optimizations | 165 // Flags for data representation optimizations |
162 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 166 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
702 #undef DEFINE_bool | 706 #undef DEFINE_bool |
703 #undef DEFINE_int | 707 #undef DEFINE_int |
704 #undef DEFINE_string | 708 #undef DEFINE_string |
705 #undef DEFINE_implication | 709 #undef DEFINE_implication |
706 | 710 |
707 #undef FLAG_MODE_DECLARE | 711 #undef FLAG_MODE_DECLARE |
708 #undef FLAG_MODE_DEFINE | 712 #undef FLAG_MODE_DEFINE |
709 #undef FLAG_MODE_DEFINE_DEFAULTS | 713 #undef FLAG_MODE_DEFINE_DEFAULTS |
710 #undef FLAG_MODE_META | 714 #undef FLAG_MODE_META |
711 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 715 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
OLD | NEW |