OLD | NEW |
---|---|
1 // Copyright 2011 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") | 111 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") |
112 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") | 112 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") |
113 DEFINE_bool(harmony_collections, false, | 113 DEFINE_bool(harmony_collections, false, |
114 "enable harmony collections (sets, maps, and weak maps)") | 114 "enable harmony collections (sets, maps, and weak maps)") |
115 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") | 115 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") |
116 DEFINE_implication(harmony, harmony_scoping) | 116 DEFINE_implication(harmony, harmony_scoping) |
117 DEFINE_implication(harmony, harmony_proxies) | 117 DEFINE_implication(harmony, harmony_proxies) |
118 DEFINE_implication(harmony, harmony_collections) | 118 DEFINE_implication(harmony, harmony_collections) |
119 | 119 |
120 // Flags for experimental implementation features. | 120 // Flags for experimental implementation features. |
121 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") | |
122 DEFINE_bool(smi_only_arrays, false, "tracks arrays with only smi values") | 121 DEFINE_bool(smi_only_arrays, false, "tracks arrays with only smi values") |
123 DEFINE_bool(string_slices, true, "use string slices") | |
124 | |
125 DEFINE_bool(clever_optimizations, | 122 DEFINE_bool(clever_optimizations, |
126 true, | 123 true, |
127 "Optimize object size, Array shift, DOM strings and string +") | 124 "Optimize object size, Array shift, DOM strings and string +") |
128 | 125 |
126 // Flags for data representation optimizations | |
Yang
2012/01/30 10:54:41
those are not actually "experimental" anymore.
| |
127 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") | |
128 DEFINE_bool(string_slices, true, "use string slices") | |
129 | |
129 // Flags for Crankshaft. | 130 // Flags for Crankshaft. |
130 DEFINE_bool(crankshaft, true, "use crankshaft") | 131 DEFINE_bool(crankshaft, true, "use crankshaft") |
131 DEFINE_string(hydrogen_filter, "", "hydrogen use/trace filter") | 132 DEFINE_string(hydrogen_filter, "", "hydrogen use/trace filter") |
132 DEFINE_bool(use_hydrogen, true, "use generated hydrogen for compilation") | 133 DEFINE_bool(use_hydrogen, true, "use generated hydrogen for compilation") |
133 DEFINE_bool(build_lithium, true, "use lithium chunk builder") | 134 DEFINE_bool(build_lithium, true, "use lithium chunk builder") |
134 DEFINE_bool(alloc_lithium, true, "use lithium register allocator") | 135 DEFINE_bool(alloc_lithium, true, "use lithium register allocator") |
135 DEFINE_bool(use_lithium, true, "use lithium code generator") | 136 DEFINE_bool(use_lithium, true, "use lithium code generator") |
136 DEFINE_bool(use_range, true, "use hydrogen range analysis") | 137 DEFINE_bool(use_range, true, "use hydrogen range analysis") |
137 DEFINE_bool(eliminate_dead_phis, true, "eliminate dead phis") | 138 DEFINE_bool(eliminate_dead_phis, true, "eliminate dead phis") |
138 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") | 139 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
242 | 243 |
243 // debug.cc | 244 // debug.cc |
244 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") | 245 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") |
245 DEFINE_bool(debugger_auto_break, true, | 246 DEFINE_bool(debugger_auto_break, true, |
246 "automatically set the debug break flag when debugger commands are " | 247 "automatically set the debug break flag when debugger commands are " |
247 "in the queue") | 248 "in the queue") |
248 DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature") | 249 DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature") |
249 | 250 |
250 // execution.cc | 251 // execution.cc |
251 DEFINE_int(stack_size, kPointerSize * 128, | 252 DEFINE_int(stack_size, kPointerSize * 128, |
252 "default size of stack region v8 is allowed to use (in KkBytes)") | 253 "default size of stack region v8 is allowed to use (in kBytes)") |
253 | 254 |
254 // frames.cc | 255 // frames.cc |
255 DEFINE_int(max_stack_trace_source_length, 300, | 256 DEFINE_int(max_stack_trace_source_length, 300, |
256 "maximum length of function source code printed in a stack trace.") | 257 "maximum length of function source code printed in a stack trace.") |
257 | 258 |
258 // full-codegen.cc | 259 // full-codegen.cc |
259 DEFINE_bool(always_inline_smi_code, false, | 260 DEFINE_bool(always_inline_smi_code, false, |
260 "always inline smi code in non-opt code") | 261 "always inline smi code in non-opt code") |
261 | 262 |
262 // heap.cc | 263 // heap.cc |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 "(0, the default, means to use system random).") | 319 "(0, the default, means to use system random).") |
319 | 320 |
320 DEFINE_bool(canonicalize_object_literal_maps, true, | 321 DEFINE_bool(canonicalize_object_literal_maps, true, |
321 "Canonicalize maps for object literals.") | 322 "Canonicalize maps for object literals.") |
322 | 323 |
323 DEFINE_int(max_map_space_pages, MapSpace::kMaxMapPageIndex - 1, | 324 DEFINE_int(max_map_space_pages, MapSpace::kMaxMapPageIndex - 1, |
324 "Maximum number of pages in map space which still allows to encode " | 325 "Maximum number of pages in map space which still allows to encode " |
325 "forwarding pointers. That's actually a constant, but it's useful " | 326 "forwarding pointers. That's actually a constant, but it's useful " |
326 "to control it with a flag for better testing.") | 327 "to control it with a flag for better testing.") |
327 | 328 |
328 // mksnapshot.cc | |
329 DEFINE_bool(h, false, "print this message") | |
330 DEFINE_bool(new_snapshot, true, "use new snapshot implementation") | |
Yang
2012/01/30 10:54:41
FLAG_h is never used and afaik there is no old sna
| |
331 | |
332 // objects.cc | 329 // objects.cc |
333 DEFINE_bool(use_verbose_printer, true, "allows verbose printing") | 330 DEFINE_bool(use_verbose_printer, true, "allows verbose printing") |
334 | 331 |
335 // parser.cc | 332 // parser.cc |
336 DEFINE_bool(allow_natives_syntax, false, "allow natives syntax") | 333 DEFINE_bool(allow_natives_syntax, false, "allow natives syntax") |
337 | 334 |
338 // simulator-arm.cc and simulator-mips.cc | 335 // simulator-arm.cc and simulator-mips.cc |
339 DEFINE_bool(trace_sim, false, "Trace simulator execution") | 336 DEFINE_bool(trace_sim, false, "Trace simulator execution") |
340 DEFINE_bool(check_icache, false, | 337 DEFINE_bool(check_icache, false, |
341 "Check icache flushes in ARM and MIPS simulator") | 338 "Check icache flushes in ARM and MIPS simulator") |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
585 #undef DEFINE_bool | 582 #undef DEFINE_bool |
586 #undef DEFINE_int | 583 #undef DEFINE_int |
587 #undef DEFINE_string | 584 #undef DEFINE_string |
588 #undef DEFINE_implication | 585 #undef DEFINE_implication |
589 | 586 |
590 #undef FLAG_MODE_DECLARE | 587 #undef FLAG_MODE_DECLARE |
591 #undef FLAG_MODE_DEFINE | 588 #undef FLAG_MODE_DEFINE |
592 #undef FLAG_MODE_DEFINE_DEFAULTS | 589 #undef FLAG_MODE_DEFINE_DEFAULTS |
593 #undef FLAG_MODE_META | 590 #undef FLAG_MODE_META |
594 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 591 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
OLD | NEW |