| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 DEFINE_bool(deoptimize_uncommon_cases, true, "deoptimize uncommon cases") | 134 DEFINE_bool(deoptimize_uncommon_cases, true, "deoptimize uncommon cases") |
| 135 DEFINE_bool(polymorphic_inlining, true, "polymorphic inlining") | 135 DEFINE_bool(polymorphic_inlining, true, "polymorphic inlining") |
| 136 DEFINE_bool(aggressive_loop_invariant_motion, true, | 136 DEFINE_bool(aggressive_loop_invariant_motion, true, |
| 137 "aggressive motion of instructions out of loops") | 137 "aggressive motion of instructions out of loops") |
| 138 #ifdef V8_TARGET_ARCH_IA32 | 138 #ifdef V8_TARGET_ARCH_IA32 |
| 139 DEFINE_bool(use_osr, true, "use on-stack replacement") | 139 DEFINE_bool(use_osr, true, "use on-stack replacement") |
| 140 #else | 140 #else |
| 141 DEFINE_bool(use_osr, false, "use on-stack replacement") | 141 DEFINE_bool(use_osr, false, "use on-stack replacement") |
| 142 #endif | 142 #endif |
| 143 DEFINE_bool(trace_osr, false, "trace on-stack replacement") | 143 DEFINE_bool(trace_osr, false, "trace on-stack replacement") |
| 144 DEFINE_int(stress_runs, 0, "number of stress runs") |
| 144 | 145 |
| 145 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc | 146 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc |
| 146 DEFINE_bool(debug_code, false, | 147 DEFINE_bool(debug_code, false, |
| 147 "generate extra code (assertions) for debugging") | 148 "generate extra code (assertions) for debugging") |
| 148 DEFINE_bool(code_comments, false, "emit comments in code disassembly") | 149 DEFINE_bool(code_comments, false, "emit comments in code disassembly") |
| 149 DEFINE_bool(emit_branch_hints, false, "emit branch hints") | 150 DEFINE_bool(emit_branch_hints, false, "emit branch hints") |
| 150 DEFINE_bool(peephole_optimization, true, | 151 DEFINE_bool(peephole_optimization, true, |
| 151 "perform peephole optimizations in assembly code") | 152 "perform peephole optimizations in assembly code") |
| 152 DEFINE_bool(print_peephole_optimization, false, | 153 DEFINE_bool(print_peephole_optimization, false, |
| 153 "print peephole optimizations in assembly code") | 154 "print peephole optimizations in assembly code") |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // codegen-ia32.cc / codegen-arm.cc | 188 // codegen-ia32.cc / codegen-arm.cc |
| 188 DEFINE_bool(trace, false, "trace function calls") | 189 DEFINE_bool(trace, false, "trace function calls") |
| 189 DEFINE_bool(defer_negation, true, "defer negation operation") | 190 DEFINE_bool(defer_negation, true, "defer negation operation") |
| 190 DEFINE_bool(mask_constants_with_cookie, | 191 DEFINE_bool(mask_constants_with_cookie, |
| 191 true, | 192 true, |
| 192 "use random jit cookie to mask large constants") | 193 "use random jit cookie to mask large constants") |
| 193 | 194 |
| 194 // codegen.cc | 195 // codegen.cc |
| 195 DEFINE_bool(lazy, true, "use lazy compilation") | 196 DEFINE_bool(lazy, true, "use lazy compilation") |
| 196 DEFINE_bool(trace_opt, false, "trace lazy optimization") | 197 DEFINE_bool(trace_opt, false, "trace lazy optimization") |
| 198 DEFINE_bool(trace_opt_stats, false, "trace lazy optimization statistics") |
| 197 DEFINE_bool(opt, true, "use adaptive optimizations") | 199 DEFINE_bool(opt, true, "use adaptive optimizations") |
| 198 DEFINE_bool(opt_eagerly, false, "be more eager when adaptively optimizing") | 200 DEFINE_bool(opt_eagerly, false, "be more eager when adaptively optimizing") |
| 199 DEFINE_bool(always_opt, false, "always try to optimize functions") | 201 DEFINE_bool(always_opt, false, "always try to optimize functions") |
| 200 DEFINE_bool(prepare_always_opt, false, "prepare for turning on always opt") | 202 DEFINE_bool(prepare_always_opt, false, "prepare for turning on always opt") |
| 201 DEFINE_bool(debug_info, true, "add debug information to compiled functions") | 203 DEFINE_bool(debug_info, true, "add debug information to compiled functions") |
| 202 DEFINE_bool(deopt, true, "support deoptimization") | 204 DEFINE_bool(deopt, true, "support deoptimization") |
| 203 DEFINE_bool(trace_deopt, false, "trace deoptimization") | 205 DEFINE_bool(trace_deopt, false, "trace deoptimization") |
| 204 | 206 |
| 205 // compiler.cc | 207 // compiler.cc |
| 206 DEFINE_bool(strict, false, "strict error checking") | 208 DEFINE_bool(strict, false, "strict error checking") |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 289 |
| 288 DEFINE_int(max_map_space_pages, MapSpace::kMaxMapPageIndex - 1, | 290 DEFINE_int(max_map_space_pages, MapSpace::kMaxMapPageIndex - 1, |
| 289 "Maximum number of pages in map space which still allows to encode " | 291 "Maximum number of pages in map space which still allows to encode " |
| 290 "forwarding pointers. That's actually a constant, but it's useful " | 292 "forwarding pointers. That's actually a constant, but it's useful " |
| 291 "to control it with a flag for better testing.") | 293 "to control it with a flag for better testing.") |
| 292 | 294 |
| 293 // mksnapshot.cc | 295 // mksnapshot.cc |
| 294 DEFINE_bool(h, false, "print this message") | 296 DEFINE_bool(h, false, "print this message") |
| 295 DEFINE_bool(new_snapshot, true, "use new snapshot implementation") | 297 DEFINE_bool(new_snapshot, true, "use new snapshot implementation") |
| 296 | 298 |
| 299 // objects.cc |
| 300 DEFINE_bool(use_verbose_printer, true, "allows verbose printing") |
| 301 |
| 297 // parser.cc | 302 // parser.cc |
| 298 DEFINE_bool(allow_natives_syntax, false, "allow natives syntax") | 303 DEFINE_bool(allow_natives_syntax, false, "allow natives syntax") |
| 299 | 304 |
| 300 // rewriter.cc | 305 // rewriter.cc |
| 301 DEFINE_bool(optimize_ast, true, "optimize the ast") | 306 DEFINE_bool(optimize_ast, true, "optimize the ast") |
| 302 | 307 |
| 303 // simulator-arm.cc and simulator-mips.cc | 308 // simulator-arm.cc and simulator-mips.cc |
| 304 DEFINE_bool(trace_sim, false, "Trace simulator execution") | 309 DEFINE_bool(trace_sim, false, "Trace simulator execution") |
| 305 DEFINE_bool(check_icache, false, "Check icache flushes in ARM simulator") | 310 DEFINE_bool(check_icache, false, "Check icache flushes in ARM simulator") |
| 306 DEFINE_int(stop_sim_at, 0, "Simulator stop after x number of instructions") | 311 DEFINE_int(stop_sim_at, 0, "Simulator stop after x number of instructions") |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 #else | 501 #else |
| 497 #define FLAG FLAG_READONLY | 502 #define FLAG FLAG_READONLY |
| 498 #endif | 503 #endif |
| 499 | 504 |
| 500 // code-stubs.cc | 505 // code-stubs.cc |
| 501 DEFINE_bool(print_code_stubs, false, "print code stubs") | 506 DEFINE_bool(print_code_stubs, false, "print code stubs") |
| 502 | 507 |
| 503 // codegen-ia32.cc / codegen-arm.cc | 508 // codegen-ia32.cc / codegen-arm.cc |
| 504 DEFINE_bool(print_code, false, "print generated code") | 509 DEFINE_bool(print_code, false, "print generated code") |
| 505 DEFINE_bool(print_opt_code, false, "print optimized code") | 510 DEFINE_bool(print_opt_code, false, "print optimized code") |
| 511 DEFINE_bool(print_unopt_code, false, "print unoptimized code before " |
| 512 "printing optimized code based on it") |
| 506 DEFINE_bool(print_code_verbose, false, "print more information for code") | 513 DEFINE_bool(print_code_verbose, false, "print more information for code") |
| 507 DEFINE_bool(print_builtin_code, false, "print generated code for builtins") | 514 DEFINE_bool(print_builtin_code, false, "print generated code for builtins") |
| 508 | 515 |
| 509 // Cleanup... | 516 // Cleanup... |
| 510 #undef FLAG_FULL | 517 #undef FLAG_FULL |
| 511 #undef FLAG_READONLY | 518 #undef FLAG_READONLY |
| 512 #undef FLAG | 519 #undef FLAG |
| 513 | 520 |
| 514 #undef DEFINE_bool | 521 #undef DEFINE_bool |
| 515 #undef DEFINE_int | 522 #undef DEFINE_int |
| 516 #undef DEFINE_string | 523 #undef DEFINE_string |
| 517 | 524 |
| 518 #undef FLAG_MODE_DECLARE | 525 #undef FLAG_MODE_DECLARE |
| 519 #undef FLAG_MODE_DEFINE | 526 #undef FLAG_MODE_DEFINE |
| 520 #undef FLAG_MODE_DEFINE_DEFAULTS | 527 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 521 #undef FLAG_MODE_META | 528 #undef FLAG_MODE_META |
| OLD | NEW |