43 flag(has_checked_exceptions , 1 << 1) \
44 flag(has_localvariable_table , 1 << 2) \
45 flag(has_exception_table , 1 << 3) \
46 flag(has_generic_signature , 1 << 4) \
47 flag(has_method_parameters , 1 << 5) \
48 flag(is_overpass , 1 << 6) \
49 flag(has_method_annotations , 1 << 7) \
50 flag(has_parameter_annotations , 1 << 8) \
51 flag(has_type_annotations , 1 << 9) \
52 flag(has_default_annotations , 1 << 10) \
53 flag(caller_sensitive , 1 << 11) \
54 flag(is_hidden , 1 << 12) \
55 flag(has_injected_profile , 1 << 13) \
56 flag(intrinsic_candidate , 1 << 14) \
57 flag(reserved_stack_access , 1 << 15) \
58 flag(is_scoped , 1 << 16) \
59 flag(changes_current_thread , 1 << 17) \
60 flag(jvmti_mount_transition , 1 << 18) \
61 flag(deprecated , 1 << 19) \
62 flag(deprecated_for_removal , 1 << 20) \
63 flag(jvmti_hide_events , 1 << 21) \
64 /* end of list */
65
66 #define CM_FLAGS_ENUM_NAME(name, value) _misc_##name = value,
67 enum {
68 CM_FLAGS_DO(CM_FLAGS_ENUM_NAME)
69 };
70 #undef CM_FLAGS_ENUM_NAME
71
72 // These flags are write-once before the class is published and then read-only so don't require atomic updates.
73 u4 _flags;
74
75 public:
76
77 ConstMethodFlags() : _flags(0) {}
78
79 // Create getters and setters for the flag values.
80 #define CM_FLAGS_GET_SET(name, ignore) \
81 bool name() const { return (_flags & _misc_##name) != 0; } \
82 void set_##name() { \
83 _flags |= _misc_##name; \
|
43 flag(has_checked_exceptions , 1 << 1) \
44 flag(has_localvariable_table , 1 << 2) \
45 flag(has_exception_table , 1 << 3) \
46 flag(has_generic_signature , 1 << 4) \
47 flag(has_method_parameters , 1 << 5) \
48 flag(is_overpass , 1 << 6) \
49 flag(has_method_annotations , 1 << 7) \
50 flag(has_parameter_annotations , 1 << 8) \
51 flag(has_type_annotations , 1 << 9) \
52 flag(has_default_annotations , 1 << 10) \
53 flag(caller_sensitive , 1 << 11) \
54 flag(is_hidden , 1 << 12) \
55 flag(has_injected_profile , 1 << 13) \
56 flag(intrinsic_candidate , 1 << 14) \
57 flag(reserved_stack_access , 1 << 15) \
58 flag(is_scoped , 1 << 16) \
59 flag(changes_current_thread , 1 << 17) \
60 flag(jvmti_mount_transition , 1 << 18) \
61 flag(deprecated , 1 << 19) \
62 flag(deprecated_for_removal , 1 << 20) \
63 flag(has_scalarized_args , 1 << 21) \
64 flag(has_scalarized_return , 1 << 22) \
65 flag(c1_needs_stack_repair , 1 << 23) \
66 flag(c2_needs_stack_repair , 1 << 24) \
67 flag(mismatch , 1 << 25) \
68 flag(jvmti_hide_events , 1 << 26) \
69 /* end of list */
70
71 #define CM_FLAGS_ENUM_NAME(name, value) _misc_##name = value,
72 enum {
73 CM_FLAGS_DO(CM_FLAGS_ENUM_NAME)
74 };
75 #undef CM_FLAGS_ENUM_NAME
76
77 // These flags are write-once before the class is published and then read-only so don't require atomic updates.
78 u4 _flags;
79
80 public:
81
82 ConstMethodFlags() : _flags(0) {}
83
84 // Create getters and setters for the flag values.
85 #define CM_FLAGS_GET_SET(name, ignore) \
86 bool name() const { return (_flags & _misc_##name) != 0; } \
87 void set_##name() { \
88 _flags |= _misc_##name; \
|