Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 18350:23a2faa68470
converted HotSpotForeignCallLinkage to an interface
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 12 Nov 2014 14:43:58 +0100 |
parents | 56cc1a799a60 |
children | aa4f2e3629ca |
comparison
equal
deleted
inserted
replaced
18349:7aa6180a3486 | 18350:23a2faa68470 |
---|---|
856 InstanceKlass* target_klass = InstanceKlass::cast(target->klass()); | 856 InstanceKlass* target_klass = InstanceKlass::cast(target->klass()); |
857 | 857 |
858 oop hotspot_method = NULL; // JavaMethod | 858 oop hotspot_method = NULL; // JavaMethod |
859 oop foreign_call = NULL; | 859 oop foreign_call = NULL; |
860 | 860 |
861 if (target_klass->is_subclass_of(SystemDictionary::HotSpotForeignCallLinkage_klass())) { | 861 if (target_klass->is_subclass_of(SystemDictionary::HotSpotForeignCallLinkageImpl_klass())) { |
862 foreign_call = target; | 862 foreign_call = target; |
863 } else { | 863 } else { |
864 hotspot_method = target; | 864 hotspot_method = target; |
865 } | 865 } |
866 | 866 |
880 // Stubs do not record scope info, just oop maps | 880 // Stubs do not record scope info, just oop maps |
881 } | 881 } |
882 } | 882 } |
883 | 883 |
884 if (foreign_call != NULL) { | 884 if (foreign_call != NULL) { |
885 jlong foreign_call_destination = HotSpotForeignCallLinkage::address(foreign_call); | 885 jlong foreign_call_destination = HotSpotForeignCallLinkageImpl::address(foreign_call); |
886 CodeInstaller::pd_relocate_ForeignCall(inst, foreign_call_destination); | 886 CodeInstaller::pd_relocate_ForeignCall(inst, foreign_call_destination); |
887 } else { // method != NULL | 887 } else { // method != NULL |
888 assert(hotspot_method != NULL, "unexpected JavaMethod"); | 888 assert(hotspot_method != NULL, "unexpected JavaMethod"); |
889 assert(debug_info != NULL, "debug info expected"); | 889 assert(debug_info != NULL, "debug info expected"); |
890 | 890 |