comparison 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
comparison
equal deleted inserted replaced
6711:ae13cc658b80 6948:e522a00b91aa
27 #include "prims/jni.h" 27 #include "prims/jni.h"
28 28
29 extern JNINativeMethod CompilerToVM_methods[]; 29 extern JNINativeMethod CompilerToVM_methods[];
30 int CompilerToVM_methods_count(); 30 int CompilerToVM_methods_count();
31 31
32 methodOop getMethodFromHotSpotMethod(jobject hotspotMethod); 32 inline Method* asMethod(jlong metaspaceMethod) {
33 methodOop getMethodFromHotSpotMethod(oop hotspotMethod); 33 return (Method*) (address) metaspaceMethod;
34 }
35
36 inline MethodData* asMethodData(jlong metaspaceMethodData) {
37 return (MethodData*) (address) metaspaceMethodData;
38 }
39
40 inline Klass* asKlass(jlong metaspaceKlass) {
41 return (Klass*) (address) metaspaceKlass;
42 }
43
44 /**
45 * Gets the Method metaspace object from a HotSpotResolvedJavaMethod Java object.
46 */
47 Method* getMethodFromHotSpotMethod(oop hotspot_method);
34 48
35 class JavaArgumentUnboxer : public SignatureIterator { 49 class JavaArgumentUnboxer : public SignatureIterator {
36 protected: 50 protected:
37 JavaCallArguments* _jca; 51 JavaCallArguments* _jca;
38 arrayOop _args; 52 arrayOop _args;