1 /*
2 * Copyright (c) 2011, 2016, 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 */
212
213 final int constantPoolCpCacheIndexTag = getConstant("ConstantPool::CPCACHE_INDEX_TAG", Integer.class);
214
215 final int jvmConstantUtf8 = getConstant("JVM_CONSTANT_Utf8", Integer.class);
216 final int jvmConstantInteger = getConstant("JVM_CONSTANT_Integer", Integer.class);
217 final int jvmConstantLong = getConstant("JVM_CONSTANT_Long", Integer.class);
218 final int jvmConstantFloat = getConstant("JVM_CONSTANT_Float", Integer.class);
219 final int jvmConstantDouble = getConstant("JVM_CONSTANT_Double", Integer.class);
220 final int jvmConstantClass = getConstant("JVM_CONSTANT_Class", Integer.class);
221 final int jvmConstantUnresolvedClass = getConstant("JVM_CONSTANT_UnresolvedClass", Integer.class);
222 final int jvmConstantUnresolvedClassInError = getConstant("JVM_CONSTANT_UnresolvedClassInError", Integer.class);
223 final int jvmConstantString = getConstant("JVM_CONSTANT_String", Integer.class);
224 final int jvmConstantFieldref = getConstant("JVM_CONSTANT_Fieldref", Integer.class);
225 final int jvmConstantMethodref = getConstant("JVM_CONSTANT_Methodref", Integer.class);
226 final int jvmConstantInterfaceMethodref = getConstant("JVM_CONSTANT_InterfaceMethodref", Integer.class);
227 final int jvmConstantNameAndType = getConstant("JVM_CONSTANT_NameAndType", Integer.class);
228 final int jvmConstantMethodHandle = getConstant("JVM_CONSTANT_MethodHandle", Integer.class);
229 final int jvmConstantMethodHandleInError = getConstant("JVM_CONSTANT_MethodHandleInError", Integer.class);
230 final int jvmConstantMethodType = getConstant("JVM_CONSTANT_MethodType", Integer.class);
231 final int jvmConstantMethodTypeInError = getConstant("JVM_CONSTANT_MethodTypeInError", Integer.class);
232 final int jvmConstantInvokeDynamic = getConstant("JVM_CONSTANT_InvokeDynamic", Integer.class);
233
234 final int jvmConstantExternalMax = getConstant("JVM_CONSTANT_ExternalMax", Integer.class);
235 final int jvmConstantInternalMin = getConstant("JVM_CONSTANT_InternalMin", Integer.class);
236 final int jvmConstantInternalMax = getConstant("JVM_CONSTANT_InternalMax", Integer.class);
237
238 final int heapWordSize = getConstant("HeapWordSize", Integer.class);
239
240 final int symbolPointerSize = getFieldValue("CompilerToVM::Data::sizeof_SymbolPointer", Integer.class, "int");
241
242 final long vmSymbolsSymbols = getFieldAddress("vmSymbols::_symbols[0]", "Symbol*");
243 final int vmSymbolsFirstSID = getConstant("vmSymbols::FIRST_SID", Integer.class);
244 final int vmSymbolsSIDLimit = getConstant("vmSymbols::SID_LIMIT", Integer.class);
245
246 final long symbolInit = getFieldValue("CompilerToVM::Data::symbol_init", Long.class);
247 final long symbolClinit = getFieldValue("CompilerToVM::Data::symbol_clinit", Long.class);
248
249 /**
250 * Returns the symbol in the {@code vmSymbols} table at position {@code index} as a
251 * {@link String}.
|
1 /*
2 * Copyright (c) 2011, 2017, 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 */
212
213 final int constantPoolCpCacheIndexTag = getConstant("ConstantPool::CPCACHE_INDEX_TAG", Integer.class);
214
215 final int jvmConstantUtf8 = getConstant("JVM_CONSTANT_Utf8", Integer.class);
216 final int jvmConstantInteger = getConstant("JVM_CONSTANT_Integer", Integer.class);
217 final int jvmConstantLong = getConstant("JVM_CONSTANT_Long", Integer.class);
218 final int jvmConstantFloat = getConstant("JVM_CONSTANT_Float", Integer.class);
219 final int jvmConstantDouble = getConstant("JVM_CONSTANT_Double", Integer.class);
220 final int jvmConstantClass = getConstant("JVM_CONSTANT_Class", Integer.class);
221 final int jvmConstantUnresolvedClass = getConstant("JVM_CONSTANT_UnresolvedClass", Integer.class);
222 final int jvmConstantUnresolvedClassInError = getConstant("JVM_CONSTANT_UnresolvedClassInError", Integer.class);
223 final int jvmConstantString = getConstant("JVM_CONSTANT_String", Integer.class);
224 final int jvmConstantFieldref = getConstant("JVM_CONSTANT_Fieldref", Integer.class);
225 final int jvmConstantMethodref = getConstant("JVM_CONSTANT_Methodref", Integer.class);
226 final int jvmConstantInterfaceMethodref = getConstant("JVM_CONSTANT_InterfaceMethodref", Integer.class);
227 final int jvmConstantNameAndType = getConstant("JVM_CONSTANT_NameAndType", Integer.class);
228 final int jvmConstantMethodHandle = getConstant("JVM_CONSTANT_MethodHandle", Integer.class);
229 final int jvmConstantMethodHandleInError = getConstant("JVM_CONSTANT_MethodHandleInError", Integer.class);
230 final int jvmConstantMethodType = getConstant("JVM_CONSTANT_MethodType", Integer.class);
231 final int jvmConstantMethodTypeInError = getConstant("JVM_CONSTANT_MethodTypeInError", Integer.class);
232 final int jvmConstantInvokeDynamicInError = getConstant("JVM_CONSTANT_InvokeDynamicInError", Integer.class);
233 final int jvmConstantInvokeDynamic = getConstant("JVM_CONSTANT_InvokeDynamic", Integer.class);
234
235 final int jvmConstantExternalMax = getConstant("JVM_CONSTANT_ExternalMax", Integer.class);
236 final int jvmConstantInternalMin = getConstant("JVM_CONSTANT_InternalMin", Integer.class);
237 final int jvmConstantInternalMax = getConstant("JVM_CONSTANT_InternalMax", Integer.class);
238
239 final int heapWordSize = getConstant("HeapWordSize", Integer.class);
240
241 final int symbolPointerSize = getFieldValue("CompilerToVM::Data::sizeof_SymbolPointer", Integer.class, "int");
242
243 final long vmSymbolsSymbols = getFieldAddress("vmSymbols::_symbols[0]", "Symbol*");
244 final int vmSymbolsFirstSID = getConstant("vmSymbols::FIRST_SID", Integer.class);
245 final int vmSymbolsSIDLimit = getConstant("vmSymbols::SID_LIMIT", Integer.class);
246
247 final long symbolInit = getFieldValue("CompilerToVM::Data::symbol_init", Long.class);
248 final long symbolClinit = getFieldValue("CompilerToVM::Data::symbol_clinit", Long.class);
249
250 /**
251 * Returns the symbol in the {@code vmSymbols} table at position {@code index} as a
252 * {@link String}.
|