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

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

Issue 1714743002: VM: Separate precompilation-specific code, make flags const. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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.
rmacnak 2016/02/19 00:54:31 * pre C ompiled flags: ...
Florian Schneider 2016/02/19 17:42:29 Done.
15 15
rmacnak 2016/02/19 00:54:31 What about features disabled by product mode or pr
Florian Schneider 2016/02/19 17:42:29 I added all 4 combinations of product/precompiled
16 #define FLAG_LIST(P, R, D) \ 16 #define FLAG_LIST(P, R, D, C) \
17 R(dedup_instructions, true, bool, false, \ 17 R(dedup_instructions, true, bool, false, \
18 "Canonicalize instructions when precompiling.") \ 18 "Canonicalize instructions when precompiling.") \
19 R(disable_alloc_stubs_after_gc, false, bool, false, \ 19 R(disable_alloc_stubs_after_gc, false, bool, false, \
20 "Stress testing flag.") \ 20 "Stress testing flag.") \
21 R(disassemble, false, bool, false, \ 21 R(disassemble, false, bool, false, \
22 "Disassemble dart code.") \ 22 "Disassemble dart code.") \
23 R(disassemble_optimized, false, bool, false, \ 23 R(disassemble_optimized, false, bool, false, \
24 "Disassemble optimized code.") \ 24 "Disassemble optimized code.") \
25 R(dump_symbol_stats, false, bool, false, \ 25 R(dump_symbol_stats, false, bool, false, \
26 "Dump symbol table statistics") \ 26 "Dump symbol table statistics") \
(...skipping 28 matching lines...) Expand all
55 D(trace_zones, bool, false, \ 55 D(trace_zones, bool, false, \
56 "Traces allocation sizes in the zone.") \ 56 "Traces allocation sizes in the zone.") \
57 P(verbose_gc, bool, false, \ 57 P(verbose_gc, bool, false, \
58 "Enables verbose GC.") \ 58 "Enables verbose GC.") \
59 P(verbose_gc_hdr, int, 40, \ 59 P(verbose_gc_hdr, int, 40, \
60 "Print verbose GC header interval.") \ 60 "Print verbose GC header interval.") \
61 R(verify_after_gc, false, bool, false, \ 61 R(verify_after_gc, false, bool, false, \
62 "Enables heap verification after GC.") \ 62 "Enables heap verification after GC.") \
63 R(verify_before_gc, false, bool, false, \ 63 R(verify_before_gc, false, bool, false, \
64 "Enables heap verification before GC.") \ 64 "Enables heap verification before GC.") \
65 C(lazy_dispatchers, false, bool, true, "Generate dispatchers lazily") \
Ivan Posva 2016/02/19 01:07:49 Two lines for all of them! Even if they fit, which
Florian Schneider 2016/02/19 17:42:29 Done.
65 66
66 67
67 #endif // VM_FLAG_LIST_H_ 68 #endif // VM_FLAG_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698