< prev index next >

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

Print this page

        

@@ -129,10 +129,40 @@
 }
 bool java_lang_ref_Reference::is_phantom(oop ref) {
   return InstanceKlass::cast(ref->klass())->reference_type() == REF_PHANTOM;
 }
 
+inline oop java_lang_Continuation::target(oop ref) {
+  return ref->obj_field(target_offset);
+}
+inline oop java_lang_Continuation::parent(oop ref) {
+  return ref->obj_field(parent_offset);
+}
+inline arrayOop java_lang_Continuation::stack(oop ref) {
+  oop a = ref->obj_field(stack_offset);
+  assert(a->is_array(), "Continuation stack not an array");
+  return (arrayOop)a;
+}
+inline jint java_lang_Continuation::lastFP(oop ref) {
+  return ref->int_field(lastFP_offset);
+}
+inline jint java_lang_Continuation::lastSP(oop ref) {
+  return ref->int_field(lastSP_offset);
+}
+inline jlong java_lang_Continuation::parentFP(oop ref) {
+  return ref->long_field(parentFP_offset);
+}
+inline jlong java_lang_Continuation::parentSP(oop ref) {
+  return ref->long_field(parentSP_offset);
+}
+inline int java_lang_Continuation::stack_size(oop ref) {
+  return stack(ref)->length() * 4;
+}
+inline void* java_lang_Continuation::stack_base(oop ref) {
+  return stack(ref)->base(T_INT);
+}
+
 inline void java_lang_invoke_CallSite::set_target_volatile(oop site, oop target) {
   site->obj_field_put_volatile(_target_offset, target);
 }
 
 inline oop  java_lang_invoke_CallSite::target(oop site) {
< prev index next >