comparison src/share/vm/jvmci/jvmciCompilerToVM.hpp @ 23408:f84a5ac3be22

make JVMCI JDK immutable and sharable among different JVMCI clients minimize diff to jvmci-9, including adding support for EnableJVMCI (default is true in jvmci-8)
author Doug Simon <doug.simon@oracle.com>
date Mon, 30 May 2016 22:56:59 +0200
parents 2dea101cdfe9
children b5557b757040
comparison
equal deleted inserted replaced
23407:a1d1f1e4817f 23408:f84a5ac3be22
46 return ((intptr_t) symbol) | SYMBOL_TAG; 46 return ((intptr_t) symbol) | SYMBOL_TAG;
47 } 47 }
48 48
49 static JNINativeMethod methods[]; 49 static JNINativeMethod methods[];
50 static int methods_count(); 50 static int methods_count();
51 51
52 static inline Method* asMethod(jobject jvmci_method) { 52 static inline Method* asMethod(jobject jvmci_method) {
53 return (Method*) (address) HotSpotResolvedJavaMethodImpl::metaspaceMethod(jvmci_method); 53 return (Method*) (address) HotSpotResolvedJavaMethodImpl::metaspaceMethod(jvmci_method);
54 } 54 }
55 55
56 static inline Method* asMethod(Handle jvmci_method) { 56 static inline Method* asMethod(Handle jvmci_method) {
57 return (Method*) (address) HotSpotResolvedJavaMethodImpl::metaspaceMethod(jvmci_method); 57 return (Method*) (address) HotSpotResolvedJavaMethodImpl::metaspaceMethod(jvmci_method);
58 } 58 }
59 59
60 static inline Method* asMethod(oop jvmci_method) { 60 static inline Method* asMethod(oop jvmci_method) {
61 return (Method*) (address) HotSpotResolvedJavaMethodImpl::metaspaceMethod(jvmci_method); 61 return (Method*) (address) HotSpotResolvedJavaMethodImpl::metaspaceMethod(jvmci_method);
62 } 62 }
63 63
64 static inline ConstantPool* asConstantPool(jobject jvmci_constant_pool) { 64 static inline ConstantPool* asConstantPool(jobject jvmci_constant_pool) {
65 return (ConstantPool*) (address) HotSpotConstantPool::metaspaceConstantPool(jvmci_constant_pool); 65 return (ConstantPool*) (address) HotSpotConstantPool::metaspaceConstantPool(jvmci_constant_pool);
66 } 66 }
67 67
68 static inline ConstantPool* asConstantPool(Handle jvmci_constant_pool) { 68 static inline ConstantPool* asConstantPool(Handle jvmci_constant_pool) {
69 return (ConstantPool*) (address) HotSpotConstantPool::metaspaceConstantPool(jvmci_constant_pool); 69 return (ConstantPool*) (address) HotSpotConstantPool::metaspaceConstantPool(jvmci_constant_pool);
70 } 70 }
71 71
72 static inline ConstantPool* asConstantPool(oop jvmci_constant_pool) { 72 static inline ConstantPool* asConstantPool(oop jvmci_constant_pool) {
73 return (ConstantPool*) (address) HotSpotConstantPool::metaspaceConstantPool(jvmci_constant_pool); 73 return (ConstantPool*) (address) HotSpotConstantPool::metaspaceConstantPool(jvmci_constant_pool);
74 } 74 }
75 75
76 static inline Klass* asKlass(jobject jvmci_type) { 76 static inline Klass* asKlass(jobject jvmci_type) {
77 return java_lang_Class::as_Klass(HotSpotResolvedObjectTypeImpl::javaClass(jvmci_type)); 77 return java_lang_Class::as_Klass(HotSpotResolvedObjectTypeImpl::javaClass(jvmci_type));
78 } 78 }
79 79
80 static inline Klass* asKlass(Handle jvmci_type) { 80 static inline Klass* asKlass(Handle jvmci_type) {
81 return java_lang_Class::as_Klass(HotSpotResolvedObjectTypeImpl::javaClass(jvmci_type)); 81 return java_lang_Class::as_Klass(HotSpotResolvedObjectTypeImpl::javaClass(jvmci_type));
82 } 82 }
83 83
84 static inline Klass* asKlass(oop jvmci_type) { 84 static inline Klass* asKlass(oop jvmci_type) {
85 return java_lang_Class::as_Klass(HotSpotResolvedObjectTypeImpl::javaClass(jvmci_type)); 85 return java_lang_Class::as_Klass(HotSpotResolvedObjectTypeImpl::javaClass(jvmci_type));
86 } 86 }
87 87
88 static inline MethodData* asMethodData(jlong metaspaceMethodData) { 88 static inline MethodData* asMethodData(jlong metaspaceMethodData) {
89 return (MethodData*) (address) metaspaceMethodData; 89 return (MethodData*) (address) metaspaceMethodData;
90 } 90 }
91 91
92 static oop get_jvmci_method(const methodHandle& method, TRAPS); 92 static oop get_jvmci_method(const methodHandle& method, TRAPS);
93 93
94 static oop get_jvmci_type(KlassHandle klass, TRAPS); 94 static oop get_jvmci_type(KlassHandle klass, TRAPS);
95 }; 95 };
96 96