hotspot/src/share/vm/classfile/javaClasses.hpp
changeset 10540 92d59dba2407
parent 10514 e229a19078cf
child 10546 e79347eebbc5
equal deleted inserted replaced
10539:f87cedf7983c 10540:92d59dba2407
   769   }
   769   }
   770   static void set_referent(oop ref, oop value) {
   770   static void set_referent(oop ref, oop value) {
   771     ref->obj_field_put(referent_offset, value);
   771     ref->obj_field_put(referent_offset, value);
   772   }
   772   }
   773   static void set_referent_raw(oop ref, oop value) {
   773   static void set_referent_raw(oop ref, oop value) {
   774     ref->obj_field_raw_put(referent_offset, value);
   774     ref->obj_field_put_raw(referent_offset, value);
   775   }
   775   }
   776   static HeapWord* referent_addr(oop ref) {
   776   static HeapWord* referent_addr(oop ref) {
   777     return ref->obj_field_addr<HeapWord>(referent_offset);
   777     return ref->obj_field_addr<HeapWord>(referent_offset);
   778   }
   778   }
   779   static oop next(oop ref) {
   779   static oop next(oop ref) {
   781   }
   781   }
   782   static void set_next(oop ref, oop value) {
   782   static void set_next(oop ref, oop value) {
   783     ref->obj_field_put(next_offset, value);
   783     ref->obj_field_put(next_offset, value);
   784   }
   784   }
   785   static void set_next_raw(oop ref, oop value) {
   785   static void set_next_raw(oop ref, oop value) {
   786     ref->obj_field_raw_put(next_offset, value);
   786     ref->obj_field_put_raw(next_offset, value);
   787   }
   787   }
   788   static HeapWord* next_addr(oop ref) {
   788   static HeapWord* next_addr(oop ref) {
   789     return ref->obj_field_addr<HeapWord>(next_offset);
   789     return ref->obj_field_addr<HeapWord>(next_offset);
   790   }
   790   }
   791   static oop discovered(oop ref) {
   791   static oop discovered(oop ref) {
   793   }
   793   }
   794   static void set_discovered(oop ref, oop value) {
   794   static void set_discovered(oop ref, oop value) {
   795     ref->obj_field_put(discovered_offset, value);
   795     ref->obj_field_put(discovered_offset, value);
   796   }
   796   }
   797   static void set_discovered_raw(oop ref, oop value) {
   797   static void set_discovered_raw(oop ref, oop value) {
   798     ref->obj_field_raw_put(discovered_offset, value);
   798     ref->obj_field_put_raw(discovered_offset, value);
   799   }
   799   }
   800   static HeapWord* discovered_addr(oop ref) {
   800   static HeapWord* discovered_addr(oop ref) {
   801     return ref->obj_field_addr<HeapWord>(discovered_offset);
   801     return ref->obj_field_addr<HeapWord>(discovered_offset);
   802   }
   802   }
   803   // Accessors for statics
   803   // Accessors for statics
  1161 
  1161 
  1162   static void compute_offsets();
  1162   static void compute_offsets();
  1163 
  1163 
  1164 public:
  1164 public:
  1165   // Accessors
  1165   // Accessors
  1166   static oop            target(oop site);
  1166   static oop              target(         oop site)             { return site->obj_field(             _target_offset);         }
  1167   static void       set_target(oop site, oop target);
  1167   static void         set_target(         oop site, oop target) {        site->obj_field_put(         _target_offset, target); }
  1168 
  1168 
  1169   static oop            caller_method(oop site);
  1169   static volatile oop     target_volatile(oop site)             { return site->obj_field_volatile(    _target_offset);         }
  1170   static void       set_caller_method(oop site, oop ref);
  1170   static void         set_target_volatile(oop site, oop target) {        site->obj_field_put_volatile(_target_offset, target); }
  1171 
  1171 
  1172   static jint           caller_bci(oop site);
  1172   static oop              caller_method(oop site);
  1173   static void       set_caller_bci(oop site, jint bci);
  1173   static void         set_caller_method(oop site, oop ref);
       
  1174 
       
  1175   static jint             caller_bci(oop site);
       
  1176   static void         set_caller_bci(oop site, jint bci);
  1174 
  1177 
  1175   // Testers
  1178   // Testers
  1176   static bool is_subclass(klassOop klass) {
  1179   static bool is_subclass(klassOop klass) {
  1177     return Klass::cast(klass)->is_subclass_of(SystemDictionary::CallSite_klass());
  1180     return Klass::cast(klass)->is_subclass_of(SystemDictionary::CallSite_klass());
  1178   }
  1181   }