OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 // | 94 // |
95 // Flags in all modes. | 95 // Flags in all modes. |
96 // | 96 // |
97 #define FLAG FLAG_FULL | 97 #define FLAG FLAG_FULL |
98 | 98 |
99 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc | 99 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc |
100 DEFINE_bool(debug_code, false, | 100 DEFINE_bool(debug_code, false, |
101 "generate extra code (comments, assertions) for debugging") | 101 "generate extra code (comments, assertions) for debugging") |
102 DEFINE_bool(emit_branch_hints, false, "emit branch hints") | 102 DEFINE_bool(emit_branch_hints, false, "emit branch hints") |
103 DEFINE_bool(push_pop_elimination, true, | 103 DEFINE_bool(peephole_optimization, true, |
104 "eliminate redundant push/pops in assembly code") | 104 "perform peephole optimizations in assembly code") |
105 DEFINE_bool(print_push_pop_elimination, false, | 105 DEFINE_bool(print_peephole_optimization, false, |
106 "print elimination of redundant push/pops in assembly code") | 106 "print peephole optimizations in assembly code") |
107 DEFINE_bool(enable_sse2, true, | 107 DEFINE_bool(enable_sse2, true, |
108 "enable use of SSE2 instructions if available") | 108 "enable use of SSE2 instructions if available") |
109 DEFINE_bool(enable_sse3, true, | 109 DEFINE_bool(enable_sse3, true, |
110 "enable use of SSE3 instructions if available") | 110 "enable use of SSE3 instructions if available") |
111 DEFINE_bool(enable_cmov, true, | 111 DEFINE_bool(enable_cmov, true, |
112 "enable use of CMOV instruction if available") | 112 "enable use of CMOV instruction if available") |
113 DEFINE_bool(enable_rdtsc, true, | 113 DEFINE_bool(enable_rdtsc, true, |
114 "enable use of RDTSC instruction if available") | 114 "enable use of RDTSC instruction if available") |
115 DEFINE_bool(enable_sahf, true, | 115 DEFINE_bool(enable_sahf, true, |
116 "enable use of SAHF instruction if available (X64 only)") | 116 "enable use of SAHF instruction if available (X64 only)") |
(...skipping 25 matching lines...) Expand all Loading... |
142 DEFINE_bool(debug_info, true, "add debug information to compiled functions") | 142 DEFINE_bool(debug_info, true, "add debug information to compiled functions") |
143 | 143 |
144 // compiler.cc | 144 // compiler.cc |
145 DEFINE_bool(strict, false, "strict error checking") | 145 DEFINE_bool(strict, false, "strict error checking") |
146 DEFINE_int(min_preparse_length, 1024, | 146 DEFINE_int(min_preparse_length, 1024, |
147 "minimum length for automatic enable preparsing") | 147 "minimum length for automatic enable preparsing") |
148 DEFINE_bool(full_compiler, true, "enable dedicated backend for run-once code") | 148 DEFINE_bool(full_compiler, true, "enable dedicated backend for run-once code") |
149 DEFINE_bool(fast_compiler, false, "enable speculative optimizing backend") | 149 DEFINE_bool(fast_compiler, false, "enable speculative optimizing backend") |
150 DEFINE_bool(always_full_compiler, false, | 150 DEFINE_bool(always_full_compiler, false, |
151 "try to use the dedicated run-once backend for all code") | 151 "try to use the dedicated run-once backend for all code") |
| 152 #if defined(V8_TARGET_ARCH_IA32) || defined(V8_TARGET_ARCH_X64) |
| 153 DEFINE_bool(force_full_compiler, false, |
| 154 "force use of the dedicated run-once backend for all code") |
| 155 #endif |
152 DEFINE_bool(always_fast_compiler, false, | 156 DEFINE_bool(always_fast_compiler, false, |
153 "try to use the speculative optimizing backend for all code") | 157 "try to use the speculative optimizing backend for all code") |
154 DEFINE_bool(trace_bailout, false, | 158 DEFINE_bool(trace_bailout, false, |
155 "print reasons for falling back to using the classic V8 backend") | 159 "print reasons for falling back to using the classic V8 backend") |
156 DEFINE_bool(safe_int32_compiler, true, | 160 DEFINE_bool(safe_int32_compiler, true, |
157 "enable optimized side-effect-free int32 expressions.") | 161 "enable optimized side-effect-free int32 expressions.") |
158 DEFINE_bool(use_flow_graph, false, "perform flow-graph based optimizations") | 162 DEFINE_bool(use_flow_graph, false, "perform flow-graph based optimizations") |
159 | 163 |
160 // compilation-cache.cc | 164 // compilation-cache.cc |
161 DEFINE_bool(compilation_cache, true, "enable compilation cache") | 165 DEFINE_bool(compilation_cache, true, "enable compilation cache") |
(...skipping 13 matching lines...) Expand all Loading... |
175 DEFINE_int(max_stack_trace_source_length, 300, | 179 DEFINE_int(max_stack_trace_source_length, 300, |
176 "maximum length of function source code printed in a stack trace.") | 180 "maximum length of function source code printed in a stack trace.") |
177 | 181 |
178 // heap.cc | 182 // heap.cc |
179 DEFINE_int(max_new_space_size, 0, "max size of the new generation") | 183 DEFINE_int(max_new_space_size, 0, "max size of the new generation") |
180 DEFINE_int(max_old_space_size, 0, "max size of the old generation") | 184 DEFINE_int(max_old_space_size, 0, "max size of the old generation") |
181 DEFINE_bool(gc_global, false, "always perform global GCs") | 185 DEFINE_bool(gc_global, false, "always perform global GCs") |
182 DEFINE_int(gc_interval, -1, "garbage collect after <n> allocations") | 186 DEFINE_int(gc_interval, -1, "garbage collect after <n> allocations") |
183 DEFINE_bool(trace_gc, false, | 187 DEFINE_bool(trace_gc, false, |
184 "print one trace line following each garbage collection") | 188 "print one trace line following each garbage collection") |
| 189 DEFINE_bool(trace_gc_nvp, false, |
| 190 "print one detailed trace line in name=value format " |
| 191 "after each garbage collection") |
| 192 DEFINE_bool(print_cumulative_gc_stat, false, |
| 193 "print cumulative GC statistics in name=value format on exit") |
185 DEFINE_bool(trace_gc_verbose, false, | 194 DEFINE_bool(trace_gc_verbose, false, |
186 "print more details following each garbage collection") | 195 "print more details following each garbage collection") |
187 DEFINE_bool(collect_maps, true, | 196 DEFINE_bool(collect_maps, true, |
188 "garbage collect maps from which no objects can be reached") | 197 "garbage collect maps from which no objects can be reached") |
189 | 198 |
190 // v8.cc | 199 // v8.cc |
191 DEFINE_bool(use_idle_notification, true, | 200 DEFINE_bool(use_idle_notification, true, |
192 "Use idle notification to reduce memory footprint.") | 201 "Use idle notification to reduce memory footprint.") |
193 // ic.cc | 202 // ic.cc |
194 DEFINE_bool(use_ic, true, "use inline caching") | 203 DEFINE_bool(use_ic, true, "use inline caching") |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 #undef FLAG | 447 #undef FLAG |
439 | 448 |
440 #undef DEFINE_bool | 449 #undef DEFINE_bool |
441 #undef DEFINE_int | 450 #undef DEFINE_int |
442 #undef DEFINE_string | 451 #undef DEFINE_string |
443 | 452 |
444 #undef FLAG_MODE_DECLARE | 453 #undef FLAG_MODE_DECLARE |
445 #undef FLAG_MODE_DEFINE | 454 #undef FLAG_MODE_DEFINE |
446 #undef FLAG_MODE_DEFINE_DEFAULTS | 455 #undef FLAG_MODE_DEFINE_DEFAULTS |
447 #undef FLAG_MODE_META | 456 #undef FLAG_MODE_META |
OLD | NEW |