40 friend class VMStructs;
41 /* end of list */
42
43 #define M_STATUS_DO(status) \
44 status(has_monitor_bytecodes , 1 << 0) /* Method contains monitorenter/monitorexit bytecodes */ \
45 status(has_jsrs , 1 << 1) \
46 status(is_old , 1 << 2) /* RedefineClasses() has replaced this method */ \
47 status(is_obsolete , 1 << 3) /* RedefineClasses() has made method obsolete */ \
48 status(is_deleted , 1 << 4) /* RedefineClasses() has deleted this method */ \
49 status(is_prefixed_native , 1 << 5) /* JVMTI has prefixed this native method */ \
50 status(monitor_matching , 1 << 6) /* True if we know that monitorenter/monitorexit bytecodes match */ \
51 status(queued_for_compilation , 1 << 7) \
52 status(is_not_c2_compilable , 1 << 8) \
53 status(is_not_c1_compilable , 1 << 9) \
54 status(is_not_c2_osr_compilable , 1 << 10) \
55 status(force_inline , 1 << 11) /* Annotations but also set/reset at runtime */ \
56 status(dont_inline , 1 << 12) \
57 status(has_loops_flag , 1 << 13) /* Method has loops */ \
58 status(has_loops_flag_init , 1 << 14) /* The loop flag has been initialized */ \
59 status(on_stack_flag , 1 << 15) /* RedefineClasses support to keep Metadata from being cleaned */ \
60 /* end of list */
61
62 #define M_STATUS_ENUM_NAME(name, value) _misc_##name = value,
63 enum {
64 M_STATUS_DO(M_STATUS_ENUM_NAME)
65 };
66 #undef M_STATUS_ENUM_NAME
67
68 // These flags are written during execution so require atomic stores
69 u4 _status;
70
71 public:
72
73 MethodFlags() : _status(0) {}
74
75 // Create getters and setters for the status values.
76 #define M_STATUS_GET_SET(name, ignore) \
77 bool name() const { return (_status & _misc_##name) != 0; } \
78 void set_##name(bool b) { \
79 if (b) { \
|
40 friend class VMStructs;
41 /* end of list */
42
43 #define M_STATUS_DO(status) \
44 status(has_monitor_bytecodes , 1 << 0) /* Method contains monitorenter/monitorexit bytecodes */ \
45 status(has_jsrs , 1 << 1) \
46 status(is_old , 1 << 2) /* RedefineClasses() has replaced this method */ \
47 status(is_obsolete , 1 << 3) /* RedefineClasses() has made method obsolete */ \
48 status(is_deleted , 1 << 4) /* RedefineClasses() has deleted this method */ \
49 status(is_prefixed_native , 1 << 5) /* JVMTI has prefixed this native method */ \
50 status(monitor_matching , 1 << 6) /* True if we know that monitorenter/monitorexit bytecodes match */ \
51 status(queued_for_compilation , 1 << 7) \
52 status(is_not_c2_compilable , 1 << 8) \
53 status(is_not_c1_compilable , 1 << 9) \
54 status(is_not_c2_osr_compilable , 1 << 10) \
55 status(force_inline , 1 << 11) /* Annotations but also set/reset at runtime */ \
56 status(dont_inline , 1 << 12) \
57 status(has_loops_flag , 1 << 13) /* Method has loops */ \
58 status(has_loops_flag_init , 1 << 14) /* The loop flag has been initialized */ \
59 status(on_stack_flag , 1 << 15) /* RedefineClasses support to keep Metadata from being cleaned */ \
60 status(has_scalarized_args , 1 << 16) \
61 /* end of list */
62
63 #define M_STATUS_ENUM_NAME(name, value) _misc_##name = value,
64 enum {
65 M_STATUS_DO(M_STATUS_ENUM_NAME)
66 };
67 #undef M_STATUS_ENUM_NAME
68
69 // These flags are written during execution so require atomic stores
70 u4 _status;
71
72 public:
73
74 MethodFlags() : _status(0) {}
75
76 // Create getters and setters for the status values.
77 #define M_STATUS_GET_SET(name, ignore) \
78 bool name() const { return (_status & _misc_##name) != 0; } \
79 void set_##name(bool b) { \
80 if (b) { \
|