Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciJavaAccess.hpp @ 21559:be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 28 May 2015 15:36:48 +0200 |
parents | src/share/vm/graal/graalJavaAccess.hpp@48c1ebd24120 |
children | ce2113326bc8 |
comparison
equal
deleted
inserted
replaced
21558:d563baeca9df | 21559:be896a1983c0 |
---|---|
1 /* | |
2 * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
20 * or visit www.oracle.com if you need additional information or have any | |
21 * questions. | |
22 */ | |
23 | |
24 #ifndef SHARE_VM_JVMCI_JVMCI_JAVA_ACCESS_HPP | |
25 #define SHARE_VM_JVMCI_JVMCI_JAVA_ACCESS_HPP | |
26 | |
27 void jvmci_compute_offsets(); | |
28 | |
29 #include "classfile/systemDictionary.hpp" | |
30 #include "oops/instanceMirrorKlass.hpp" | |
31 | |
32 /* This macro defines the structure of the CompilationResult - classes. | |
33 * It will generate classes with accessors similar to javaClasses.hpp, but with specializations for oops, Handles and jni handles. | |
34 * | |
35 * The public interface of these classes will look like this: | |
36 | |
37 * class StackSlot : AllStatic { | |
38 * public: | |
39 * static Klass* klass(); | |
40 * static jint index(oop obj); | |
41 * static jint index(Handle obj); | |
42 * static jint index(jobject obj); | |
43 * static void set_index(oop obj, jint x); | |
44 * static void set_index(Handle obj, jint x); | |
45 * static void set_index(jobject obj, jint x); | |
46 * }; | |
47 * | |
48 */ | |
49 | |
50 #define COMPILER_CLASSES_DO(start_class, end_class, char_field, int_field, boolean_field, long_field, float_field, oop_field, typeArrayOop_field, objArrayOop_field, static_oop_field, static_int_field, static_boolean_field) \ | |
51 start_class(HotSpotResolvedObjectTypeImpl) \ | |
52 oop_field(HotSpotResolvedObjectTypeImpl, javaClass, "Ljava/lang/Class;") \ | |
53 end_class \ | |
54 start_class(HotSpotResolvedJavaMethodImpl) \ | |
55 long_field(HotSpotResolvedJavaMethodImpl, metaspaceMethod) \ | |
56 end_class \ | |
57 start_class(InstalledCode) \ | |
58 long_field(InstalledCode, address) \ | |
59 long_field(InstalledCode, version) \ | |
60 oop_field(InstalledCode, name, "Ljava/lang/String;") \ | |
61 end_class \ | |
62 start_class(HotSpotInstalledCode) \ | |
63 int_field(HotSpotInstalledCode, size) \ | |
64 long_field(HotSpotInstalledCode, codeStart) \ | |
65 int_field(HotSpotInstalledCode, codeSize) \ | |
66 end_class \ | |
67 start_class(HotSpotNmethod) \ | |
68 boolean_field(HotSpotNmethod, isDefault) \ | |
69 end_class \ | |
70 start_class(HotSpotCompiledCode) \ | |
71 oop_field(HotSpotCompiledCode, comp, "Lcom/oracle/jvmci/code/CompilationResult;") \ | |
72 objArrayOop_field(HotSpotCompiledCode, sites, "[Lcom/oracle/jvmci/code/CompilationResult$Site;") \ | |
73 objArrayOop_field(HotSpotCompiledCode, exceptionHandlers, "[Lcom/oracle/jvmci/code/CompilationResult$ExceptionHandler;") \ | |
74 objArrayOop_field(HotSpotCompiledCode, comments, "[Lcom/oracle/jvmci/hotspot/HotSpotCompiledCode$Comment;") \ | |
75 typeArrayOop_field(HotSpotCompiledCode, dataSection, "[B") \ | |
76 int_field(HotSpotCompiledCode, dataSectionAlignment) \ | |
77 objArrayOop_field(HotSpotCompiledCode, dataSectionPatches, "[Lcom/oracle/jvmci/code/CompilationResult$DataPatch;") \ | |
78 end_class \ | |
79 start_class(HotSpotCompiledCode_Comment) \ | |
80 oop_field(HotSpotCompiledCode_Comment, text, "Ljava/lang/String;") \ | |
81 int_field(HotSpotCompiledCode_Comment, pcOffset) \ | |
82 end_class \ | |
83 start_class(HotSpotCompiledNmethod) \ | |
84 oop_field(HotSpotCompiledNmethod, method, "Lcom/oracle/jvmci/hotspot/HotSpotResolvedJavaMethod;") \ | |
85 oop_field(HotSpotCompiledNmethod, installationFailureMessage, "Ljava/lang/String;") \ | |
86 int_field(HotSpotCompiledNmethod, entryBCI) \ | |
87 int_field(HotSpotCompiledNmethod, id) \ | |
88 long_field(HotSpotCompiledNmethod, jvmciEnv) \ | |
89 end_class \ | |
90 start_class(HotSpotForeignCallTarget) \ | |
91 long_field(HotSpotForeignCallTarget, address) \ | |
92 end_class \ | |
93 start_class(CompilationResult) \ | |
94 int_field(CompilationResult, totalFrameSize) \ | |
95 int_field(CompilationResult, customStackAreaOffset) \ | |
96 oop_field(CompilationResult, name, "Ljava/lang/String;") \ | |
97 typeArrayOop_field(CompilationResult, targetCode, "[B") \ | |
98 objArrayOop_field(CompilationResult, assumptions, "[Lcom/oracle/jvmci/meta/Assumptions$Assumption;") \ | |
99 objArrayOop_field(CompilationResult, methods, "[Lcom/oracle/jvmci/meta/ResolvedJavaMethod;") \ | |
100 int_field(CompilationResult, targetCodeSize) \ | |
101 end_class \ | |
102 start_class(Assumptions_NoFinalizableSubclass) \ | |
103 oop_field(Assumptions_NoFinalizableSubclass, receiverType, "Lcom/oracle/jvmci/meta/ResolvedJavaType;") \ | |
104 end_class \ | |
105 start_class(Assumptions_ConcreteSubtype) \ | |
106 oop_field(Assumptions_ConcreteSubtype, context, "Lcom/oracle/jvmci/meta/ResolvedJavaType;") \ | |
107 oop_field(Assumptions_ConcreteSubtype, subtype, "Lcom/oracle/jvmci/meta/ResolvedJavaType;") \ | |
108 end_class \ | |
109 start_class(Assumptions_LeafType) \ | |
110 oop_field(Assumptions_LeafType, context, "Lcom/oracle/jvmci/meta/ResolvedJavaType;") \ | |
111 end_class \ | |
112 start_class(Assumptions_ConcreteMethod) \ | |
113 oop_field(Assumptions_ConcreteMethod, method, "Lcom/oracle/jvmci/meta/ResolvedJavaMethod;") \ | |
114 oop_field(Assumptions_ConcreteMethod, context, "Lcom/oracle/jvmci/meta/ResolvedJavaType;") \ | |
115 oop_field(Assumptions_ConcreteMethod, impl, "Lcom/oracle/jvmci/meta/ResolvedJavaMethod;") \ | |
116 end_class \ | |
117 start_class(Assumptions_CallSiteTargetValue) \ | |
118 oop_field(Assumptions_CallSiteTargetValue, callSite, "Ljava/lang/invoke/CallSite;") \ | |
119 oop_field(Assumptions_CallSiteTargetValue, methodHandle, "Ljava/lang/invoke/MethodHandle;") \ | |
120 end_class \ | |
121 start_class(CompilationResult_Site) \ | |
122 int_field(CompilationResult_Site, pcOffset) \ | |
123 end_class \ | |
124 start_class(CompilationResult_Call) \ | |
125 oop_field(CompilationResult_Call, target, "Lcom/oracle/jvmci/meta/InvokeTarget;") \ | |
126 oop_field(CompilationResult_Call, debugInfo, "Lcom/oracle/jvmci/code/DebugInfo;") \ | |
127 end_class \ | |
128 start_class(CompilationResult_DataPatch) \ | |
129 oop_field(CompilationResult_DataPatch, reference, "Lcom/oracle/jvmci/code/CompilationResult$Reference;") \ | |
130 end_class \ | |
131 start_class(CompilationResult_ConstantReference) \ | |
132 oop_field(CompilationResult_ConstantReference, constant, "Lcom/oracle/jvmci/meta/VMConstant;") \ | |
133 end_class \ | |
134 start_class(CompilationResult_DataSectionReference) \ | |
135 int_field(CompilationResult_DataSectionReference, offset) \ | |
136 end_class \ | |
137 start_class(InfopointReason) \ | |
138 static_oop_field(InfopointReason, UNKNOWN, "Lcom/oracle/jvmci/code/InfopointReason;") \ | |
139 static_oop_field(InfopointReason, SAFEPOINT, "Lcom/oracle/jvmci/code/InfopointReason;") \ | |
140 static_oop_field(InfopointReason, CALL, "Lcom/oracle/jvmci/code/InfopointReason;") \ | |
141 static_oop_field(InfopointReason, IMPLICIT_EXCEPTION, "Lcom/oracle/jvmci/code/InfopointReason;") \ | |
142 static_oop_field(InfopointReason, METHOD_START, "Lcom/oracle/jvmci/code/InfopointReason;") \ | |
143 static_oop_field(InfopointReason, METHOD_END, "Lcom/oracle/jvmci/code/InfopointReason;") \ | |
144 static_oop_field(InfopointReason, LINE_NUMBER, "Lcom/oracle/jvmci/code/InfopointReason;") \ | |
145 end_class \ | |
146 start_class(CompilationResult_Infopoint) \ | |
147 oop_field(CompilationResult_Infopoint, debugInfo, "Lcom/oracle/jvmci/code/DebugInfo;") \ | |
148 oop_field(CompilationResult_Infopoint, reason, "Lcom/oracle/jvmci/code/InfopointReason;") \ | |
149 end_class \ | |
150 start_class(CompilationResult_ExceptionHandler) \ | |
151 int_field(CompilationResult_ExceptionHandler, handlerPos) \ | |
152 end_class \ | |
153 start_class(CompilationResult_Mark) \ | |
154 oop_field(CompilationResult_Mark, id, "Ljava/lang/Object;") \ | |
155 end_class \ | |
156 start_class(DebugInfo) \ | |
157 oop_field(DebugInfo, bytecodePosition, "Lcom/oracle/jvmci/code/BytecodePosition;") \ | |
158 oop_field(DebugInfo, referenceMap, "Lcom/oracle/jvmci/code/ReferenceMap;") \ | |
159 oop_field(DebugInfo, calleeSaveInfo, "Lcom/oracle/jvmci/code/RegisterSaveLayout;") \ | |
160 objArrayOop_field(DebugInfo, virtualObjectMapping, "[Lcom/oracle/jvmci/meta/Value;") \ | |
161 end_class \ | |
162 start_class(HotSpotReferenceMap) \ | |
163 oop_field(HotSpotReferenceMap, registerRefMap, "Lcom/oracle/jvmci/hotspot/HotSpotReferenceMap$HotSpotOopMap;") \ | |
164 oop_field(HotSpotReferenceMap, frameRefMap, "Lcom/oracle/jvmci/hotspot/HotSpotReferenceMap$HotSpotOopMap;") \ | |
165 end_class \ | |
166 start_class(RegisterSaveLayout) \ | |
167 objArrayOop_field(RegisterSaveLayout, registers, "[Lcom/oracle/jvmci/code/Register;") \ | |
168 typeArrayOop_field(RegisterSaveLayout, slots, "[I") \ | |
169 end_class \ | |
170 start_class(HotSpotOopMap) \ | |
171 typeArrayOop_field(HotSpotOopMap, words, "[J") \ | |
172 end_class \ | |
173 start_class(BytecodeFrame) \ | |
174 objArrayOop_field(BytecodeFrame, values, "[Lcom/oracle/jvmci/meta/Value;") \ | |
175 int_field(BytecodeFrame, numLocals) \ | |
176 int_field(BytecodeFrame, numStack) \ | |
177 int_field(BytecodeFrame, numLocks) \ | |
178 boolean_field(BytecodeFrame, rethrowException) \ | |
179 boolean_field(BytecodeFrame, duringCall) \ | |
180 static_int_field(BytecodeFrame, BEFORE_BCI) \ | |
181 end_class \ | |
182 start_class(BytecodePosition) \ | |
183 oop_field(BytecodePosition, caller, "Lcom/oracle/jvmci/code/BytecodePosition;") \ | |
184 oop_field(BytecodePosition, method, "Lcom/oracle/jvmci/meta/ResolvedJavaMethod;") \ | |
185 int_field(BytecodePosition, bci) \ | |
186 end_class \ | |
187 start_class(JavaConstant) \ | |
188 end_class \ | |
189 start_class(PrimitiveConstant) \ | |
190 long_field(PrimitiveConstant, primitive) \ | |
191 end_class \ | |
192 start_class(RawConstant) \ | |
193 long_field(RawConstant, primitive) \ | |
194 end_class \ | |
195 start_class(NullConstant) \ | |
196 end_class \ | |
197 start_class(HotSpotCompressedNullConstant) \ | |
198 end_class \ | |
199 start_class(HotSpotObjectConstantImpl) \ | |
200 oop_field(HotSpotObjectConstantImpl, object, "Ljava/lang/Object;") \ | |
201 boolean_field(HotSpotObjectConstantImpl, compressed) \ | |
202 end_class \ | |
203 start_class(HotSpotMetaspaceConstantImpl) \ | |
204 long_field(HotSpotMetaspaceConstantImpl, primitive) \ | |
205 oop_field(HotSpotMetaspaceConstantImpl, metaspaceObject, "Ljava/lang/Object;") \ | |
206 boolean_field(HotSpotMetaspaceConstantImpl, compressed) \ | |
207 end_class \ | |
208 start_class(Kind) \ | |
209 char_field(Kind, typeChar) \ | |
210 static_oop_field(Kind, Boolean, "Lcom/oracle/jvmci/meta/Kind;"); \ | |
211 static_oop_field(Kind, Byte, "Lcom/oracle/jvmci/meta/Kind;"); \ | |
212 static_oop_field(Kind, Char, "Lcom/oracle/jvmci/meta/Kind;"); \ | |
213 static_oop_field(Kind, Short, "Lcom/oracle/jvmci/meta/Kind;"); \ | |
214 static_oop_field(Kind, Int, "Lcom/oracle/jvmci/meta/Kind;"); \ | |
215 static_oop_field(Kind, Long, "Lcom/oracle/jvmci/meta/Kind;"); \ | |
216 end_class \ | |
217 start_class(LIRKind) \ | |
218 oop_field(LIRKind, platformKind, "Lcom/oracle/jvmci/meta/PlatformKind;") \ | |
219 int_field(LIRKind, referenceMask) \ | |
220 end_class \ | |
221 start_class(AbstractValue) \ | |
222 oop_field(AbstractValue, kind, "Lcom/oracle/jvmci/meta/Kind;") \ | |
223 oop_field(AbstractValue, lirKind, "Lcom/oracle/jvmci/meta/LIRKind;") \ | |
224 static_oop_field(AbstractValue, ILLEGAL, "Lcom/oracle/jvmci/meta/AllocatableValue;"); \ | |
225 end_class \ | |
226 start_class(RegisterValue) \ | |
227 oop_field(RegisterValue, reg, "Lcom/oracle/jvmci/code/Register;") \ | |
228 end_class \ | |
229 start_class(RegisterCategory) \ | |
230 oop_field(RegisterCategory, name, "Ljava/lang/String;") \ | |
231 int_field(RegisterCategory, referenceMapOffset) \ | |
232 int_field(RegisterCategory, referenceMapShift) \ | |
233 end_class \ | |
234 start_class(code_Register) \ | |
235 int_field(code_Register, number) \ | |
236 int_field(code_Register, encoding) \ | |
237 oop_field(code_Register, registerCategory, "Lcom/oracle/jvmci/code/Register$RegisterCategory;") \ | |
238 end_class \ | |
239 start_class(StackSlot) \ | |
240 int_field(StackSlot, offset) \ | |
241 boolean_field(StackSlot, addFrameSize) \ | |
242 end_class \ | |
243 start_class(VirtualObject) \ | |
244 int_field(VirtualObject, id) \ | |
245 oop_field(VirtualObject, type, "Lcom/oracle/jvmci/meta/ResolvedJavaType;") \ | |
246 objArrayOop_field(VirtualObject, values, "[Lcom/oracle/jvmci/meta/Value;") \ | |
247 end_class \ | |
248 start_class(StackLockValue) \ | |
249 oop_field(StackLockValue, owner, "Lcom/oracle/jvmci/meta/Value;") \ | |
250 oop_field(StackLockValue, slot, "Lcom/oracle/jvmci/code/StackSlotValue;") \ | |
251 boolean_field(StackLockValue, eliminated) \ | |
252 end_class \ | |
253 start_class(SpeculationLog) \ | |
254 oop_field(SpeculationLog, lastFailed, "Ljava/lang/Object;") \ | |
255 end_class \ | |
256 start_class(HotSpotStackFrameReference) \ | |
257 oop_field(HotSpotStackFrameReference, compilerToVM, "Lcom/oracle/jvmci/hotspot/CompilerToVM;") \ | |
258 long_field(HotSpotStackFrameReference, stackPointer) \ | |
259 int_field(HotSpotStackFrameReference, frameNumber) \ | |
260 int_field(HotSpotStackFrameReference, bci) \ | |
261 long_field(HotSpotStackFrameReference, metaspaceMethod) \ | |
262 objArrayOop_field(HotSpotStackFrameReference, locals, "[Ljava/lang/Object;") \ | |
263 typeArrayOop_field(HotSpotStackFrameReference, localIsVirtual, "[Z") \ | |
264 end_class \ | |
265 start_class(Debug) \ | |
266 static_boolean_field(Debug, ENABLED) \ | |
267 end_class \ | |
268 /* end*/ | |
269 | |
270 #define START_CLASS(name) \ | |
271 class name : AllStatic { \ | |
272 private: \ | |
273 friend class JVMCICompiler; \ | |
274 static void check(oop obj, const char* field_name) { \ | |
275 assert(obj != NULL, err_msg("NULL field access of %s.%s", #name, field_name)); \ | |
276 assert(obj->is_a(SystemDictionary::name##_klass()), "wrong class, " #name " expected"); \ | |
277 } \ | |
278 static void compute_offsets(); \ | |
279 public: \ | |
280 static Klass* klass() { return SystemDictionary::name##_klass(); } | |
281 | |
282 #define END_CLASS }; | |
283 | |
284 #define FIELD(name, type, accessor, cast) \ | |
285 static int _##name##_offset; \ | |
286 static type name(oop obj) { check(obj, #name); return cast obj->accessor(_##name##_offset); } \ | |
287 static type name(Handle& obj) { check(obj(), #name); return cast obj->accessor(_##name##_offset); } \ | |
288 static type name(jobject obj) { check(JNIHandles::resolve(obj), #name); return cast JNIHandles::resolve(obj)->accessor(_##name##_offset); } \ | |
289 static void set_##name(oop obj, type x) { check(obj, #name); obj->accessor##_put(_##name##_offset, x); } \ | |
290 static void set_##name(Handle& obj, type x) { check(obj(), #name); obj->accessor##_put(_##name##_offset, x); } \ | |
291 static void set_##name(jobject obj, type x) { check(JNIHandles::resolve(obj), #name); JNIHandles::resolve(obj)->accessor##_put(_##name##_offset, x); } | |
292 | |
293 #define EMPTY_CAST | |
294 #define CHAR_FIELD(klass, name) FIELD(name, jchar, char_field, EMPTY_CAST) | |
295 #define INT_FIELD(klass, name) FIELD(name, jint, int_field, EMPTY_CAST) | |
296 #define BOOLEAN_FIELD(klass, name) FIELD(name, jboolean, bool_field, EMPTY_CAST) | |
297 #define LONG_FIELD(klass, name) FIELD(name, jlong, long_field, EMPTY_CAST) | |
298 #define FLOAT_FIELD(klass, name) FIELD(name, jfloat, float_field, EMPTY_CAST) | |
299 #define OOP_FIELD(klass, name, signature) FIELD(name, oop, obj_field, EMPTY_CAST) | |
300 #define OBJARRAYOOP_FIELD(klass, name, signature) FIELD(name, objArrayOop, obj_field, (objArrayOop)) | |
301 #define TYPEARRAYOOP_FIELD(klass, name, signature) FIELD(name, typeArrayOop, obj_field, (typeArrayOop)) | |
302 #define STATIC_OOP_FIELD(klassName, name, signature) \ | |
303 static int _##name##_offset; \ | |
304 static oop name() { \ | |
305 InstanceKlass* ik = InstanceKlass::cast(klassName::klass()); \ | |
306 address addr = ik->static_field_addr(_##name##_offset - InstanceMirrorKlass::offset_of_static_fields()); \ | |
307 if (UseCompressedOops) { \ | |
308 return oopDesc::load_decode_heap_oop((narrowOop *)addr); \ | |
309 } else { \ | |
310 return oopDesc::load_decode_heap_oop((oop*)addr); \ | |
311 } \ | |
312 } \ | |
313 static void set_##name(oop x) { \ | |
314 InstanceKlass* ik = InstanceKlass::cast(klassName::klass()); \ | |
315 address addr = ik->static_field_addr(_##name##_offset - InstanceMirrorKlass::offset_of_static_fields()); \ | |
316 if (UseCompressedOops) { \ | |
317 oop_store((narrowOop *)addr, x); \ | |
318 } else { \ | |
319 oop_store((oop*)addr, x); \ | |
320 } \ | |
321 } | |
322 #define STATIC_PRIMITIVE_FIELD(klassName, name, jtypename) \ | |
323 static int _##name##_offset; \ | |
324 static jtypename name() { \ | |
325 InstanceKlass* ik = InstanceKlass::cast(klassName::klass()); \ | |
326 address addr = ik->static_field_addr(_##name##_offset - InstanceMirrorKlass::offset_of_static_fields()); \ | |
327 return *((jtypename *)addr); \ | |
328 } \ | |
329 static void set_##name(jtypename x) { \ | |
330 InstanceKlass* ik = InstanceKlass::cast(klassName::klass()); \ | |
331 address addr = ik->static_field_addr(_##name##_offset - InstanceMirrorKlass::offset_of_static_fields()); \ | |
332 *((jtypename *)addr) = x; \ | |
333 } | |
334 | |
335 #define STATIC_INT_FIELD(klassName, name) STATIC_PRIMITIVE_FIELD(klassName, name, jint) | |
336 #define STATIC_BOOLEAN_FIELD(klassName, name) STATIC_PRIMITIVE_FIELD(klassName, name, jboolean) | |
337 | |
338 COMPILER_CLASSES_DO(START_CLASS, END_CLASS, CHAR_FIELD, INT_FIELD, BOOLEAN_FIELD, LONG_FIELD, FLOAT_FIELD, OOP_FIELD, TYPEARRAYOOP_FIELD, OBJARRAYOOP_FIELD, STATIC_OOP_FIELD, STATIC_INT_FIELD, STATIC_BOOLEAN_FIELD) | |
339 #undef START_CLASS | |
340 #undef END_CLASS | |
341 #undef FIELD | |
342 #undef CHAR_FIELD | |
343 #undef INT_FIELD | |
344 #undef BOOLEAN_FIELD | |
345 #undef LONG_FIELD | |
346 #undef FLOAT_FIELD | |
347 #undef OOP_FIELD | |
348 #undef TYPEARRAYOOP_FIELD | |
349 #undef OBJARRAYOOP_FIELD | |
350 #undef STATIC_OOP_FIELD | |
351 #undef STATIC_INT_FIELD | |
352 #undef STATIC_BOOLEAN_FIELD | |
353 #undef EMPTY_CAST | |
354 | |
355 void compute_offset(int &dest_offset, Klass* klass, const char* name, const char* signature, bool static_field); | |
356 | |
357 #endif // SHARE_VM_JVMCI_JVMCI_JAVA_ACCESS_HPP |