< prev index next >

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

Print this page

        

*** 27,36 **** --- 27,37 ---- #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); }
*** 161,170 **** --- 162,289 ---- bool java_lang_ref_Reference::is_phantom(oop ref) { return InstanceKlass::cast(ref->klass())->reference_type() == REF_PHANTOM; } + inline oop java_lang_ContinuationScope::name(oop ref) { + return ref->obj_field(_name_offset); + } + + 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 oop java_lang_Continuation::yieldInfo(oop ref) { + return ref->obj_field(_yieldInfo_offset); + } + inline void java_lang_Continuation::set_yieldInfo(oop ref, oop value) { + ref->obj_field_put(_yieldInfo_offset, value); + } + 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 void java_lang_Continuation::set_stack(oop ref, oop value) { + ref->obj_field_put(_stack_offset, value); + } + inline void java_lang_Continuation::set_refStack(oop ref, oop value) { + ref->obj_field_put(_refStack_offset, value); + } + 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, (jlong)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, (jlong)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, (jlong)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, (jlong)pc); + } + inline address* java_lang_Continuation::entryPC_addr(oop ref) { + return (address*)ref->field_addr(_entryPC_offset); + } + 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::critical_section(oop ref) { + return ref->short_field(_cs_offset); + } + inline bool java_lang_Continuation::is_reset(oop ref) { + return ref->bool_field(_reset_offset); + } + 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 >