| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 DEFINE_bool(crankshaft, false, "use crankshaft") | 103 DEFINE_bool(crankshaft, false, "use crankshaft") |
| 104 #endif | 104 #endif |
| 105 DEFINE_string(hydrogen_filter, "", "hydrogen use/trace filter") | 105 DEFINE_string(hydrogen_filter, "", "hydrogen use/trace filter") |
| 106 DEFINE_bool(use_hydrogen, true, "use generated hydrogen for compilation") | 106 DEFINE_bool(use_hydrogen, true, "use generated hydrogen for compilation") |
| 107 DEFINE_bool(build_lithium, true, "use lithium chunk builder") | 107 DEFINE_bool(build_lithium, true, "use lithium chunk builder") |
| 108 DEFINE_bool(alloc_lithium, true, "use lithium register allocator") | 108 DEFINE_bool(alloc_lithium, true, "use lithium register allocator") |
| 109 DEFINE_bool(use_lithium, true, "use lithium code generator") | 109 DEFINE_bool(use_lithium, true, "use lithium code generator") |
| 110 DEFINE_bool(use_range, true, "use hydrogen range analysis") | 110 DEFINE_bool(use_range, true, "use hydrogen range analysis") |
| 111 DEFINE_bool(eliminate_dead_phis, true, "eliminate dead phis") | 111 DEFINE_bool(eliminate_dead_phis, true, "eliminate dead phis") |
| 112 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") | 112 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") |
| 113 DEFINE_bool(use_peeling, false, "use loop peeling") | |
| 114 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") | 113 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") |
| 115 DEFINE_bool(use_inlining, true, "use function inlining") | 114 DEFINE_bool(use_inlining, true, "use function inlining") |
| 116 DEFINE_bool(limit_inlining, true, "limit code size growth from inlining") | 115 DEFINE_bool(limit_inlining, true, "limit code size growth from inlining") |
| 117 DEFINE_bool(eliminate_empty_blocks, true, "eliminate empty blocks") | 116 DEFINE_bool(eliminate_empty_blocks, true, "eliminate empty blocks") |
| 118 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") | 117 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") |
| 119 DEFINE_bool(time_hydrogen, false, "timing for hydrogen") | 118 DEFINE_bool(time_hydrogen, false, "timing for hydrogen") |
| 120 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") | 119 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") |
| 121 DEFINE_bool(trace_inlining, false, "trace inlining decisions") | 120 DEFINE_bool(trace_inlining, false, "trace inlining decisions") |
| 122 DEFINE_bool(trace_alloc, false, "trace register allocator") | 121 DEFINE_bool(trace_alloc, false, "trace register allocator") |
| 122 DEFINE_bool(trace_all_uses, false, "trace all use positions") |
| 123 DEFINE_bool(trace_range, false, "trace range analysis") | 123 DEFINE_bool(trace_range, false, "trace range analysis") |
| 124 DEFINE_bool(trace_gvn, false, "trace global value numbering") | 124 DEFINE_bool(trace_gvn, false, "trace global value numbering") |
| 125 DEFINE_bool(trace_representation, false, "trace representation types") | 125 DEFINE_bool(trace_representation, false, "trace representation types") |
| 126 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction") | 126 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction") |
| 127 DEFINE_bool(stress_environments, false, "environment for every instruction") | 127 DEFINE_bool(stress_environments, false, "environment for every instruction") |
| 128 DEFINE_int(deopt_every_n_times, | 128 DEFINE_int(deopt_every_n_times, |
| 129 0, | 129 0, |
| 130 "deoptimize every n times a deopt point is passed") | 130 "deoptimize every n times a deopt point is passed") |
| 131 DEFINE_bool(process_arguments_object, true, "try to deal with arguments object") | 131 DEFINE_bool(process_arguments_object, true, "try to deal with arguments object") |
| 132 DEFINE_bool(trap_on_deopt, false, "put a break point before deoptimizing") | 132 DEFINE_bool(trap_on_deopt, false, "put a break point before deoptimizing") |
| 133 DEFINE_bool(deoptimize_uncommon_cases, true, "deoptimize uncommon cases") | 133 DEFINE_bool(deoptimize_uncommon_cases, true, "deoptimize uncommon cases") |
| 134 DEFINE_bool(polymorphic_inlining, true, "polymorphic inlining") | 134 DEFINE_bool(polymorphic_inlining, true, "polymorphic inlining") |
| 135 DEFINE_bool(aggressive_loop_invariant_motion, true, | 135 DEFINE_bool(aggressive_loop_invariant_motion, true, |
| 136 "aggressive motion of instructions out of loops") | 136 "aggressive motion of instructions out of loops") |
| 137 #ifdef V8_TARGET_ARCH_IA32 | |
| 138 DEFINE_bool(use_osr, true, "use on-stack replacement") | 137 DEFINE_bool(use_osr, true, "use on-stack replacement") |
| 139 #else | 138 |
| 140 DEFINE_bool(use_osr, false, "use on-stack replacement") | |
| 141 #endif | |
| 142 DEFINE_bool(trace_osr, false, "trace on-stack replacement") | 139 DEFINE_bool(trace_osr, false, "trace on-stack replacement") |
| 143 DEFINE_int(stress_runs, 0, "number of stress runs") | 140 DEFINE_int(stress_runs, 0, "number of stress runs") |
| 144 DEFINE_bool(optimize_closures, true, "optimize closures") | 141 DEFINE_bool(optimize_closures, true, "optimize closures") |
| 145 | 142 |
| 146 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc | 143 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc |
| 147 DEFINE_bool(debug_code, false, | 144 DEFINE_bool(debug_code, false, |
| 148 "generate extra code (assertions) for debugging") | 145 "generate extra code (assertions) for debugging") |
| 149 DEFINE_bool(code_comments, false, "emit comments in code disassembly") | 146 DEFINE_bool(code_comments, false, "emit comments in code disassembly") |
| 150 DEFINE_bool(emit_branch_hints, false, "emit branch hints") | 147 DEFINE_bool(emit_branch_hints, false, "emit branch hints") |
| 151 DEFINE_bool(peephole_optimization, true, | 148 DEFINE_bool(peephole_optimization, true, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 DEFINE_bool(loop_peeling, false, "Peel off the first iteration of loops.") | 221 DEFINE_bool(loop_peeling, false, "Peel off the first iteration of loops.") |
| 225 | 222 |
| 226 // debug.cc | 223 // debug.cc |
| 227 DEFINE_bool(remote_debugging, false, "enable remote debugging") | 224 DEFINE_bool(remote_debugging, false, "enable remote debugging") |
| 228 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") | 225 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") |
| 229 DEFINE_bool(debugger_auto_break, true, | 226 DEFINE_bool(debugger_auto_break, true, |
| 230 "automatically set the debug break flag when debugger commands are " | 227 "automatically set the debug break flag when debugger commands are " |
| 231 "in the queue") | 228 "in the queue") |
| 232 DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature") | 229 DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature") |
| 233 | 230 |
| 231 // execution.cc |
| 232 DEFINE_int(stack_size, kPointerSize * 128, |
| 233 "default size of stack region v8 is allowed to use (in KkBytes)") |
| 234 |
| 234 // frames.cc | 235 // frames.cc |
| 235 DEFINE_int(max_stack_trace_source_length, 300, | 236 DEFINE_int(max_stack_trace_source_length, 300, |
| 236 "maximum length of function source code printed in a stack trace.") | 237 "maximum length of function source code printed in a stack trace.") |
| 237 | 238 |
| 238 // full-codegen.cc | 239 // full-codegen.cc |
| 239 DEFINE_bool(always_inline_smi_code, false, | 240 DEFINE_bool(always_inline_smi_code, false, |
| 240 "always inline smi code in non-opt code") | 241 "always inline smi code in non-opt code") |
| 241 | 242 |
| 242 // heap.cc | 243 // heap.cc |
| 243 DEFINE_int(max_new_space_size, 0, "max size of the new generation (in kBytes)") | 244 DEFINE_int(max_new_space_size, 0, "max size of the new generation (in kBytes)") |
| (...skipping 14 matching lines...) Expand all Loading... |
| 258 "garbage collect maps from which no objects can be reached") | 259 "garbage collect maps from which no objects can be reached") |
| 259 DEFINE_bool(flush_code, true, | 260 DEFINE_bool(flush_code, true, |
| 260 "flush code that we expect not to use again before full gc") | 261 "flush code that we expect not to use again before full gc") |
| 261 | 262 |
| 262 // v8.cc | 263 // v8.cc |
| 263 DEFINE_bool(use_idle_notification, true, | 264 DEFINE_bool(use_idle_notification, true, |
| 264 "Use idle notification to reduce memory footprint.") | 265 "Use idle notification to reduce memory footprint.") |
| 265 // ic.cc | 266 // ic.cc |
| 266 DEFINE_bool(use_ic, true, "use inline caching") | 267 DEFINE_bool(use_ic, true, "use inline caching") |
| 267 | 268 |
| 269 #ifdef LIVE_OBJECT_LIST |
| 270 // liveobjectlist.cc |
| 271 DEFINE_string(lol_workdir, NULL, "path for lol temp files") |
| 272 DEFINE_bool(verify_lol, false, "perform debugging verification for lol") |
| 273 #endif |
| 274 |
| 268 // macro-assembler-ia32.cc | 275 // macro-assembler-ia32.cc |
| 269 DEFINE_bool(native_code_counters, false, | 276 DEFINE_bool(native_code_counters, false, |
| 270 "generate extra code for manipulating stats counters") | 277 "generate extra code for manipulating stats counters") |
| 271 | 278 |
| 272 // mark-compact.cc | 279 // mark-compact.cc |
| 273 DEFINE_bool(always_compact, false, "Perform compaction on every full GC") | 280 DEFINE_bool(always_compact, false, "Perform compaction on every full GC") |
| 274 DEFINE_bool(never_compact, false, | 281 DEFINE_bool(never_compact, false, |
| 275 "Never perform compaction on full GC - testing only") | 282 "Never perform compaction on full GC - testing only") |
| 276 DEFINE_bool(cleanup_ics_at_gc, true, | 283 DEFINE_bool(cleanup_ics_at_gc, true, |
| 277 "Flush inline caches prior to mark compact collection.") | 284 "Flush inline caches prior to mark compact collection.") |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 // Dev shell flags | 353 // Dev shell flags |
| 347 // | 354 // |
| 348 | 355 |
| 349 DEFINE_bool(help, false, "Print usage message, including flags, on console") | 356 DEFINE_bool(help, false, "Print usage message, including flags, on console") |
| 350 DEFINE_bool(dump_counters, false, "Dump counters on exit") | 357 DEFINE_bool(dump_counters, false, "Dump counters on exit") |
| 351 DEFINE_bool(debugger, false, "Enable JavaScript debugger") | 358 DEFINE_bool(debugger, false, "Enable JavaScript debugger") |
| 352 DEFINE_bool(remote_debugger, false, "Connect JavaScript debugger to the " | 359 DEFINE_bool(remote_debugger, false, "Connect JavaScript debugger to the " |
| 353 "debugger agent in another process") | 360 "debugger agent in another process") |
| 354 DEFINE_bool(debugger_agent, false, "Enable debugger agent") | 361 DEFINE_bool(debugger_agent, false, "Enable debugger agent") |
| 355 DEFINE_int(debugger_port, 5858, "Port to use for remote debugging") | 362 DEFINE_int(debugger_port, 5858, "Port to use for remote debugging") |
| 356 DEFINE_string(map_counters, NULL, "Map counters to a file") | 363 DEFINE_string(map_counters, "", "Map counters to a file") |
| 357 DEFINE_args(js_arguments, JSArguments(), | 364 DEFINE_args(js_arguments, JSArguments(), |
| 358 "Pass all remaining arguments to the script. Alias for \"--\".") | 365 "Pass all remaining arguments to the script. Alias for \"--\".") |
| 359 | 366 |
| 360 #if defined(WEBOS__) | 367 #if defined(WEBOS__) |
| 361 DEFINE_bool(debug_compile_events, false, "Enable debugger compile events") | 368 DEFINE_bool(debug_compile_events, false, "Enable debugger compile events") |
| 362 DEFINE_bool(debug_script_collected_events, false, | 369 DEFINE_bool(debug_script_collected_events, false, |
| 363 "Enable debugger script collected events") | 370 "Enable debugger script collected events") |
| 364 #else | 371 #else |
| 365 DEFINE_bool(debug_compile_events, true, "Enable debugger compile events") | 372 DEFINE_bool(debug_compile_events, true, "Enable debugger compile events") |
| 366 DEFINE_bool(debug_script_collected_events, true, | 373 DEFINE_bool(debug_script_collected_events, true, |
| 367 "Enable debugger script collected events") | 374 "Enable debugger script collected events") |
| 368 #endif | 375 #endif |
| 369 | 376 |
| 370 | 377 |
| 371 // | 378 // |
| 372 // GDB JIT integration flags. | 379 // GDB JIT integration flags. |
| 373 // | 380 // |
| 374 | 381 |
| 375 DEFINE_bool(gdbjit, false, "enable GDBJIT interface (disables compacting GC)") | 382 DEFINE_bool(gdbjit, false, "enable GDBJIT interface (disables compacting GC)") |
| 376 DEFINE_bool(gdbjit_full, false, "enable GDBJIT interface for all code objects") | 383 DEFINE_bool(gdbjit_full, false, "enable GDBJIT interface for all code objects") |
| 384 DEFINE_bool(gdbjit_dump, false, "dump elf objects with debug info to disk") |
| 377 | 385 |
| 378 // | 386 // |
| 379 // Debug only flags | 387 // Debug only flags |
| 380 // | 388 // |
| 381 #undef FLAG | 389 #undef FLAG |
| 382 #ifdef DEBUG | 390 #ifdef DEBUG |
| 383 #define FLAG FLAG_FULL | 391 #define FLAG FLAG_FULL |
| 384 #else | 392 #else |
| 385 #define FLAG FLAG_READONLY | 393 #define FLAG FLAG_READONLY |
| 386 #endif | 394 #endif |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 "Used with --prof, starts profiling automatically") | 496 "Used with --prof, starts profiling automatically") |
| 489 DEFINE_bool(prof_lazy, false, | 497 DEFINE_bool(prof_lazy, false, |
| 490 "Used with --prof, only does sampling and logging" | 498 "Used with --prof, only does sampling and logging" |
| 491 " when profiler is active (implies --noprof_auto).") | 499 " when profiler is active (implies --noprof_auto).") |
| 492 DEFINE_bool(prof_browser_mode, true, | 500 DEFINE_bool(prof_browser_mode, true, |
| 493 "Used with --prof, turns on browser-compatible mode for profiling.") | 501 "Used with --prof, turns on browser-compatible mode for profiling.") |
| 494 DEFINE_bool(log_regexp, false, "Log regular expression execution.") | 502 DEFINE_bool(log_regexp, false, "Log regular expression execution.") |
| 495 DEFINE_bool(sliding_state_window, false, | 503 DEFINE_bool(sliding_state_window, false, |
| 496 "Update sliding state window counters.") | 504 "Update sliding state window counters.") |
| 497 DEFINE_string(logfile, "v8.log", "Specify the name of the log file.") | 505 DEFINE_string(logfile, "v8.log", "Specify the name of the log file.") |
| 498 DEFINE_bool(oprofile, false, "Enable JIT agent for OProfile.") | |
| 499 DEFINE_bool(ll_prof, false, "Enable low-level linux profiler.") | 506 DEFINE_bool(ll_prof, false, "Enable low-level linux profiler.") |
| 500 | 507 |
| 501 // | 508 // |
| 502 // Heap protection flags | 509 // Heap protection flags |
| 503 // Using heap protection requires ENABLE_LOGGING_AND_PROFILING as well. | 510 // Using heap protection requires ENABLE_LOGGING_AND_PROFILING as well. |
| 504 // | 511 // |
| 505 #ifdef ENABLE_HEAP_PROTECTION | 512 #ifdef ENABLE_HEAP_PROTECTION |
| 506 #undef FLAG | 513 #undef FLAG |
| 507 #define FLAG FLAG_FULL | 514 #define FLAG FLAG_FULL |
| 508 | 515 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 538 #undef FLAG | 545 #undef FLAG |
| 539 | 546 |
| 540 #undef DEFINE_bool | 547 #undef DEFINE_bool |
| 541 #undef DEFINE_int | 548 #undef DEFINE_int |
| 542 #undef DEFINE_string | 549 #undef DEFINE_string |
| 543 | 550 |
| 544 #undef FLAG_MODE_DECLARE | 551 #undef FLAG_MODE_DECLARE |
| 545 #undef FLAG_MODE_DEFINE | 552 #undef FLAG_MODE_DEFINE |
| 546 #undef FLAG_MODE_DEFINE_DEFAULTS | 553 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 547 #undef FLAG_MODE_META | 554 #undef FLAG_MODE_META |
| OLD | NEW |