< prev index next >

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

Print this page
rev 50307 : [mq]: cont

@@ -27,10 +27,11 @@
 
 #include "classfile/javaClasses.hpp"
 #include "oops/access.inline.hpp"
 #include "oops/oop.inline.hpp"
 #include "oops/oopsHierarchy.hpp"
+#include "oops/typeArrayOop.inline.hpp"
 
 void java_lang_String::set_coder(oop string, jbyte coder) {
   assert(initialized && (coder_offset > 0), "Must be initialized");
   string->byte_field_put(coder_offset, coder);
 }

@@ -129,10 +130,103 @@
 }
 bool java_lang_ref_Reference::is_phantom(oop ref) {
   return InstanceKlass::cast(ref->klass())->reference_type() == REF_PHANTOM;
 }
 
+inline oop java_lang_Continuation::scope(oop ref) {
+  return ref->obj_field(scope_offset);
+}
+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 typeArrayOop java_lang_Continuation::stack(oop ref) {
+  oop a = ref->obj_field(stack_offset);
+  return (typeArrayOop)a;
+}
+inline objArrayOop java_lang_Continuation::refStack(oop ref) {
+  oop a = ref->obj_field(refStack_offset);
+  return (objArrayOop)a;
+}
+inline jlong java_lang_Continuation::fp(oop ref) {
+  return ref->long_field(fp_offset);
+}
+inline void java_lang_Continuation::set_fp(oop ref, const jlong i) {
+  ref->long_field_put(fp_offset, i);
+}
+inline jint java_lang_Continuation::sp(oop ref) {
+  return ref->int_field(sp_offset);
+}
+inline void java_lang_Continuation::set_sp(oop ref, const jint i) {
+  ref->int_field_put(sp_offset, i);
+}
+inline void* java_lang_Continuation::pc(oop ref) {
+  return (void*)ref->long_field(pc_offset);
+}
+inline void java_lang_Continuation::set_pc(oop ref, const void* pc) {
+  ref->long_field_put(pc_offset, (long)pc);
+}
+inline jint java_lang_Continuation::refSP(oop ref) {
+  return ref->int_field(refSP_offset);
+}
+inline void java_lang_Continuation::set_refSP(oop ref, jint i) {
+  ref->int_field_put(refSP_offset, i);
+}
+inline intptr_t* java_lang_Continuation::entrySP(oop ref) {
+  return (intptr_t*)ref->long_field(entrySP_offset);
+}
+inline void java_lang_Continuation::set_entrySP(oop ref, intptr_t* sp) {
+  ref->long_field_put(entrySP_offset, (long)sp);
+}
+inline intptr_t* java_lang_Continuation::entryFP(oop ref) {
+  return (intptr_t*)ref->long_field(entryFP_offset);
+}
+inline void java_lang_Continuation::set_entryFP(oop ref, intptr_t* fp) {
+  ref->long_field_put(entryFP_offset, (long)fp);
+}
+inline address java_lang_Continuation::entryPC(oop ref) {
+  return (address)ref->long_field(entryPC_offset);
+}
+inline void java_lang_Continuation::set_entryPC(oop ref, address pc) {
+  ref->long_field_put(entryPC_offset, (long)pc);
+}
+inline jint java_lang_Continuation::maxSize(oop ref) {
+  return ref->int_field(maxSize_offset);
+}
+inline void java_lang_Continuation::set_maxSize(oop ref, jint i) {
+  ref->int_field_put(maxSize_offset, i);
+}
+inline unsigned char java_lang_Continuation::flags(oop ref) {
+  return (unsigned char)ref->byte_field(flags_offset);
+}
+inline void java_lang_Continuation::set_flags(oop ref, unsigned char flags) {
+  ref->byte_field_put(flags_offset, (jbyte)flags);
+}
+inline jshort java_lang_Continuation::numFrames(oop ref) {
+  return ref->short_field(numFrames_offset);
+}
+inline void java_lang_Continuation::set_numFrames(oop ref, jshort i) {
+  ref->short_field_put(numFrames_offset, i);
+}
+inline jshort java_lang_Continuation::numInterpretedFrames(oop ref) {
+  return ref->short_field(numInterpretedFrames_offset);
+}
+inline void java_lang_Continuation::set_numInterpretedFrames(oop ref, jshort i) {
+  ref->short_field_put(numInterpretedFrames_offset, i);
+}
+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 HeapWord* java_lang_Continuation::refStack_base(oop ref) {
+  return refStack(ref)->base();
+}
+
 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 >