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