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

Side by Side Diff: runtime/vm/flag_list.h

Issue 1739593002: Revert "Move precompilation-related flags to flags list." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | runtime/vm/flags.cc » ('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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_FLAG_LIST_H_ 5 #ifndef VM_FLAG_LIST_H_
6 #define VM_FLAG_LIST_H_ 6 #define VM_FLAG_LIST_H_
7 7
8 // List of all flags in the VM. 8 // List of all flags in the VM.
9 // Flags can be one of three categories: 9 // Flags can be one of three categories:
10 // * P roduct flags: Can be set in any of the deployment modes, including in 10 // * P roduct flags: Can be set in any of the deployment modes, including in
11 // production. 11 // production.
12 // * D ebug flags: Can only be set in debug VMs, which also have assertions 12 // * D ebug flags: Can only be set in debug VMs, which also have assertions
13 // enabled. 13 // enabled.
14 // * R elease flags: Generally available flags except when building product. 14 // * R elease flags: Generally available flags except when building product.
15 // * pre C ompile flags: Generally available flags except when building product 15 // * pre C ompile flags: Generally available flags except when building product
16 // or precompiled runtime. 16 // or precompiled runtime.
17 // 17 //
18 // Usage: 18 // Usage:
19 // P(name, type, default_value, comment) 19 // P(name, type, default_value, comment)
20 // D(name, type, default_value, comment) 20 // D(name, type, default_value, comment)
21 // R(name, product_value, type, default_value, comment) 21 // R(name, product_value, type, default_value, comment)
22 // C(name, precompiled_value, product_value, type, default_value, comment) 22 // C(name, precompiled_value, product_value, type, default_value, comment)
23 #define FLAG_LIST(P, R, D, C) \ 23 #define FLAG_LIST(P, R, D, C) \
24 C(allow_absolute_addresses, false, true, bool, true, \
25 "Allow embedding absolute addresses in generated code.") \
26 C(always_megamorphic_calls, true, false, bool, false, \
27 "Instance call always as megamorphic.") \
28 C(background_compilation, false, false, bool, false, \
29 "Run optimizing compilation in background") \
30 C(collect_code, false, true, bool, true, \
31 "Attempt to GC infrequently used code.") \
32 C(collect_dynamic_function_names, true, false, bool, false, \
33 "Collects all dynamic function names to identify unique targets") \
34 R(dedup_instructions, true, bool, false, \ 24 R(dedup_instructions, true, bool, false, \
35 "Canonicalize instructions when precompiling.") \ 25 "Canonicalize instructions when precompiling.") \
36 C(deoptimize_alot, false, false, bool, false, \
37 "Deoptimizes we are about to return to Dart code from native entries.") \
38 C(deoptimize_every, 0, 0, int, 0, \
39 "Deoptimize on every N stack overflow checks") \
40 R(disable_alloc_stubs_after_gc, false, bool, false, \ 26 R(disable_alloc_stubs_after_gc, false, bool, false, \
41 "Stress testing flag.") \ 27 "Stress testing flag.") \
42 R(disassemble, false, bool, false, \ 28 R(disassemble, false, bool, false, \
43 "Disassemble dart code.") \ 29 "Disassemble dart code.") \
44 R(disassemble_optimized, false, bool, false, \ 30 R(disassemble_optimized, false, bool, false, \
45 "Disassemble optimized code.") \ 31 "Disassemble optimized code.") \
46 R(dump_symbol_stats, false, bool, false, \ 32 R(dump_symbol_stats, false, bool, false, \
47 "Dump symbol table statistics") \ 33 "Dump symbol table statistics") \
48 C(emit_edge_counters, false, true, bool, true, \ 34 R(enable_mirrors, false, bool, true, \
49 "Emit edge counters") \
50 C(enable_mirrors, false, false, bool, true, \
51 "Disable to make importing dart:mirrors an error.") \ 35 "Disable to make importing dart:mirrors an error.") \
52 C(fields_may_be_reset, true, false, bool, false, \
53 "Don't optimize away static field initialization") \
54 R(gc_at_alloc, false, bool, false, \ 36 R(gc_at_alloc, false, bool, false, \
55 "GC at every allocation.") \ 37 "GC at every allocation.") \
56 P(getter_setter_ratio, int, 13, \ 38 P(getter_setter_ratio, int, 13, \
57 "Ratio of getter/setter usage used for double field unboxing heuristics") \ 39 "Ratio of getter/setter usage used for double field unboxing heuristics") \
58 P(guess_icdata_cid, bool, true, \ 40 P(guess_icdata_cid, bool, true, \
59 "Artificially create type feedback for arithmetic etc. operations") \ 41 "Artificially create type feedback for arithmetic etc. operations") \
60 C(ic_range_profiling, false, true, bool, true, \
61 "Generate special IC stubs collecting range information ") \
62 C(interpret_irregexp, true, false, bool, false, \
63 "Use irregexp bytecode interpreter") \
64 C(lazy_dispatchers, false, true, bool, true, \ 42 C(lazy_dispatchers, false, true, bool, true, \
65 "Generate dispatchers lazily") \ 43 "Generate dispatchers lazily") \
66 C(link_natives_lazily, true, false, bool, false, \
67 "Link native calls lazily") \
68 C(load_deferred_eagerly, true, true, bool, false, \
69 "Load deferred libraries eagerly.") \
70 P(max_polymorphic_checks, int, 4, \ 44 P(max_polymorphic_checks, int, 4, \
71 "Maximum number of polymorphic check, otherwise it is megamorphic.") \ 45 "Maximum number of polymorphic check, otherwise it is megamorphic.") \
72 P(max_equality_polymorphic_checks, int, 32, \ 46 P(max_equality_polymorphic_checks, int, 32, \
73 "Maximum number of polymorphic checks in equality operator,") \ 47 "Maximum number of polymorphic checks in equality operator,") \
74 P(merge_sin_cos, bool, false, \ 48 P(merge_sin_cos, bool, false, \
75 "Merge sin/cos into sincos") \ 49 "Merge sin/cos into sincos") \
76 P(new_gen_ext_limit, int, 64, \ 50 P(new_gen_ext_limit, int, 64, \
77 "maximum total external size (MB) in new gen before triggering GC") \ 51 "maximum total external size (MB) in new gen before triggering GC") \
78 C(optimization_counter_threshold, -1, 30000, int, 30000, \
79 "Function's usage-counter value before it is optimized, -1 means never") \
80 C(polymorphic_with_deopt, false, true, bool, true, \ 52 C(polymorphic_with_deopt, false, true, bool, true, \
81 "Polymorphic calls with deoptimization / megamorphic call") \ 53 "Polymorphic calls with deoptimization / megamorphic call") \
82 C(precompiled_mode, true, false, bool, false, \
83 "Precompilation compiler/runtime mode") \
84 R(pretenure_all, false, bool, false, \ 54 R(pretenure_all, false, bool, false, \
85 "Global pretenuring (for testing).") \ 55 "Global pretenuring (for testing).") \
86 P(pretenure_interval, int, 10, \ 56 P(pretenure_interval, int, 10, \
87 "Back off pretenuring after this many cycles.") \ 57 "Back off pretenuring after this many cycles.") \
88 P(pretenure_threshold, int, 98, \ 58 P(pretenure_threshold, int, 98, \
89 "Trigger pretenuring when this many percent are promoted.") \ 59 "Trigger pretenuring when this many percent are promoted.") \
90 C(print_stop_message, false, true, bool, true, \
91 "Print stop message.") \
92 R(profiler, false, bool, true, \ 60 R(profiler, false, bool, true, \
93 "Enable the profiler.") \ 61 "Enable the profiler.") \
94 R(support_ast_printer, false, bool, true, \ 62 R(support_ast_printer, false, bool, true, \
95 "Support the AST printer.") \ 63 "Support the AST printer.") \
96 R(support_compiler_stats, false, bool, true, \ 64 R(support_compiler_stats, false, bool, true, \
97 "Support compiler stats.") \ 65 "Support compiler stats.") \
98 R(support_debugger, false, bool, true, \ 66 R(support_debugger, false, bool, true, \
99 "Support the debugger.") \ 67 "Support the debugger.") \
100 R(support_disassembler, false, bool, true, \ 68 R(support_disassembler, false, bool, true, \
101 "Support the disassembler.") \ 69 "Support the disassembler.") \
(...skipping 12 matching lines...) Expand all
114 D(trace_handles, bool, false, \ 82 D(trace_handles, bool, false, \
115 "Traces allocation of handles.") \ 83 "Traces allocation of handles.") \
116 D(trace_optimization, bool, false, \ 84 D(trace_optimization, bool, false, \
117 "Print optimization details."); \ 85 "Print optimization details."); \
118 D(trace_zones, bool, false, \ 86 D(trace_zones, bool, false, \
119 "Traces allocation sizes in the zone.") \ 87 "Traces allocation sizes in the zone.") \
120 P(truncating_left_shift, bool, true, \ 88 P(truncating_left_shift, bool, true, \
121 "Optimize left shift to truncate if possible") \ 89 "Optimize left shift to truncate if possible") \
122 C(use_cha_deopt, false, true, bool, true, \ 90 C(use_cha_deopt, false, true, bool, true, \
123 "Use class hierarchy analysis even if it can cause deoptimization.") \ 91 "Use class hierarchy analysis even if it can cause deoptimization.") \
124 C(use_field_guards, false, true, bool, true, \
125 "Use field guards and track field types") \
126 C(use_osr, false, true, bool, true, \
127 "Use OSR") \
128 P(verbose_gc, bool, false, \ 92 P(verbose_gc, bool, false, \
129 "Enables verbose GC.") \ 93 "Enables verbose GC.") \
130 P(verbose_gc_hdr, int, 40, \ 94 P(verbose_gc_hdr, int, 40, \
131 "Print verbose GC header interval.") \ 95 "Print verbose GC header interval.") \
132 R(verify_after_gc, false, bool, false, \ 96 R(verify_after_gc, false, bool, false, \
133 "Enables heap verification after GC.") \ 97 "Enables heap verification after GC.") \
134 R(verify_before_gc, false, bool, false, \ 98 R(verify_before_gc, false, bool, false, \
135 "Enables heap verification before GC.") \ 99 "Enables heap verification before GC.") \
136 100
101
137 #endif // VM_FLAG_LIST_H_ 102 #endif // VM_FLAG_LIST_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | runtime/vm/flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698