OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 DEFINE_bool(trace_alloc, false, "trace register allocator") | 124 DEFINE_bool(trace_alloc, false, "trace register allocator") |
125 DEFINE_bool(trace_all_uses, false, "trace all use positions") | 125 DEFINE_bool(trace_all_uses, false, "trace all use positions") |
126 DEFINE_bool(trace_range, false, "trace range analysis") | 126 DEFINE_bool(trace_range, false, "trace range analysis") |
127 DEFINE_bool(trace_gvn, false, "trace global value numbering") | 127 DEFINE_bool(trace_gvn, false, "trace global value numbering") |
128 DEFINE_bool(trace_representation, false, "trace representation types") | 128 DEFINE_bool(trace_representation, false, "trace representation types") |
129 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction") | 129 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction") |
130 DEFINE_bool(stress_environments, false, "environment for every instruction") | 130 DEFINE_bool(stress_environments, false, "environment for every instruction") |
131 DEFINE_int(deopt_every_n_times, | 131 DEFINE_int(deopt_every_n_times, |
132 0, | 132 0, |
133 "deoptimize every n times a deopt point is passed") | 133 "deoptimize every n times a deopt point is passed") |
134 DEFINE_bool(process_arguments_object, true, "try to deal with arguments object") | |
135 DEFINE_bool(trap_on_deopt, false, "put a break point before deoptimizing") | 134 DEFINE_bool(trap_on_deopt, false, "put a break point before deoptimizing") |
136 DEFINE_bool(deoptimize_uncommon_cases, true, "deoptimize uncommon cases") | 135 DEFINE_bool(deoptimize_uncommon_cases, true, "deoptimize uncommon cases") |
137 DEFINE_bool(polymorphic_inlining, true, "polymorphic inlining") | 136 DEFINE_bool(polymorphic_inlining, true, "polymorphic inlining") |
138 DEFINE_bool(aggressive_loop_invariant_motion, true, | 137 DEFINE_bool(aggressive_loop_invariant_motion, true, |
139 "aggressive motion of instructions out of loops") | 138 "aggressive motion of instructions out of loops") |
140 DEFINE_bool(use_osr, true, "use on-stack replacement") | 139 DEFINE_bool(use_osr, true, "use on-stack replacement") |
141 | 140 |
142 DEFINE_bool(trace_osr, false, "trace on-stack replacement") | 141 DEFINE_bool(trace_osr, false, "trace on-stack replacement") |
143 DEFINE_int(stress_runs, 0, "number of stress runs") | 142 DEFINE_int(stress_runs, 0, "number of stress runs") |
144 DEFINE_bool(optimize_closures, true, "optimize closures") | 143 DEFINE_bool(optimize_closures, true, "optimize closures") |
145 | 144 |
146 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc | 145 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc |
147 DEFINE_bool(debug_code, false, | 146 DEFINE_bool(debug_code, false, |
148 "generate extra code (assertions) for debugging") | 147 "generate extra code (assertions) for debugging") |
149 DEFINE_bool(code_comments, false, "emit comments in code disassembly") | 148 DEFINE_bool(code_comments, false, "emit comments in code disassembly") |
150 DEFINE_bool(peephole_optimization, true, | 149 DEFINE_bool(peephole_optimization, true, |
151 "perform peephole optimizations in assembly code") | 150 "perform peephole optimizations in assembly code") |
152 DEFINE_bool(print_peephole_optimization, false, | |
153 "print peephole optimizations in assembly code") | |
154 DEFINE_bool(enable_sse2, true, | 151 DEFINE_bool(enable_sse2, true, |
155 "enable use of SSE2 instructions if available") | 152 "enable use of SSE2 instructions if available") |
156 DEFINE_bool(enable_sse3, true, | 153 DEFINE_bool(enable_sse3, true, |
157 "enable use of SSE3 instructions if available") | 154 "enable use of SSE3 instructions if available") |
158 DEFINE_bool(enable_sse4_1, true, | 155 DEFINE_bool(enable_sse4_1, true, |
159 "enable use of SSE4.1 instructions if available") | 156 "enable use of SSE4.1 instructions if available") |
160 DEFINE_bool(enable_cmov, true, | 157 DEFINE_bool(enable_cmov, true, |
161 "enable use of CMOV instruction if available") | 158 "enable use of CMOV instruction if available") |
162 DEFINE_bool(enable_rdtsc, true, | 159 DEFINE_bool(enable_rdtsc, true, |
163 "enable use of RDTSC instruction if available") | 160 "enable use of RDTSC instruction if available") |
(...skipping 18 matching lines...) Expand all Loading... |
182 | 179 |
183 // builtins-ia32.cc | 180 // builtins-ia32.cc |
184 DEFINE_bool(inline_new, true, "use fast inline allocation") | 181 DEFINE_bool(inline_new, true, "use fast inline allocation") |
185 | 182 |
186 // checks.cc | 183 // checks.cc |
187 DEFINE_bool(stack_trace_on_abort, true, | 184 DEFINE_bool(stack_trace_on_abort, true, |
188 "print a stack trace if an assertion failure occurs") | 185 "print a stack trace if an assertion failure occurs") |
189 | 186 |
190 // codegen-ia32.cc / codegen-arm.cc | 187 // codegen-ia32.cc / codegen-arm.cc |
191 DEFINE_bool(trace, false, "trace function calls") | 188 DEFINE_bool(trace, false, "trace function calls") |
192 DEFINE_bool(defer_negation, true, "defer negation operation") | |
193 DEFINE_bool(mask_constants_with_cookie, | 189 DEFINE_bool(mask_constants_with_cookie, |
194 true, | 190 true, |
195 "use random jit cookie to mask large constants") | 191 "use random jit cookie to mask large constants") |
196 | 192 |
197 // codegen.cc | 193 // codegen.cc |
198 DEFINE_bool(lazy, true, "use lazy compilation") | 194 DEFINE_bool(lazy, true, "use lazy compilation") |
199 DEFINE_bool(trace_opt, false, "trace lazy optimization") | 195 DEFINE_bool(trace_opt, false, "trace lazy optimization") |
200 DEFINE_bool(trace_opt_stats, false, "trace lazy optimization statistics") | 196 DEFINE_bool(trace_opt_stats, false, "trace lazy optimization statistics") |
201 DEFINE_bool(opt, true, "use adaptive optimizations") | 197 DEFINE_bool(opt, true, "use adaptive optimizations") |
202 DEFINE_bool(opt_eagerly, false, "be more eager when adaptively optimizing") | 198 DEFINE_bool(opt_eagerly, false, "be more eager when adaptively optimizing") |
203 DEFINE_bool(always_opt, false, "always try to optimize functions") | 199 DEFINE_bool(always_opt, false, "always try to optimize functions") |
204 DEFINE_bool(prepare_always_opt, false, "prepare for turning on always opt") | 200 DEFINE_bool(prepare_always_opt, false, "prepare for turning on always opt") |
205 DEFINE_bool(debug_info, true, "add debug information to compiled functions") | 201 DEFINE_bool(debug_info, true, "add debug information to compiled functions") |
206 DEFINE_bool(deopt, true, "support deoptimization") | 202 DEFINE_bool(deopt, true, "support deoptimization") |
207 DEFINE_bool(trace_deopt, false, "trace deoptimization") | 203 DEFINE_bool(trace_deopt, false, "trace deoptimization") |
208 | 204 |
209 // compiler.cc | 205 // compiler.cc |
210 DEFINE_bool(strict, false, "strict error checking") | 206 DEFINE_bool(strict, false, "strict error checking") |
211 DEFINE_int(min_preparse_length, 1024, | 207 DEFINE_int(min_preparse_length, 1024, |
212 "minimum length for automatic enable preparsing") | 208 "minimum length for automatic enable preparsing") |
213 DEFINE_bool(full_compiler, true, "enable dedicated backend for run-once code") | |
214 DEFINE_bool(always_full_compiler, false, | 209 DEFINE_bool(always_full_compiler, false, |
215 "try to use the dedicated run-once backend for all code") | 210 "try to use the dedicated run-once backend for all code") |
216 DEFINE_bool(trace_bailout, false, | 211 DEFINE_bool(trace_bailout, false, |
217 "print reasons for falling back to using the classic V8 backend") | 212 "print reasons for falling back to using the classic V8 backend") |
218 DEFINE_bool(safe_int32_compiler, true, | |
219 "enable optimized side-effect-free int32 expressions.") | |
220 DEFINE_bool(use_flow_graph, false, "perform flow-graph based optimizations") | |
221 | 213 |
222 // compilation-cache.cc | 214 // compilation-cache.cc |
223 DEFINE_bool(compilation_cache, true, "enable compilation cache") | 215 DEFINE_bool(compilation_cache, true, "enable compilation cache") |
224 | 216 |
225 DEFINE_bool(cache_prototype_transitions, true, "cache prototype transitions") | 217 DEFINE_bool(cache_prototype_transitions, true, "cache prototype transitions") |
226 | 218 |
227 // data-flow.cc | |
228 DEFINE_bool(loop_peeling, false, "Peel off the first iteration of loops.") | |
229 | |
230 // debug.cc | 219 // debug.cc |
231 DEFINE_bool(remote_debugging, false, "enable remote debugging") | |
232 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") | 220 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") |
233 DEFINE_bool(debugger_auto_break, true, | 221 DEFINE_bool(debugger_auto_break, true, |
234 "automatically set the debug break flag when debugger commands are " | 222 "automatically set the debug break flag when debugger commands are " |
235 "in the queue") | 223 "in the queue") |
236 DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature") | 224 DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature") |
237 | 225 |
238 // execution.cc | 226 // execution.cc |
239 DEFINE_int(stack_size, kPointerSize * 128, | 227 DEFINE_int(stack_size, kPointerSize * 128, |
240 "default size of stack region v8 is allowed to use (in KkBytes)") | 228 "default size of stack region v8 is allowed to use (in KkBytes)") |
241 | 229 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 DEFINE_bool(h, false, "print this message") | 297 DEFINE_bool(h, false, "print this message") |
310 DEFINE_bool(new_snapshot, true, "use new snapshot implementation") | 298 DEFINE_bool(new_snapshot, true, "use new snapshot implementation") |
311 | 299 |
312 // objects.cc | 300 // objects.cc |
313 DEFINE_bool(use_verbose_printer, true, "allows verbose printing") | 301 DEFINE_bool(use_verbose_printer, true, "allows verbose printing") |
314 | 302 |
315 // parser.cc | 303 // parser.cc |
316 DEFINE_bool(allow_natives_syntax, false, "allow natives syntax") | 304 DEFINE_bool(allow_natives_syntax, false, "allow natives syntax") |
317 DEFINE_bool(strict_mode, true, "allow strict mode directives") | 305 DEFINE_bool(strict_mode, true, "allow strict mode directives") |
318 | 306 |
319 // rewriter.cc | |
320 DEFINE_bool(optimize_ast, true, "optimize the ast") | |
321 | |
322 // simulator-arm.cc and simulator-mips.cc | 307 // simulator-arm.cc and simulator-mips.cc |
323 DEFINE_bool(trace_sim, false, "Trace simulator execution") | 308 DEFINE_bool(trace_sim, false, "Trace simulator execution") |
324 DEFINE_bool(check_icache, false, "Check icache flushes in ARM simulator") | 309 DEFINE_bool(check_icache, false, "Check icache flushes in ARM simulator") |
325 DEFINE_int(stop_sim_at, 0, "Simulator stop after x number of instructions") | 310 DEFINE_int(stop_sim_at, 0, "Simulator stop after x number of instructions") |
326 DEFINE_int(sim_stack_alignment, 8, | 311 DEFINE_int(sim_stack_alignment, 8, |
327 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") | 312 "Stack alingment in bytes in simulator (4 or 8, 8 is default)") |
328 | 313 |
329 // isolate.cc | 314 // isolate.cc |
330 DEFINE_bool(trace_exception, false, | 315 DEFINE_bool(trace_exception, false, |
331 "print stack trace when throwing exceptions") | 316 "print stack trace when throwing exceptions") |
332 DEFINE_bool(preallocate_message_memory, false, | 317 DEFINE_bool(preallocate_message_memory, false, |
333 "preallocate some memory to build stack traces.") | 318 "preallocate some memory to build stack traces.") |
334 | 319 |
335 // v8.cc | 320 // v8.cc |
336 DEFINE_bool(preemption, false, | 321 DEFINE_bool(preemption, false, |
337 "activate a 100ms timer that switches between V8 threads") | 322 "activate a 100ms timer that switches between V8 threads") |
338 | 323 |
339 // Regexp | 324 // Regexp |
340 DEFINE_bool(trace_regexps, false, "trace regexp execution") | |
341 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") | 325 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") |
342 DEFINE_bool(regexp_entry_native, true, "use native code to enter regexp") | 326 DEFINE_bool(regexp_entry_native, true, "use native code to enter regexp") |
343 | 327 |
344 // Testing flags test/cctest/test-{flags,api,serialization}.cc | 328 // Testing flags test/cctest/test-{flags,api,serialization}.cc |
345 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag") | 329 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag") |
346 DEFINE_int(testing_int_flag, 13, "testing_int_flag") | 330 DEFINE_int(testing_int_flag, 13, "testing_int_flag") |
347 DEFINE_float(testing_float_flag, 2.5, "float-flag") | 331 DEFINE_float(testing_float_flag, 2.5, "float-flag") |
348 DEFINE_string(testing_string_flag, "Hello, world!", "string-flag") | 332 DEFINE_string(testing_string_flag, "Hello, world!", "string-flag") |
349 DEFINE_int(testing_prng_seed, 42, "Seed used for threading test randomness") | 333 DEFINE_int(testing_prng_seed, 42, "Seed used for threading test randomness") |
350 #ifdef WIN32 | 334 #ifdef WIN32 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 DEFINE_bool(trace_codegen, false, | 391 DEFINE_bool(trace_codegen, false, |
408 "print name of functions for which code is generated") | 392 "print name of functions for which code is generated") |
409 DEFINE_bool(print_source, false, "pretty print source code") | 393 DEFINE_bool(print_source, false, "pretty print source code") |
410 DEFINE_bool(print_builtin_source, false, | 394 DEFINE_bool(print_builtin_source, false, |
411 "pretty print source code for builtins") | 395 "pretty print source code for builtins") |
412 DEFINE_bool(print_ast, false, "print source AST") | 396 DEFINE_bool(print_ast, false, "print source AST") |
413 DEFINE_bool(print_builtin_ast, false, "print source AST for builtins") | 397 DEFINE_bool(print_builtin_ast, false, "print source AST for builtins") |
414 DEFINE_bool(print_json_ast, false, "print source AST as JSON") | 398 DEFINE_bool(print_json_ast, false, "print source AST as JSON") |
415 DEFINE_bool(print_builtin_json_ast, false, | 399 DEFINE_bool(print_builtin_json_ast, false, |
416 "print source AST for builtins as JSON") | 400 "print source AST for builtins as JSON") |
417 DEFINE_bool(trace_calls, false, "trace calls") | |
418 DEFINE_bool(trace_builtin_calls, false, "trace builtins calls") | |
419 DEFINE_string(stop_at, "", "function name where to insert a breakpoint") | 401 DEFINE_string(stop_at, "", "function name where to insert a breakpoint") |
420 | 402 |
421 // compiler.cc | 403 // compiler.cc |
422 DEFINE_bool(print_builtin_scopes, false, "print scopes for builtins") | 404 DEFINE_bool(print_builtin_scopes, false, "print scopes for builtins") |
423 DEFINE_bool(print_scopes, false, "print scopes") | 405 DEFINE_bool(print_scopes, false, "print scopes") |
424 DEFINE_bool(print_ir, false, "print the AST as seen by the backend") | |
425 DEFINE_bool(print_graph_text, false, | |
426 "print a text representation of the flow graph") | |
427 | 406 |
428 // contexts.cc | 407 // contexts.cc |
429 DEFINE_bool(trace_contexts, false, "trace contexts operations") | 408 DEFINE_bool(trace_contexts, false, "trace contexts operations") |
430 | 409 |
431 // heap.cc | 410 // heap.cc |
432 DEFINE_bool(gc_greedy, false, "perform GC prior to some allocations") | 411 DEFINE_bool(gc_greedy, false, "perform GC prior to some allocations") |
433 DEFINE_bool(gc_verbose, false, "print stuff during garbage collection") | 412 DEFINE_bool(gc_verbose, false, "print stuff during garbage collection") |
434 DEFINE_bool(heap_stats, false, "report heap statistics before and after GC") | 413 DEFINE_bool(heap_stats, false, "report heap statistics before and after GC") |
435 DEFINE_bool(code_stats, false, "report code statistics after GC") | 414 DEFINE_bool(code_stats, false, "report code statistics after GC") |
436 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC") | 415 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC") |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 #undef FLAG | 530 #undef FLAG |
552 | 531 |
553 #undef DEFINE_bool | 532 #undef DEFINE_bool |
554 #undef DEFINE_int | 533 #undef DEFINE_int |
555 #undef DEFINE_string | 534 #undef DEFINE_string |
556 | 535 |
557 #undef FLAG_MODE_DECLARE | 536 #undef FLAG_MODE_DECLARE |
558 #undef FLAG_MODE_DEFINE | 537 #undef FLAG_MODE_DEFINE |
559 #undef FLAG_MODE_DEFINE_DEFAULTS | 538 #undef FLAG_MODE_DEFINE_DEFAULTS |
560 #undef FLAG_MODE_META | 539 #undef FLAG_MODE_META |
OLD | NEW |