Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: src/flag-definitions.h

Issue 133443009: A64: Synchronize with r17441. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/factory.cc ('k') | src/frames.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 DEFINE_bool(harmony_collections, false, 175 DEFINE_bool(harmony_collections, false,
176 "enable harmony collections (sets, maps, and weak maps)") 176 "enable harmony collections (sets, maps, and weak maps)")
177 DEFINE_bool(harmony_observation, false, 177 DEFINE_bool(harmony_observation, false,
178 "enable harmony object observation (implies harmony collections") 178 "enable harmony object observation (implies harmony collections")
179 DEFINE_bool(harmony_generators, false, "enable harmony generators") 179 DEFINE_bool(harmony_generators, false, "enable harmony generators")
180 DEFINE_bool(harmony_iteration, false, "enable harmony iteration (for-of)") 180 DEFINE_bool(harmony_iteration, false, "enable harmony iteration (for-of)")
181 DEFINE_bool(harmony_numeric_literals, false, 181 DEFINE_bool(harmony_numeric_literals, false,
182 "enable harmony numeric literals (0o77, 0b11)") 182 "enable harmony numeric literals (0o77, 0b11)")
183 DEFINE_bool(harmony_strings, false, "enable harmony string") 183 DEFINE_bool(harmony_strings, false, "enable harmony string")
184 DEFINE_bool(harmony_arrays, false, "enable harmony arrays") 184 DEFINE_bool(harmony_arrays, false, "enable harmony arrays")
185 DEFINE_bool(harmony_maths, false, "enable harmony math functions")
185 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") 186 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)")
186 DEFINE_implication(harmony, harmony_scoping) 187 DEFINE_implication(harmony, harmony_scoping)
187 DEFINE_implication(harmony, harmony_modules) 188 DEFINE_implication(harmony, harmony_modules)
188 DEFINE_implication(harmony, harmony_symbols) 189 DEFINE_implication(harmony, harmony_symbols)
189 DEFINE_implication(harmony, harmony_proxies) 190 DEFINE_implication(harmony, harmony_proxies)
190 DEFINE_implication(harmony, harmony_collections) 191 DEFINE_implication(harmony, harmony_collections)
191 DEFINE_implication(harmony, harmony_observation) 192 DEFINE_implication(harmony, harmony_observation)
192 DEFINE_implication(harmony, harmony_generators) 193 DEFINE_implication(harmony, harmony_generators)
193 DEFINE_implication(harmony, harmony_iteration) 194 DEFINE_implication(harmony, harmony_iteration)
194 DEFINE_implication(harmony, harmony_numeric_literals) 195 DEFINE_implication(harmony, harmony_numeric_literals)
195 DEFINE_implication(harmony, harmony_strings) 196 DEFINE_implication(harmony, harmony_strings)
196 DEFINE_implication(harmony, harmony_arrays) 197 DEFINE_implication(harmony, harmony_arrays)
198 DEFINE_implication(harmony, harmony_maths)
197 DEFINE_implication(harmony_modules, harmony_scoping) 199 DEFINE_implication(harmony_modules, harmony_scoping)
198 DEFINE_implication(harmony_observation, harmony_collections) 200 DEFINE_implication(harmony_observation, harmony_collections)
199 201
200 // Flags for experimental implementation features. 202 // Flags for experimental implementation features.
201 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") 203 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes")
202 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") 204 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values")
203 DEFINE_bool(clever_optimizations, 205 DEFINE_bool(clever_optimizations, true,
204 true,
205 "Optimize object size, Array shift, DOM strings and string +") 206 "Optimize object size, Array shift, DOM strings and string +")
206 DEFINE_bool(pretenuring, true, "allocate objects in old space") 207 DEFINE_bool(pretenuring, true, "allocate objects in old space")
207 // TODO(hpayer): We will remove this flag as soon as we have pretenuring 208 // TODO(hpayer): We will remove this flag as soon as we have pretenuring
208 // support for specific allocation sites. 209 // support for specific allocation sites.
209 DEFINE_bool(pretenuring_call_new, false, "pretenure call new") 210 DEFINE_bool(pretenuring_call_new, false, "pretenure call new")
211 DEFINE_bool(allocation_site_pretenuring, false,
212 "pretenure with allocation sites")
210 DEFINE_bool(track_fields, true, "track fields with only smi values") 213 DEFINE_bool(track_fields, true, "track fields with only smi values")
211 DEFINE_bool(track_double_fields, true, "track fields with double values") 214 DEFINE_bool(track_double_fields, true, "track fields with double values")
212 DEFINE_bool(track_heap_object_fields, true, "track fields with heap values") 215 DEFINE_bool(track_heap_object_fields, true, "track fields with heap values")
213 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields") 216 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields")
214 DEFINE_implication(track_double_fields, track_fields) 217 DEFINE_implication(track_double_fields, track_fields)
215 DEFINE_implication(track_heap_object_fields, track_fields) 218 DEFINE_implication(track_heap_object_fields, track_fields)
216 DEFINE_implication(track_computed_fields, track_fields) 219 DEFINE_implication(track_computed_fields, track_fields)
217 DEFINE_bool(smi_binop, true, "support smi representation in binary operations") 220 DEFINE_bool(smi_binop, true, "support smi representation in binary operations")
218 221
219 // Flags for optimization types. 222 // Flags for optimization types.
220 DEFINE_bool(optimize_for_size, false, 223 DEFINE_bool(optimize_for_size, false,
221 "Enables optimizations which favor memory size over execution " 224 "Enables optimizations which favor memory size over execution "
222 "speed.") 225 "speed.")
223 226
224 // Flags for data representation optimizations 227 // Flags for data representation optimizations
225 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") 228 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles")
226 DEFINE_bool(string_slices, true, "use string slices") 229 DEFINE_bool(string_slices, true, "use string slices")
227 230
228 // Flags for Crankshaft. 231 // Flags for Crankshaft.
229 DEFINE_bool(crankshaft, true, "use crankshaft") 232 DEFINE_bool(crankshaft, true, "use crankshaft")
230 DEFINE_string(hydrogen_filter, "*", "optimization filter") 233 DEFINE_string(hydrogen_filter, "*", "optimization filter")
231 DEFINE_bool(use_range, true, "use hydrogen range analysis") 234 DEFINE_bool(use_range, true, "use hydrogen range analysis")
232 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") 235 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering")
233 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") 236 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing")
234 DEFINE_bool(use_inlining, true, "use function inlining") 237 DEFINE_bool(use_inlining, true, "use function inlining")
235 DEFINE_bool(use_escape_analysis, false, "use hydrogen escape analysis") 238 DEFINE_bool(use_escape_analysis, true, "use hydrogen escape analysis")
236 DEFINE_bool(use_allocation_folding, true, "use allocation folding") 239 DEFINE_bool(use_allocation_folding, true, "use allocation folding")
237 DEFINE_int(max_inlining_levels, 5, "maximum number of inlining levels") 240 DEFINE_int(max_inlining_levels, 5, "maximum number of inlining levels")
238 DEFINE_int(max_inlined_source_size, 600, 241 DEFINE_int(max_inlined_source_size, 600,
239 "maximum source size in bytes considered for a single inlining") 242 "maximum source size in bytes considered for a single inlining")
240 DEFINE_int(max_inlined_nodes, 196, 243 DEFINE_int(max_inlined_nodes, 196,
241 "maximum number of AST nodes considered for a single inlining") 244 "maximum number of AST nodes considered for a single inlining")
242 DEFINE_int(max_inlined_nodes_cumulative, 400, 245 DEFINE_int(max_inlined_nodes_cumulative, 400,
243 "maximum cumulative number of AST nodes considered for inlining") 246 "maximum cumulative number of AST nodes considered for inlining")
244 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") 247 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion")
245 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") 248 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions")
246 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, 249 DEFINE_bool(collect_megamorphic_maps_from_stub_cache, true,
247 true,
248 "crankshaft harvests type feedback from stub cache") 250 "crankshaft harvests type feedback from stub cache")
249 DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen") 251 DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen")
250 DEFINE_bool(trace_check_elimination, false, "trace check elimination phase") 252 DEFINE_bool(trace_check_elimination, false, "trace check elimination phase")
251 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") 253 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file")
252 DEFINE_string(trace_hydrogen_filter, "*", "hydrogen tracing filter") 254 DEFINE_string(trace_hydrogen_filter, "*", "hydrogen tracing filter")
253 DEFINE_bool(trace_hydrogen_stubs, false, "trace generated hydrogen for stubs") 255 DEFINE_bool(trace_hydrogen_stubs, false, "trace generated hydrogen for stubs")
254 DEFINE_string(trace_hydrogen_file, NULL, "trace hydrogen to given file name") 256 DEFINE_string(trace_hydrogen_file, NULL, "trace hydrogen to given file name")
255 DEFINE_string(trace_phase, "HLZ", "trace generated IR for specified phases") 257 DEFINE_string(trace_phase, "HLZ", "trace generated IR for specified phases")
256 DEFINE_bool(trace_inlining, false, "trace inlining decisions") 258 DEFINE_bool(trace_inlining, false, "trace inlining decisions")
257 DEFINE_bool(trace_load_elimination, false, "trace load elimination") 259 DEFINE_bool(trace_load_elimination, false, "trace load elimination")
258 DEFINE_bool(trace_alloc, false, "trace register allocator") 260 DEFINE_bool(trace_alloc, false, "trace register allocator")
259 DEFINE_bool(trace_all_uses, false, "trace all use positions") 261 DEFINE_bool(trace_all_uses, false, "trace all use positions")
260 DEFINE_bool(trace_range, false, "trace range analysis") 262 DEFINE_bool(trace_range, false, "trace range analysis")
261 DEFINE_bool(trace_gvn, false, "trace global value numbering") 263 DEFINE_bool(trace_gvn, false, "trace global value numbering")
262 DEFINE_bool(trace_representation, false, "trace representation types") 264 DEFINE_bool(trace_representation, false, "trace representation types")
263 DEFINE_bool(trace_escape_analysis, false, "trace hydrogen escape analysis") 265 DEFINE_bool(trace_escape_analysis, false, "trace hydrogen escape analysis")
264 DEFINE_bool(trace_allocation_folding, false, "trace allocation folding") 266 DEFINE_bool(trace_allocation_folding, false, "trace allocation folding")
265 DEFINE_bool(trace_track_allocation_sites, false, 267 DEFINE_bool(trace_track_allocation_sites, false,
266 "trace the tracking of allocation sites") 268 "trace the tracking of allocation sites")
267 DEFINE_bool(trace_migration, false, "trace object migration") 269 DEFINE_bool(trace_migration, false, "trace object migration")
268 DEFINE_bool(trace_generalization, false, "trace map generalization") 270 DEFINE_bool(trace_generalization, false, "trace map generalization")
269 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction") 271 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction")
270 DEFINE_bool(stress_environments, false, "environment for every instruction") 272 DEFINE_bool(stress_environments, false, "environment for every instruction")
271 DEFINE_int(deopt_every_n_times, 273 DEFINE_int(deopt_every_n_times, 0,
272 0,
273 "deoptimize every n times a deopt point is passed") 274 "deoptimize every n times a deopt point is passed")
274 DEFINE_int(deopt_every_n_garbage_collections, 275 DEFINE_int(deopt_every_n_garbage_collections, 0,
275 0,
276 "deoptimize every n garbage collections") 276 "deoptimize every n garbage collections")
277 DEFINE_bool(print_deopt_stress, false, "print number of possible deopt points") 277 DEFINE_bool(print_deopt_stress, false, "print number of possible deopt points")
278 DEFINE_bool(trap_on_deopt, false, "put a break point before deoptimizing") 278 DEFINE_bool(trap_on_deopt, false, "put a break point before deoptimizing")
279 DEFINE_bool(trap_on_stub_deopt, false, 279 DEFINE_bool(trap_on_stub_deopt, false,
280 "put a break point before deoptimizing a stub") 280 "put a break point before deoptimizing a stub")
281 DEFINE_bool(deoptimize_uncommon_cases, true, "deoptimize uncommon cases") 281 DEFINE_bool(deoptimize_uncommon_cases, true, "deoptimize uncommon cases")
282 DEFINE_bool(polymorphic_inlining, true, "polymorphic inlining") 282 DEFINE_bool(polymorphic_inlining, true, "polymorphic inlining")
283 DEFINE_bool(use_osr, true, "use on-stack replacement") 283 DEFINE_bool(use_osr, true, "use on-stack replacement")
284 DEFINE_bool(array_bounds_checks_elimination, true, 284 DEFINE_bool(array_bounds_checks_elimination, true,
285 "perform array bounds checks elimination") 285 "perform array bounds checks elimination")
(...skipping 18 matching lines...) Expand all
304 "when picking a function to optimize, watch for shared function " 304 "when picking a function to optimize, watch for shared function "
305 "info, not JSFunction itself") 305 "info, not JSFunction itself")
306 DEFINE_bool(cache_optimized_code, true, 306 DEFINE_bool(cache_optimized_code, true,
307 "cache optimized code for closures") 307 "cache optimized code for closures")
308 DEFINE_bool(flush_optimized_code_cache, true, 308 DEFINE_bool(flush_optimized_code_cache, true,
309 "flushes the cache of optimized code for closures on every GC") 309 "flushes the cache of optimized code for closures on every GC")
310 DEFINE_bool(inline_construct, true, "inline constructor calls") 310 DEFINE_bool(inline_construct, true, "inline constructor calls")
311 DEFINE_bool(inline_arguments, true, "inline functions with arguments object") 311 DEFINE_bool(inline_arguments, true, "inline functions with arguments object")
312 DEFINE_bool(inline_accessors, true, "inline JavaScript accessors") 312 DEFINE_bool(inline_accessors, true, "inline JavaScript accessors")
313 DEFINE_int(loop_weight, 1, "loop weight for representation inference") 313 DEFINE_int(loop_weight, 1, "loop weight for representation inference")
314 DEFINE_int(escape_analysis_iterations, 1,
315 "maximum number of escape analysis fix-point iterations")
314 316
315 DEFINE_bool(optimize_for_in, true, 317 DEFINE_bool(optimize_for_in, true,
316 "optimize functions containing for-in loops") 318 "optimize functions containing for-in loops")
317 DEFINE_bool(opt_safe_uint32_operations, true, 319 DEFINE_bool(opt_safe_uint32_operations, true,
318 "allow uint32 values on optimize frames if they are used only in " 320 "allow uint32 values on optimize frames if they are used only in "
319 "safe operations") 321 "safe operations")
320 322
321 DEFINE_bool(concurrent_recompilation, true, 323 DEFINE_bool(concurrent_recompilation, true,
322 "optimizing hot functions asynchronously on a separate thread") 324 "optimizing hot functions asynchronously on a separate thread")
323 DEFINE_bool(trace_concurrent_recompilation, false, 325 DEFINE_bool(trace_concurrent_recompilation, false,
324 "track concurrent recompilation") 326 "track concurrent recompilation")
325 DEFINE_int(concurrent_recompilation_queue_length, 8, 327 DEFINE_int(concurrent_recompilation_queue_length, 8,
326 "the length of the concurrent compilation queue") 328 "the length of the concurrent compilation queue")
327 DEFINE_int(concurrent_recompilation_delay, 0, 329 DEFINE_int(concurrent_recompilation_delay, 0,
328 "artificial compilation delay in ms") 330 "artificial compilation delay in ms")
331 DEFINE_bool(block_concurrent_recompilation, false,
332 "block queued jobs until released")
329 DEFINE_bool(concurrent_osr, false, 333 DEFINE_bool(concurrent_osr, false,
330 "concurrent on-stack replacement") 334 "concurrent on-stack replacement")
331 DEFINE_implication(concurrent_osr, concurrent_recompilation) 335 DEFINE_implication(concurrent_osr, concurrent_recompilation)
332 336
333 DEFINE_bool(omit_map_checks_for_leaf_maps, true, 337 DEFINE_bool(omit_map_checks_for_leaf_maps, true,
334 "do not emit check maps for constant values that have a leaf map, " 338 "do not emit check maps for constant values that have a leaf map, "
335 "deoptimize the optimized code if the layout of the maps changes.") 339 "deoptimize the optimized code if the layout of the maps changes.")
336 340
337 // Experimental profiler changes. 341 // Experimental profiler changes.
338 DEFINE_bool(experimental_profiler, true, "enable all profiler experiments") 342 DEFINE_bool(experimental_profiler, true, "enable all profiler experiments")
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 "enable unaligned accesses for ARMv7 (ARM only)") 397 "enable unaligned accesses for ARMv7 (ARM only)")
394 DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT, 398 DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT,
395 "enable use of d16-d31 registers on ARM - this requires VFP3") 399 "enable use of d16-d31 registers on ARM - this requires VFP3")
396 DEFINE_bool(enable_vldr_imm, false, 400 DEFINE_bool(enable_vldr_imm, false,
397 "enable use of constant pools for double immediate (ARM only)") 401 "enable use of constant pools for double immediate (ARM only)")
398 402
399 // bootstrapper.cc 403 // bootstrapper.cc
400 DEFINE_string(expose_natives_as, NULL, "expose natives in global object") 404 DEFINE_string(expose_natives_as, NULL, "expose natives in global object")
401 DEFINE_string(expose_debug_as, NULL, "expose debug in global object") 405 DEFINE_string(expose_debug_as, NULL, "expose debug in global object")
402 DEFINE_bool(expose_gc, false, "expose gc extension") 406 DEFINE_bool(expose_gc, false, "expose gc extension")
403 DEFINE_string(expose_gc_as, 407 DEFINE_string(expose_gc_as, NULL,
404 NULL,
405 "expose gc extension under the specified name") 408 "expose gc extension under the specified name")
406 DEFINE_implication(expose_gc_as, expose_gc) 409 DEFINE_implication(expose_gc_as, expose_gc)
407 DEFINE_bool(expose_externalize_string, false, 410 DEFINE_bool(expose_externalize_string, false,
408 "expose externalize string extension") 411 "expose externalize string extension")
409 DEFINE_int(stack_trace_limit, 10, "number of stack frames to capture") 412 DEFINE_int(stack_trace_limit, 10, "number of stack frames to capture")
410 DEFINE_bool(builtins_in_stack_traces, false, 413 DEFINE_bool(builtins_in_stack_traces, false,
411 "show built-in functions in stack traces") 414 "show built-in functions in stack traces")
412 DEFINE_bool(disable_native_files, false, "disable builtin natives files") 415 DEFINE_bool(disable_native_files, false, "disable builtin natives files")
413 416
414 // builtins-ia32.cc 417 // builtins-ia32.cc
415 DEFINE_bool(inline_new, true, "use fast inline allocation") 418 DEFINE_bool(inline_new, true, "use fast inline allocation")
416 419
417 // checks.cc 420 // checks.cc
418 DEFINE_bool(stack_trace_on_abort, true, 421 DEFINE_bool(stack_trace_on_abort, true,
419 "print a stack trace if an assertion failure occurs") 422 "print a stack trace if an assertion failure occurs")
420 423
421 // codegen-ia32.cc / codegen-arm.cc 424 // codegen-ia32.cc / codegen-arm.cc
422 DEFINE_bool(trace_codegen, false, 425 DEFINE_bool(trace_codegen, false,
423 "print name of functions for which code is generated") 426 "print name of functions for which code is generated")
424 DEFINE_bool(trace, false, "trace function calls") 427 DEFINE_bool(trace, false, "trace function calls")
425 DEFINE_bool(mask_constants_with_cookie, 428 DEFINE_bool(mask_constants_with_cookie, true,
426 true,
427 "use random jit cookie to mask large constants") 429 "use random jit cookie to mask large constants")
428 430
429 // codegen.cc 431 // codegen.cc
430 DEFINE_bool(lazy, true, "use lazy compilation") 432 DEFINE_bool(lazy, true, "use lazy compilation")
431 DEFINE_bool(trace_opt, false, "trace lazy optimization") 433 DEFINE_bool(trace_opt, false, "trace lazy optimization")
432 DEFINE_bool(trace_opt_stats, false, "trace lazy optimization statistics") 434 DEFINE_bool(trace_opt_stats, false, "trace lazy optimization statistics")
433 DEFINE_bool(opt, true, "use adaptive optimizations") 435 DEFINE_bool(opt, true, "use adaptive optimizations")
434 DEFINE_bool(always_opt, false, "always try to optimize functions") 436 DEFINE_bool(always_opt, false, "always try to optimize functions")
435 DEFINE_bool(always_osr, false, "always try to OSR functions") 437 DEFINE_bool(always_osr, false, "always try to OSR functions")
436 DEFINE_bool(prepare_always_opt, false, "prepare for turning on always opt") 438 DEFINE_bool(prepare_always_opt, false, "prepare for turning on always opt")
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 "print more details following each garbage collection") 506 "print more details following each garbage collection")
505 DEFINE_bool(trace_fragmentation, false, 507 DEFINE_bool(trace_fragmentation, false,
506 "report fragmentation for old pointer and data pages") 508 "report fragmentation for old pointer and data pages")
507 DEFINE_bool(trace_external_memory, false, 509 DEFINE_bool(trace_external_memory, false,
508 "print amount of external allocated memory after each time " 510 "print amount of external allocated memory after each time "
509 "it is adjusted.") 511 "it is adjusted.")
510 DEFINE_bool(collect_maps, true, 512 DEFINE_bool(collect_maps, true,
511 "garbage collect maps from which no objects can be reached") 513 "garbage collect maps from which no objects can be reached")
512 DEFINE_bool(weak_embedded_maps_in_optimized_code, true, 514 DEFINE_bool(weak_embedded_maps_in_optimized_code, true,
513 "make maps embedded in optimized code weak") 515 "make maps embedded in optimized code weak")
514 DEFINE_bool(weak_embedded_objects_in_optimized_code, false, 516 DEFINE_bool(weak_embedded_objects_in_optimized_code, true,
515 "make objects embedded in optimized code weak") 517 "make objects embedded in optimized code weak")
516 DEFINE_bool(flush_code, true, 518 DEFINE_bool(flush_code, true,
517 "flush code that we expect not to use again (during full gc)") 519 "flush code that we expect not to use again (during full gc)")
518 DEFINE_bool(flush_code_incrementally, true, 520 DEFINE_bool(flush_code_incrementally, true,
519 "flush code that we expect not to use again (incrementally)") 521 "flush code that we expect not to use again (incrementally)")
520 DEFINE_bool(trace_code_flushing, false, "trace code flushing progress") 522 DEFINE_bool(trace_code_flushing, false, "trace code flushing progress")
521 DEFINE_bool(age_code, true, 523 DEFINE_bool(age_code, true,
522 "track un-executed functions to age code and flush only " 524 "track un-executed functions to age code and flush only "
523 "old code (required for code flushing)") 525 "old code (required for code flushing)")
524 DEFINE_bool(incremental_marking, true, "use incremental marking") 526 DEFINE_bool(incremental_marking, true, "use incremental marking")
525 DEFINE_bool(incremental_marking_steps, true, "do incremental marking steps") 527 DEFINE_bool(incremental_marking_steps, true, "do incremental marking steps")
526 DEFINE_bool(trace_incremental_marking, false, 528 DEFINE_bool(trace_incremental_marking, false,
527 "trace progress of the incremental marking") 529 "trace progress of the incremental marking")
528 DEFINE_bool(track_gc_object_stats, false, 530 DEFINE_bool(track_gc_object_stats, false,
529 "track object counts and memory usage") 531 "track object counts and memory usage")
530 DEFINE_bool(parallel_sweeping, true, "enable parallel sweeping") 532 DEFINE_bool(parallel_sweeping, true, "enable parallel sweeping")
531 DEFINE_bool(concurrent_sweeping, false, "enable concurrent sweeping") 533 DEFINE_bool(concurrent_sweeping, false, "enable concurrent sweeping")
532 DEFINE_int(sweeper_threads, 0, 534 DEFINE_int(sweeper_threads, 0,
533 "number of parallel and concurrent sweeping threads") 535 "number of parallel and concurrent sweeping threads")
534 #ifdef VERIFY_HEAP 536 #ifdef VERIFY_HEAP
535 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC") 537 DEFINE_bool(verify_heap, false, "verify heap pointers before and after GC")
536 #endif 538 #endif
537 539
540
541 // heap-snapshot-generator.cc
542 DEFINE_bool(heap_profiler_trace_objects, false,
543 "Dump heap object allocations/movements/size_updates")
544
545
538 // v8.cc 546 // v8.cc
539 DEFINE_bool(use_idle_notification, true, 547 DEFINE_bool(use_idle_notification, true,
540 "Use idle notification to reduce memory footprint.") 548 "Use idle notification to reduce memory footprint.")
541 // ic.cc 549 // ic.cc
542 DEFINE_bool(use_ic, true, "use inline caching") 550 DEFINE_bool(use_ic, true, "use inline caching")
543 551
544 // macro-assembler-ia32.cc 552 // macro-assembler-ia32.cc
545 DEFINE_bool(native_code_counters, false, 553 DEFINE_bool(native_code_counters, false,
546 "generate extra code for manipulating stats counters") 554 "generate extra code for manipulating stats counters")
547 555
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 DEFINE_bool(trace_sim_messages, false, 604 DEFINE_bool(trace_sim_messages, false,
597 "Trace simulator debug messages. Implied by --trace-sim.") 605 "Trace simulator debug messages. Implied by --trace-sim.")
598 606
599 // isolate.cc 607 // isolate.cc
600 DEFINE_bool(abort_on_uncaught_exception, false, 608 DEFINE_bool(abort_on_uncaught_exception, false,
601 "abort program (dump core) when an uncaught exception is thrown") 609 "abort program (dump core) when an uncaught exception is thrown")
602 DEFINE_bool(trace_exception, false, 610 DEFINE_bool(trace_exception, false,
603 "print stack trace when throwing exceptions") 611 "print stack trace when throwing exceptions")
604 DEFINE_bool(preallocate_message_memory, false, 612 DEFINE_bool(preallocate_message_memory, false,
605 "preallocate some memory to build stack traces.") 613 "preallocate some memory to build stack traces.")
606 DEFINE_bool(randomize_hashes, 614 DEFINE_bool(randomize_hashes, true,
607 true,
608 "randomize hashes to avoid predictable hash collisions " 615 "randomize hashes to avoid predictable hash collisions "
609 "(with snapshots this option cannot override the baked-in seed)") 616 "(with snapshots this option cannot override the baked-in seed)")
610 DEFINE_int(hash_seed, 617 DEFINE_int(hash_seed, 0,
611 0,
612 "Fixed seed to use to hash property keys (0 means random)" 618 "Fixed seed to use to hash property keys (0 means random)"
613 "(with snapshots this option cannot override the baked-in seed)") 619 "(with snapshots this option cannot override the baked-in seed)")
614 620
615 // snapshot-common.cc 621 // snapshot-common.cc
616 DEFINE_bool(profile_deserialization, 622 DEFINE_bool(profile_deserialization, false,
617 false,
618 "Print the time it takes to deserialize the snapshot.") 623 "Print the time it takes to deserialize the snapshot.")
619 624
620 // v8.cc 625 // v8.cc
621 DEFINE_bool(preemption, false, 626 DEFINE_bool(preemption, false,
622 "activate a 100ms timer that switches between V8 threads") 627 "activate a 100ms timer that switches between V8 threads")
623 628
624 // Regexp 629 // Regexp
625 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") 630 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code")
626 631
627 // Testing flags test/cctest/test-{flags,api,serialization}.cc 632 // Testing flags test/cctest/test-{flags,api,serialization}.cc
628 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag") 633 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag")
629 DEFINE_maybe_bool(testing_maybe_bool_flag, "testing_maybe_bool_flag") 634 DEFINE_maybe_bool(testing_maybe_bool_flag, "testing_maybe_bool_flag")
630 DEFINE_int(testing_int_flag, 13, "testing_int_flag") 635 DEFINE_int(testing_int_flag, 13, "testing_int_flag")
631 DEFINE_float(testing_float_flag, 2.5, "float-flag") 636 DEFINE_float(testing_float_flag, 2.5, "float-flag")
632 DEFINE_string(testing_string_flag, "Hello, world!", "string-flag") 637 DEFINE_string(testing_string_flag, "Hello, world!", "string-flag")
633 DEFINE_int(testing_prng_seed, 42, "Seed used for threading test randomness") 638 DEFINE_int(testing_prng_seed, 42, "Seed used for threading test randomness")
634 #ifdef _WIN32 639 #ifdef _WIN32
635 DEFINE_string(testing_serialization_file, "C:\\Windows\\Temp\\serdes", 640 DEFINE_string(testing_serialization_file, "C:\\Windows\\Temp\\serdes",
636 "file in which to testing_serialize heap") 641 "file in which to testing_serialize heap")
637 #else 642 #else
638 DEFINE_string(testing_serialization_file, "/tmp/serdes", 643 DEFINE_string(testing_serialization_file, "/tmp/serdes",
639 "file in which to serialize heap") 644 "file in which to serialize heap")
640 #endif 645 #endif
641 646
642 // mksnapshot.cc 647 // mksnapshot.cc
643 DEFINE_string(extra_code, NULL, "A filename with extra code to be included in" 648 DEFINE_string(extra_code, NULL, "A filename with extra code to be included in"
644 " the snapshot (mksnapshot only)") 649 " the snapshot (mksnapshot only)")
645 650
646 // code-stubs-hydrogen.cc 651 // code-stubs-hydrogen.cc
647 DEFINE_bool(profile_hydrogen_code_stub_compilation, 652 DEFINE_bool(profile_hydrogen_code_stub_compilation, false,
648 false,
649 "Print the time it takes to lazily compile hydrogen code stubs.") 653 "Print the time it takes to lazily compile hydrogen code stubs.")
650 654
651 // 655 //
652 // Dev shell flags 656 // Dev shell flags
653 // 657 //
654 658
655 DEFINE_bool(help, false, "Print usage message, including flags, on console") 659 DEFINE_bool(help, false, "Print usage message, including flags, on console")
656 DEFINE_bool(dump_counters, false, "Dump counters on exit") 660 DEFINE_bool(dump_counters, false, "Dump counters on exit")
657 661
658 #ifdef ENABLE_DEBUGGER_SUPPORT 662 #ifdef ENABLE_DEBUGGER_SUPPORT
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 // Debug only flags 705 // Debug only flags
702 // 706 //
703 #undef FLAG 707 #undef FLAG
704 #ifdef DEBUG 708 #ifdef DEBUG
705 #define FLAG FLAG_FULL 709 #define FLAG FLAG_FULL
706 #else 710 #else
707 #define FLAG FLAG_READONLY 711 #define FLAG FLAG_READONLY
708 #endif 712 #endif
709 713
710 // checks.cc 714 // checks.cc
715 #ifdef ENABLE_SLOW_ASSERTS
711 DEFINE_bool(enable_slow_asserts, false, 716 DEFINE_bool(enable_slow_asserts, false,
712 "enable asserts that are slow to execute") 717 "enable asserts that are slow to execute")
718 #endif
713 719
714 // codegen-ia32.cc / codegen-arm.cc / macro-assembler-*.cc 720 // codegen-ia32.cc / codegen-arm.cc / macro-assembler-*.cc
715 DEFINE_bool(print_source, false, "pretty print source code") 721 DEFINE_bool(print_source, false, "pretty print source code")
716 DEFINE_bool(print_builtin_source, false, 722 DEFINE_bool(print_builtin_source, false,
717 "pretty print source code for builtins") 723 "pretty print source code for builtins")
718 DEFINE_bool(print_ast, false, "print source AST") 724 DEFINE_bool(print_ast, false, "print source AST")
719 DEFINE_bool(print_builtin_ast, false, "print source AST for builtins") 725 DEFINE_bool(print_builtin_ast, false, "print source AST for builtins")
720 DEFINE_string(stop_at, "", "function name where to insert a breakpoint") 726 DEFINE_string(stop_at, "", "function name where to insert a breakpoint")
721 DEFINE_bool(trap_on_abort, false, "replace aborts by breakpoints") 727 DEFINE_bool(trap_on_abort, false, "replace aborts by breakpoints")
722 728
(...skipping 16 matching lines...) Expand all
739 745
740 // ic.cc 746 // ic.cc
741 DEFINE_bool(trace_ic, false, "trace inline cache state transitions") 747 DEFINE_bool(trace_ic, false, "trace inline cache state transitions")
742 748
743 // interface.cc 749 // interface.cc
744 DEFINE_bool(print_interfaces, false, "print interfaces") 750 DEFINE_bool(print_interfaces, false, "print interfaces")
745 DEFINE_bool(print_interface_details, false, "print interface inference details") 751 DEFINE_bool(print_interface_details, false, "print interface inference details")
746 DEFINE_int(print_interface_depth, 5, "depth for printing interfaces") 752 DEFINE_int(print_interface_depth, 5, "depth for printing interfaces")
747 753
748 // objects.cc 754 // objects.cc
749 DEFINE_bool(trace_normalization, 755 DEFINE_bool(trace_normalization, false,
750 false,
751 "prints when objects are turned into dictionaries.") 756 "prints when objects are turned into dictionaries.")
752 757
753 // runtime.cc 758 // runtime.cc
754 DEFINE_bool(trace_lazy, false, "trace lazy compilation") 759 DEFINE_bool(trace_lazy, false, "trace lazy compilation")
755 760
756 // spaces.cc 761 // spaces.cc
757 DEFINE_bool(collect_heap_spill_statistics, false, 762 DEFINE_bool(collect_heap_spill_statistics, false,
758 "report heap spill statistics along with heap_stats " 763 "report heap spill statistics along with heap_stats "
759 "(requires heap_stats)") 764 "(requires heap_stats)")
760 765
761 DEFINE_bool(trace_isolates, false, "trace isolate state changes") 766 DEFINE_bool(trace_isolates, false, "trace isolate state changes")
762 767
763 // Regexp 768 // Regexp
764 DEFINE_bool(regexp_possessive_quantifier, 769 DEFINE_bool(regexp_possessive_quantifier, false,
765 false,
766 "enable possessive quantifier syntax for testing") 770 "enable possessive quantifier syntax for testing")
767 DEFINE_bool(trace_regexp_bytecodes, false, "trace regexp bytecode execution") 771 DEFINE_bool(trace_regexp_bytecodes, false, "trace regexp bytecode execution")
768 DEFINE_bool(trace_regexp_assembler, 772 DEFINE_bool(trace_regexp_assembler, false,
769 false,
770 "trace regexp macro assembler calls.") 773 "trace regexp macro assembler calls.")
771 774
772 // 775 //
773 // Logging and profiling flags 776 // Logging and profiling flags
774 // 777 //
775 #undef FLAG 778 #undef FLAG
776 #define FLAG FLAG_FULL 779 #define FLAG FLAG_FULL
777 780
778 // log.cc 781 // log.cc
779 DEFINE_bool(log, false, 782 DEFINE_bool(log, false,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 #undef FLAG 819 #undef FLAG
817 #ifdef ENABLE_DISASSEMBLER 820 #ifdef ENABLE_DISASSEMBLER
818 #define FLAG FLAG_FULL 821 #define FLAG FLAG_FULL
819 #else 822 #else
820 #define FLAG FLAG_READONLY 823 #define FLAG FLAG_READONLY
821 #endif 824 #endif
822 825
823 // elements.cc 826 // elements.cc
824 DEFINE_bool(trace_elements_transitions, false, "trace elements transitions") 827 DEFINE_bool(trace_elements_transitions, false, "trace elements transitions")
825 828
829 DEFINE_bool(trace_creation_allocation_sites, false,
830 "trace the creation of allocation sites")
831
826 // code-stubs.cc 832 // code-stubs.cc
827 DEFINE_bool(print_code_stubs, false, "print code stubs") 833 DEFINE_bool(print_code_stubs, false, "print code stubs")
828 DEFINE_bool(test_secondary_stub_cache, 834 DEFINE_bool(test_secondary_stub_cache, false,
829 false,
830 "test secondary stub cache by disabling the primary one") 835 "test secondary stub cache by disabling the primary one")
831 836
832 DEFINE_bool(test_primary_stub_cache, 837 DEFINE_bool(test_primary_stub_cache, false,
833 false,
834 "test primary stub cache by disabling the secondary one") 838 "test primary stub cache by disabling the secondary one")
835 839
836 840
837 // codegen-ia32.cc / codegen-arm.cc 841 // codegen-ia32.cc / codegen-arm.cc
838 DEFINE_bool(print_code, false, "print generated code") 842 DEFINE_bool(print_code, false, "print generated code")
839 DEFINE_bool(print_opt_code, false, "print optimized code") 843 DEFINE_bool(print_opt_code, false, "print optimized code")
840 DEFINE_bool(print_unopt_code, false, "print unoptimized code before " 844 DEFINE_bool(print_unopt_code, false, "print unoptimized code before "
841 "printing optimized code based on it") 845 "printing optimized code based on it")
842 DEFINE_bool(print_code_verbose, false, "print more information for code") 846 DEFINE_bool(print_code_verbose, false, "print more information for code")
843 DEFINE_bool(print_builtin_code, false, "print generated code for builtins") 847 DEFINE_bool(print_builtin_code, false, "print generated code for builtins")
848 DEFINE_bool(emit_opt_code_positions, false,
849 "annotate optimize code with source code positions")
844 850
845 #ifdef ENABLE_DISASSEMBLER 851 #ifdef ENABLE_DISASSEMBLER
852 DEFINE_bool(sodium, false, "print generated code output suitable for use with "
853 "the Sodium code viewer")
854
855 DEFINE_implication(sodium, print_code_stubs)
856 DEFINE_implication(sodium, print_code)
857 DEFINE_implication(sodium, print_opt_code)
858 DEFINE_implication(sodium, emit_opt_code_positions)
859 DEFINE_implication(sodium, code_comments)
860
846 DEFINE_bool(print_all_code, false, "enable all flags related to printing code") 861 DEFINE_bool(print_all_code, false, "enable all flags related to printing code")
847 DEFINE_implication(print_all_code, print_code) 862 DEFINE_implication(print_all_code, print_code)
848 DEFINE_implication(print_all_code, print_opt_code) 863 DEFINE_implication(print_all_code, print_opt_code)
849 DEFINE_implication(print_all_code, print_unopt_code) 864 DEFINE_implication(print_all_code, print_unopt_code)
850 DEFINE_implication(print_all_code, print_code_verbose) 865 DEFINE_implication(print_all_code, print_code_verbose)
851 DEFINE_implication(print_all_code, print_builtin_code) 866 DEFINE_implication(print_all_code, print_builtin_code)
852 DEFINE_implication(print_all_code, print_code_stubs) 867 DEFINE_implication(print_all_code, print_code_stubs)
853 DEFINE_implication(print_all_code, code_comments) 868 DEFINE_implication(print_all_code, code_comments)
854 #ifdef DEBUG 869 #ifdef DEBUG
855 DEFINE_implication(print_all_code, trace_codegen) 870 DEFINE_implication(print_all_code, trace_codegen)
(...skipping 29 matching lines...) Expand all
885 #undef DEFINE_ALIAS_float 900 #undef DEFINE_ALIAS_float
886 #undef DEFINE_ALIAS_args 901 #undef DEFINE_ALIAS_args
887 902
888 #undef FLAG_MODE_DECLARE 903 #undef FLAG_MODE_DECLARE
889 #undef FLAG_MODE_DEFINE 904 #undef FLAG_MODE_DEFINE
890 #undef FLAG_MODE_DEFINE_DEFAULTS 905 #undef FLAG_MODE_DEFINE_DEFAULTS
891 #undef FLAG_MODE_META 906 #undef FLAG_MODE_META
892 #undef FLAG_MODE_DEFINE_IMPLICATIONS 907 #undef FLAG_MODE_DEFINE_IMPLICATIONS
893 908
894 #undef COMMA 909 #undef COMMA
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698