| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 DEFINE_int(min_preparse_length, 1024, | 145 DEFINE_int(min_preparse_length, 1024, |
| 146 "minimum length for automatic enable preparsing") | 146 "minimum length for automatic enable preparsing") |
| 147 DEFINE_bool(full_compiler, true, "enable dedicated backend for run-once code") | 147 DEFINE_bool(full_compiler, true, "enable dedicated backend for run-once code") |
| 148 DEFINE_bool(fast_compiler, false, "enable speculative optimizing backend") | 148 DEFINE_bool(fast_compiler, false, "enable speculative optimizing backend") |
| 149 DEFINE_bool(always_full_compiler, false, | 149 DEFINE_bool(always_full_compiler, false, |
| 150 "try to use the dedicated run-once backend for all code") | 150 "try to use the dedicated run-once backend for all code") |
| 151 DEFINE_bool(always_fast_compiler, false, | 151 DEFINE_bool(always_fast_compiler, false, |
| 152 "try to use the speculative optimizing backend for all code") | 152 "try to use the speculative optimizing backend for all code") |
| 153 DEFINE_bool(trace_bailout, false, | 153 DEFINE_bool(trace_bailout, false, |
| 154 "print reasons for falling back to using the classic V8 backend") | 154 "print reasons for falling back to using the classic V8 backend") |
| 155 DEFINE_bool(safe_int32_compiler, false, |
| 156 "enable optimized side-effect-free int32 expressions.") |
| 157 DEFINE_bool(use_flow_graph, false, "perform flow-graph based optimizations") |
| 155 | 158 |
| 156 // compilation-cache.cc | 159 // compilation-cache.cc |
| 157 DEFINE_bool(compilation_cache, true, "enable compilation cache") | 160 DEFINE_bool(compilation_cache, true, "enable compilation cache") |
| 158 | 161 |
| 159 // debug.cc | 162 // debug.cc |
| 160 DEFINE_bool(remote_debugging, false, "enable remote debugging") | 163 DEFINE_bool(remote_debugging, false, "enable remote debugging") |
| 161 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") | 164 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") |
| 162 DEFINE_bool(debugger_auto_break, true, | 165 DEFINE_bool(debugger_auto_break, true, |
| 163 "automatically set the debug break flag when debugger commands are " | 166 "automatically set the debug break flag when debugger commands are " |
| 164 "in the queue") | 167 "in the queue") |
| 168 DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature") |
| 165 | 169 |
| 166 // frames.cc | 170 // frames.cc |
| 167 DEFINE_int(max_stack_trace_source_length, 300, | 171 DEFINE_int(max_stack_trace_source_length, 300, |
| 168 "maximum length of function source code printed in a stack trace.") | 172 "maximum length of function source code printed in a stack trace.") |
| 169 | 173 |
| 170 // heap.cc | 174 // heap.cc |
| 171 DEFINE_int(max_new_space_size, 0, "max size of the new generation") | 175 DEFINE_int(max_new_space_size, 0, "max size of the new generation") |
| 172 DEFINE_int(max_old_space_size, 0, "max size of the old generation") | 176 DEFINE_int(max_old_space_size, 0, "max size of the old generation") |
| 173 DEFINE_bool(gc_global, false, "always perform global GCs") | 177 DEFINE_bool(gc_global, false, "always perform global GCs") |
| 174 DEFINE_int(gc_interval, -1, "garbage collect after <n> allocations") | 178 DEFINE_int(gc_interval, -1, "garbage collect after <n> allocations") |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // simulator-arm.cc and simulator-mips.cc | 226 // simulator-arm.cc and simulator-mips.cc |
| 223 DEFINE_bool(trace_sim, false, "trace simulator execution") | 227 DEFINE_bool(trace_sim, false, "trace simulator execution") |
| 224 DEFINE_int(stop_sim_at, 0, "Simulator stop after x number of instructions") | 228 DEFINE_int(stop_sim_at, 0, "Simulator stop after x number of instructions") |
| 225 | 229 |
| 226 // top.cc | 230 // top.cc |
| 227 DEFINE_bool(trace_exception, false, | 231 DEFINE_bool(trace_exception, false, |
| 228 "print stack trace when throwing exceptions") | 232 "print stack trace when throwing exceptions") |
| 229 DEFINE_bool(preallocate_message_memory, false, | 233 DEFINE_bool(preallocate_message_memory, false, |
| 230 "preallocate some memory to build stack traces.") | 234 "preallocate some memory to build stack traces.") |
| 231 | 235 |
| 232 // usage-analyzer.cc | |
| 233 DEFINE_bool(usage_computation, true, "compute variable usage counts") | |
| 234 | |
| 235 // v8.cc | 236 // v8.cc |
| 236 DEFINE_bool(preemption, false, | 237 DEFINE_bool(preemption, false, |
| 237 "activate a 100ms timer that switches between V8 threads") | 238 "activate a 100ms timer that switches between V8 threads") |
| 238 | 239 |
| 239 // Regexp | 240 // Regexp |
| 240 DEFINE_bool(trace_regexps, false, "trace regexp execution") | 241 DEFINE_bool(trace_regexps, false, "trace regexp execution") |
| 241 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") | 242 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") |
| 242 DEFINE_bool(regexp_entry_native, true, "use native code to enter regexp") | 243 DEFINE_bool(regexp_entry_native, true, "use native code to enter regexp") |
| 243 | 244 |
| 244 // Testing flags test/cctest/test-{flags,api,serialization}.cc | 245 // Testing flags test/cctest/test-{flags,api,serialization}.cc |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 DEFINE_bool(print_builtin_json_ast, false, | 297 DEFINE_bool(print_builtin_json_ast, false, |
| 297 "print source AST for builtins as JSON") | 298 "print source AST for builtins as JSON") |
| 298 DEFINE_bool(trace_calls, false, "trace calls") | 299 DEFINE_bool(trace_calls, false, "trace calls") |
| 299 DEFINE_bool(trace_builtin_calls, false, "trace builtins calls") | 300 DEFINE_bool(trace_builtin_calls, false, "trace builtins calls") |
| 300 DEFINE_string(stop_at, "", "function name where to insert a breakpoint") | 301 DEFINE_string(stop_at, "", "function name where to insert a breakpoint") |
| 301 | 302 |
| 302 // compiler.cc | 303 // compiler.cc |
| 303 DEFINE_bool(print_builtin_scopes, false, "print scopes for builtins") | 304 DEFINE_bool(print_builtin_scopes, false, "print scopes for builtins") |
| 304 DEFINE_bool(print_scopes, false, "print scopes") | 305 DEFINE_bool(print_scopes, false, "print scopes") |
| 305 DEFINE_bool(print_ir, false, "print the AST as seen by the backend") | 306 DEFINE_bool(print_ir, false, "print the AST as seen by the backend") |
| 307 DEFINE_bool(print_graph_text, false, |
| 308 "print a text representation of the flow graph") |
| 306 | 309 |
| 307 // contexts.cc | 310 // contexts.cc |
| 308 DEFINE_bool(trace_contexts, false, "trace contexts operations") | 311 DEFINE_bool(trace_contexts, false, "trace contexts operations") |
| 309 | 312 |
| 310 // heap.cc | 313 // heap.cc |
| 311 DEFINE_bool(gc_greedy, false, "perform GC prior to some allocations") | 314 DEFINE_bool(gc_greedy, false, "perform GC prior to some allocations") |
| 312 DEFINE_bool(gc_verbose, false, "print stuff during garbage collection") | 315 DEFINE_bool(gc_verbose, false, "print stuff during garbage collection") |
| 313 DEFINE_bool(heap_stats, false, "report heap statistics before and after GC") | 316 DEFINE_bool(heap_stats, false, "report heap statistics before and after GC") |
| 314 DEFINE_bool(code_stats, false, "report code statistics after GC") | 317 DEFINE_bool(code_stats, false, "report code statistics after GC") |
| 315 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC") | 318 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC") |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 #undef FLAG | 426 #undef FLAG |
| 424 | 427 |
| 425 #undef DEFINE_bool | 428 #undef DEFINE_bool |
| 426 #undef DEFINE_int | 429 #undef DEFINE_int |
| 427 #undef DEFINE_string | 430 #undef DEFINE_string |
| 428 | 431 |
| 429 #undef FLAG_MODE_DECLARE | 432 #undef FLAG_MODE_DECLARE |
| 430 #undef FLAG_MODE_DEFINE | 433 #undef FLAG_MODE_DEFINE |
| 431 #undef FLAG_MODE_DEFINE_DEFAULTS | 434 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 432 #undef FLAG_MODE_META | 435 #undef FLAG_MODE_META |
| OLD | NEW |