< prev index next >

src/hotspot/share/classfile/javaClasses.inline.hpp

Print this page




 105 }
 106 void java_lang_ref_Reference::set_next_raw(oop ref, oop value) {
 107   ref->obj_field_put_raw(next_offset, value);
 108 }
 109 HeapWord* java_lang_ref_Reference::next_addr(oop ref) {
 110   return ref->obj_field_addr<HeapWord>(next_offset);
 111 }
 112 oop java_lang_ref_Reference::discovered(oop ref) {
 113   return ref->obj_field(discovered_offset);
 114 }
 115 void java_lang_ref_Reference::set_discovered(oop ref, oop value) {
 116   ref->obj_field_put(discovered_offset, value);
 117 }
 118 void java_lang_ref_Reference::set_discovered_raw(oop ref, oop value) {
 119   ref->obj_field_put_raw(discovered_offset, value);
 120 }
 121 HeapWord* java_lang_ref_Reference::discovered_addr(oop ref) {
 122   return ref->obj_field_addr<HeapWord>(discovered_offset);
 123 }
 124 






































 125 inline void java_lang_invoke_CallSite::set_target_volatile(oop site, oop target) {
 126   site->obj_field_put_volatile(_target_offset, target);
 127 }
 128 
 129 inline oop  java_lang_invoke_CallSite::target(oop site) {
 130   return site->obj_field(_target_offset);
 131 }
 132 
 133 inline void java_lang_invoke_CallSite::set_target(oop site, oop target) {
 134   site->obj_field_put(_target_offset, target);
 135 }
 136 
 137 inline bool java_lang_invoke_CallSite::is_instance(oop obj) {
 138   return obj != NULL && is_subclass(obj->klass());
 139 }
 140 
 141 inline bool java_lang_invoke_MethodHandleNatives_CallSiteContext::is_instance(oop obj) {
 142   return obj != NULL && is_subclass(obj->klass());
 143 }
 144 




 105 }
 106 void java_lang_ref_Reference::set_next_raw(oop ref, oop value) {
 107   ref->obj_field_put_raw(next_offset, value);
 108 }
 109 HeapWord* java_lang_ref_Reference::next_addr(oop ref) {
 110   return ref->obj_field_addr<HeapWord>(next_offset);
 111 }
 112 oop java_lang_ref_Reference::discovered(oop ref) {
 113   return ref->obj_field(discovered_offset);
 114 }
 115 void java_lang_ref_Reference::set_discovered(oop ref, oop value) {
 116   ref->obj_field_put(discovered_offset, value);
 117 }
 118 void java_lang_ref_Reference::set_discovered_raw(oop ref, oop value) {
 119   ref->obj_field_put_raw(discovered_offset, value);
 120 }
 121 HeapWord* java_lang_ref_Reference::discovered_addr(oop ref) {
 122   return ref->obj_field_addr<HeapWord>(discovered_offset);
 123 }
 124 
 125 inline oop java_lang_Continuation::target(oop ref) {
 126   return ref->obj_field(target_offset);
 127 }
 128 
 129 inline oop java_lang_Continuation::parent(oop ref) {
 130   return ref->obj_field(parent_offset);
 131 }
 132 
 133 inline arrayOop java_lang_Continuation::stack(oop ref) {
 134   oop a = ref->obj_field(stack_offset);
 135   assert(a->is_array(), "Continuation stack not an array");
 136   return (arrayOop)a;
 137 }
 138 
 139 inline jint java_lang_Continuation::lastFP(oop ref) {
 140   return ref->int_field(lastFP_offset);
 141 }
 142 
 143 inline jint java_lang_Continuation::lastSP(oop ref) {
 144   return ref->int_field(lastSP_offset);
 145 }
 146 
 147 inline jlong java_lang_Continuation::parentFP(oop ref) {
 148   return ref->long_field(parentFP_offset);
 149 }
 150 
 151 inline jlong java_lang_Continuation::parentSP(oop ref) {
 152   return ref->long_field(parentSP_offset);
 153 }
 154 
 155 inline int java_lang_Continuation::stack_size(oop ref) {
 156   return stack(ref)->length() * 4;
 157 }
 158 
 159 inline void* java_lang_Continuation::stack_base(oop ref) {
 160   return stack(ref)->base(T_INT);
 161 }
 162 
 163 inline void java_lang_invoke_CallSite::set_target_volatile(oop site, oop target) {
 164   site->obj_field_put_volatile(_target_offset, target);
 165 }
 166 
 167 inline oop  java_lang_invoke_CallSite::target(oop site) {
 168   return site->obj_field(_target_offset);
 169 }
 170 
 171 inline void java_lang_invoke_CallSite::set_target(oop site, oop target) {
 172   site->obj_field_put(_target_offset, target);
 173 }
 174 
 175 inline bool java_lang_invoke_CallSite::is_instance(oop obj) {
 176   return obj != NULL && is_subclass(obj->klass());
 177 }
 178 
 179 inline bool java_lang_invoke_MethodHandleNatives_CallSiteContext::is_instance(oop obj) {
 180   return obj != NULL && is_subclass(obj->klass());
 181 }
 182 


< prev index next >