Mercurial > hg > graal-compiler
diff src/share/vm/graal/graalCompilerToVM.hpp @ 6948:e522a00b91aa
Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/ after NPG - C++ build works
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 12 Nov 2012 23:14:12 +0100 |
parents | 120820e30baa |
children | 4d5872186e76 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompilerToVM.hpp Mon Nov 12 18:11:17 2012 +0100 +++ b/src/share/vm/graal/graalCompilerToVM.hpp Mon Nov 12 23:14:12 2012 +0100 @@ -29,8 +29,22 @@ extern JNINativeMethod CompilerToVM_methods[]; int CompilerToVM_methods_count(); -methodOop getMethodFromHotSpotMethod(jobject hotspotMethod); -methodOop getMethodFromHotSpotMethod(oop hotspotMethod); +inline Method* asMethod(jlong metaspaceMethod) { + return (Method*) (address) metaspaceMethod; +} + +inline MethodData* asMethodData(jlong metaspaceMethodData) { + return (MethodData*) (address) metaspaceMethodData; +} + +inline Klass* asKlass(jlong metaspaceKlass) { + return (Klass*) (address) metaspaceKlass; +} + +/** + * Gets the Method metaspace object from a HotSpotResolvedJavaMethod Java object. + */ +Method* getMethodFromHotSpotMethod(oop hotspot_method); class JavaArgumentUnboxer : public SignatureIterator { protected: