Lines Matching refs:ref_kind
153 static bool ref_kind_is_valid(int ref_kind) {
154 return (ref_kind >= JVM_REF_MIN && ref_kind <= JVM_REF_MAX);
156 static bool ref_kind_is_field(int ref_kind) {
157 assert(ref_kind_is_valid(ref_kind), "");
158 return (ref_kind <= JVM_REF_putStatic);
160 static bool ref_kind_is_getter(int ref_kind) {
161 assert(ref_kind_is_valid(ref_kind), "");
162 return (ref_kind <= JVM_REF_getStatic);
164 static bool ref_kind_is_setter(int ref_kind) {
165 return ref_kind_is_field(ref_kind) && !ref_kind_is_getter(ref_kind);
167 static bool ref_kind_is_method(int ref_kind) {
168 return !ref_kind_is_field(ref_kind) && (ref_kind != JVM_REF_newInvokeSpecial);
170 static bool ref_kind_has_receiver(int ref_kind) {
171 assert(ref_kind_is_valid(ref_kind), "");
172 return (ref_kind & 1) != 0;
174 static bool ref_kind_is_static(int ref_kind) {
175 return !ref_kind_has_receiver(ref_kind) && (ref_kind != JVM_REF_newInvokeSpecial);
177 static bool ref_kind_does_dispatch(int ref_kind) {
178 return (ref_kind == JVM_REF_invokeVirtual ||
179 ref_kind == JVM_REF_invokeInterface);