< prev index next >

src/hotspot/share/classfile/javaClasses.cpp

Print this page

3847   assert (k != NULL, "jdk mismatch");
3848   LAMBDAFORM_FIELDS_DO(FIELD_COMPUTE_OFFSET);
3849 }
3850 
3851 #if INCLUDE_CDS
3852 void java_lang_invoke_LambdaForm::serialize_offsets(SerializeClosure* f) {
3853   LAMBDAFORM_FIELDS_DO(FIELD_SERIALIZE_OFFSET);
3854 }
3855 #endif
3856 
3857 bool java_lang_invoke_LambdaForm::is_instance(oop obj) {
3858   return obj != NULL && is_subclass(obj->klass());
3859 }
3860 
3861 int jdk_internal_invoke_NativeEntryPoint::_shadow_space_offset;
3862 int jdk_internal_invoke_NativeEntryPoint::_argMoves_offset;
3863 int jdk_internal_invoke_NativeEntryPoint::_returnMoves_offset;
3864 int jdk_internal_invoke_NativeEntryPoint::_need_transition_offset;
3865 int jdk_internal_invoke_NativeEntryPoint::_method_type_offset;
3866 int jdk_internal_invoke_NativeEntryPoint::_name_offset;

3867 
3868 #define NEP_FIELDS_DO(macro) \
3869   macro(_shadow_space_offset,    k, "shadowSpace",    int_signature, false); \
3870   macro(_argMoves_offset,        k, "argMoves",       long_array_signature, false); \
3871   macro(_returnMoves_offset,     k, "returnMoves",    long_array_signature, false); \
3872   macro(_need_transition_offset, k, "needTransition", bool_signature, false); \
3873   macro(_method_type_offset,     k, "methodType",     java_lang_invoke_MethodType_signature, false); \
3874   macro(_name_offset,            k, "name",           string_signature, false);

3875 
3876 bool jdk_internal_invoke_NativeEntryPoint::is_instance(oop obj) {
3877   return obj != NULL && is_subclass(obj->klass());
3878 }
3879 
3880 void jdk_internal_invoke_NativeEntryPoint::compute_offsets() {
3881   InstanceKlass* k = vmClasses::NativeEntryPoint_klass();
3882   NEP_FIELDS_DO(FIELD_COMPUTE_OFFSET);
3883 }
3884 
3885 #if INCLUDE_CDS
3886 void jdk_internal_invoke_NativeEntryPoint::serialize_offsets(SerializeClosure* f) {
3887   NEP_FIELDS_DO(FIELD_SERIALIZE_OFFSET);
3888 }
3889 #endif
3890 
3891 jint jdk_internal_invoke_NativeEntryPoint::shadow_space(oop entry) {
3892   return entry->int_field(_shadow_space_offset);
3893 }
3894 
3895 oop jdk_internal_invoke_NativeEntryPoint::argMoves(oop entry) {
3896   return entry->obj_field(_argMoves_offset);
3897 }
3898 
3899 oop jdk_internal_invoke_NativeEntryPoint::returnMoves(oop entry) {
3900   return entry->obj_field(_returnMoves_offset);
3901 }
3902 
3903 jboolean jdk_internal_invoke_NativeEntryPoint::need_transition(oop entry) {
3904   return entry->bool_field(_need_transition_offset);
3905 }
3906 
3907 oop jdk_internal_invoke_NativeEntryPoint::method_type(oop entry) {
3908   return entry->obj_field(_method_type_offset);
3909 }
3910 
3911 oop jdk_internal_invoke_NativeEntryPoint::name(oop entry) {
3912   return entry->obj_field(_name_offset);
3913 }
3914 




3915 oop java_lang_invoke_MethodHandle::type(oop mh) {
3916   return mh->obj_field(_type_offset);
3917 }
3918 
3919 void java_lang_invoke_MethodHandle::set_type(oop mh, oop mtype) {
3920   mh->obj_field_put(_type_offset, mtype);
3921 }
3922 
3923 oop java_lang_invoke_MethodHandle::form(oop mh) {
3924   assert(_form_offset != 0, "");
3925   return mh->obj_field(_form_offset);
3926 }
3927 
3928 void java_lang_invoke_MethodHandle::set_form(oop mh, oop lform) {
3929   assert(_form_offset != 0, "");
3930   mh->obj_field_put(_form_offset, lform);
3931 }
3932 
3933 /// MemberName accessors
3934 

3847   assert (k != NULL, "jdk mismatch");
3848   LAMBDAFORM_FIELDS_DO(FIELD_COMPUTE_OFFSET);
3849 }
3850 
3851 #if INCLUDE_CDS
3852 void java_lang_invoke_LambdaForm::serialize_offsets(SerializeClosure* f) {
3853   LAMBDAFORM_FIELDS_DO(FIELD_SERIALIZE_OFFSET);
3854 }
3855 #endif
3856 
3857 bool java_lang_invoke_LambdaForm::is_instance(oop obj) {
3858   return obj != NULL && is_subclass(obj->klass());
3859 }
3860 
3861 int jdk_internal_invoke_NativeEntryPoint::_shadow_space_offset;
3862 int jdk_internal_invoke_NativeEntryPoint::_argMoves_offset;
3863 int jdk_internal_invoke_NativeEntryPoint::_returnMoves_offset;
3864 int jdk_internal_invoke_NativeEntryPoint::_need_transition_offset;
3865 int jdk_internal_invoke_NativeEntryPoint::_method_type_offset;
3866 int jdk_internal_invoke_NativeEntryPoint::_name_offset;
3867 int jdk_internal_invoke_NativeEntryPoint::_invoker_offset;
3868 
3869 #define NEP_FIELDS_DO(macro) \
3870   macro(_shadow_space_offset,    k, "shadowSpace",    int_signature, false); \
3871   macro(_argMoves_offset,        k, "argMoves",       long_array_signature, false); \
3872   macro(_returnMoves_offset,     k, "returnMoves",    long_array_signature, false); \
3873   macro(_need_transition_offset, k, "needTransition", bool_signature, false); \
3874   macro(_method_type_offset,     k, "methodType",     java_lang_invoke_MethodType_signature, false); \
3875   macro(_name_offset,            k, "name",           string_signature, false); \
3876   macro(_invoker_offset,         k, "invoker",        long_signature, false);
3877 
3878 bool jdk_internal_invoke_NativeEntryPoint::is_instance(oop obj) {
3879   return obj != NULL && is_subclass(obj->klass());
3880 }
3881 
3882 void jdk_internal_invoke_NativeEntryPoint::compute_offsets() {
3883   InstanceKlass* k = vmClasses::NativeEntryPoint_klass();
3884   NEP_FIELDS_DO(FIELD_COMPUTE_OFFSET);
3885 }
3886 
3887 #if INCLUDE_CDS
3888 void jdk_internal_invoke_NativeEntryPoint::serialize_offsets(SerializeClosure* f) {
3889   NEP_FIELDS_DO(FIELD_SERIALIZE_OFFSET);
3890 }
3891 #endif
3892 
3893 jint jdk_internal_invoke_NativeEntryPoint::shadow_space(oop entry) {
3894   return entry->int_field(_shadow_space_offset);
3895 }
3896 
3897 oop jdk_internal_invoke_NativeEntryPoint::argMoves(oop entry) {
3898   return entry->obj_field(_argMoves_offset);
3899 }
3900 
3901 oop jdk_internal_invoke_NativeEntryPoint::returnMoves(oop entry) {
3902   return entry->obj_field(_returnMoves_offset);
3903 }
3904 
3905 jboolean jdk_internal_invoke_NativeEntryPoint::need_transition(oop entry) {
3906   return entry->bool_field(_need_transition_offset);
3907 }
3908 
3909 oop jdk_internal_invoke_NativeEntryPoint::method_type(oop entry) {
3910   return entry->obj_field(_method_type_offset);
3911 }
3912 
3913 oop jdk_internal_invoke_NativeEntryPoint::name(oop entry) {
3914   return entry->obj_field(_name_offset);
3915 }
3916 
3917 jlong jdk_internal_invoke_NativeEntryPoint::invoker(oop entry) {
3918   return entry->long_field(_invoker_offset);
3919 }
3920 
3921 oop java_lang_invoke_MethodHandle::type(oop mh) {
3922   return mh->obj_field(_type_offset);
3923 }
3924 
3925 void java_lang_invoke_MethodHandle::set_type(oop mh, oop mtype) {
3926   mh->obj_field_put(_type_offset, mtype);
3927 }
3928 
3929 oop java_lang_invoke_MethodHandle::form(oop mh) {
3930   assert(_form_offset != 0, "");
3931   return mh->obj_field(_form_offset);
3932 }
3933 
3934 void java_lang_invoke_MethodHandle::set_form(oop mh, oop lform) {
3935   assert(_form_offset != 0, "");
3936   mh->obj_field_put(_form_offset, lform);
3937 }
3938 
3939 /// MemberName accessors
3940 
< prev index next >