36 #include "utilities/tribool.hpp"
37
38 // Directives flag name, type, default value, compile command name
39 #define compilerdirectives_common_other_flags(cflags) \
40 cflags(Enable, bool, false, Unknown) \
41 cflags(Exclude, bool, false, Unknown) \
42 cflags(BreakAtExecute, bool, false, BreakAtExecute) \
43 cflags(BreakAtCompile, bool, false, BreakAtCompile) \
44 cflags(Log, bool, LogCompilation, Unknown) \
45 cflags(MemLimit, intx, 0, MemLimit) \
46 cflags(MemStat, uintx, 0, MemStat) \
47 cflags(PrintAssembly, bool, PrintAssembly, PrintAssembly) \
48 cflags(PrintCompilation, bool, PrintCompilation, PrintCompilation) \
49 cflags(PrintInlining, bool, PrintInlining, PrintInlining) \
50 cflags(PrintNMethods, bool, PrintNMethods, PrintNMethods) \
51 cflags(BackgroundCompilation, bool, BackgroundCompilation, BackgroundCompilation) \
52 cflags(ReplayInline, bool, false, ReplayInline) \
53 cflags(DumpReplay, bool, false, DumpReplay) \
54 cflags(DumpInline, bool, false, DumpInline) \
55 cflags(CompilerDirectivesIgnoreCompileCommands, bool, CompilerDirectivesIgnoreCompileCommands, Unknown) \
56 cflags(RepeatCompilation, intx, RepeatCompilation, RepeatCompilation)
57 #define compilerdirectives_common_string_flags(cflags) \
58 cflags(DisableIntrinsic, ccstrlist, DisableIntrinsic, DisableIntrinsic) \
59 cflags(ControlIntrinsic, ccstrlist, ControlIntrinsic, ControlIntrinsic)
60 #define compilerdirectives_common_flags(cflags) \
61 compilerdirectives_common_other_flags(cflags) \
62 compilerdirectives_common_string_flags(cflags)
63
64 #ifdef COMPILER1
65 #define compilerdirectives_c1_other_flags(cflags)
66 #define compilerdirectives_c1_string_flags(cflags)
67 #else
68 #define compilerdirectives_c1_other_flags(cflags)
69 #define compilerdirectives_c1_string_flags(cflags)
70 #endif
71
72 #define compilerdirectives_c1_flags(cflags) \
73 compilerdirectives_c1_other_flags(cflags) \
74 compilerdirectives_c1_string_flags(cflags)
75
76 #ifdef COMPILER2
|
36 #include "utilities/tribool.hpp"
37
38 // Directives flag name, type, default value, compile command name
39 #define compilerdirectives_common_other_flags(cflags) \
40 cflags(Enable, bool, false, Unknown) \
41 cflags(Exclude, bool, false, Unknown) \
42 cflags(BreakAtExecute, bool, false, BreakAtExecute) \
43 cflags(BreakAtCompile, bool, false, BreakAtCompile) \
44 cflags(Log, bool, LogCompilation, Unknown) \
45 cflags(MemLimit, intx, 0, MemLimit) \
46 cflags(MemStat, uintx, 0, MemStat) \
47 cflags(PrintAssembly, bool, PrintAssembly, PrintAssembly) \
48 cflags(PrintCompilation, bool, PrintCompilation, PrintCompilation) \
49 cflags(PrintInlining, bool, PrintInlining, PrintInlining) \
50 cflags(PrintNMethods, bool, PrintNMethods, PrintNMethods) \
51 cflags(BackgroundCompilation, bool, BackgroundCompilation, BackgroundCompilation) \
52 cflags(ReplayInline, bool, false, ReplayInline) \
53 cflags(DumpReplay, bool, false, DumpReplay) \
54 cflags(DumpInline, bool, false, DumpInline) \
55 cflags(CompilerDirectivesIgnoreCompileCommands, bool, CompilerDirectivesIgnoreCompileCommands, Unknown) \
56 cflags(RepeatCompilation, intx, RepeatCompilation, RepeatCompilation) \
57 cflags(PrecompileRecorded, uintx, 0, PrecompileRecorded) \
58 cflags(DontPrecompile, bool, false, DontPrecompile) \
59 cflags(DontPreload, bool, false, DontPreload) \
60 cflags(IgnoreRecordedProfile, bool, false, IgnoreRecordedProfile) \
61 cflags(IgnorePrecompiled, bool, false, IgnorePrecompiled) \
62 cflags(TooManyTrapsAtBCI, ccstrlist, "", TooManyTrapsAtBCI)
63 #define compilerdirectives_common_string_flags(cflags) \
64 cflags(DisableIntrinsic, ccstrlist, DisableIntrinsic, DisableIntrinsic) \
65 cflags(ControlIntrinsic, ccstrlist, ControlIntrinsic, ControlIntrinsic)
66 #define compilerdirectives_common_flags(cflags) \
67 compilerdirectives_common_other_flags(cflags) \
68 compilerdirectives_common_string_flags(cflags)
69
70 #ifdef COMPILER1
71 #define compilerdirectives_c1_other_flags(cflags)
72 #define compilerdirectives_c1_string_flags(cflags)
73 #else
74 #define compilerdirectives_c1_other_flags(cflags)
75 #define compilerdirectives_c1_string_flags(cflags)
76 #endif
77
78 #define compilerdirectives_c1_flags(cflags) \
79 compilerdirectives_c1_other_flags(cflags) \
80 compilerdirectives_c1_string_flags(cflags)
81
82 #ifdef COMPILER2
|