< prev index next >

src/hotspot/share/classfile/javaClasses.cpp

Print this page

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

3869 
3870 #define NEP_FIELDS_DO(macro) \
3871   macro(_shadow_space_offset,    k, "shadowSpace",    int_signature, false); \
3872   macro(_argMoves_offset,        k, "argMoves",       long_array_signature, false); \
3873   macro(_returnMoves_offset,     k, "returnMoves",    long_array_signature, false); \
3874   macro(_need_transition_offset, k, "needTransition", bool_signature, false); \
3875   macro(_method_type_offset,     k, "methodType",     java_lang_invoke_MethodType_signature, false); \
3876   macro(_name_offset,            k, "name",           string_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 oop java_lang_invoke_MethodHandle::type(oop mh) {
3918   return mh->obj_field(_type_offset);
3919 }
3920 
3921 void java_lang_invoke_MethodHandle::set_type(oop mh, oop mtype) {
3922   mh->obj_field_put(_type_offset, mtype);
3923 }
3924 
3925 oop java_lang_invoke_MethodHandle::form(oop mh) {
3926   assert(_form_offset != 0, "");
3927   return mh->obj_field(_form_offset);
3928 }
3929 
3930 void java_lang_invoke_MethodHandle::set_form(oop mh, oop lform) {
3931   assert(_form_offset != 0, "");
3932   mh->obj_field_put(_form_offset, lform);
3933 }
3934 
3935 /// MemberName accessors
3936 

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