| OLD | NEW |
| 1 // Copyright 2012 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 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // a mode defined before it's included. The modes are FLAG_MODE_... below: | 34 // a mode defined before it's included. The modes are FLAG_MODE_... below: |
| 35 | 35 |
| 36 // We want to declare the names of the variables for the header file. Normally | 36 // We want to declare the names of the variables for the header file. Normally |
| 37 // this will just be an extern declaration, but for a readonly flag we let the | 37 // this will just be an extern declaration, but for a readonly flag we let the |
| 38 // compiler make better optimizations by giving it the value. | 38 // compiler make better optimizations by giving it the value. |
| 39 #if defined(FLAG_MODE_DECLARE) | 39 #if defined(FLAG_MODE_DECLARE) |
| 40 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \ | 40 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \ |
| 41 extern ctype FLAG_##nam; | 41 extern ctype FLAG_##nam; |
| 42 #define FLAG_READONLY(ftype, ctype, nam, def, cmt) \ | 42 #define FLAG_READONLY(ftype, ctype, nam, def, cmt) \ |
| 43 static ctype const FLAG_##nam = def; | 43 static ctype const FLAG_##nam = def; |
| 44 #define DEFINE_implication(whenflag, thenflag) | |
| 45 | 44 |
| 46 // We want to supply the actual storage and value for the flag variable in the | 45 // We want to supply the actual storage and value for the flag variable in the |
| 47 // .cc file. We only do this for writable flags. | 46 // .cc file. We only do this for writable flags. |
| 48 #elif defined(FLAG_MODE_DEFINE) | 47 #elif defined(FLAG_MODE_DEFINE) |
| 49 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \ | 48 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \ |
| 50 ctype FLAG_##nam = def; | 49 ctype FLAG_##nam = def; |
| 51 #define FLAG_READONLY(ftype, ctype, nam, def, cmt) | |
| 52 #define DEFINE_implication(whenflag, thenflag) | |
| 53 | 50 |
| 54 // We need to define all of our default values so that the Flag structure can | 51 // We need to define all of our default values so that the Flag structure can |
| 55 // access them by pointer. These are just used internally inside of one .cc, | 52 // access them by pointer. These are just used internally inside of one .cc, |
| 56 // for MODE_META, so there is no impact on the flags interface. | 53 // for MODE_META, so there is no impact on the flags interface. |
| 57 #elif defined(FLAG_MODE_DEFINE_DEFAULTS) | 54 #elif defined(FLAG_MODE_DEFINE_DEFAULTS) |
| 58 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \ | 55 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \ |
| 59 static ctype const FLAGDEFAULT_##nam = def; | 56 static ctype const FLAGDEFAULT_##nam = def; |
| 60 #define FLAG_READONLY(ftype, ctype, nam, def, cmt) | |
| 61 #define DEFINE_implication(whenflag, thenflag) | |
| 62 | 57 |
| 63 // We want to write entries into our meta data table, for internal parsing and | 58 // We want to write entries into our meta data table, for internal parsing and |
| 64 // printing / etc in the flag parser code. We only do this for writable flags. | 59 // printing / etc in the flag parser code. We only do this for writable flags. |
| 65 #elif defined(FLAG_MODE_META) | 60 #elif defined(FLAG_MODE_META) |
| 66 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \ | 61 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \ |
| 67 { Flag::TYPE_##ftype, #nam, &FLAG_##nam, &FLAGDEFAULT_##nam, cmt, false }, | 62 { Flag::TYPE_##ftype, #nam, &FLAG_##nam, &FLAGDEFAULT_##nam, cmt, false }, |
| 68 #define FLAG_READONLY(ftype, ctype, nam, def, cmt) | 63 #define FLAG_ALIAS(ftype, ctype, alias, nam) \ |
| 69 #define DEFINE_implication(whenflag, thenflag) | 64 { Flag::TYPE_##ftype, #alias, &FLAG_##nam, &FLAGDEFAULT_##nam, \ |
| 65 "alias for --"#nam, false }, |
| 70 | 66 |
| 71 // We produce the code to set flags when it is implied by another flag. | 67 // We produce the code to set flags when it is implied by another flag. |
| 72 #elif defined(FLAG_MODE_DEFINE_IMPLICATIONS) | 68 #elif defined(FLAG_MODE_DEFINE_IMPLICATIONS) |
| 73 #define FLAG_FULL(ftype, ctype, nam, def, cmt) | |
| 74 #define FLAG_READONLY(ftype, ctype, nam, def, cmt) | |
| 75 #define DEFINE_implication(whenflag, thenflag) \ | 69 #define DEFINE_implication(whenflag, thenflag) \ |
| 76 if (FLAG_##whenflag) FLAG_##thenflag = true; | 70 if (FLAG_##whenflag) FLAG_##thenflag = true; |
| 77 | 71 |
| 78 #else | 72 #else |
| 79 #error No mode supplied when including flags.defs | 73 #error No mode supplied when including flags.defs |
| 80 #endif | 74 #endif |
| 81 | 75 |
| 76 // Dummy defines for modes where it is not relevant. |
| 77 #ifndef FLAG_FULL |
| 78 #define FLAG_FULL(ftype, ctype, nam, def, cmt) |
| 79 #endif |
| 80 |
| 81 #ifndef FLAG_READONLY |
| 82 #define FLAG_READONLY(ftype, ctype, nam, def, cmt) |
| 83 #endif |
| 84 |
| 85 #ifndef FLAG_ALIAS |
| 86 #define FLAG_ALIAS(ftype, ctype, alias, nam) |
| 87 #endif |
| 88 |
| 89 #ifndef DEFINE_implication |
| 90 #define DEFINE_implication(whenflag, thenflag) |
| 91 #endif |
| 92 |
| 93 |
| 82 #ifdef FLAG_MODE_DECLARE | 94 #ifdef FLAG_MODE_DECLARE |
| 83 // Structure used to hold a collection of arguments to the JavaScript code. | 95 // Structure used to hold a collection of arguments to the JavaScript code. |
| 84 #define JSARGUMENTS_INIT {{}} | 96 #define JSARGUMENTS_INIT {{}} |
| 85 struct JSArguments { | 97 struct JSArguments { |
| 86 public: | 98 public: |
| 87 inline int argc() const { | 99 inline int argc() const { |
| 88 return static_cast<int>(storage_[0]); | 100 return static_cast<int>(storage_[0]); |
| 89 } | 101 } |
| 90 inline const char** argv() const { | 102 inline const char** argv() const { |
| 91 return reinterpret_cast<const char**>(storage_[1]); | 103 return reinterpret_cast<const char**>(storage_[1]); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 # define ENABLE_ARMV7_DEFAULT true | 140 # define ENABLE_ARMV7_DEFAULT true |
| 129 #else | 141 #else |
| 130 # define ENABLE_ARMV7_DEFAULT false | 142 # define ENABLE_ARMV7_DEFAULT false |
| 131 #endif | 143 #endif |
| 132 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST) | 144 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST) |
| 133 # define ENABLE_32DREGS_DEFAULT true | 145 # define ENABLE_32DREGS_DEFAULT true |
| 134 #else | 146 #else |
| 135 # define ENABLE_32DREGS_DEFAULT false | 147 # define ENABLE_32DREGS_DEFAULT false |
| 136 #endif | 148 #endif |
| 137 | 149 |
| 138 #define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) | 150 #define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) |
| 139 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) | 151 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) |
| 140 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) | 152 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) |
| 141 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) | 153 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) |
| 142 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) | 154 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) |
| 155 |
| 156 #define DEFINE_ALIAS_bool(alias, nam) FLAG_ALIAS(BOOL, bool, alias, nam) |
| 157 #define DEFINE_ALIAS_int(alias, nam) FLAG_ALIAS(INT, int, alias, nam) |
| 158 #define DEFINE_ALIAS_float(alias, nam) FLAG_ALIAS(FLOAT, double, alias, nam) |
| 159 #define DEFINE_ALIAS_string(alias, nam) \ |
| 160 FLAG_ALIAS(STRING, const char*, alias, nam) |
| 161 #define DEFINE_ALIAS_args(alias, nam) FLAG_ALIAS(ARGS, JSArguments, alias, nam) |
| 143 | 162 |
| 144 // | 163 // |
| 145 // Flags in all modes. | 164 // Flags in all modes. |
| 146 // | 165 // |
| 147 #define FLAG FLAG_FULL | 166 #define FLAG FLAG_FULL |
| 148 | 167 |
| 149 // Flags for language modes and experimental language features. | 168 // Flags for language modes and experimental language features. |
| 150 DEFINE_bool(use_strict, false, "enforce strict mode") | 169 DEFINE_bool(use_strict, false, "enforce strict mode") |
| 151 DEFINE_bool(es5_readonly, true, | 170 DEFINE_bool(es5_readonly, true, |
| 152 "activate correct semantics for inheriting readonliness") | 171 "activate correct semantics for inheriting readonliness") |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 "maximum number of AST nodes considered for a single inlining") | 249 "maximum number of AST nodes considered for a single inlining") |
| 231 DEFINE_int(max_inlined_nodes_cumulative, 400, | 250 DEFINE_int(max_inlined_nodes_cumulative, 400, |
| 232 "maximum cumulative number of AST nodes considered for inlining") | 251 "maximum cumulative number of AST nodes considered for inlining") |
| 233 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") | 252 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") |
| 234 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") | 253 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") |
| 235 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, | 254 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, |
| 236 true, | 255 true, |
| 237 "crankshaft harvests type feedback from stub cache") | 256 "crankshaft harvests type feedback from stub cache") |
| 238 DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen") | 257 DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen") |
| 239 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") | 258 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") |
| 259 DEFINE_string(trace_hydrogen_filter, "*", "hydrogen tracing filter") |
| 240 DEFINE_bool(trace_hydrogen_stubs, false, "trace generated hydrogen for stubs") | 260 DEFINE_bool(trace_hydrogen_stubs, false, "trace generated hydrogen for stubs") |
| 241 DEFINE_string(trace_hydrogen_file, NULL, "trace hydrogen to given file name") | 261 DEFINE_string(trace_hydrogen_file, NULL, "trace hydrogen to given file name") |
| 242 DEFINE_string(trace_phase, "HLZ", "trace generated IR for specified phases") | 262 DEFINE_string(trace_phase, "HLZ", "trace generated IR for specified phases") |
| 243 DEFINE_bool(trace_inlining, false, "trace inlining decisions") | 263 DEFINE_bool(trace_inlining, false, "trace inlining decisions") |
| 244 DEFINE_bool(trace_alloc, false, "trace register allocator") | 264 DEFINE_bool(trace_alloc, false, "trace register allocator") |
| 245 DEFINE_bool(trace_all_uses, false, "trace all use positions") | 265 DEFINE_bool(trace_all_uses, false, "trace all use positions") |
| 246 DEFINE_bool(trace_range, false, "trace range analysis") | 266 DEFINE_bool(trace_range, false, "trace range analysis") |
| 247 DEFINE_bool(trace_gvn, false, "trace global value numbering") | 267 DEFINE_bool(trace_gvn, false, "trace global value numbering") |
| 248 DEFINE_bool(trace_representation, false, "trace representation types") | 268 DEFINE_bool(trace_representation, false, "trace representation types") |
| 249 DEFINE_bool(trace_escape_analysis, false, "trace hydrogen escape analysis") | 269 DEFINE_bool(trace_escape_analysis, false, "trace hydrogen escape analysis") |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 DEFINE_bool(inline_arguments, true, "inline functions with arguments object") | 316 DEFINE_bool(inline_arguments, true, "inline functions with arguments object") |
| 297 DEFINE_bool(inline_accessors, true, "inline JavaScript accessors") | 317 DEFINE_bool(inline_accessors, true, "inline JavaScript accessors") |
| 298 DEFINE_int(loop_weight, 1, "loop weight for representation inference") | 318 DEFINE_int(loop_weight, 1, "loop weight for representation inference") |
| 299 | 319 |
| 300 DEFINE_bool(optimize_for_in, true, | 320 DEFINE_bool(optimize_for_in, true, |
| 301 "optimize functions containing for-in loops") | 321 "optimize functions containing for-in loops") |
| 302 DEFINE_bool(opt_safe_uint32_operations, true, | 322 DEFINE_bool(opt_safe_uint32_operations, true, |
| 303 "allow uint32 values on optimize frames if they are used only in " | 323 "allow uint32 values on optimize frames if they are used only in " |
| 304 "safe operations") | 324 "safe operations") |
| 305 | 325 |
| 306 DEFINE_bool(parallel_recompilation, true, | 326 DEFINE_bool(concurrent_recompilation, true, |
| 307 "optimizing hot functions asynchronously on a separate thread") | 327 "optimizing hot functions asynchronously on a separate thread") |
| 308 DEFINE_bool(trace_parallel_recompilation, false, "track parallel recompilation") | 328 DEFINE_bool(trace_concurrent_recompilation, false, |
| 309 DEFINE_int(parallel_recompilation_queue_length, 8, | 329 "track concurrent recompilation") |
| 310 "the length of the parallel compilation queue") | 330 DEFINE_int(concurrent_recompilation_queue_length, 8, |
| 311 DEFINE_int(parallel_recompilation_delay, 0, | 331 "the length of the concurrent compilation queue") |
| 332 DEFINE_int(concurrent_recompilation_delay, 0, |
| 312 "artificial compilation delay in ms") | 333 "artificial compilation delay in ms") |
| 334 |
| 313 DEFINE_bool(omit_map_checks_for_leaf_maps, true, | 335 DEFINE_bool(omit_map_checks_for_leaf_maps, true, |
| 314 "do not emit check maps for constant values that have a leaf map, " | 336 "do not emit check maps for constant values that have a leaf map, " |
| 315 "deoptimize the optimized code if the layout of the maps changes.") | 337 "deoptimize the optimized code if the layout of the maps changes.") |
| 316 | 338 |
| 317 // Experimental profiler changes. | 339 // Experimental profiler changes. |
| 318 DEFINE_bool(experimental_profiler, true, "enable all profiler experiments") | 340 DEFINE_bool(experimental_profiler, true, "enable all profiler experiments") |
| 319 DEFINE_bool(watch_ic_patching, false, "profiler considers IC stability") | 341 DEFINE_bool(watch_ic_patching, false, "profiler considers IC stability") |
| 320 DEFINE_int(frame_count, 1, "number of stack frames inspected by the profiler") | 342 DEFINE_int(frame_count, 1, "number of stack frames inspected by the profiler") |
| 321 DEFINE_bool(self_optimization, false, | 343 DEFINE_bool(self_optimization, false, |
| 322 "primitive functions trigger their own optimization") | 344 "primitive functions trigger their own optimization") |
| (...skipping 26 matching lines...) Expand all Loading... |
| 349 "generate extra code (assertions) for debugging") | 371 "generate extra code (assertions) for debugging") |
| 350 DEFINE_bool(code_comments, false, "emit comments in code disassembly") | 372 DEFINE_bool(code_comments, false, "emit comments in code disassembly") |
| 351 DEFINE_bool(enable_sse2, true, | 373 DEFINE_bool(enable_sse2, true, |
| 352 "enable use of SSE2 instructions if available") | 374 "enable use of SSE2 instructions if available") |
| 353 DEFINE_bool(enable_sse3, true, | 375 DEFINE_bool(enable_sse3, true, |
| 354 "enable use of SSE3 instructions if available") | 376 "enable use of SSE3 instructions if available") |
| 355 DEFINE_bool(enable_sse4_1, true, | 377 DEFINE_bool(enable_sse4_1, true, |
| 356 "enable use of SSE4.1 instructions if available") | 378 "enable use of SSE4.1 instructions if available") |
| 357 DEFINE_bool(enable_cmov, true, | 379 DEFINE_bool(enable_cmov, true, |
| 358 "enable use of CMOV instruction if available") | 380 "enable use of CMOV instruction if available") |
| 359 DEFINE_bool(enable_rdtsc, true, | |
| 360 "enable use of RDTSC instruction if available") | |
| 361 DEFINE_bool(enable_sahf, true, | 381 DEFINE_bool(enable_sahf, true, |
| 362 "enable use of SAHF instruction if available (X64 only)") | 382 "enable use of SAHF instruction if available (X64 only)") |
| 363 DEFINE_bool(enable_vfp3, ENABLE_VFP3_DEFAULT, | 383 DEFINE_bool(enable_vfp3, ENABLE_VFP3_DEFAULT, |
| 364 "enable use of VFP3 instructions if available") | 384 "enable use of VFP3 instructions if available") |
| 365 DEFINE_bool(enable_armv7, ENABLE_ARMV7_DEFAULT, | 385 DEFINE_bool(enable_armv7, ENABLE_ARMV7_DEFAULT, |
| 366 "enable use of ARMv7 instructions if available (ARM only)") | 386 "enable use of ARMv7 instructions if available (ARM only)") |
| 367 DEFINE_bool(enable_neon, true, | 387 DEFINE_bool(enable_neon, true, |
| 368 "enable use of NEON instructions if available (ARM only)") | 388 "enable use of NEON instructions if available (ARM only)") |
| 369 DEFINE_bool(enable_sudiv, true, | 389 DEFINE_bool(enable_sudiv, true, |
| 370 "enable use of SDIV and UDIV instructions if available (ARM only)") | 390 "enable use of SDIV and UDIV instructions if available (ARM only)") |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 DEFINE_bool(always_full_compiler, false, | 447 DEFINE_bool(always_full_compiler, false, |
| 428 "try to use the dedicated run-once backend for all code") | 448 "try to use the dedicated run-once backend for all code") |
| 429 DEFINE_int(max_opt_count, 10, | 449 DEFINE_int(max_opt_count, 10, |
| 430 "maximum number of optimization attempts before giving up.") | 450 "maximum number of optimization attempts before giving up.") |
| 431 | 451 |
| 432 // compilation-cache.cc | 452 // compilation-cache.cc |
| 433 DEFINE_bool(compilation_cache, true, "enable compilation cache") | 453 DEFINE_bool(compilation_cache, true, "enable compilation cache") |
| 434 | 454 |
| 435 DEFINE_bool(cache_prototype_transitions, true, "cache prototype transitions") | 455 DEFINE_bool(cache_prototype_transitions, true, "cache prototype transitions") |
| 436 | 456 |
| 457 // cpu-profiler.cc |
| 458 #if defined(ANDROID) |
| 459 // Phones and tablets have processors that are much slower than desktop |
| 460 // and laptop computers for which current heuristics are tuned. |
| 461 #define DEFAULT_INTERVAL 5000 |
| 462 #else |
| 463 #define DEFAULT_INTERVAL 1000 |
| 464 #endif |
| 465 DEFINE_int(cpu_profiler_sampling_interval, DEFAULT_INTERVAL, |
| 466 "CPU profiler sampling interval in microseconds") |
| 467 #undef DEFAULT_INTERVAL |
| 468 |
| 437 // debug.cc | 469 // debug.cc |
| 438 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") | 470 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") |
| 439 DEFINE_bool(trace_js_array_abuse, false, | 471 DEFINE_bool(trace_js_array_abuse, false, |
| 440 "trace out-of-bounds accesses to JS arrays") | 472 "trace out-of-bounds accesses to JS arrays") |
| 441 DEFINE_bool(trace_external_array_abuse, false, | 473 DEFINE_bool(trace_external_array_abuse, false, |
| 442 "trace out-of-bounds-accesses to external arrays") | 474 "trace out-of-bounds-accesses to external arrays") |
| 443 DEFINE_bool(trace_array_abuse, false, | 475 DEFINE_bool(trace_array_abuse, false, |
| 444 "trace out-of-bounds accesses to all arrays") | 476 "trace out-of-bounds accesses to all arrays") |
| 445 DEFINE_implication(trace_array_abuse, trace_js_array_abuse) | 477 DEFINE_implication(trace_array_abuse, trace_js_array_abuse) |
| 446 DEFINE_implication(trace_array_abuse, trace_external_array_abuse) | 478 DEFINE_implication(trace_array_abuse, trace_external_array_abuse) |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 #ifdef DEBUG | 704 #ifdef DEBUG |
| 673 #define FLAG FLAG_FULL | 705 #define FLAG FLAG_FULL |
| 674 #else | 706 #else |
| 675 #define FLAG FLAG_READONLY | 707 #define FLAG FLAG_READONLY |
| 676 #endif | 708 #endif |
| 677 | 709 |
| 678 // checks.cc | 710 // checks.cc |
| 679 DEFINE_bool(enable_slow_asserts, false, | 711 DEFINE_bool(enable_slow_asserts, false, |
| 680 "enable asserts that are slow to execute") | 712 "enable asserts that are slow to execute") |
| 681 | 713 |
| 682 // codegen-ia32.cc / codegen-arm.cc | 714 // codegen-ia32.cc / codegen-arm.cc / macro-assembler-*.cc |
| 683 DEFINE_bool(print_source, false, "pretty print source code") | 715 DEFINE_bool(print_source, false, "pretty print source code") |
| 684 DEFINE_bool(print_builtin_source, false, | 716 DEFINE_bool(print_builtin_source, false, |
| 685 "pretty print source code for builtins") | 717 "pretty print source code for builtins") |
| 686 DEFINE_bool(print_ast, false, "print source AST") | 718 DEFINE_bool(print_ast, false, "print source AST") |
| 687 DEFINE_bool(print_builtin_ast, false, "print source AST for builtins") | 719 DEFINE_bool(print_builtin_ast, false, "print source AST for builtins") |
| 688 DEFINE_string(stop_at, "", "function name where to insert a breakpoint") | 720 DEFINE_string(stop_at, "", "function name where to insert a breakpoint") |
| 721 DEFINE_bool(trap_on_abort, false, "replace aborts by breakpoints") |
| 689 | 722 |
| 690 // compiler.cc | 723 // compiler.cc |
| 691 DEFINE_bool(print_builtin_scopes, false, "print scopes for builtins") | 724 DEFINE_bool(print_builtin_scopes, false, "print scopes for builtins") |
| 692 DEFINE_bool(print_scopes, false, "print scopes") | 725 DEFINE_bool(print_scopes, false, "print scopes") |
| 693 | 726 |
| 694 // contexts.cc | 727 // contexts.cc |
| 695 DEFINE_bool(trace_contexts, false, "trace contexts operations") | 728 DEFINE_bool(trace_contexts, false, "trace contexts operations") |
| 696 | 729 |
| 697 // heap.cc | 730 // heap.cc |
| 698 DEFINE_bool(gc_greedy, false, "perform GC prior to some allocations") | 731 DEFINE_bool(gc_greedy, false, "perform GC prior to some allocations") |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 DEFINE_implication(print_all_code, code_comments) | 854 DEFINE_implication(print_all_code, code_comments) |
| 822 #ifdef DEBUG | 855 #ifdef DEBUG |
| 823 DEFINE_implication(print_all_code, trace_codegen) | 856 DEFINE_implication(print_all_code, trace_codegen) |
| 824 #endif | 857 #endif |
| 825 #endif | 858 #endif |
| 826 | 859 |
| 827 // Cleanup... | 860 // Cleanup... |
| 828 #undef FLAG_FULL | 861 #undef FLAG_FULL |
| 829 #undef FLAG_READONLY | 862 #undef FLAG_READONLY |
| 830 #undef FLAG | 863 #undef FLAG |
| 864 #undef FLAG_ALIAS |
| 831 | 865 |
| 832 #undef DEFINE_bool | 866 #undef DEFINE_bool |
| 833 #undef DEFINE_int | 867 #undef DEFINE_int |
| 834 #undef DEFINE_string | 868 #undef DEFINE_string |
| 869 #undef DEFINE_float |
| 870 #undef DEFINE_args |
| 835 #undef DEFINE_implication | 871 #undef DEFINE_implication |
| 872 #undef DEFINE_ALIAS_bool |
| 873 #undef DEFINE_ALIAS_int |
| 874 #undef DEFINE_ALIAS_string |
| 875 #undef DEFINE_ALIAS_float |
| 876 #undef DEFINE_ALIAS_args |
| 836 | 877 |
| 837 #undef FLAG_MODE_DECLARE | 878 #undef FLAG_MODE_DECLARE |
| 838 #undef FLAG_MODE_DEFINE | 879 #undef FLAG_MODE_DEFINE |
| 839 #undef FLAG_MODE_DEFINE_DEFAULTS | 880 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 840 #undef FLAG_MODE_META | 881 #undef FLAG_MODE_META |
| 841 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 882 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| OLD | NEW |