Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCompilerToVM.cpp @ 6381:c61ce6bac1df
Merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 13 Sep 2012 12:59:27 +0200 |
parents | e957c9ff0bda a718f153b9f2 |
children | d44835610b52 |
comparison
equal
deleted
inserted
replaced
6378:4df5ec0f8082 | 6381:c61ce6bac1df |
---|---|
855 | 855 |
856 C2V_VMENTRY(jint, JavaMethod_vtableEntryOffset, (JNIEnv *, jobject, jobject hotspot_method)) | 856 C2V_VMENTRY(jint, JavaMethod_vtableEntryOffset, (JNIEnv *, jobject, jobject hotspot_method)) |
857 | 857 |
858 methodOop method = getMethodFromHotSpotMethod(hotspot_method); | 858 methodOop method = getMethodFromHotSpotMethod(hotspot_method); |
859 assert(!instanceKlass::cast(method->method_holder())->is_interface(), "vtableEntryOffset cannot be called for interface methods"); | 859 assert(!instanceKlass::cast(method->method_holder())->is_interface(), "vtableEntryOffset cannot be called for interface methods"); |
860 assert(instanceKlass::cast(method->method_holder())->is_linked(), "vtableEntryOffset cannot be called is holder is not linked"); | |
860 | 861 |
861 // get entry offset in words | 862 // get entry offset in words |
862 int vtable_entry_offset = instanceKlass::vtable_start_offset() + method->vtable_index() * vtableEntry::size(); | 863 int vtable_entry_offset = instanceKlass::vtable_start_offset() + method->vtable_index() * vtableEntry::size(); |
863 // convert to bytes | 864 // convert to bytes |
864 vtable_entry_offset = vtable_entry_offset * wordSize + vtableEntry::method_offset_in_bytes(); | 865 vtable_entry_offset = vtable_entry_offset * wordSize + vtableEntry::method_offset_in_bytes(); |