| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") | 169 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") |
| 170 DEFINE_bool(harmony_modules, false, | 170 DEFINE_bool(harmony_modules, false, |
| 171 "enable harmony modules (implies block scoping)") | 171 "enable harmony modules (implies block scoping)") |
| 172 DEFINE_bool(harmony_symbols, false, | 172 DEFINE_bool(harmony_symbols, false, |
| 173 "enable harmony symbols (a.k.a. private names)") | 173 "enable harmony symbols (a.k.a. private names)") |
| 174 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") | 174 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") |
| 175 DEFINE_bool(harmony_collections, false, | 175 DEFINE_bool(harmony_collections, false, |
| 176 "enable harmony collections (sets, maps, and weak maps)") | 176 "enable harmony collections (sets, maps, and weak maps)") |
| 177 DEFINE_bool(harmony_observation, false, | 177 DEFINE_bool(harmony_observation, false, |
| 178 "enable harmony object observation (implies harmony collections") | 178 "enable harmony object observation (implies harmony collections") |
| 179 DEFINE_bool(harmony_typed_arrays, true, | |
| 180 "enable harmony typed arrays") | |
| 181 DEFINE_bool(harmony_array_buffer, true, | |
| 182 "enable harmony array buffer") | |
| 183 DEFINE_implication(harmony_typed_arrays, harmony_array_buffer) | |
| 184 DEFINE_bool(harmony_generators, false, "enable harmony generators") | 179 DEFINE_bool(harmony_generators, false, "enable harmony generators") |
| 185 DEFINE_bool(harmony_iteration, false, "enable harmony iteration (for-of)") | 180 DEFINE_bool(harmony_iteration, false, "enable harmony iteration (for-of)") |
| 186 DEFINE_bool(harmony_numeric_literals, false, | 181 DEFINE_bool(harmony_numeric_literals, false, |
| 187 "enable harmony numeric literals (0o77, 0b11)") | 182 "enable harmony numeric literals (0o77, 0b11)") |
| 188 DEFINE_bool(harmony_strings, false, "enable harmony string") | 183 DEFINE_bool(harmony_strings, false, "enable harmony string") |
| 189 DEFINE_bool(harmony_arrays, false, "enable harmony arrays") | 184 DEFINE_bool(harmony_arrays, false, "enable harmony arrays") |
| 190 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") | 185 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") |
| 191 DEFINE_implication(harmony, harmony_scoping) | 186 DEFINE_implication(harmony, harmony_scoping) |
| 192 DEFINE_implication(harmony, harmony_modules) | 187 DEFINE_implication(harmony, harmony_modules) |
| 193 DEFINE_implication(harmony, harmony_symbols) | 188 DEFINE_implication(harmony, harmony_symbols) |
| 194 DEFINE_implication(harmony, harmony_proxies) | 189 DEFINE_implication(harmony, harmony_proxies) |
| 195 DEFINE_implication(harmony, harmony_collections) | 190 DEFINE_implication(harmony, harmony_collections) |
| 196 DEFINE_implication(harmony, harmony_observation) | 191 DEFINE_implication(harmony, harmony_observation) |
| 197 DEFINE_implication(harmony, harmony_generators) | 192 DEFINE_implication(harmony, harmony_generators) |
| 198 DEFINE_implication(harmony, harmony_iteration) | 193 DEFINE_implication(harmony, harmony_iteration) |
| 199 DEFINE_implication(harmony, harmony_numeric_literals) | 194 DEFINE_implication(harmony, harmony_numeric_literals) |
| 200 DEFINE_implication(harmony, harmony_strings) | 195 DEFINE_implication(harmony, harmony_strings) |
| 201 DEFINE_implication(harmony, harmony_arrays) | 196 DEFINE_implication(harmony, harmony_arrays) |
| 202 DEFINE_implication(harmony_modules, harmony_scoping) | 197 DEFINE_implication(harmony_modules, harmony_scoping) |
| 203 DEFINE_implication(harmony_observation, harmony_collections) | 198 DEFINE_implication(harmony_observation, harmony_collections) |
| 204 // TODO[dslomov] add harmony => harmony_typed_arrays | |
| 205 | 199 |
| 206 // Flags for experimental implementation features. | 200 // Flags for experimental implementation features. |
| 207 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") | 201 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") |
| 208 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") | 202 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") |
| 209 DEFINE_bool(clever_optimizations, | 203 DEFINE_bool(clever_optimizations, |
| 210 true, | 204 true, |
| 211 "Optimize object size, Array shift, DOM strings and string +") | 205 "Optimize object size, Array shift, DOM strings and string +") |
| 212 DEFINE_bool(pretenuring, true, "allocate objects in old space") | 206 DEFINE_bool(pretenuring, true, "allocate objects in old space") |
| 213 // TODO(hpayer): We will remove this flag as soon as we have pretenuring | 207 // TODO(hpayer): We will remove this flag as soon as we have pretenuring |
| 214 // support for specific allocation sites. | 208 // support for specific allocation sites. |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 #undef DEFINE_ALIAS_float | 849 #undef DEFINE_ALIAS_float |
| 856 #undef DEFINE_ALIAS_args | 850 #undef DEFINE_ALIAS_args |
| 857 | 851 |
| 858 #undef FLAG_MODE_DECLARE | 852 #undef FLAG_MODE_DECLARE |
| 859 #undef FLAG_MODE_DEFINE | 853 #undef FLAG_MODE_DEFINE |
| 860 #undef FLAG_MODE_DEFINE_DEFAULTS | 854 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 861 #undef FLAG_MODE_META | 855 #undef FLAG_MODE_META |
| 862 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 856 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| 863 | 857 |
| 864 #undef COMMA | 858 #undef COMMA |
| OLD | NEW |