Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciCompilerToVM.hpp @ 23743:a67f4d28935f jvmci-0.20
expose Hotspot intrinsics and HotSpotIntrinsicCandidate info to JVMCI compilers - part 2 (JDK-8164358)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 24 Aug 2016 14:35:44 +0200 |
parents | 1b939a613788 |
children | ebce30b702eb |
comparison
equal
deleted
inserted
replaced
23742:f0bfcd6688ce | 23743:a67f4d28935f |
---|---|
86 assert(_max_oop_map_stack_offset > 0, "must be initialized"); | 86 assert(_max_oop_map_stack_offset > 0, "must be initialized"); |
87 return Data::_max_oop_map_stack_offset; | 87 return Data::_max_oop_map_stack_offset; |
88 } | 88 } |
89 }; | 89 }; |
90 | 90 |
91 /** | 91 static JNINativeMethod methods[]; |
92 * Tag bits used by lookupKlassInPool to distinguish the types in Java. | |
93 */ | |
94 enum Tags { | |
95 KLASS_TAG = 0x0, | |
96 SYMBOL_TAG = 0x1 | |
97 }; | |
98 | 92 |
99 static intptr_t tag_pointer(Klass* klass) { | 93 static objArrayHandle initialize_intrinsics(TRAPS); |
100 return ((intptr_t) klass) | KLASS_TAG; | |
101 } | |
102 | 94 |
103 static intptr_t tag_pointer(Symbol* symbol) { | |
104 return ((intptr_t) symbol) | SYMBOL_TAG; | |
105 } | |
106 | |
107 static JNINativeMethod methods[]; | |
108 static int methods_count(); | 95 static int methods_count(); |
109 | 96 |
110 static inline Method* asMethod(jobject jvmci_method) { | 97 static inline Method* asMethod(jobject jvmci_method) { |
111 return (Method*) (address) HotSpotResolvedJavaMethodImpl::metaspaceMethod(jvmci_method); | 98 return (Method*) (address) HotSpotResolvedJavaMethodImpl::metaspaceMethod(jvmci_method); |
112 } | 99 } |