annotate src/hotspot/share/runtime/vmStructs.cpp @ 55635:0fb70c9118ce

8222446: assert(C->env()->system_dictionary_modification_counter_changed()) failed: Must invalidate if TypeFuncs differ Summary: Remove SystemDictionary::modification_counter optimization Reviewed-by: dlong, eosterlund
author coleenp
date Wed, 10 Jul 2019 07:58:24 -0400
parents c5fe45d1281d
children 90ead0febf56
rev   line source
duke@1 1 /*
ysuenaga@53637 2 * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
duke@1 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@1 4 *
duke@1 5 * This code is free software; you can redistribute it and/or modify it
duke@1 6 * under the terms of the GNU General Public License version 2 only, as
duke@1 7 * published by the Free Software Foundation.
duke@1 8 *
duke@1 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@1 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@1 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@1 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@1 13 * accompanied this code).
duke@1 14 *
duke@1 15 * You should have received a copy of the GNU General Public License version
duke@1 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@1 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@1 18 *
trims@5547 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@5547 20 * or visit www.oracle.com if you need additional information or have any
trims@5547 21 * questions.
duke@1 22 *
duke@1 23 */
duke@1 24
stefank@7397 25 #include "precompiled.hpp"
pliden@30764 26 #include "ci/ciField.hpp"
pliden@30764 27 #include "ci/ciInstance.hpp"
pliden@30764 28 #include "ci/ciMethodData.hpp"
pliden@30764 29 #include "ci/ciObjArrayKlass.hpp"
pliden@30764 30 #include "ci/ciSymbol.hpp"
pliden@30764 31 #include "classfile/compactHashtable.hpp"
coleenp@51959 32 #include "classfile/classLoaderDataGraph.hpp"
stefank@7397 33 #include "classfile/dictionary.hpp"
stefank@7397 34 #include "classfile/javaClasses.hpp"
gziemski@24426 35 #include "classfile/stringTable.hpp"
coleenp@46742 36 #include "classfile/symbolTable.hpp"
stefank@7397 37 #include "classfile/systemDictionary.hpp"
stefank@7397 38 #include "code/codeBlob.hpp"
stefank@7397 39 #include "code/codeCache.hpp"
stefank@7397 40 #include "code/compressedStream.hpp"
stefank@7397 41 #include "code/location.hpp"
stefank@7397 42 #include "code/nmethod.hpp"
stefank@7397 43 #include "code/pcDesc.hpp"
stefank@7397 44 #include "code/stubs.hpp"
stefank@7397 45 #include "code/vmreg.hpp"
pliden@30764 46 #include "compiler/compileBroker.hpp"
stefank@7397 47 #include "compiler/oopMap.hpp"
stefank@49730 48 #include "gc/shared/vmStructs_gc.hpp"
stefank@7397 49 #include "interpreter/bytecodeInterpreter.hpp"
stefank@7397 50 #include "interpreter/bytecodes.hpp"
stefank@7397 51 #include "interpreter/interpreter.hpp"
coleenp@13728 52 #include "memory/allocation.hpp"
zgu@25949 53 #include "memory/allocation.inline.hpp"
stefank@7397 54 #include "memory/heap.hpp"
stuefe@50193 55 #include "memory/metaspace/metablock.hpp"
coleenp@47634 56 #include "memory/padded.hpp"
sla@18025 57 #include "memory/referenceType.hpp"
stefank@7397 58 #include "memory/universe.hpp"
coleenp@30291 59 #include "memory/virtualspace.hpp"
jgeorge@49896 60 #include "memory/filemap.hpp"
hseigel@46448 61 #include "oops/array.hpp"
stefank@7397 62 #include "oops/arrayKlass.hpp"
stefank@7397 63 #include "oops/arrayOop.hpp"
coleenp@13728 64 #include "oops/compiledICHolder.hpp"
coleenp@13728 65 #include "oops/constMethod.hpp"
coleenp@13728 66 #include "oops/constantPool.hpp"
coleenp@13728 67 #include "oops/cpCache.hpp"
coleenp@13728 68 #include "oops/instanceClassLoaderKlass.hpp"
stefank@7397 69 #include "oops/instanceKlass.hpp"
never@8878 70 #include "oops/instanceMirrorKlass.hpp"
stefank@7397 71 #include "oops/instanceOop.hpp"
stefank@7397 72 #include "oops/klass.hpp"
stefank@7397 73 #include "oops/markOop.hpp"
pliden@30764 74 #include "oops/method.hpp"
pliden@30764 75 #include "oops/methodCounters.hpp"
coleenp@13728 76 #include "oops/methodData.hpp"
stefank@7397 77 #include "oops/objArrayKlass.hpp"
stefank@7397 78 #include "oops/objArrayOop.hpp"
stefank@7397 79 #include "oops/oop.inline.hpp"
coleenp@46961 80 #include "oops/oopHandle.hpp"
coleenp@8076 81 #include "oops/symbol.hpp"
stefank@7397 82 #include "oops/typeArrayKlass.hpp"
stefank@7397 83 #include "oops/typeArrayOop.hpp"
stefank@7397 84 #include "prims/jvmtiAgentThread.hpp"
stefank@7397 85 #include "runtime/arguments.hpp"
never@10547 86 #include "runtime/deoptimization.hpp"
gziemski@49902 87 #include "runtime/flags/jvmFlag.hpp"
stefank@7397 88 #include "runtime/globals.hpp"
stefank@7397 89 #include "runtime/java.hpp"
stefank@7397 90 #include "runtime/javaCalls.hpp"
zgu@25949 91 #include "runtime/os.hpp"
stefank@7397 92 #include "runtime/perfMemory.hpp"
kamg@8110 93 #include "runtime/serviceThread.hpp"
stefank@7397 94 #include "runtime/sharedRuntime.hpp"
stefank@7397 95 #include "runtime/stubRoutines.hpp"
stefank@14583 96 #include "runtime/thread.inline.hpp"
rehn@54955 97 #include "runtime/threadSMR.hpp"
pliden@30764 98 #include "runtime/vframeArray.hpp"
stefank@7397 99 #include "runtime/vmStructs.hpp"
stefank@7397 100 #include "utilities/globalDefinitions.hpp"
stefank@7397 101 #include "utilities/hashtable.hpp"
jprovino@15482 102 #include "utilities/macros.hpp"
poonam@25335 103
goetz@40010 104 #include CPU_HEADER(vmStructs)
goetz@40010 105 #include OS_HEADER(vmStructs)
goetz@40010 106 #include OS_CPU_HEADER(vmStructs)
twisti@33160 107
twisti@33160 108 #if INCLUDE_JVMCI
twisti@33160 109 # include "jvmci/vmStructs_jvmci.hpp"
twisti@33160 110 #endif
twisti@33160 111
poonam@25335 112
stefank@7397 113 #ifdef COMPILER2
never@10547 114 #include "opto/addnode.hpp"
never@10547 115 #include "opto/block.hpp"
never@10547 116 #include "opto/callnode.hpp"
morris@23528 117 #include "opto/castnode.hpp"
never@10547 118 #include "opto/cfgnode.hpp"
never@10547 119 #include "opto/chaitin.hpp"
morris@23528 120 #include "opto/convertnode.hpp"
never@10547 121 #include "opto/divnode.hpp"
morris@23528 122 #include "opto/intrinsicnode.hpp"
never@10547 123 #include "opto/locknode.hpp"
never@10547 124 #include "opto/loopnode.hpp"
never@10547 125 #include "opto/machnode.hpp"
stefank@7397 126 #include "opto/matcher.hpp"
rbackman@20289 127 #include "opto/mathexactnode.hpp"
pliden@30764 128 #include "opto/movenode.hpp"
never@10547 129 #include "opto/mulnode.hpp"
morris@23528 130 #include "opto/narrowptrnode.hpp"
morris@23528 131 #include "opto/opaquenode.hpp"
goetz@25715 132 #include "opto/optoreg.hpp"
pliden@30764 133 #include "opto/parse.hpp"
never@10547 134 #include "opto/phaseX.hpp"
never@10547 135 #include "opto/regalloc.hpp"
never@10547 136 #include "opto/rootnode.hpp"
never@10547 137 #include "opto/subnode.hpp"
never@10547 138 #include "opto/vectornode.hpp"
goetz@22807 139 #endif // COMPILER2
duke@1 140
duke@1 141 // Note: the cross-product of (c1, c2, product, nonproduct, ...),
duke@1 142 // (nonstatic, static), and (unchecked, checked) has not been taken.
duke@1 143 // Only the macros currently needed have been defined.
duke@1 144
duke@1 145 // A field whose type is not checked is given a null string as the
duke@1 146 // type name, indicating an "opaque" type to the serviceability agent.
duke@1 147
duke@1 148 // NOTE: there is an interdependency between this file and
duke@1 149 // HotSpotTypeDataBase.java, which parses the type strings.
duke@1 150
duke@1 151 #ifndef REG_COUNT
duke@1 152 #define REG_COUNT 0
duke@1 153 #endif
duke@1 154
jprovino@13975 155 #if INCLUDE_JVMTI
jprovino@13975 156 #define JVMTI_STRUCTS(static_field) \
jprovino@13975 157 static_field(JvmtiExport, _can_access_local_variables, bool) \
jprovino@13975 158 static_field(JvmtiExport, _can_hotswap_or_post_breakpoint, bool) \
jprovino@13975 159 static_field(JvmtiExport, _can_post_on_exceptions, bool) \
jprovino@13975 160 static_field(JvmtiExport, _can_walk_any_space, bool)
jprovino@13975 161 #else
jprovino@13975 162 #define JVMTI_STRUCTS(static_field)
jprovino@13975 163 #endif // INCLUDE_JVMTI
duke@1 164
zgu@13195 165 typedef HashtableEntry<intptr_t, mtInternal> IntptrHashtableEntry;
zgu@13195 166 typedef Hashtable<intptr_t, mtInternal> IntptrHashtable;
coleenp@46329 167 typedef Hashtable<InstanceKlass*, mtClass> KlassHashtable;
coleenp@46329 168 typedef HashtableEntry<InstanceKlass*, mtClass> KlassHashtableEntry;
zgu@13195 169
coleenp@47634 170 typedef PaddedEnd<ObjectMonitor> PaddedObjectMonitor;
coleenp@47634 171
duke@1 172 //--------------------------------------------------------------------------------
duke@1 173 // VM_STRUCTS
duke@1 174 //
duke@1 175 // This list enumerates all of the fields the serviceability agent
duke@1 176 // needs to know about. Be sure to see also the type table below this one.
duke@1 177 // NOTE that there are platform-specific additions to this table in
duke@1 178 // vmStructs_<os>_<cpu>.hpp.
duke@1 179
stefank@49730 180 #define VM_STRUCTS(nonstatic_field, \
stefank@49730 181 static_field, \
stefank@49730 182 static_ptr_volatile_field, \
stefank@49730 183 unchecked_nonstatic_field, \
stefank@49730 184 volatile_nonstatic_field, \
stefank@49730 185 nonproduct_nonstatic_field, \
stefank@49730 186 c1_nonstatic_field, \
stefank@49730 187 c2_nonstatic_field, \
stefank@49730 188 unchecked_c1_static_field, \
stefank@49730 189 unchecked_c2_static_field) \
stefank@49730 190 \
stefank@49730 191 /*************/ \
stefank@49730 192 /* GC fields */ \
stefank@49730 193 /*************/ \
stefank@49730 194 \
stefank@49730 195 VM_STRUCTS_GC(nonstatic_field, \
stefank@49730 196 volatile_nonstatic_field, \
stefank@49730 197 static_field, \
stefank@49730 198 unchecked_nonstatic_field) \
duke@1 199 \
duke@1 200 /******************************************************************/ \
stefank@49730 201 /* OopDesc and Klass hierarchies (NOTE: MethodData* incomplete) */ \
duke@1 202 /******************************************************************/ \
duke@1 203 \
duke@1 204 volatile_nonstatic_field(oopDesc, _mark, markOop) \
coleenp@13728 205 volatile_nonstatic_field(oopDesc, _metadata._klass, Klass*) \
eosterlund@47998 206 volatile_nonstatic_field(oopDesc, _metadata._compressed_klass, narrowKlass) \
pliden@49752 207 static_field(BarrierSet, _barrier_set, BarrierSet*) \
coleenp@13952 208 nonstatic_field(ArrayKlass, _dimension, int) \
coleenp@13952 209 volatile_nonstatic_field(ArrayKlass, _higher_dimension, Klass*) \
coleenp@13952 210 volatile_nonstatic_field(ArrayKlass, _lower_dimension, Klass*) \
stefank@49730 211 nonstatic_field(CompiledICHolder, _holder_metadata, Metadata*) \
jwilhelm@32623 212 nonstatic_field(CompiledICHolder, _holder_klass, Klass*) \
jwilhelm@32623 213 nonstatic_field(ConstantPool, _tags, Array<u1>*) \
jwilhelm@32623 214 nonstatic_field(ConstantPool, _cache, ConstantPoolCache*) \
jwilhelm@32623 215 nonstatic_field(ConstantPool, _pool_holder, InstanceKlass*) \
jwilhelm@32623 216 nonstatic_field(ConstantPool, _operands, Array<u2>*) \
iklam@46460 217 nonstatic_field(ConstantPool, _resolved_klasses, Array<Klass*>*) \
jwilhelm@32623 218 nonstatic_field(ConstantPool, _length, int) \
coleenp@46961 219 nonstatic_field(ConstantPoolCache, _resolved_references, OopHandle) \
iklam@46427 220 nonstatic_field(ConstantPoolCache, _reference_map, Array<u2>*) \
jwilhelm@32623 221 nonstatic_field(ConstantPoolCache, _length, int) \
jwilhelm@32623 222 nonstatic_field(ConstantPoolCache, _constant_pool, ConstantPool*) \
dholmes@40887 223 volatile_nonstatic_field(InstanceKlass, _array_klasses, Klass*) \
jiangli@18687 224 nonstatic_field(InstanceKlass, _methods, Array<Method*>*) \
acorn@20391 225 nonstatic_field(InstanceKlass, _default_methods, Array<Method*>*) \
iklam@51329 226 nonstatic_field(InstanceKlass, _local_interfaces, Array<InstanceKlass*>*) \
iklam@51329 227 nonstatic_field(InstanceKlass, _transitive_interfaces, Array<InstanceKlass*>*) \
coleenp@13728 228 nonstatic_field(InstanceKlass, _fields, Array<u2>*) \
coleenp@13728 229 nonstatic_field(InstanceKlass, _java_fields_count, u2) \
coleenp@17826 230 nonstatic_field(InstanceKlass, _constants, ConstantPool*) \
jwilhelm@32623 231 nonstatic_field(InstanceKlass, _source_file_name_index, u2) \
mgronlun@34666 232 nonstatic_field(InstanceKlass, _source_debug_extension, const char*) \
jwilhelm@32623 233 nonstatic_field(InstanceKlass, _inner_classes, Array<jushort>*) \
coleenp@13728 234 nonstatic_field(InstanceKlass, _nonstatic_field_size, int) \
coleenp@13728 235 nonstatic_field(InstanceKlass, _static_field_size, int) \
jwilhelm@32623 236 nonstatic_field(InstanceKlass, _static_oop_field_count, u2) \
coleenp@13728 237 nonstatic_field(InstanceKlass, _nonstatic_oop_map_size, int) \
coleenp@13728 238 nonstatic_field(InstanceKlass, _is_marked_dependent, bool) \
twisti@33160 239 nonstatic_field(InstanceKlass, _misc_flags, u2) \
coleenp@13728 240 nonstatic_field(InstanceKlass, _minor_version, u2) \
coleenp@13728 241 nonstatic_field(InstanceKlass, _major_version, u2) \
coleenp@13728 242 nonstatic_field(InstanceKlass, _init_state, u1) \
coleenp@13728 243 nonstatic_field(InstanceKlass, _init_thread, Thread*) \
coleenp@13728 244 nonstatic_field(InstanceKlass, _itable_len, int) \
coleenp@13728 245 nonstatic_field(InstanceKlass, _reference_type, u1) \
coleenp@13728 246 volatile_nonstatic_field(InstanceKlass, _oop_map_cache, OopMapCache*) \
coleenp@13728 247 nonstatic_field(InstanceKlass, _jni_ids, JNIid*) \
coleenp@13728 248 nonstatic_field(InstanceKlass, _osr_nmethods_head, nmethod*) \
cjplummer@38059 249 JVMTI_ONLY(nonstatic_field(InstanceKlass, _breakpoints, BreakpointInfo*)) \
iklam@26135 250 nonstatic_field(InstanceKlass, _generic_signature_index, u2) \
dholmes@40887 251 volatile_nonstatic_field(InstanceKlass, _methods_jmethod_ids, jmethodID*) \
coleenp@13728 252 volatile_nonstatic_field(InstanceKlass, _idnum_allocated_count, u2) \
coleenp@13728 253 nonstatic_field(InstanceKlass, _annotations, Annotations*) \
coleenp@13728 254 nonstatic_field(InstanceKlass, _method_ordering, Array<int>*) \
acorn@20391 255 nonstatic_field(InstanceKlass, _default_vtable_indices, Array<int>*) \
duke@1 256 nonstatic_field(Klass, _super_check_offset, juint) \
coleenp@13728 257 nonstatic_field(Klass, _secondary_super_cache, Klass*) \
coleenp@13728 258 nonstatic_field(Klass, _secondary_supers, Array<Klass*>*) \
coleenp@13728 259 nonstatic_field(Klass, _primary_supers[0], Klass*) \
coleenp@47580 260 nonstatic_field(Klass, _java_mirror, OopHandle) \
duke@1 261 nonstatic_field(Klass, _modifier_flags, jint) \
coleenp@13728 262 nonstatic_field(Klass, _super, Klass*) \
eosterlund@52784 263 volatile_nonstatic_field(Klass, _subklass, Klass*) \
duke@1 264 nonstatic_field(Klass, _layout_helper, jint) \
coleenp@8076 265 nonstatic_field(Klass, _name, Symbol*) \
duke@1 266 nonstatic_field(Klass, _access_flags, AccessFlags) \
twisti@20011 267 nonstatic_field(Klass, _prototype_header, markOop) \
eosterlund@52784 268 volatile_nonstatic_field(Klass, _next_sibling, Klass*) \
dsamersoff@42889 269 nonstatic_field(Klass, _next_link, Klass*) \
dsamersoff@42889 270 nonstatic_field(Klass, _vtable_len, int) \
coleenp@46729 271 nonstatic_field(Klass, _class_loader_data, ClassLoaderData*) \
twisti@20011 272 nonstatic_field(vtableEntry, _method, Method*) \
jwilhelm@32623 273 nonstatic_field(MethodData, _size, int) \
jwilhelm@32623 274 nonstatic_field(MethodData, _method, Method*) \
jwilhelm@32623 275 nonstatic_field(MethodData, _data_size, int) \
jwilhelm@32623 276 nonstatic_field(MethodData, _data[0], intptr_t) \
jwilhelm@32623 277 nonstatic_field(MethodData, _parameters_type_data_di, int) \
jwilhelm@32623 278 nonstatic_field(MethodData, _nof_decompiles, uint) \
jwilhelm@32623 279 nonstatic_field(MethodData, _nof_overflow_recompiles, uint) \
jwilhelm@32623 280 nonstatic_field(MethodData, _nof_overflow_traps, uint) \
jwilhelm@32623 281 nonstatic_field(MethodData, _trap_hist._array[0], u1) \
jwilhelm@32623 282 nonstatic_field(MethodData, _eflags, intx) \
jwilhelm@32623 283 nonstatic_field(MethodData, _arg_local, intx) \
jwilhelm@32623 284 nonstatic_field(MethodData, _arg_stack, intx) \
jwilhelm@32623 285 nonstatic_field(MethodData, _arg_returned, intx) \
jwilhelm@32623 286 nonstatic_field(MethodData, _tenure_traps, uint) \
jwilhelm@32623 287 nonstatic_field(MethodData, _invoke_mask, int) \
jwilhelm@32623 288 nonstatic_field(MethodData, _backedge_mask, int) \
jwilhelm@32623 289 nonstatic_field(DataLayout, _header._struct._tag, u1) \
jwilhelm@32623 290 nonstatic_field(DataLayout, _header._struct._flags, u1) \
jwilhelm@32623 291 nonstatic_field(DataLayout, _header._struct._bci, u2) \
roland@50577 292 nonstatic_field(DataLayout, _header._struct._traps, u4) \
jwilhelm@32623 293 nonstatic_field(DataLayout, _cells[0], intptr_t) \
jwilhelm@32623 294 nonstatic_field(MethodCounters, _nmethod_age, int) \
jwilhelm@32623 295 nonstatic_field(MethodCounters, _interpreter_invocation_limit, int) \
jwilhelm@32623 296 nonstatic_field(MethodCounters, _interpreter_backward_branch_limit, int) \
jwilhelm@32623 297 nonstatic_field(MethodCounters, _interpreter_profile_limit, int) \
jwilhelm@32623 298 nonstatic_field(MethodCounters, _invoke_mask, int) \
jwilhelm@32623 299 nonstatic_field(MethodCounters, _backedge_mask, int) \
cjplummer@37272 300 COMPILER2_OR_JVMCI_PRESENT(nonstatic_field(MethodCounters, _interpreter_invocation_count, int)) \
cjplummer@37272 301 COMPILER2_OR_JVMCI_PRESENT(nonstatic_field(MethodCounters, _interpreter_throwout_count, u2)) \
cjplummer@38059 302 JVMTI_ONLY(nonstatic_field(MethodCounters, _number_of_breakpoints, u2)) \
jwilhelm@32623 303 nonstatic_field(MethodCounters, _invocation_counter, InvocationCounter) \
jwilhelm@32623 304 nonstatic_field(MethodCounters, _backedge_counter, InvocationCounter) \
jwilhelm@32623 305 nonstatic_field(Method, _constMethod, ConstMethod*) \
thartmann@36350 306 nonstatic_field(Method, _method_data, MethodData*) \
jwilhelm@32623 307 nonstatic_field(Method, _method_counters, MethodCounters*) \
jwilhelm@32623 308 nonstatic_field(Method, _access_flags, AccessFlags) \
jwilhelm@32623 309 nonstatic_field(Method, _vtable_index, int) \
minqi@32820 310 nonstatic_field(Method, _intrinsic_id, u2) \
fparain@35071 311 nonstatic_field(Method, _flags, u2) \
jwilhelm@32623 312 nonproduct_nonstatic_field(Method, _compiled_invocation_count, int) \
rbackman@38133 313 volatile_nonstatic_field(Method, _code, CompiledMethod*) \
jwilhelm@32623 314 nonstatic_field(Method, _i2i_entry, address) \
jwilhelm@32623 315 volatile_nonstatic_field(Method, _from_compiled_entry, address) \
jwilhelm@32623 316 volatile_nonstatic_field(Method, _from_interpreted_entry, address) \
jwilhelm@32623 317 volatile_nonstatic_field(ConstMethod, _fingerprint, uint64_t) \
jwilhelm@32623 318 nonstatic_field(ConstMethod, _constants, ConstantPool*) \
jwilhelm@32623 319 nonstatic_field(ConstMethod, _stackmap_data, Array<u1>*) \
jwilhelm@32623 320 nonstatic_field(ConstMethod, _constMethod_size, int) \
jwilhelm@32623 321 nonstatic_field(ConstMethod, _flags, u2) \
jwilhelm@32623 322 nonstatic_field(ConstMethod, _code_size, u2) \
jwilhelm@32623 323 nonstatic_field(ConstMethod, _name_index, u2) \
jwilhelm@32623 324 nonstatic_field(ConstMethod, _signature_index, u2) \
jwilhelm@32623 325 nonstatic_field(ConstMethod, _method_idnum, u2) \
jwilhelm@32623 326 nonstatic_field(ConstMethod, _max_stack, u2) \
jwilhelm@32623 327 nonstatic_field(ConstMethod, _max_locals, u2) \
jwilhelm@32623 328 nonstatic_field(ConstMethod, _size_of_parameters, u2) \
coleenp@13952 329 nonstatic_field(ObjArrayKlass, _element_klass, Klass*) \
coleenp@13952 330 nonstatic_field(ObjArrayKlass, _bottom_klass, Klass*) \
coleenp@51179 331 volatile_nonstatic_field(Symbol, _length_and_refcount, unsigned int) \
minqi@32357 332 nonstatic_field(Symbol, _identity_hash, short) \
hseigel@51997 333 unchecked_nonstatic_field(Symbol, _body, sizeof(u1)) /* NOTE: no type */ \
hseigel@51997 334 nonstatic_field(Symbol, _body[0], u1) \
coleenp@47765 335 nonstatic_field(TypeArrayKlass, _max_length, jint) \
stefank@53811 336 nonstatic_field(OopHandle, _obj, oop*) \
duke@1 337 \
duke@1 338 /***********************/ \
duke@1 339 /* Constant Pool Cache */ \
duke@1 340 /***********************/ \
duke@1 341 \
jwilhelm@32623 342 volatile_nonstatic_field(ConstantPoolCacheEntry, _indices, intx) \
coleenp@47634 343 volatile_nonstatic_field(ConstantPoolCacheEntry, _f1, Metadata*) \
jwilhelm@32623 344 volatile_nonstatic_field(ConstantPoolCacheEntry, _f2, intx) \
jwilhelm@32623 345 volatile_nonstatic_field(ConstantPoolCacheEntry, _flags, intx) \
duke@1 346 \
duke@1 347 /********************************/ \
duke@1 348 /* MethodOop-related structures */ \
duke@1 349 /********************************/ \
duke@1 350 \
duke@1 351 nonstatic_field(CheckedExceptionElement, class_cp_index, u2) \
duke@1 352 nonstatic_field(LocalVariableTableElement, start_bci, u2) \
duke@1 353 nonstatic_field(LocalVariableTableElement, length, u2) \
duke@1 354 nonstatic_field(LocalVariableTableElement, name_cp_index, u2) \
duke@1 355 nonstatic_field(LocalVariableTableElement, descriptor_cp_index, u2) \
duke@1 356 nonstatic_field(LocalVariableTableElement, signature_cp_index, u2) \
duke@1 357 nonstatic_field(LocalVariableTableElement, slot, u2) \
jiangli@13282 358 nonstatic_field(ExceptionTableElement, start_pc, u2) \
jiangli@13282 359 nonstatic_field(ExceptionTableElement, end_pc, u2) \
jiangli@13282 360 nonstatic_field(ExceptionTableElement, handler_pc, u2) \
jiangli@13282 361 nonstatic_field(ExceptionTableElement, catch_type_index, u2) \
cjplummer@38059 362 JVMTI_ONLY(nonstatic_field(BreakpointInfo, _orig_bytecode, Bytecodes::Code)) \
cjplummer@38059 363 JVMTI_ONLY(nonstatic_field(BreakpointInfo, _bci, int)) \
cjplummer@38059 364 JVMTI_ONLY(nonstatic_field(BreakpointInfo, _name_index, u2)) \
cjplummer@38059 365 JVMTI_ONLY(nonstatic_field(BreakpointInfo, _signature_index, u2)) \
cjplummer@38059 366 JVMTI_ONLY(nonstatic_field(BreakpointInfo, _next, BreakpointInfo*)) \
duke@1 367 /***********/ \
duke@1 368 /* JNI IDs */ \
duke@1 369 /***********/ \
duke@1 370 \
coleenp@13728 371 nonstatic_field(JNIid, _holder, Klass*) \
duke@1 372 nonstatic_field(JNIid, _next, JNIid*) \
duke@1 373 nonstatic_field(JNIid, _offset, int) \
stefank@54780 374 \
duke@1 375 /************/ \
duke@1 376 /* Universe */ \
duke@1 377 /************/ \
duke@1 378 \
never@10547 379 static_field(Universe, _mirrors[0], oop) \
duke@1 380 static_field(Universe, _main_thread_group, oop) \
duke@1 381 static_field(Universe, _system_thread_group, oop) \
duke@1 382 static_field(Universe, _the_empty_class_klass_array, objArrayOop) \
duke@1 383 static_field(Universe, _null_ptr_exception_instance, oop) \
duke@1 384 static_field(Universe, _arithmetic_exception_instance, oop) \
duke@1 385 static_field(Universe, _vm_exception, oop) \
duke@1 386 static_field(Universe, _collectedHeap, CollectedHeap*) \
duke@1 387 static_field(Universe, _base_vtable_size, int) \
duke@1 388 static_field(Universe, _bootstrapping, bool) \
duke@1 389 static_field(Universe, _fully_initialized, bool) \
duke@1 390 static_field(Universe, _verify_count, int) \
twisti@33160 391 static_field(Universe, _verify_oop_mask, uintptr_t) \
twisti@33160 392 static_field(Universe, _verify_oop_bits, uintptr_t) \
twisti@20011 393 static_field(Universe, _non_oop_bits, intptr_t) \
stefank@54780 394 \
stefank@54780 395 /******************/ \
stefank@54780 396 /* CompressedOops */ \
stefank@54780 397 /******************/ \
stefank@54780 398 \
stefank@54780 399 static_field(CompressedOops, _narrow_oop._base, address) \
stefank@54780 400 static_field(CompressedOops, _narrow_oop._shift, int) \
stefank@54780 401 static_field(CompressedOops, _narrow_oop._use_implicit_null_checks, bool) \
stefank@54780 402 \
stefank@54780 403 /***************************/ \
stefank@54780 404 /* CompressedKlassPointers */ \
stefank@54780 405 /***************************/ \
stefank@54780 406 \
stefank@54780 407 static_field(CompressedKlassPointers, _narrow_klass._base, address) \
stefank@54780 408 static_field(CompressedKlassPointers, _narrow_klass._shift, int) \
duke@1 409 \
twisti@20011 410 /******/ \
twisti@20011 411 /* os */ \
twisti@20011 412 /******/ \
twisti@20011 413 \
twisti@20011 414 static_field(os, _polling_page, address) \
twisti@20011 415 \
stefank@49730 416 /**********/ \
stefank@49730 417 /* Memory */ \
stefank@49730 418 /**********/ \
duke@1 419 \
iklam@52514 420 static_field(MetaspaceObj, _shared_metaspace_base, void*) \
iklam@52514 421 static_field(MetaspaceObj, _shared_metaspace_top, void*) \
duke@1 422 nonstatic_field(ThreadLocalAllocBuffer, _start, HeapWord*) \
duke@1 423 nonstatic_field(ThreadLocalAllocBuffer, _top, HeapWord*) \
duke@1 424 nonstatic_field(ThreadLocalAllocBuffer, _end, HeapWord*) \
twisti@33160 425 nonstatic_field(ThreadLocalAllocBuffer, _pf_top, HeapWord*) \
duke@1 426 nonstatic_field(ThreadLocalAllocBuffer, _desired_size, size_t) \
duke@1 427 nonstatic_field(ThreadLocalAllocBuffer, _refill_waste_limit, size_t) \
zmajo@38220 428 static_field(ThreadLocalAllocBuffer, _reserve_for_allocation_prefetch, int) \
duke@1 429 static_field(ThreadLocalAllocBuffer, _target_refills, unsigned) \
twisti@20011 430 nonstatic_field(ThreadLocalAllocBuffer, _number_of_refills, unsigned) \
twisti@20011 431 nonstatic_field(ThreadLocalAllocBuffer, _fast_refill_waste, unsigned) \
twisti@20011 432 nonstatic_field(ThreadLocalAllocBuffer, _slow_refill_waste, unsigned) \
twisti@20011 433 nonstatic_field(ThreadLocalAllocBuffer, _gc_waste, unsigned) \
twisti@20011 434 nonstatic_field(ThreadLocalAllocBuffer, _slow_allocations, unsigned) \
duke@1 435 nonstatic_field(VirtualSpace, _low_boundary, char*) \
duke@1 436 nonstatic_field(VirtualSpace, _high_boundary, char*) \
duke@1 437 nonstatic_field(VirtualSpace, _low, char*) \
duke@1 438 nonstatic_field(VirtualSpace, _high, char*) \
duke@1 439 nonstatic_field(VirtualSpace, _lower_high, char*) \
duke@1 440 nonstatic_field(VirtualSpace, _middle_high, char*) \
duke@1 441 nonstatic_field(VirtualSpace, _upper_high, char*) \
duke@1 442 \
duke@1 443 /************************/ \
duke@1 444 /* PerfMemory - jvmstat */ \
duke@1 445 /************************/ \
duke@1 446 \
duke@1 447 nonstatic_field(PerfDataPrologue, magic, jint) \
duke@1 448 nonstatic_field(PerfDataPrologue, byte_order, jbyte) \
duke@1 449 nonstatic_field(PerfDataPrologue, major_version, jbyte) \
duke@1 450 nonstatic_field(PerfDataPrologue, minor_version, jbyte) \
duke@1 451 nonstatic_field(PerfDataPrologue, accessible, jbyte) \
duke@1 452 nonstatic_field(PerfDataPrologue, used, jint) \
duke@1 453 nonstatic_field(PerfDataPrologue, overflow, jint) \
duke@1 454 nonstatic_field(PerfDataPrologue, mod_time_stamp, jlong) \
duke@1 455 nonstatic_field(PerfDataPrologue, entry_offset, jint) \
duke@1 456 nonstatic_field(PerfDataPrologue, num_entries, jint) \
duke@1 457 \
duke@1 458 nonstatic_field(PerfDataEntry, entry_length, jint) \
duke@1 459 nonstatic_field(PerfDataEntry, name_offset, jint) \
duke@1 460 nonstatic_field(PerfDataEntry, vector_length, jint) \
duke@1 461 nonstatic_field(PerfDataEntry, data_type, jbyte) \
duke@1 462 nonstatic_field(PerfDataEntry, flags, jbyte) \
duke@1 463 nonstatic_field(PerfDataEntry, data_units, jbyte) \
duke@1 464 nonstatic_field(PerfDataEntry, data_variability, jbyte) \
duke@1 465 nonstatic_field(PerfDataEntry, data_offset, jint) \
duke@1 466 \
duke@1 467 static_field(PerfMemory, _start, char*) \
duke@1 468 static_field(PerfMemory, _end, char*) \
duke@1 469 static_field(PerfMemory, _top, char*) \
duke@1 470 static_field(PerfMemory, _capacity, size_t) \
duke@1 471 static_field(PerfMemory, _prologue, PerfDataPrologue*) \
coleenp@47765 472 static_field(PerfMemory, _initialized, int) \
duke@1 473 \
jiangli@28822 474 /********************/ \
duke@1 475 /* SystemDictionary */ \
duke@1 476 /********************/ \
duke@1 477 \
jwilhelm@32623 478 static_field(SystemDictionary, _system_loader_lock_obj, oop) \
coleenp@33602 479 static_field(SystemDictionary, WK_KLASS(Object_klass), InstanceKlass*) \
coleenp@33602 480 static_field(SystemDictionary, WK_KLASS(String_klass), InstanceKlass*) \
coleenp@33602 481 static_field(SystemDictionary, WK_KLASS(Class_klass), InstanceKlass*) \
coleenp@33602 482 static_field(SystemDictionary, WK_KLASS(ClassLoader_klass), InstanceKlass*) \
coleenp@33602 483 static_field(SystemDictionary, WK_KLASS(System_klass), InstanceKlass*) \
coleenp@33602 484 static_field(SystemDictionary, WK_KLASS(Thread_klass), InstanceKlass*) \
coleenp@33602 485 static_field(SystemDictionary, WK_KLASS(ThreadGroup_klass), InstanceKlass*) \
coleenp@33602 486 static_field(SystemDictionary, WK_KLASS(MethodHandle_klass), InstanceKlass*) \
jwilhelm@32623 487 static_field(SystemDictionary, _java_system_loader, oop) \
duke@1 488 \
never@10567 489 /*************/ \
never@10567 490 /* vmSymbols */ \
never@10567 491 /*************/ \
never@10567 492 \
jwilhelm@32623 493 static_field(vmSymbols, _symbols[0], Symbol*) \
never@10567 494 \
duke@1 495 /*******************/ \
duke@1 496 /* HashtableBucket */ \
duke@1 497 /*******************/ \
duke@1 498 \
jwilhelm@32623 499 nonstatic_field(HashtableBucket<mtInternal>, _entry, BasicHashtableEntry<mtInternal>*) \
duke@1 500 \
duke@1 501 /******************/ \
duke@1 502 /* HashtableEntry */ \
duke@1 503 /******************/ \
duke@1 504 \
zgu@13195 505 nonstatic_field(BasicHashtableEntry<mtInternal>, _next, BasicHashtableEntry<mtInternal>*) \
zgu@13195 506 nonstatic_field(BasicHashtableEntry<mtInternal>, _hash, unsigned int) \
zgu@13195 507 nonstatic_field(IntptrHashtableEntry, _literal, intptr_t) \
duke@1 508 \
duke@1 509 /*************/ \
duke@1 510 /* Hashtable */ \
duke@1 511 /*************/ \
duke@1 512 \
jwilhelm@32623 513 nonstatic_field(BasicHashtable<mtInternal>, _table_size, int) \
jwilhelm@32623 514 nonstatic_field(BasicHashtable<mtInternal>, _buckets, HashtableBucket<mtInternal>*) \
tschatzl@45114 515 volatile_nonstatic_field(BasicHashtable<mtInternal>, _free_list, BasicHashtableEntry<mtInternal>*) \
jwilhelm@32623 516 nonstatic_field(BasicHashtable<mtInternal>, _first_free_entry, char*) \
jwilhelm@32623 517 nonstatic_field(BasicHashtable<mtInternal>, _end_block, char*) \
jwilhelm@32623 518 nonstatic_field(BasicHashtable<mtInternal>, _entry_size, int) \
duke@1 519 \
duke@1 520 /*******************/ \
coleenp@46729 521 /* ClassLoaderData */ \
duke@1 522 /*******************/ \
coleenp@49824 523 nonstatic_field(ClassLoaderData, _class_loader, OopHandle) \
coleenp@13728 524 nonstatic_field(ClassLoaderData, _next, ClassLoaderData*) \
dsamersoff@42889 525 volatile_nonstatic_field(ClassLoaderData, _klasses, Klass*) \
lfoltan@51444 526 nonstatic_field(ClassLoaderData, _is_unsafe_anonymous, bool) \
coleenp@46729 527 volatile_nonstatic_field(ClassLoaderData, _dictionary, Dictionary*) \
coleenp@13728 528 \
coleenp@55268 529 static_ptr_volatile_field(ClassLoaderDataGraph, _head, ClassLoaderData*) \
duke@1 530 \
twisti@20011 531 /**********/ \
twisti@20011 532 /* Arrays */ \
twisti@20011 533 /**********/ \
twisti@20011 534 \
twisti@20011 535 nonstatic_field(Array<Klass*>, _length, int) \
twisti@20011 536 nonstatic_field(Array<Klass*>, _data[0], Klass*) \
twisti@20011 537 \
never@10547 538 /*******************/ \
never@10547 539 /* GrowableArrays */ \
never@10547 540 /*******************/ \
never@10547 541 \
never@10547 542 nonstatic_field(GenericGrowableArray, _len, int) \
never@10547 543 nonstatic_field(GenericGrowableArray, _max, int) \
never@10547 544 nonstatic_field(GenericGrowableArray, _arena, Arena*) \
twisti@20011 545 nonstatic_field(GrowableArray<int>, _data, int*) \
never@10547 546 \
duke@1 547 /********************************/ \
duke@1 548 /* CodeCache (NOTE: incomplete) */ \
duke@1 549 /********************************/ \
duke@1 550 \
jwilhelm@32623 551 static_field(CodeCache, _heaps, GrowableArray<CodeHeap*>*) \
twisti@33160 552 static_field(CodeCache, _low_bound, address) \
twisti@33160 553 static_field(CodeCache, _high_bound, address) \
duke@1 554 \
duke@1 555 /*******************************/ \
duke@1 556 /* CodeHeap (NOTE: incomplete) */ \
duke@1 557 /*******************************/ \
duke@1 558 \
duke@1 559 nonstatic_field(CodeHeap, _memory, VirtualSpace) \
duke@1 560 nonstatic_field(CodeHeap, _segmap, VirtualSpace) \
duke@1 561 nonstatic_field(CodeHeap, _log2_segment_size, int) \
duke@1 562 nonstatic_field(HeapBlock, _header, HeapBlock::Header) \
duke@1 563 nonstatic_field(HeapBlock::Header, _length, size_t) \
duke@1 564 nonstatic_field(HeapBlock::Header, _used, bool) \
duke@1 565 \
duke@1 566 /**********************************/ \
duke@1 567 /* Interpreter (NOTE: incomplete) */ \
duke@1 568 /**********************************/ \
duke@1 569 \
duke@1 570 static_field(AbstractInterpreter, _code, StubQueue*) \
duke@1 571 \
duke@1 572 /****************************/ \
duke@1 573 /* Stubs (NOTE: incomplete) */ \
duke@1 574 /****************************/ \
duke@1 575 \
duke@1 576 nonstatic_field(StubQueue, _stub_buffer, address) \
duke@1 577 nonstatic_field(StubQueue, _buffer_limit, int) \
duke@1 578 nonstatic_field(StubQueue, _queue_begin, int) \
duke@1 579 nonstatic_field(StubQueue, _queue_end, int) \
duke@1 580 nonstatic_field(StubQueue, _number_of_stubs, int) \
duke@1 581 nonstatic_field(InterpreterCodelet, _size, int) \
duke@1 582 nonstatic_field(InterpreterCodelet, _description, const char*) \
duke@1 583 nonstatic_field(InterpreterCodelet, _bytecode, Bytecodes::Code) \
duke@1 584 \
duke@1 585 /***********************************/ \
duke@1 586 /* StubRoutines (NOTE: incomplete) */ \
duke@1 587 /***********************************/ \
duke@1 588 \
twisti@20011 589 static_field(StubRoutines, _verify_oop_count, jint) \
duke@1 590 static_field(StubRoutines, _call_stub_return_address, address) \
twisti@20011 591 static_field(StubRoutines, _aescrypt_encryptBlock, address) \
twisti@20011 592 static_field(StubRoutines, _aescrypt_decryptBlock, address) \
twisti@20011 593 static_field(StubRoutines, _cipherBlockChaining_encryptAESCrypt, address) \
twisti@20011 594 static_field(StubRoutines, _cipherBlockChaining_decryptAESCrypt, address) \
kvn@35154 595 static_field(StubRoutines, _counterMode_AESCrypt, address) \
ascarpino@31404 596 static_field(StubRoutines, _ghash_processBlocks, address) \
kvn@50860 597 static_field(StubRoutines, _base64_encodeBlock, address) \
twisti@20011 598 static_field(StubRoutines, _updateBytesCRC32, address) \
twisti@20011 599 static_field(StubRoutines, _crc_table_adr, address) \
kvn@33066 600 static_field(StubRoutines, _crc32c_table_addr, address) \
kvn@31515 601 static_field(StubRoutines, _updateBytesCRC32C, address) \
kvn@26434 602 static_field(StubRoutines, _multiplyToLen, address) \
kvn@31129 603 static_field(StubRoutines, _squareToLen, address) \
kvn@31129 604 static_field(StubRoutines, _mulAdd, address) \
iveresov@33089 605 static_field(StubRoutines, _dexp, address) \
iveresov@33465 606 static_field(StubRoutines, _dlog, address) \
vdeshpande@38018 607 static_field(StubRoutines, _dlog10, address) \
kvn@35146 608 static_field(StubRoutines, _dpow, address) \
vdeshpande@35540 609 static_field(StubRoutines, _dsin, address) \
vdeshpande@35540 610 static_field(StubRoutines, _dcos, address) \
vdeshpande@38018 611 static_field(StubRoutines, _dtan, address) \
kvn@35110 612 static_field(StubRoutines, _vectorizedMismatch, address) \
twisti@33160 613 static_field(StubRoutines, _jbyte_arraycopy, address) \
twisti@33160 614 static_field(StubRoutines, _jshort_arraycopy, address) \
twisti@33160 615 static_field(StubRoutines, _jint_arraycopy, address) \
twisti@33160 616 static_field(StubRoutines, _jlong_arraycopy, address) \
twisti@33160 617 static_field(StubRoutines, _oop_arraycopy, address) \
twisti@33160 618 static_field(StubRoutines, _oop_arraycopy_uninit, address) \
twisti@33160 619 static_field(StubRoutines, _jbyte_disjoint_arraycopy, address) \
twisti@33160 620 static_field(StubRoutines, _jshort_disjoint_arraycopy, address) \
twisti@33160 621 static_field(StubRoutines, _jint_disjoint_arraycopy, address) \
twisti@33160 622 static_field(StubRoutines, _jlong_disjoint_arraycopy, address) \
twisti@33160 623 static_field(StubRoutines, _oop_disjoint_arraycopy, address) \
twisti@33160 624 static_field(StubRoutines, _oop_disjoint_arraycopy_uninit, address) \
twisti@33160 625 static_field(StubRoutines, _arrayof_jbyte_arraycopy, address) \
twisti@33160 626 static_field(StubRoutines, _arrayof_jshort_arraycopy, address) \
twisti@33160 627 static_field(StubRoutines, _arrayof_jint_arraycopy, address) \
twisti@33160 628 static_field(StubRoutines, _arrayof_jlong_arraycopy, address) \
twisti@33160 629 static_field(StubRoutines, _arrayof_oop_arraycopy, address) \
twisti@33160 630 static_field(StubRoutines, _arrayof_oop_arraycopy_uninit, address) \
twisti@33160 631 static_field(StubRoutines, _arrayof_jbyte_disjoint_arraycopy, address) \
twisti@33160 632 static_field(StubRoutines, _arrayof_jshort_disjoint_arraycopy, address) \
twisti@33160 633 static_field(StubRoutines, _arrayof_jint_disjoint_arraycopy, address) \
twisti@33160 634 static_field(StubRoutines, _arrayof_jlong_disjoint_arraycopy, address) \
twisti@33160 635 static_field(StubRoutines, _arrayof_oop_disjoint_arraycopy, address) \
twisti@33160 636 static_field(StubRoutines, _arrayof_oop_disjoint_arraycopy_uninit, address) \
twisti@33160 637 static_field(StubRoutines, _checkcast_arraycopy, address) \
twisti@33160 638 static_field(StubRoutines, _checkcast_arraycopy_uninit, address) \
twisti@33160 639 static_field(StubRoutines, _unsafe_arraycopy, address) \
twisti@33160 640 static_field(StubRoutines, _generic_arraycopy, address) \
twisti@20011 641 \
twisti@20011 642 /*****************/ \
twisti@20011 643 /* SharedRuntime */ \
twisti@20011 644 /*****************/ \
twisti@20011 645 \
twisti@33160 646 static_field(SharedRuntime, _wrong_method_blob, RuntimeStub*) \
twisti@20011 647 static_field(SharedRuntime, _ic_miss_blob, RuntimeStub*) \
twisti@33160 648 static_field(SharedRuntime, _deopt_blob, DeoptimizationBlob*) \
duke@1 649 \
duke@1 650 /***************************************/ \
duke@1 651 /* PcDesc and other compiled code info */ \
duke@1 652 /***************************************/ \
duke@1 653 \
duke@1 654 nonstatic_field(PcDesc, _pc_offset, int) \
duke@1 655 nonstatic_field(PcDesc, _scope_decode_offset, int) \
kvn@4095 656 nonstatic_field(PcDesc, _obj_decode_offset, int) \
never@10517 657 nonstatic_field(PcDesc, _flags, int) \
duke@1 658 \
duke@1 659 /***************************************************/ \
duke@1 660 /* CodeBlobs (NOTE: incomplete, but only a little) */ \
duke@1 661 /***************************************************/ \
duke@1 662 \
rbackman@38133 663 nonstatic_field(CodeBlob, _name, const char*) \
rbackman@38133 664 nonstatic_field(CodeBlob, _size, int) \
rbackman@38133 665 nonstatic_field(CodeBlob, _header_size, int) \
rbackman@38133 666 nonstatic_field(CodeBlob, _frame_complete_offset, int) \
rbackman@38133 667 nonstatic_field(CodeBlob, _data_offset, int) \
rbackman@38133 668 nonstatic_field(CodeBlob, _frame_size, int) \
rbackman@38133 669 nonstatic_field(CodeBlob, _oop_maps, ImmutableOopMapSet*) \
rbackman@38133 670 nonstatic_field(CodeBlob, _code_begin, address) \
rbackman@38133 671 nonstatic_field(CodeBlob, _code_end, address) \
rbackman@38133 672 nonstatic_field(CodeBlob, _content_begin, address) \
rbackman@38133 673 nonstatic_field(CodeBlob, _data_end, address) \
twisti@33160 674 \
twisti@33160 675 nonstatic_field(DeoptimizationBlob, _unpack_offset, int) \
duke@1 676 \
never@10517 677 nonstatic_field(RuntimeStub, _caller_must_gc_arguments, bool) \
never@10517 678 \
rbackman@38133 679 /********************************************************/ \
rbackman@38133 680 /* CompiledMethod (NOTE: incomplete, but only a little) */ \
rbackman@38133 681 /********************************************************/ \
rbackman@38133 682 \
rbackman@38133 683 nonstatic_field(CompiledMethod, _method, Method*) \
rbackman@38133 684 volatile_nonstatic_field(CompiledMethod, _exception_cache, ExceptionCache*) \
rbackman@38133 685 nonstatic_field(CompiledMethod, _scopes_data_begin, address) \
rbackman@38133 686 nonstatic_field(CompiledMethod, _deopt_handler_begin, address) \
rbackman@38133 687 nonstatic_field(CompiledMethod, _deopt_mh_handler_begin, address) \
rbackman@38133 688 \
duke@1 689 /**************************************************/ \
duke@1 690 /* NMethods (NOTE: incomplete, but only a little) */ \
duke@1 691 /**************************************************/ \
duke@1 692 \
jwilhelm@32623 693 nonstatic_field(nmethod, _entry_bci, int) \
jwilhelm@32623 694 nonstatic_field(nmethod, _osr_link, nmethod*) \
gziemski@49902 695 nonstatic_field(nmethod, _state, volatile signed char) \
jwilhelm@32623 696 nonstatic_field(nmethod, _exception_offset, int) \
jwilhelm@32623 697 nonstatic_field(nmethod, _orig_pc_offset, int) \
jwilhelm@32623 698 nonstatic_field(nmethod, _stub_offset, int) \
jwilhelm@32623 699 nonstatic_field(nmethod, _consts_offset, int) \
jwilhelm@32623 700 nonstatic_field(nmethod, _oops_offset, int) \
jwilhelm@32623 701 nonstatic_field(nmethod, _metadata_offset, int) \
jwilhelm@32623 702 nonstatic_field(nmethod, _scopes_pcs_offset, int) \
jwilhelm@32623 703 nonstatic_field(nmethod, _dependencies_offset, int) \
jwilhelm@32623 704 nonstatic_field(nmethod, _handler_table_offset, int) \
jwilhelm@32623 705 nonstatic_field(nmethod, _nul_chk_table_offset, int) \
jwilhelm@32623 706 nonstatic_field(nmethod, _nmethod_end_offset, int) \
jwilhelm@32623 707 nonstatic_field(nmethod, _entry_point, address) \
jwilhelm@32623 708 nonstatic_field(nmethod, _verified_entry_point, address) \
jwilhelm@32623 709 nonstatic_field(nmethod, _osr_entry_point, address) \
jwilhelm@32623 710 volatile_nonstatic_field(nmethod, _lock_count, jint) \
rehn@47099 711 volatile_nonstatic_field(nmethod, _stack_traversal_mark, long) \
jwilhelm@32623 712 nonstatic_field(nmethod, _compile_id, int) \
jwilhelm@32623 713 nonstatic_field(nmethod, _comp_level, int) \
jwilhelm@32623 714 \
jwilhelm@32623 715 unchecked_c2_static_field(Deoptimization, _trap_reason_name, void*) \
never@10547 716 \
twisti@33160 717 nonstatic_field(Deoptimization::UnrollBlock, _size_of_deoptimized_frame, int) \
twisti@33160 718 nonstatic_field(Deoptimization::UnrollBlock, _caller_adjustment, int) \
twisti@33160 719 nonstatic_field(Deoptimization::UnrollBlock, _number_of_frames, int) \
twisti@33160 720 nonstatic_field(Deoptimization::UnrollBlock, _total_frame_sizes, int) \
twisti@34173 721 nonstatic_field(Deoptimization::UnrollBlock, _unpack_kind, int) \
twisti@33160 722 nonstatic_field(Deoptimization::UnrollBlock, _frame_sizes, intptr_t*) \
twisti@33160 723 nonstatic_field(Deoptimization::UnrollBlock, _frame_pcs, address*) \
twisti@33160 724 nonstatic_field(Deoptimization::UnrollBlock, _register_block, intptr_t*) \
twisti@33160 725 nonstatic_field(Deoptimization::UnrollBlock, _return_type, BasicType) \
twisti@33160 726 nonstatic_field(Deoptimization::UnrollBlock, _initial_info, intptr_t) \
twisti@33160 727 nonstatic_field(Deoptimization::UnrollBlock, _caller_actual_parameters, int) \
twisti@33160 728 \
duke@1 729 /********************************/ \
duke@1 730 /* JavaCalls (NOTE: incomplete) */ \
duke@1 731 /********************************/ \
duke@1 732 \
duke@1 733 nonstatic_field(JavaCallWrapper, _anchor, JavaFrameAnchor) \
duke@1 734 /********************************/ \
duke@1 735 /* JavaFrameAnchor (NOTE: incomplete) */ \
duke@1 736 /********************************/ \
duke@1 737 volatile_nonstatic_field(JavaFrameAnchor, _last_Java_sp, intptr_t*) \
duke@1 738 volatile_nonstatic_field(JavaFrameAnchor, _last_Java_pc, address) \
duke@1 739 \
duke@1 740 /******************************/ \
duke@1 741 /* Threads (NOTE: incomplete) */ \
duke@1 742 /******************************/ \
duke@1 743 \
rehn@54955 744 static_field(Threads, _number_of_threads, int) \
rehn@54955 745 static_field(Threads, _number_of_non_daemon_threads, int) \
rehn@54955 746 static_field(Threads, _return_code, int) \
rehn@54955 747 \
rehn@54955 748 static_ptr_volatile_field(ThreadsSMRSupport, _java_thread_list, ThreadsList*) \
rehn@54955 749 nonstatic_field(ThreadsList, _length, const uint) \
rehn@54955 750 nonstatic_field(ThreadsList, _threads, JavaThread *const *const) \
duke@1 751 \
never@10547 752 nonstatic_field(ThreadShadow, _pending_exception, oop) \
never@10547 753 nonstatic_field(ThreadShadow, _exception_file, const char*) \
never@10547 754 nonstatic_field(ThreadShadow, _exception_line, int) \
jwilhelm@32623 755 volatile_nonstatic_field(Thread, _suspend_flags, uint32_t) \
duke@1 756 nonstatic_field(Thread, _active_handles, JNIHandleBlock*) \
duke@1 757 nonstatic_field(Thread, _tlab, ThreadLocalAllocBuffer) \
twisti@20011 758 nonstatic_field(Thread, _allocated_bytes, jlong) \
duke@1 759 nonstatic_field(Thread, _current_pending_monitor, ObjectMonitor*) \
duke@1 760 nonstatic_field(Thread, _current_pending_monitor_is_from_java, bool) \
duke@1 761 nonstatic_field(Thread, _current_waiting_monitor, ObjectMonitor*) \
duke@1 762 nonstatic_field(NamedThread, _name, char*) \
minqi@4489 763 nonstatic_field(NamedThread, _processed_thread, JavaThread*) \
duke@1 764 nonstatic_field(JavaThread, _threadObj, oop) \
duke@1 765 nonstatic_field(JavaThread, _anchor, JavaFrameAnchor) \
never@10547 766 nonstatic_field(JavaThread, _vm_result, oop) \
coleenp@13728 767 nonstatic_field(JavaThread, _vm_result_2, Metadata*) \
never@10547 768 nonstatic_field(JavaThread, _pending_async_exception, oop) \
never@10547 769 volatile_nonstatic_field(JavaThread, _exception_oop, oop) \
never@10547 770 volatile_nonstatic_field(JavaThread, _exception_pc, address) \
twisti@20011 771 volatile_nonstatic_field(JavaThread, _is_method_handle_return, int) \
never@10547 772 nonstatic_field(JavaThread, _special_runtime_exit_condition, JavaThread::AsyncRequests) \
never@10547 773 nonstatic_field(JavaThread, _saved_exception_pc, address) \
jwilhelm@32623 774 volatile_nonstatic_field(JavaThread, _thread_state, JavaThreadState) \
duke@1 775 nonstatic_field(JavaThread, _osthread, OSThread*) \
duke@1 776 nonstatic_field(JavaThread, _stack_base, address) \
duke@1 777 nonstatic_field(JavaThread, _stack_size, size_t) \
never@10547 778 nonstatic_field(JavaThread, _vframe_array_head, vframeArray*) \
never@10547 779 nonstatic_field(JavaThread, _vframe_array_last, vframeArray*) \
sballal@45371 780 volatile_nonstatic_field(JavaThread, _terminated, JavaThread::TerminatedTypes) \
never@10547 781 nonstatic_field(Thread, _resource_area, ResourceArea*) \
never@10547 782 nonstatic_field(CompilerThread, _env, ciEnv*) \
duke@1 783 \
duke@1 784 /************/ \
duke@1 785 /* OSThread */ \
duke@1 786 /************/ \
duke@1 787 \
dholmes@8735 788 volatile_nonstatic_field(OSThread, _interrupted, jint) \
dbuck@46636 789 volatile_nonstatic_field(OSThread, _state, ThreadState) \
duke@1 790 \
duke@1 791 /************************/ \
duke@1 792 /* OopMap and OopMapSet */ \
duke@1 793 /************************/ \
duke@1 794 \
duke@1 795 nonstatic_field(OopMap, _pc_offset, int) \
duke@1 796 nonstatic_field(OopMap, _omv_count, int) \
duke@1 797 nonstatic_field(OopMap, _write_stream, CompressedWriteStream*) \
duke@1 798 nonstatic_field(OopMapSet, _om_count, int) \
duke@1 799 nonstatic_field(OopMapSet, _om_size, int) \
duke@1 800 nonstatic_field(OopMapSet, _om_data, OopMap**) \
duke@1 801 \
rbackman@30590 802 nonstatic_field(ImmutableOopMapSet, _count, int) \
rbackman@30590 803 nonstatic_field(ImmutableOopMapSet, _size, int) \
rbackman@30590 804 \
rbackman@30590 805 nonstatic_field(ImmutableOopMapPair, _pc_offset, int) \
rbackman@30590 806 nonstatic_field(ImmutableOopMapPair, _oopmap_offset, int) \
rbackman@30590 807 \
rbackman@30590 808 nonstatic_field(ImmutableOopMap, _count, int) \
rbackman@30590 809 \
duke@1 810 /*********************************/ \
duke@1 811 /* JNIHandles and JNIHandleBlock */ \
duke@1 812 /*********************************/ \
kbarrett@48787 813 static_field(JNIHandles, _global_handles, OopStorage*) \
kbarrett@48787 814 static_field(JNIHandles, _weak_global_handles, OopStorage*) \
jwilhelm@32623 815 unchecked_nonstatic_field(JNIHandleBlock, _handles, JNIHandleBlock::block_size_in_oops * sizeof(Oop)) /* Note: no type */ \
duke@1 816 nonstatic_field(JNIHandleBlock, _top, int) \
duke@1 817 nonstatic_field(JNIHandleBlock, _next, JNIHandleBlock*) \
duke@1 818 \
duke@1 819 /********************/ \
duke@1 820 /* CompressedStream */ \
duke@1 821 /********************/ \
duke@1 822 \
duke@1 823 nonstatic_field(CompressedStream, _buffer, u_char*) \
duke@1 824 nonstatic_field(CompressedStream, _position, int) \
duke@1 825 \
duke@1 826 /*********************************/ \
duke@1 827 /* VMRegImpl (NOTE: incomplete) */ \
duke@1 828 /*********************************/ \
duke@1 829 \
duke@1 830 static_field(VMRegImpl, regName[0], const char*) \
duke@1 831 static_field(VMRegImpl, stack0, VMReg) \
duke@1 832 \
duke@1 833 /*******************************/ \
duke@1 834 /* Runtime1 (NOTE: incomplete) */ \
duke@1 835 /*******************************/ \
duke@1 836 \
never@10547 837 unchecked_c1_static_field(Runtime1, _blobs, sizeof(Runtime1::_blobs)) /* NOTE: no type */ \
never@10547 838 \
never@10547 839 /**************/ \
never@10547 840 /* CI */ \
never@10547 841 /************/ \
never@10547 842 \
jwilhelm@32623 843 nonstatic_field(ciEnv, _compiler_data, void*) \
jwilhelm@32623 844 nonstatic_field(ciEnv, _failure_reason, const char*) \
jwilhelm@32623 845 nonstatic_field(ciEnv, _factory, ciObjectFactory*) \
jwilhelm@32623 846 nonstatic_field(ciEnv, _dependencies, Dependencies*) \
jwilhelm@32623 847 nonstatic_field(ciEnv, _task, CompileTask*) \
jwilhelm@32623 848 nonstatic_field(ciEnv, _arena, Arena*) \
never@10547 849 \
jwilhelm@32623 850 nonstatic_field(ciBaseObject, _ident, uint) \
coleenp@13728 851 \
jwilhelm@32623 852 nonstatic_field(ciObject, _handle, jobject) \
jwilhelm@32623 853 nonstatic_field(ciObject, _klass, ciKlass*) \
never@10547 854 \
jwilhelm@32623 855 nonstatic_field(ciMetadata, _metadata, Metadata*) \
coleenp@13728 856 \
jwilhelm@32623 857 nonstatic_field(ciSymbol, _symbol, Symbol*) \
never@10547 858 \
jwilhelm@32623 859 nonstatic_field(ciType, _basic_type, BasicType) \
never@10547 860 \
jwilhelm@32623 861 nonstatic_field(ciKlass, _name, ciSymbol*) \
never@10547 862 \
jwilhelm@32623 863 nonstatic_field(ciArrayKlass, _dimension, jint) \
never@10547 864 \
jwilhelm@32623 865 nonstatic_field(ciObjArrayKlass, _element_klass, ciKlass*) \
jwilhelm@32623 866 nonstatic_field(ciObjArrayKlass, _base_element_klass, ciKlass*) \
never@10547 867 \
jwilhelm@32623 868 nonstatic_field(ciInstanceKlass, _init_state, InstanceKlass::ClassState) \
jwilhelm@32623 869 nonstatic_field(ciInstanceKlass, _is_shared, bool) \
never@10547 870 \
jwilhelm@32623 871 nonstatic_field(ciMethod, _interpreter_invocation_count, int) \
jwilhelm@32623 872 nonstatic_field(ciMethod, _interpreter_throwout_count, int) \
jwilhelm@32623 873 nonstatic_field(ciMethod, _instructions_size, int) \
never@10547 874 \
jwilhelm@32623 875 nonstatic_field(ciMethodData, _data_size, int) \
jwilhelm@32623 876 nonstatic_field(ciMethodData, _state, u_char) \
jwilhelm@32623 877 nonstatic_field(ciMethodData, _extra_data_size, int) \
jwilhelm@32623 878 nonstatic_field(ciMethodData, _data, intptr_t*) \
jwilhelm@32623 879 nonstatic_field(ciMethodData, _hint_di, int) \
jwilhelm@32623 880 nonstatic_field(ciMethodData, _eflags, intx) \
jwilhelm@32623 881 nonstatic_field(ciMethodData, _arg_local, intx) \
jwilhelm@32623 882 nonstatic_field(ciMethodData, _arg_stack, intx) \
jwilhelm@32623 883 nonstatic_field(ciMethodData, _arg_returned, intx) \
jwilhelm@32623 884 nonstatic_field(ciMethodData, _current_mileage, int) \
jwilhelm@32623 885 nonstatic_field(ciMethodData, _orig, MethodData) \
never@10547 886 \
jwilhelm@32623 887 nonstatic_field(ciField, _holder, ciInstanceKlass*) \
jwilhelm@32623 888 nonstatic_field(ciField, _name, ciSymbol*) \
jwilhelm@32623 889 nonstatic_field(ciField, _signature, ciSymbol*) \
jwilhelm@32623 890 nonstatic_field(ciField, _offset, int) \
jwilhelm@32623 891 nonstatic_field(ciField, _is_constant, bool) \
jwilhelm@32623 892 nonstatic_field(ciField, _constant_value, ciConstant) \
never@10547 893 \
jwilhelm@32623 894 nonstatic_field(ciObjectFactory, _ci_metadata, GrowableArray<ciMetadata*>*) \
jwilhelm@32623 895 nonstatic_field(ciObjectFactory, _symbols, GrowableArray<ciSymbol*>*) \
jwilhelm@32623 896 nonstatic_field(ciObjectFactory, _unloaded_methods, GrowableArray<ciMethod*>*) \
never@10547 897 \
jwilhelm@32623 898 nonstatic_field(ciConstant, _type, BasicType) \
jwilhelm@32623 899 nonstatic_field(ciConstant, _value._int, jint) \
jwilhelm@32623 900 nonstatic_field(ciConstant, _value._long, jlong) \
jwilhelm@32623 901 nonstatic_field(ciConstant, _value._float, jfloat) \
jwilhelm@32623 902 nonstatic_field(ciConstant, _value._double, jdouble) \
jwilhelm@32623 903 nonstatic_field(ciConstant, _value._object, ciObject*) \
duke@1 904 \
duke@1 905 /************/ \
duke@1 906 /* Monitors */ \
duke@1 907 /************/ \
duke@1 908 \
duke@1 909 volatile_nonstatic_field(ObjectMonitor, _header, markOop) \
duke@1 910 unchecked_nonstatic_field(ObjectMonitor, _object, sizeof(void *)) /* NOTE: no type */ \
duke@1 911 unchecked_nonstatic_field(ObjectMonitor, _owner, sizeof(void *)) /* NOTE: no type */ \
dcubed@54609 912 volatile_nonstatic_field(ObjectMonitor, _contentions, jint) \
dcubed@27165 913 volatile_nonstatic_field(ObjectMonitor, _waiters, jint) \
duke@1 914 volatile_nonstatic_field(ObjectMonitor, _recursions, intptr_t) \
duke@1 915 nonstatic_field(ObjectMonitor, FreeNext, ObjectMonitor*) \
duke@1 916 volatile_nonstatic_field(BasicLock, _displaced_header, markOop) \
duke@1 917 nonstatic_field(BasicObjectLock, _lock, BasicLock) \
duke@1 918 nonstatic_field(BasicObjectLock, _obj, oop) \
coleenp@47634 919 static_ptr_volatile_field(ObjectSynchronizer, gBlockList, PaddedObjectMonitor*) \
duke@1 920 \
duke@1 921 /*********************/ \
duke@1 922 /* Matcher (C2 only) */ \
duke@1 923 /*********************/ \
duke@1 924 \
never@10547 925 unchecked_c2_static_field(Matcher, _regEncode, sizeof(Matcher::_regEncode)) /* NOTE: no type */ \
never@10547 926 \
jwilhelm@32623 927 c2_nonstatic_field(Node, _in, Node**) \
jwilhelm@32623 928 c2_nonstatic_field(Node, _out, Node**) \
jwilhelm@32623 929 c2_nonstatic_field(Node, _cnt, node_idx_t) \
jwilhelm@32623 930 c2_nonstatic_field(Node, _max, node_idx_t) \
jwilhelm@32623 931 c2_nonstatic_field(Node, _outcnt, node_idx_t) \
jwilhelm@32623 932 c2_nonstatic_field(Node, _outmax, node_idx_t) \
jwilhelm@32623 933 c2_nonstatic_field(Node, _idx, const node_idx_t) \
jwilhelm@32623 934 c2_nonstatic_field(Node, _class_id, jushort) \
jwilhelm@32623 935 c2_nonstatic_field(Node, _flags, jushort) \
never@10547 936 \
jwilhelm@32623 937 c2_nonstatic_field(Compile, _root, RootNode*) \
jwilhelm@32623 938 c2_nonstatic_field(Compile, _unique, uint) \
jwilhelm@32623 939 c2_nonstatic_field(Compile, _entry_bci, int) \
jwilhelm@32623 940 c2_nonstatic_field(Compile, _top, Node*) \
jwilhelm@32623 941 c2_nonstatic_field(Compile, _cfg, PhaseCFG*) \
jwilhelm@32623 942 c2_nonstatic_field(Compile, _regalloc, PhaseRegAlloc*) \
jwilhelm@32623 943 c2_nonstatic_field(Compile, _method, ciMethod*) \
jwilhelm@32623 944 c2_nonstatic_field(Compile, _compile_id, const int) \
jwilhelm@32623 945 c2_nonstatic_field(Compile, _save_argument_registers, const bool) \
jwilhelm@32623 946 c2_nonstatic_field(Compile, _subsume_loads, const bool) \
jwilhelm@32623 947 c2_nonstatic_field(Compile, _do_escape_analysis, const bool) \
jwilhelm@32623 948 c2_nonstatic_field(Compile, _eliminate_boxing, const bool) \
jwilhelm@32623 949 c2_nonstatic_field(Compile, _ilt, InlineTree*) \
never@10547 950 \
jwilhelm@32623 951 c2_nonstatic_field(InlineTree, _caller_jvms, JVMState*) \
jwilhelm@32623 952 c2_nonstatic_field(InlineTree, _method, ciMethod*) \
jwilhelm@32623 953 c2_nonstatic_field(InlineTree, _caller_tree, InlineTree*) \
jwilhelm@32623 954 c2_nonstatic_field(InlineTree, _subtrees, GrowableArray<InlineTree*>) \
never@10547 955 \
jwilhelm@32623 956 c2_nonstatic_field(OptoRegPair, _first, short) \
jwilhelm@32623 957 c2_nonstatic_field(OptoRegPair, _second, short) \
never@10547 958 \
jwilhelm@32623 959 c2_nonstatic_field(JVMState, _caller, JVMState*) \
jwilhelm@32623 960 c2_nonstatic_field(JVMState, _depth, uint) \
jwilhelm@32623 961 c2_nonstatic_field(JVMState, _locoff, uint) \
jwilhelm@32623 962 c2_nonstatic_field(JVMState, _stkoff, uint) \
jwilhelm@32623 963 c2_nonstatic_field(JVMState, _monoff, uint) \
jwilhelm@32623 964 c2_nonstatic_field(JVMState, _scloff, uint) \
jwilhelm@32623 965 c2_nonstatic_field(JVMState, _endoff, uint) \
jwilhelm@32623 966 c2_nonstatic_field(JVMState, _sp, uint) \
jwilhelm@32623 967 c2_nonstatic_field(JVMState, _bci, int) \
jwilhelm@32623 968 c2_nonstatic_field(JVMState, _method, ciMethod*) \
jwilhelm@32623 969 c2_nonstatic_field(JVMState, _map, SafePointNode*) \
never@10547 970 \
jwilhelm@32623 971 c2_nonstatic_field(SafePointNode, _jvms, JVMState* const) \
never@10547 972 \
jwilhelm@32623 973 c2_nonstatic_field(MachSafePointNode, _jvms, JVMState*) \
jwilhelm@32623 974 c2_nonstatic_field(MachSafePointNode, _jvmadj, uint) \
never@10547 975 \
jwilhelm@32623 976 c2_nonstatic_field(MachIfNode, _prob, jfloat) \
jwilhelm@32623 977 c2_nonstatic_field(MachIfNode, _fcnt, jfloat) \
never@10547 978 \
roland@49877 979 c2_nonstatic_field(MachJumpNode, _probs, jfloat*) \
roland@49877 980 \
jwilhelm@32623 981 c2_nonstatic_field(CallNode, _entry_point, address) \
never@10547 982 \
jwilhelm@32623 983 c2_nonstatic_field(CallJavaNode, _method, ciMethod*) \
never@10547 984 \
jwilhelm@32623 985 c2_nonstatic_field(CallRuntimeNode, _name, const char*) \
never@10547 986 \
jwilhelm@32623 987 c2_nonstatic_field(CallStaticJavaNode, _name, const char*) \
never@10547 988 \
jwilhelm@32623 989 c2_nonstatic_field(MachCallJavaNode, _method, ciMethod*) \
jwilhelm@32623 990 c2_nonstatic_field(MachCallJavaNode, _bci, int) \
never@10547 991 \
jwilhelm@32623 992 c2_nonstatic_field(MachCallStaticJavaNode, _name, const char*) \
never@10547 993 \
jwilhelm@32623 994 c2_nonstatic_field(MachCallRuntimeNode, _name, const char*) \
never@10547 995 \
jwilhelm@32623 996 c2_nonstatic_field(PhaseCFG, _number_of_blocks, uint) \
jwilhelm@32623 997 c2_nonstatic_field(PhaseCFG, _blocks, Block_List) \
jwilhelm@32623 998 c2_nonstatic_field(PhaseCFG, _node_to_block_mapping, Block_Array) \
jwilhelm@32623 999 c2_nonstatic_field(PhaseCFG, _root_block, Block*) \
never@10547 1000 \
jwilhelm@32623 1001 c2_nonstatic_field(PhaseRegAlloc, _node_regs, OptoRegPair*) \
jwilhelm@32623 1002 c2_nonstatic_field(PhaseRegAlloc, _node_regs_max_index, uint) \
jwilhelm@32623 1003 c2_nonstatic_field(PhaseRegAlloc, _framesize, uint) \
jwilhelm@32623 1004 c2_nonstatic_field(PhaseRegAlloc, _max_reg, OptoReg::Name) \
never@10547 1005 \
jwilhelm@32623 1006 c2_nonstatic_field(PhaseChaitin, _trip_cnt, int) \
jwilhelm@32623 1007 c2_nonstatic_field(PhaseChaitin, _alternate, int) \
jwilhelm@32623 1008 c2_nonstatic_field(PhaseChaitin, _lo_degree, uint) \
jwilhelm@32623 1009 c2_nonstatic_field(PhaseChaitin, _lo_stk_degree, uint) \
jwilhelm@32623 1010 c2_nonstatic_field(PhaseChaitin, _hi_degree, uint) \
jwilhelm@32623 1011 c2_nonstatic_field(PhaseChaitin, _simplified, uint) \
never@10547 1012 \
jwilhelm@32623 1013 c2_nonstatic_field(Block, _nodes, Node_List) \
jwilhelm@32623 1014 c2_nonstatic_field(Block, _succs, Block_Array) \
jwilhelm@32623 1015 c2_nonstatic_field(Block, _num_succs, uint) \
jwilhelm@32623 1016 c2_nonstatic_field(Block, _pre_order, uint) \
jwilhelm@32623 1017 c2_nonstatic_field(Block, _dom_depth, uint) \
jwilhelm@32623 1018 c2_nonstatic_field(Block, _idom, Block*) \
jwilhelm@32623 1019 c2_nonstatic_field(Block, _freq, jdouble) \
never@10547 1020 \
jwilhelm@32623 1021 c2_nonstatic_field(CFGElement, _freq, jdouble) \
never@10547 1022 \
jwilhelm@32623 1023 c2_nonstatic_field(Block_List, _cnt, uint) \
never@10547 1024 \
jwilhelm@32623 1025 c2_nonstatic_field(Block_Array, _size, uint) \
jwilhelm@32623 1026 c2_nonstatic_field(Block_Array, _blocks, Block**) \
jwilhelm@32623 1027 c2_nonstatic_field(Block_Array, _arena, Arena*) \
never@10547 1028 \
jwilhelm@32623 1029 c2_nonstatic_field(Node_List, _cnt, uint) \
never@10547 1030 \
jwilhelm@32623 1031 c2_nonstatic_field(Node_Array, _max, uint) \
jwilhelm@32623 1032 c2_nonstatic_field(Node_Array, _nodes, Node**) \
jwilhelm@32623 1033 c2_nonstatic_field(Node_Array, _a, Arena*) \
never@10547 1034 \
duke@1 1035 \
duke@1 1036 /*********************/ \
duke@1 1037 /* -XX flags */ \
duke@1 1038 /*********************/ \
duke@1 1039 \
gziemski@49902 1040 nonstatic_field(JVMFlag, _type, const char*) \
gziemski@49902 1041 nonstatic_field(JVMFlag, _name, const char*) \
gziemski@49902 1042 unchecked_nonstatic_field(JVMFlag, _addr, sizeof(void*)) /* NOTE: no type */ \
gziemski@49902 1043 nonstatic_field(JVMFlag, _flags, JVMFlag::Flags) \
gziemski@49902 1044 static_field(JVMFlag, flags, JVMFlag*) \
gziemski@49902 1045 static_field(JVMFlag, numFlags, size_t) \
duke@1 1046 \
duke@1 1047 /*************************/ \
duke@1 1048 /* JDK / VM version info */ \
duke@1 1049 /*************************/ \
duke@1 1050 \
jwilhelm@32623 1051 static_field(Abstract_VM_Version, _s_vm_release, const char*) \
jwilhelm@32623 1052 static_field(Abstract_VM_Version, _s_internal_vm_info_string, const char*) \
twisti@35148 1053 static_field(Abstract_VM_Version, _features, uint64_t) \
twisti@35148 1054 static_field(Abstract_VM_Version, _features_string, const char*) \
jwilhelm@32623 1055 static_field(Abstract_VM_Version, _vm_major_version, int) \
jwilhelm@32623 1056 static_field(Abstract_VM_Version, _vm_minor_version, int) \
iris@33973 1057 static_field(Abstract_VM_Version, _vm_security_version, int) \
jwilhelm@32623 1058 static_field(Abstract_VM_Version, _vm_build_number, int) \
duke@1 1059 \
jwilhelm@32623 1060 static_field(JDK_Version, _current, JDK_Version) \
kamg@950 1061 nonstatic_field(JDK_Version, _major, unsigned char) \
duke@1 1062 \
never@10547 1063 /*************************/ \
never@10547 1064 /* JVMTI */ \
never@10547 1065 /*************************/ \
duke@1 1066 \
jprovino@13975 1067 JVMTI_STRUCTS(static_field) \
duke@1 1068 \
duke@1 1069 /*************/ \
duke@1 1070 /* Arguments */ \
duke@1 1071 /*************/ \
duke@1 1072 \
jwilhelm@32623 1073 static_field(Arguments, _jvm_flags_array, char**) \
jwilhelm@32623 1074 static_field(Arguments, _num_jvm_flags, int) \
jwilhelm@32623 1075 static_field(Arguments, _jvm_args_array, char**) \
jwilhelm@32623 1076 static_field(Arguments, _num_jvm_args, int) \
jwilhelm@32623 1077 static_field(Arguments, _java_command, char*) \
duke@1 1078 \
coleenp@13728 1079 /************/ \
coleenp@13728 1080 /* Array<T> */ \
coleenp@13728 1081 /************/ \
coleenp@13728 1082 \
jwilhelm@32623 1083 nonstatic_field(Array<int>, _length, int) \
jwilhelm@32623 1084 unchecked_nonstatic_field(Array<int>, _data, sizeof(int)) \
jwilhelm@32623 1085 unchecked_nonstatic_field(Array<u1>, _data, sizeof(u1)) \
jwilhelm@32623 1086 unchecked_nonstatic_field(Array<u2>, _data, sizeof(u2)) \
jwilhelm@32623 1087 unchecked_nonstatic_field(Array<Method*>, _data, sizeof(Method*)) \
jwilhelm@32623 1088 unchecked_nonstatic_field(Array<Klass*>, _data, sizeof(Klass*)) \
coleenp@13728 1089 \
never@8725 1090 /*********************************/ \
never@8725 1091 /* java_lang_Class fields */ \
never@8725 1092 /*********************************/ \
never@8725 1093 \
jwilhelm@32623 1094 static_field(java_lang_Class, _klass_offset, int) \
jwilhelm@32623 1095 static_field(java_lang_Class, _array_klass_offset, int) \
jwilhelm@32623 1096 static_field(java_lang_Class, _oop_size_offset, int) \
jwilhelm@32623 1097 static_field(java_lang_Class, _static_oop_field_count_offset, int) \
duke@1 1098 \
jgeorge@49896 1099 /********************************************/ \
jgeorge@49896 1100 /* FileMapInfo fields (CDS archive related) */ \
jgeorge@49896 1101 /********************************************/ \
jgeorge@49896 1102 \
iklam@51477 1103 CDS_ONLY(nonstatic_field(FileMapInfo, _header, FileMapHeader*)) \
iklam@51477 1104 CDS_ONLY( static_field(FileMapInfo, _current_info, FileMapInfo*)) \
iklam@51477 1105 CDS_ONLY(nonstatic_field(FileMapHeader, _space[0], CDSFileMapRegion)) \
iklam@51477 1106 CDS_ONLY(nonstatic_field(CDSFileMapRegion, _addr._base, char*)) \
iklam@51477 1107 CDS_ONLY(nonstatic_field(CDSFileMapRegion, _used, size_t)) \
jgeorge@49896 1108 \
ysuenaga@38266 1109 /******************/ \
ysuenaga@38266 1110 /* VMError fields */ \
ysuenaga@38266 1111 /******************/ \
ysuenaga@38266 1112 \
ysuenaga@38266 1113 static_field(VMError, _thread, Thread*) \
ysuenaga@38266 1114 \
duke@1 1115 /************************/ \
duke@1 1116 /* Miscellaneous fields */ \
duke@1 1117 /************************/ \
duke@1 1118 \
jwilhelm@32623 1119 nonstatic_field(CompileTask, _method, Method*) \
jwilhelm@32623 1120 nonstatic_field(CompileTask, _osr_bci, int) \
jwilhelm@32623 1121 nonstatic_field(CompileTask, _comp_level, int) \
jwilhelm@32623 1122 nonstatic_field(CompileTask, _compile_id, uint) \
twisti@33160 1123 nonstatic_field(CompileTask, _num_inlined_bytecodes, int) \
jwilhelm@32623 1124 nonstatic_field(CompileTask, _next, CompileTask*) \
jwilhelm@32623 1125 nonstatic_field(CompileTask, _prev, CompileTask*) \
never@10547 1126 \
jwilhelm@32623 1127 nonstatic_field(vframeArray, _next, vframeArray*) \
jwilhelm@32623 1128 nonstatic_field(vframeArray, _original, frame) \
jwilhelm@32623 1129 nonstatic_field(vframeArray, _caller, frame) \
jwilhelm@32623 1130 nonstatic_field(vframeArray, _frames, int) \
never@10547 1131 \
jwilhelm@32623 1132 nonstatic_field(vframeArrayElement, _frame, frame) \
jwilhelm@32623 1133 nonstatic_field(vframeArrayElement, _bci, int) \
jwilhelm@32623 1134 nonstatic_field(vframeArrayElement, _method, Method*) \
twisti@20011 1135 \
jwilhelm@32623 1136 nonstatic_field(AccessFlags, _flags, jint) \
jwilhelm@32623 1137 nonstatic_field(elapsedTimer, _counter, jlong) \
jwilhelm@32623 1138 nonstatic_field(elapsedTimer, _active, bool) \
stefank@49730 1139 nonstatic_field(InvocationCounter, _counter, unsigned int)
duke@1 1140
duke@1 1141 //--------------------------------------------------------------------------------
duke@1 1142 // VM_TYPES
duke@1 1143 //
duke@1 1144 // This list must enumerate at least all of the types in the above
duke@1 1145 // list. For the types in the above list, the entry below must have
duke@1 1146 // exactly the same spacing since string comparisons are done in the
duke@1 1147 // code which verifies the consistency of these tables (in the debug
duke@1 1148 // build).
duke@1 1149 //
duke@1 1150 // In addition to the above types, this list is required to enumerate
duke@1 1151 // the JNI's java types, which are used to indicate the size of Java
duke@1 1152 // fields in this VM to the SA. Further, oop types are currently
duke@1 1153 // distinguished by name (i.e., ends with "oop") over in the SA.
duke@1 1154 //
duke@1 1155 // The declare_toplevel_type macro should be used to declare types
duke@1 1156 // which do not have a superclass.
duke@1 1157 //
duke@1 1158 // The declare_integer_type and declare_unsigned_integer_type macros
duke@1 1159 // are required in order to properly identify C integer types over in
duke@1 1160 // the SA. They should be used for any type which is otherwise opaque
duke@1 1161 // and which it is necessary to coerce into an integer value. This
duke@1 1162 // includes, for example, the type uintptr_t. Note that while they
duke@1 1163 // will properly identify the type's size regardless of the platform,
duke@1 1164 // since it is does not seem possible to deduce or check signedness at
duke@1 1165 // compile time using the pointer comparison tricks, it is currently
duke@1 1166 // required that the given types have the same signedness across all
duke@1 1167 // platforms.
duke@1 1168 //
duke@1 1169 // NOTE that there are platform-specific additions to this table in
duke@1 1170 // vmStructs_<os>_<cpu>.hpp.
duke@1 1171
duke@1 1172 #define VM_TYPES(declare_type, \
duke@1 1173 declare_toplevel_type, \
duke@1 1174 declare_oop_type, \
duke@1 1175 declare_integer_type, \
duke@1 1176 declare_unsigned_integer_type, \
duke@1 1177 declare_c1_toplevel_type, \
duke@1 1178 declare_c2_type, \
mikael@15189 1179 declare_c2_toplevel_type) \
duke@1 1180 \
duke@1 1181 /*************************************************************/ \
duke@1 1182 /* Java primitive types -- required by the SA implementation */ \
duke@1 1183 /* in order to determine the size of Java fields in this VM */ \
duke@1 1184 /* (the implementation looks up these names specifically) */ \
duke@1 1185 /* NOTE: since we fetch these sizes from the remote VM, we */ \
duke@1 1186 /* have a bootstrapping sequence during which it is not */ \
duke@1 1187 /* valid to fetch Java values from the remote process, only */ \
duke@1 1188 /* C integer values (of known size). NOTE also that we do */ \
duke@1 1189 /* NOT include "Java unsigned" types like juint here; since */ \
duke@1 1190 /* Java does not have unsigned primitive types, those can */ \
duke@1 1191 /* not be mapped directly and are considered to be C integer */ \
duke@1 1192 /* types in this system (see the "other types" section, */ \
duke@1 1193 /* below.) */ \
duke@1 1194 /*************************************************************/ \
duke@1 1195 \
duke@1 1196 declare_toplevel_type(jboolean) \
duke@1 1197 declare_toplevel_type(jbyte) \
duke@1 1198 declare_toplevel_type(jchar) \
duke@1 1199 declare_toplevel_type(jdouble) \
duke@1 1200 declare_toplevel_type(jfloat) \
duke@1 1201 declare_toplevel_type(jint) \
duke@1 1202 declare_toplevel_type(jlong) \
duke@1 1203 declare_toplevel_type(jshort) \
duke@1 1204 \
duke@1 1205 /*********************************************************************/ \
duke@1 1206 /* C integer types. User-defined typedefs (like "size_t" or */ \
duke@1 1207 /* "intptr_t") are guaranteed to be present with the same names over */ \
duke@1 1208 /* in the SA's type database. Names like "unsigned short" are not */ \
duke@1 1209 /* guaranteed to be visible through the SA's type database lookup */ \
duke@1 1210 /* mechanism, though they will have a Type object created for them */ \
duke@1 1211 /* and are valid types for Fields. */ \
duke@1 1212 /*********************************************************************/ \
duke@1 1213 declare_integer_type(bool) \
never@10547 1214 declare_integer_type(short) \
duke@1 1215 declare_integer_type(int) \
duke@1 1216 declare_integer_type(long) \
duke@1 1217 declare_integer_type(char) \
iveresov@48088 1218 declare_integer_type(volatile signed char) \
duke@1 1219 declare_unsigned_integer_type(unsigned char) \
never@10547 1220 declare_unsigned_integer_type(u_char) \
duke@1 1221 declare_unsigned_integer_type(unsigned int) \
never@10547 1222 declare_unsigned_integer_type(uint) \
duke@1 1223 declare_unsigned_integer_type(unsigned short) \
never@10548 1224 declare_unsigned_integer_type(jushort) \
duke@1 1225 declare_unsigned_integer_type(unsigned long) \
duke@1 1226 /* The compiler thinks this is a different type than */ \
duke@1 1227 /* unsigned short on Win32 */ \
coleenp@13728 1228 declare_unsigned_integer_type(u1) \
duke@1 1229 declare_unsigned_integer_type(u2) \
poonam@25335 1230 declare_unsigned_integer_type(u4) \
poonam@25335 1231 declare_unsigned_integer_type(u8) \
duke@1 1232 declare_unsigned_integer_type(unsigned) \
duke@1 1233 \
duke@1 1234 /*****************************/ \
duke@1 1235 /* C primitive pointer types */ \
duke@1 1236 /*****************************/ \
duke@1 1237 \
coleenp@13728 1238 declare_toplevel_type(void*) \
duke@1 1239 declare_toplevel_type(int*) \
duke@1 1240 declare_toplevel_type(char*) \
duke@1 1241 declare_toplevel_type(char**) \
duke@1 1242 declare_toplevel_type(u_char*) \
duke@1 1243 declare_toplevel_type(unsigned char*) \
anoll@20290 1244 declare_toplevel_type(volatile unsigned char*) \
duke@1 1245 \
duke@1 1246 /*******************************************************************/ \
duke@1 1247 /* Types which it will be handy to have available over in the SA */ \
duke@1 1248 /* in order to do platform-independent address -> integer coercion */ \
duke@1 1249 /* (note: these will be looked up by name) */ \
duke@1 1250 /*******************************************************************/ \
duke@1 1251 \
duke@1 1252 declare_unsigned_integer_type(size_t) \
dcubed@578 1253 declare_integer_type(ssize_t) \
duke@1 1254 declare_integer_type(intx) \
duke@1 1255 declare_integer_type(intptr_t) \
duke@1 1256 declare_unsigned_integer_type(uintx) \
duke@1 1257 declare_unsigned_integer_type(uintptr_t) \
pliden@50525 1258 declare_unsigned_integer_type(uint8_t) \
duke@1 1259 declare_unsigned_integer_type(uint32_t) \
duke@1 1260 declare_unsigned_integer_type(uint64_t) \
duke@1 1261 \
coleenp@13728 1262 /******************************************/ \
coleenp@13728 1263 /* OopDesc hierarchy (NOTE: some missing) */ \
coleenp@13728 1264 /******************************************/ \
duke@1 1265 \
duke@1 1266 declare_toplevel_type(oopDesc) \
coleenp@13728 1267 declare_type(arrayOopDesc, oopDesc) \
coleenp@13728 1268 declare_type(objArrayOopDesc, arrayOopDesc) \
coleenp@13728 1269 declare_type(instanceOopDesc, oopDesc) \
coleenp@13728 1270 declare_type(markOopDesc, oopDesc) \
coleenp@13728 1271 \
coleenp@13728 1272 /**************************************************/ \
coleenp@13728 1273 /* MetadataOopDesc hierarchy (NOTE: some missing) */ \
coleenp@13728 1274 /**************************************************/ \
coleenp@13728 1275 \
twisti@20011 1276 declare_toplevel_type(CompiledICHolder) \
coleenp@13728 1277 declare_toplevel_type(MetaspaceObj) \
coleenp@13728 1278 declare_type(Metadata, MetaspaceObj) \
coleenp@13728 1279 declare_type(Klass, Metadata) \
coleenp@13952 1280 declare_type(ArrayKlass, Klass) \
coleenp@13952 1281 declare_type(ObjArrayKlass, ArrayKlass) \
coleenp@13952 1282 declare_type(TypeArrayKlass, ArrayKlass) \
coleenp@13728 1283 declare_type(InstanceKlass, Klass) \
coleenp@13738 1284 declare_type(InstanceClassLoaderKlass, InstanceKlass) \
coleenp@13738 1285 declare_type(InstanceMirrorKlass, InstanceKlass) \
coleenp@13738 1286 declare_type(InstanceRefKlass, InstanceKlass) \
twisti@20011 1287 declare_type(ConstantPool, Metadata) \
twisti@20011 1288 declare_type(ConstantPoolCache, MetaspaceObj) \
twisti@20011 1289 declare_type(MethodData, Metadata) \
twisti@20011 1290 declare_type(Method, Metadata) \
twisti@20011 1291 declare_type(MethodCounters, MetaspaceObj) \
twisti@20011 1292 declare_type(ConstMethod, MetaspaceObj) \
twisti@20011 1293 \
twisti@33160 1294 declare_toplevel_type(narrowKlass) \
twisti@33160 1295 \
twisti@20011 1296 declare_toplevel_type(vtableEntry) \
coleenp@13728 1297 \
coleenp@8076 1298 declare_toplevel_type(Symbol) \
coleenp@8076 1299 declare_toplevel_type(Symbol*) \
coleenp@13728 1300 declare_toplevel_type(volatile Metadata*) \
duke@1 1301 \
twisti@20011 1302 declare_toplevel_type(DataLayout) \
never@10547 1303 \
duke@1 1304 /********/ \
duke@1 1305 /* Oops */ \
duke@1 1306 /********/ \
duke@1 1307 \
duke@1 1308 declare_oop_type(markOop) \
duke@1 1309 declare_oop_type(objArrayOop) \
duke@1 1310 declare_oop_type(oop) \
coleenp@360 1311 declare_oop_type(narrowOop) \
duke@1 1312 declare_oop_type(typeArrayOop) \
stefank@53811 1313 \
stefank@53811 1314 declare_toplevel_type(OopHandle) \
duke@1 1315 \
duke@1 1316 /*************************************/ \
duke@1 1317 /* MethodOop-related data structures */ \
duke@1 1318 /*************************************/ \
duke@1 1319 \
duke@1 1320 declare_toplevel_type(CheckedExceptionElement) \
duke@1 1321 declare_toplevel_type(LocalVariableTableElement) \
jiangli@13282 1322 declare_toplevel_type(ExceptionTableElement) \
dsamersoff@21072 1323 declare_toplevel_type(MethodParametersElement) \
duke@1 1324 \
coleenp@13728 1325 declare_toplevel_type(ClassLoaderData) \
coleenp@13728 1326 declare_toplevel_type(ClassLoaderDataGraph) \
coleenp@13728 1327 \
duke@1 1328 /************************/ \
duke@1 1329 /* PerfMemory - jvmstat */ \
duke@1 1330 /************************/ \
duke@1 1331 \
duke@1 1332 declare_toplevel_type(PerfDataPrologue) \
duke@1 1333 declare_toplevel_type(PerfDataPrologue*) \
duke@1 1334 declare_toplevel_type(PerfDataEntry) \
duke@1 1335 declare_toplevel_type(PerfMemory) \
jgeorge@48166 1336 declare_type(PerfData, CHeapObj<mtInternal>) \
duke@1 1337 \
gziemski@51405 1338 /********************/ \
gziemski@51405 1339 /* SystemDictionary */ \
gziemski@51405 1340 /********************/ \
duke@1 1341 \
zgu@13195 1342 declare_toplevel_type(BasicHashtable<mtInternal>) \
zgu@13195 1343 declare_type(IntptrHashtable, BasicHashtable<mtInternal>) \
sballal@44897 1344 declare_toplevel_type(BasicHashtable<mtSymbol>) \
coleenp@46729 1345 declare_type(Dictionary, KlassHashtable) \
zgu@13195 1346 declare_toplevel_type(BasicHashtableEntry<mtInternal>) \
zgu@13195 1347 declare_type(IntptrHashtableEntry, BasicHashtableEntry<mtInternal>) \
coleenp@13728 1348 declare_type(DictionaryEntry, KlassHashtableEntry) \
zgu@13195 1349 declare_toplevel_type(HashtableBucket<mtInternal>) \
duke@1 1350 declare_toplevel_type(SystemDictionary) \
never@10567 1351 declare_toplevel_type(vmSymbols) \
duke@1 1352 \
never@10547 1353 declare_toplevel_type(GenericGrowableArray) \
never@10547 1354 declare_toplevel_type(GrowableArray<int>) \
never@10547 1355 declare_toplevel_type(Arena) \
never@10547 1356 declare_type(ResourceArea, Arena) \
never@10547 1357 \
duke@1 1358 /***********************************************************/ \
duke@1 1359 /* Thread hierarchy (needed for run-time type information) */ \
duke@1 1360 /***********************************************************/ \
duke@1 1361 \
duke@1 1362 declare_toplevel_type(Threads) \
duke@1 1363 declare_toplevel_type(ThreadShadow) \
kbarrett@51548 1364 declare_type(Thread, ThreadShadow) \
kbarrett@51548 1365 declare_type(NonJavaThread, Thread) \
kbarrett@51548 1366 declare_type(NamedThread, NonJavaThread) \
kbarrett@51548 1367 declare_type(WatcherThread, NonJavaThread) \
kbarrett@51548 1368 declare_type(JavaThread, Thread) \
kbarrett@51548 1369 declare_type(JvmtiAgentThread, JavaThread) \
kbarrett@51548 1370 declare_type(ServiceThread, JavaThread) \
kbarrett@51548 1371 declare_type(CompilerThread, JavaThread) \
kbarrett@51548 1372 declare_type(CodeCacheSweeperThread, JavaThread) \
duke@1 1373 declare_toplevel_type(OSThread) \
duke@1 1374 declare_toplevel_type(JavaFrameAnchor) \
duke@1 1375 \
rehn@54955 1376 declare_toplevel_type(ThreadsSMRSupport) \
rehn@54955 1377 declare_toplevel_type(ThreadsList) \
rehn@54955 1378 \
duke@1 1379 /***************/ \
duke@1 1380 /* Interpreter */ \
duke@1 1381 /***************/ \
duke@1 1382 \
duke@1 1383 declare_toplevel_type(AbstractInterpreter) \
duke@1 1384 \
duke@1 1385 /*********/ \
duke@1 1386 /* Stubs */ \
duke@1 1387 /*********/ \
duke@1 1388 \
duke@1 1389 declare_toplevel_type(StubQueue) \
duke@1 1390 declare_toplevel_type(StubRoutines) \
duke@1 1391 declare_toplevel_type(Stub) \
duke@1 1392 declare_type(InterpreterCodelet, Stub) \
duke@1 1393 \
duke@1 1394 /*************/ \
duke@1 1395 /* JavaCalls */ \
duke@1 1396 /*************/ \
duke@1 1397 \
duke@1 1398 declare_toplevel_type(JavaCallWrapper) \
duke@1 1399 \
duke@1 1400 /*************/ \
duke@1 1401 /* CodeCache */ \
duke@1 1402 /*************/ \
duke@1 1403 \
duke@1 1404 declare_toplevel_type(CodeCache) \
duke@1 1405 \
duke@1 1406 /************/ \
duke@1 1407 /* CodeHeap */ \
duke@1 1408 /************/ \
duke@1 1409 \
duke@1 1410 declare_toplevel_type(CodeHeap) \
duke@1 1411 declare_toplevel_type(CodeHeap*) \
duke@1 1412 declare_toplevel_type(HeapBlock) \
duke@1 1413 declare_toplevel_type(HeapBlock::Header) \
duke@1 1414 declare_type(FreeBlock, HeapBlock) \
duke@1 1415 \
duke@1 1416 /*************************************************************/ \
duke@1 1417 /* CodeBlob hierarchy (needed for run-time type information) */ \
duke@1 1418 /*************************************************************/ \
duke@1 1419 \
never@10517 1420 declare_toplevel_type(SharedRuntime) \
never@10517 1421 \
duke@1 1422 declare_toplevel_type(CodeBlob) \
gziemski@49902 1423 declare_type(RuntimeBlob, CodeBlob) \
gziemski@49902 1424 declare_type(BufferBlob, RuntimeBlob) \
never@10517 1425 declare_type(AdapterBlob, BufferBlob) \
never@10517 1426 declare_type(MethodHandlesAdapterBlob, BufferBlob) \
rbackman@38133 1427 declare_type(CompiledMethod, CodeBlob) \
rbackman@38133 1428 declare_type(nmethod, CompiledMethod) \
gziemski@49902 1429 declare_type(RuntimeStub, RuntimeBlob) \
gziemski@49902 1430 declare_type(SingletonBlob, RuntimeBlob) \
never@10517 1431 declare_type(SafepointBlob, SingletonBlob) \
never@10517 1432 declare_type(DeoptimizationBlob, SingletonBlob) \
never@10517 1433 declare_c2_type(ExceptionBlob, SingletonBlob) \
jgeorge@49896 1434 declare_c2_type(UncommonTrapBlob, RuntimeBlob) \
duke@1 1435 \
duke@1 1436 /***************************************/ \
duke@1 1437 /* PcDesc and other compiled code info */ \
duke@1 1438 /***************************************/ \
duke@1 1439 \
duke@1 1440 declare_toplevel_type(PcDesc) \
never@10547 1441 declare_toplevel_type(ExceptionCache) \
never@10547 1442 declare_toplevel_type(PcDescCache) \
never@10547 1443 declare_toplevel_type(Dependencies) \
never@10547 1444 declare_toplevel_type(CompileTask) \
never@10547 1445 declare_toplevel_type(Deoptimization) \
twisti@33160 1446 declare_toplevel_type(Deoptimization::UnrollBlock) \
duke@1 1447 \
duke@1 1448 /************************/ \
duke@1 1449 /* OopMap and OopMapSet */ \
duke@1 1450 /************************/ \
duke@1 1451 \
duke@1 1452 declare_toplevel_type(OopMap) \
duke@1 1453 declare_toplevel_type(OopMapSet) \
rbackman@30590 1454 declare_toplevel_type(ImmutableOopMapSet) \
rbackman@30590 1455 declare_toplevel_type(ImmutableOopMapPair) \
rbackman@30590 1456 declare_toplevel_type(ImmutableOopMap) \
duke@1 1457 \
duke@1 1458 /********************/ \
duke@1 1459 /* CompressedStream */ \
duke@1 1460 /********************/ \
duke@1 1461 \
duke@1 1462 declare_toplevel_type(CompressedStream) \
duke@1 1463 \
duke@1 1464 /**************/ \
duke@1 1465 /* VMRegImpl */ \
duke@1 1466 /**************/ \
duke@1 1467 \
duke@1 1468 declare_toplevel_type(VMRegImpl) \
duke@1 1469 \
duke@1 1470 /*********************************/ \
duke@1 1471 /* JNIHandles and JNIHandleBlock */ \
duke@1 1472 /*********************************/ \
duke@1 1473 \
duke@1 1474 declare_toplevel_type(JNIHandles) \
duke@1 1475 declare_toplevel_type(JNIHandleBlock) \
never@10547 1476 declare_toplevel_type(jobject) \
duke@1 1477 \
kbarrett@48787 1478 /**************/ \
kbarrett@48787 1479 /* OopStorage */ \
kbarrett@48787 1480 /**************/ \
kbarrett@48787 1481 \
kbarrett@48787 1482 declare_toplevel_type(OopStorage) \
kbarrett@48787 1483 \
duke@1 1484 /**********************/ \
duke@1 1485 /* Runtime1 (C1 only) */ \
duke@1 1486 /**********************/ \
duke@1 1487 \
duke@1 1488 declare_c1_toplevel_type(Runtime1) \
duke@1 1489 \
duke@1 1490 /************/ \
duke@1 1491 /* Monitors */ \
duke@1 1492 /************/ \
duke@1 1493 \
duke@1 1494 declare_toplevel_type(ObjectMonitor) \
coleenp@47634 1495 declare_toplevel_type(PaddedObjectMonitor) \
duke@1 1496 declare_toplevel_type(ObjectSynchronizer) \
duke@1 1497 declare_toplevel_type(BasicLock) \
duke@1 1498 declare_toplevel_type(BasicObjectLock) \
duke@1 1499 \
duke@1 1500 /*********************/ \
duke@1 1501 /* Matcher (C2 only) */ \
duke@1 1502 /*********************/ \
duke@1 1503 \
duke@1 1504 declare_c2_toplevel_type(Matcher) \
never@10547 1505 declare_c2_toplevel_type(Compile) \
never@10547 1506 declare_c2_toplevel_type(InlineTree) \
never@10547 1507 declare_c2_toplevel_type(OptoRegPair) \
never@10547 1508 declare_c2_toplevel_type(JVMState) \
never@10547 1509 declare_c2_toplevel_type(Phase) \
never@10547 1510 declare_c2_type(PhaseCFG, Phase) \
never@10547 1511 declare_c2_type(PhaseRegAlloc, Phase) \
never@10547 1512 declare_c2_type(PhaseChaitin, PhaseRegAlloc) \
never@10547 1513 declare_c2_toplevel_type(CFGElement) \
never@10547 1514 declare_c2_type(Block, CFGElement) \
never@10547 1515 declare_c2_toplevel_type(Block_Array) \
never@10547 1516 declare_c2_type(Block_List, Block_Array) \
never@10547 1517 declare_c2_toplevel_type(Node_Array) \
never@10547 1518 declare_c2_type(Node_List, Node_Array) \
never@10547 1519 declare_c2_type(Unique_Node_List, Node_List) \
never@10547 1520 declare_c2_toplevel_type(Node) \
never@10547 1521 declare_c2_type(AddNode, Node) \
never@10547 1522 declare_c2_type(AddINode, AddNode) \
never@10547 1523 declare_c2_type(AddLNode, AddNode) \
never@10547 1524 declare_c2_type(AddFNode, AddNode) \
never@10547 1525 declare_c2_type(AddDNode, AddNode) \
never@10547 1526 declare_c2_type(AddPNode, Node) \
never@10547 1527 declare_c2_type(OrINode, AddNode) \
never@10547 1528 declare_c2_type(OrLNode, AddNode) \
never@10547 1529 declare_c2_type(XorINode, AddNode) \
never@10547 1530 declare_c2_type(XorLNode, AddNode) \
never@10547 1531 declare_c2_type(MaxNode, AddNode) \
never@10547 1532 declare_c2_type(MaxINode, MaxNode) \
never@10547 1533 declare_c2_type(MinINode, MaxNode) \
pli@53041 1534 declare_c2_type(MaxFNode, MaxNode) \
pli@53041 1535 declare_c2_type(MinFNode, MaxNode) \
pli@53041 1536 declare_c2_type(MaxDNode, MaxNode) \
pli@53041 1537 declare_c2_type(MinDNode, MaxNode) \
never@10547 1538 declare_c2_type(StartNode, MultiNode) \
never@10547 1539 declare_c2_type(StartOSRNode, StartNode) \
never@10547 1540 declare_c2_type(ParmNode, ProjNode) \
never@10547 1541 declare_c2_type(ReturnNode, Node) \
never@10547 1542 declare_c2_type(RethrowNode, Node) \
never@10547 1543 declare_c2_type(TailCallNode, ReturnNode) \
never@10547 1544 declare_c2_type(TailJumpNode, ReturnNode) \
never@10547 1545 declare_c2_type(SafePointNode, MultiNode) \
never@10547 1546 declare_c2_type(CallNode, SafePointNode) \
never@10547 1547 declare_c2_type(CallJavaNode, CallNode) \
never@10547 1548 declare_c2_type(CallStaticJavaNode, CallJavaNode) \
never@10547 1549 declare_c2_type(CallDynamicJavaNode, CallJavaNode) \
never@10547 1550 declare_c2_type(CallRuntimeNode, CallNode) \
never@10547 1551 declare_c2_type(CallLeafNode, CallRuntimeNode) \
never@10547 1552 declare_c2_type(CallLeafNoFPNode, CallLeafNode) \
never@10547 1553 declare_c2_type(AllocateNode, CallNode) \
never@10547 1554 declare_c2_type(AllocateArrayNode, AllocateNode) \
never@10547 1555 declare_c2_type(LockNode, AbstractLockNode) \
never@10547 1556 declare_c2_type(UnlockNode, AbstractLockNode) \
never@10547 1557 declare_c2_type(FastLockNode, CmpNode) \
never@10547 1558 declare_c2_type(FastUnlockNode, CmpNode) \
never@10547 1559 declare_c2_type(RegionNode, Node) \
never@10547 1560 declare_c2_type(JProjNode, ProjNode) \
never@10547 1561 declare_c2_type(PhiNode, TypeNode) \
never@10547 1562 declare_c2_type(GotoNode, Node) \
never@10547 1563 declare_c2_type(CProjNode, ProjNode) \
never@10547 1564 declare_c2_type(MultiBranchNode, MultiNode) \
never@10547 1565 declare_c2_type(IfNode, MultiBranchNode) \
never@10547 1566 declare_c2_type(IfTrueNode, CProjNode) \
never@10547 1567 declare_c2_type(IfFalseNode, CProjNode) \
never@10547 1568 declare_c2_type(PCTableNode, MultiBranchNode) \
never@10547 1569 declare_c2_type(JumpNode, PCTableNode) \
never@10547 1570 declare_c2_type(JumpProjNode, JProjNode) \
never@10547 1571 declare_c2_type(CatchNode, PCTableNode) \
never@10547 1572 declare_c2_type(CatchProjNode, CProjNode) \
never@10547 1573 declare_c2_type(CreateExNode, TypeNode) \
never@10547 1574 declare_c2_type(ClearArrayNode, Node) \
never@10547 1575 declare_c2_type(NeverBranchNode, MultiBranchNode) \
never@10547 1576 declare_c2_type(ConNode, TypeNode) \
never@10547 1577 declare_c2_type(ConINode, ConNode) \
never@10547 1578 declare_c2_type(ConPNode, ConNode) \
never@10547 1579 declare_c2_type(ConNNode, ConNode) \
never@10547 1580 declare_c2_type(ConLNode, ConNode) \
never@10547 1581 declare_c2_type(ConFNode, ConNode) \
never@10547 1582 declare_c2_type(ConDNode, ConNode) \
never@10547 1583 declare_c2_type(BinaryNode, Node) \
never@10547 1584 declare_c2_type(CMoveNode, TypeNode) \
never@10547 1585 declare_c2_type(CMoveDNode, CMoveNode) \
never@10547 1586 declare_c2_type(CMoveFNode, CMoveNode) \
never@10547 1587 declare_c2_type(CMoveINode, CMoveNode) \
never@10547 1588 declare_c2_type(CMoveLNode, CMoveNode) \
never@10547 1589 declare_c2_type(CMovePNode, CMoveNode) \
never@10547 1590 declare_c2_type(CMoveNNode, CMoveNode) \
never@10547 1591 declare_c2_type(EncodePNode, TypeNode) \
never@10547 1592 declare_c2_type(DecodeNNode, TypeNode) \
roland@13969 1593 declare_c2_type(EncodePKlassNode, TypeNode) \
roland@13969 1594 declare_c2_type(DecodeNKlassNode, TypeNode) \
never@10547 1595 declare_c2_type(ConstraintCastNode, TypeNode) \
never@10547 1596 declare_c2_type(CastIINode, ConstraintCastNode) \
never@10547 1597 declare_c2_type(CastPPNode, ConstraintCastNode) \
never@10547 1598 declare_c2_type(CheckCastPPNode, TypeNode) \
never@10547 1599 declare_c2_type(Conv2BNode, Node) \
never@10547 1600 declare_c2_type(ConvD2FNode, Node) \
never@10547 1601 declare_c2_type(ConvD2INode, Node) \
never@10547 1602 declare_c2_type(ConvD2LNode, Node) \
never@10547 1603 declare_c2_type(ConvF2DNode, Node) \
never@10547 1604 declare_c2_type(ConvF2INode, Node) \
never@10547 1605 declare_c2_type(ConvF2LNode, Node) \
never@10547 1606 declare_c2_type(ConvI2DNode, Node) \
never@10547 1607 declare_c2_type(ConvI2FNode, Node) \
never@10547 1608 declare_c2_type(ConvI2LNode, TypeNode) \
never@10547 1609 declare_c2_type(ConvL2DNode, Node) \
never@10547 1610 declare_c2_type(ConvL2FNode, Node) \
never@10547 1611 declare_c2_type(ConvL2INode, Node) \
never@10547 1612 declare_c2_type(CastX2PNode, Node) \
never@10547 1613 declare_c2_type(CastP2XNode, Node) \
mcberg@38049 1614 declare_c2_type(SetVectMaskINode, Node) \
never@10547 1615 declare_c2_type(MemBarNode, MultiNode) \
never@10547 1616 declare_c2_type(MemBarAcquireNode, MemBarNode) \
never@10547 1617 declare_c2_type(MemBarReleaseNode, MemBarNode) \
goetz@22855 1618 declare_c2_type(LoadFenceNode, MemBarNode) \
goetz@22855 1619 declare_c2_type(StoreFenceNode, MemBarNode) \
never@10547 1620 declare_c2_type(MemBarVolatileNode, MemBarNode) \
never@10547 1621 declare_c2_type(MemBarCPUOrderNode, MemBarNode) \
ikrylov@38017 1622 declare_c2_type(OnSpinWaitNode, MemBarNode) \
never@10547 1623 declare_c2_type(InitializeNode, MemBarNode) \
never@10547 1624 declare_c2_type(ThreadLocalNode, Node) \
never@10547 1625 declare_c2_type(Opaque1Node, Node) \
never@10547 1626 declare_c2_type(Opaque2Node, Node) \
never@10547 1627 declare_c2_type(PartialSubtypeCheckNode, Node) \
never@10547 1628 declare_c2_type(MoveI2FNode, Node) \
never@10547 1629 declare_c2_type(MoveL2DNode, Node) \
never@10547 1630 declare_c2_type(MoveF2INode, Node) \
never@10547 1631 declare_c2_type(MoveD2LNode, Node) \
never@10547 1632 declare_c2_type(DivINode, Node) \
never@10547 1633 declare_c2_type(DivLNode, Node) \
never@10547 1634 declare_c2_type(DivFNode, Node) \
never@10547 1635 declare_c2_type(DivDNode, Node) \
never@10547 1636 declare_c2_type(ModINode, Node) \
never@10547 1637 declare_c2_type(ModLNode, Node) \
never@10547 1638 declare_c2_type(ModFNode, Node) \
never@10547 1639 declare_c2_type(ModDNode, Node) \
never@10547 1640 declare_c2_type(DivModNode, MultiNode) \
never@10547 1641 declare_c2_type(DivModINode, DivModNode) \
never@10547 1642 declare_c2_type(DivModLNode, DivModNode) \
never@10547 1643 declare_c2_type(BoxLockNode, Node) \
never@10547 1644 declare_c2_type(LoopNode, RegionNode) \
never@10547 1645 declare_c2_type(CountedLoopNode, LoopNode) \
never@10547 1646 declare_c2_type(CountedLoopEndNode, IfNode) \
never@10547 1647 declare_c2_type(MachNode, Node) \
never@10547 1648 declare_c2_type(MachIdealNode, MachNode) \
never@10547 1649 declare_c2_type(MachTypeNode, MachNode) \
never@10547 1650 declare_c2_type(MachBreakpointNode, MachIdealNode) \
never@10547 1651 declare_c2_type(MachUEPNode, MachIdealNode) \
never@10547 1652 declare_c2_type(MachPrologNode, MachIdealNode) \
never@10547 1653 declare_c2_type(MachEpilogNode, MachIdealNode) \
never@10547 1654 declare_c2_type(MachNopNode, MachIdealNode) \
never@10547 1655 declare_c2_type(MachSpillCopyNode, MachIdealNode) \
never@10547 1656 declare_c2_type(MachNullCheckNode, MachIdealNode) \
never@10547 1657 declare_c2_type(MachProjNode, ProjNode) \
never@10547 1658 declare_c2_type(MachIfNode, MachNode) \
roland@49877 1659 declare_c2_type(MachJumpNode, MachNode) \
never@10547 1660 declare_c2_type(MachFastLockNode, MachNode) \
never@10547 1661 declare_c2_type(MachReturnNode, MachNode) \
never@10547 1662 declare_c2_type(MachSafePointNode, MachReturnNode) \
never@10547 1663 declare_c2_type(MachCallNode, MachSafePointNode) \
never@10547 1664 declare_c2_type(MachCallJavaNode, MachCallNode) \
never@10547 1665 declare_c2_type(MachCallStaticJavaNode, MachCallJavaNode) \
never@10547 1666 declare_c2_type(MachCallDynamicJavaNode, MachCallJavaNode) \
never@10547 1667 declare_c2_type(MachCallRuntimeNode, MachCallNode) \
never@10547 1668 declare_c2_type(MachHaltNode, MachReturnNode) \
never@10547 1669 declare_c2_type(MachTempNode, MachNode) \
never@10547 1670 declare_c2_type(MemNode, Node) \
never@10547 1671 declare_c2_type(MergeMemNode, Node) \
never@10547 1672 declare_c2_type(LoadNode, MemNode) \
never@10547 1673 declare_c2_type(LoadBNode, LoadNode) \
never@10547 1674 declare_c2_type(LoadUSNode, LoadNode) \
never@10547 1675 declare_c2_type(LoadINode, LoadNode) \
never@10547 1676 declare_c2_type(LoadRangeNode, LoadINode) \
never@10547 1677 declare_c2_type(LoadLNode, LoadNode) \
never@10547 1678 declare_c2_type(LoadL_unalignedNode, LoadLNode) \
never@10547 1679 declare_c2_type(LoadFNode, LoadNode) \
never@10547 1680 declare_c2_type(LoadDNode, LoadNode) \
never@10547 1681 declare_c2_type(LoadD_unalignedNode, LoadDNode) \
never@10547 1682 declare_c2_type(LoadPNode, LoadNode) \
never@10547 1683 declare_c2_type(LoadNNode, LoadNode) \
never@10547 1684 declare_c2_type(LoadKlassNode, LoadPNode) \
never@10547 1685 declare_c2_type(LoadNKlassNode, LoadNNode) \
never@10547 1686 declare_c2_type(LoadSNode, LoadNode) \
never@10547 1687 declare_c2_type(StoreNode, MemNode) \
never@10547 1688 declare_c2_type(StoreBNode, StoreNode) \
never@10547 1689 declare_c2_type(StoreCNode, StoreNode) \
never@10547 1690 declare_c2_type(StoreINode, StoreNode) \
never@10547 1691 declare_c2_type(StoreLNode, StoreNode) \
never@10547 1692 declare_c2_type(StoreFNode, StoreNode) \
never@10547 1693 declare_c2_type(StoreDNode, StoreNode) \
never@10547 1694 declare_c2_type(StorePNode, StoreNode) \
never@10547 1695 declare_c2_type(StoreNNode, StoreNode) \
roland@13969 1696 declare_c2_type(StoreNKlassNode, StoreNode) \
never@10547 1697 declare_c2_type(StoreCMNode, StoreNode) \
never@10547 1698 declare_c2_type(LoadPLockedNode, LoadPNode) \
never@10547 1699 declare_c2_type(SCMemProjNode, ProjNode) \
never@10547 1700 declare_c2_type(LoadStoreNode, Node) \
never@10547 1701 declare_c2_type(StorePConditionalNode, LoadStoreNode) \
never@10547 1702 declare_c2_type(StoreLConditionalNode, LoadStoreNode) \
shade@36316 1703 declare_c2_type(CompareAndSwapNode, LoadStoreConditionalNode) \
shade@39419 1704 declare_c2_type(CompareAndSwapBNode, CompareAndSwapNode) \
shade@39419 1705 declare_c2_type(CompareAndSwapSNode, CompareAndSwapNode) \
shade@36316 1706 declare_c2_type(CompareAndSwapLNode, CompareAndSwapNode) \
shade@36316 1707 declare_c2_type(CompareAndSwapINode, CompareAndSwapNode) \
shade@36316 1708 declare_c2_type(CompareAndSwapPNode, CompareAndSwapNode) \
shade@36316 1709 declare_c2_type(CompareAndSwapNNode, CompareAndSwapNode) \
shade@39419 1710 declare_c2_type(WeakCompareAndSwapBNode, CompareAndSwapNode) \
shade@39419 1711 declare_c2_type(WeakCompareAndSwapSNode, CompareAndSwapNode) \
shade@36316 1712 declare_c2_type(WeakCompareAndSwapLNode, CompareAndSwapNode) \
shade@36316 1713 declare_c2_type(WeakCompareAndSwapINode, CompareAndSwapNode) \
shade@36316 1714 declare_c2_type(WeakCompareAndSwapPNode, CompareAndSwapNode) \
shade@36316 1715 declare_c2_type(WeakCompareAndSwapNNode, CompareAndSwapNode) \
shade@36316 1716 declare_c2_type(CompareAndExchangeNode, LoadStoreNode) \
shade@39419 1717 declare_c2_type(CompareAndExchangeBNode, CompareAndExchangeNode) \
shade@39419 1718 declare_c2_type(CompareAndExchangeSNode, CompareAndExchangeNode) \
shade@36316 1719 declare_c2_type(CompareAndExchangeLNode, CompareAndExchangeNode) \
shade@36316 1720 declare_c2_type(CompareAndExchangeINode, CompareAndExchangeNode) \
shade@36316 1721 declare_c2_type(CompareAndExchangePNode, CompareAndExchangeNode) \
shade@36316 1722 declare_c2_type(CompareAndExchangeNNode, CompareAndExchangeNode) \
never@10547 1723 declare_c2_type(MulNode, Node) \
never@10547 1724 declare_c2_type(MulINode, MulNode) \
never@10547 1725 declare_c2_type(MulLNode, MulNode) \
never@10547 1726 declare_c2_type(MulFNode, MulNode) \
never@10547 1727 declare_c2_type(MulDNode, MulNode) \
never@10547 1728 declare_c2_type(MulHiLNode, Node) \
never@10547 1729 declare_c2_type(AndINode, MulINode) \
never@10547 1730 declare_c2_type(AndLNode, MulLNode) \
never@10547 1731 declare_c2_type(LShiftINode, Node) \
never@10547 1732 declare_c2_type(LShiftLNode, Node) \
never@10547 1733 declare_c2_type(RShiftINode, Node) \
never@10547 1734 declare_c2_type(RShiftLNode, Node) \
never@10547 1735 declare_c2_type(URShiftINode, Node) \
never@10547 1736 declare_c2_type(URShiftLNode, Node) \
never@10547 1737 declare_c2_type(MultiNode, Node) \
never@10547 1738 declare_c2_type(ProjNode, Node) \
never@10547 1739 declare_c2_type(TypeNode, Node) \
never@10547 1740 declare_c2_type(NodeHash, StackObj) \
never@10547 1741 declare_c2_type(RootNode, LoopNode) \
never@10547 1742 declare_c2_type(HaltNode, Node) \
never@10547 1743 declare_c2_type(SubNode, Node) \
never@10547 1744 declare_c2_type(SubINode, SubNode) \
never@10547 1745 declare_c2_type(SubLNode, SubNode) \
never@10547 1746 declare_c2_type(SubFPNode, SubNode) \
never@10547 1747 declare_c2_type(SubFNode, SubFPNode) \
never@10547 1748 declare_c2_type(SubDNode, SubFPNode) \
never@10547 1749 declare_c2_type(CmpNode, SubNode) \
never@10547 1750 declare_c2_type(CmpINode, CmpNode) \
never@10547 1751 declare_c2_type(CmpUNode, CmpNode) \
never@10547 1752 declare_c2_type(CmpPNode, CmpNode) \
never@10547 1753 declare_c2_type(CmpNNode, CmpNode) \
never@10547 1754 declare_c2_type(CmpLNode, CmpNode) \
thartmann@45965 1755 declare_c2_type(CmpULNode, CmpNode) \
never@10547 1756 declare_c2_type(CmpL3Node, CmpLNode) \
never@10547 1757 declare_c2_type(CmpFNode, CmpNode) \
never@10547 1758 declare_c2_type(CmpF3Node, CmpFNode) \
never@10547 1759 declare_c2_type(CmpDNode, CmpNode) \
never@10547 1760 declare_c2_type(CmpD3Node, CmpDNode) \
never@10547 1761 declare_c2_type(BoolNode, Node) \
never@10547 1762 declare_c2_type(AbsNode, Node) \
never@10547 1763 declare_c2_type(AbsINode, AbsNode) \
never@10547 1764 declare_c2_type(AbsFNode, AbsNode) \
never@10547 1765 declare_c2_type(AbsDNode, AbsNode) \
never@10547 1766 declare_c2_type(CmpLTMaskNode, Node) \
never@10547 1767 declare_c2_type(NegNode, Node) \
never@10547 1768 declare_c2_type(NegFNode, NegNode) \
never@10547 1769 declare_c2_type(NegDNode, NegNode) \
never@10547 1770 declare_c2_type(AtanDNode, Node) \
rlupusoru@48089 1771 declare_c2_type(SqrtFNode, Node) \
never@10547 1772 declare_c2_type(SqrtDNode, Node) \
never@10547 1773 declare_c2_type(ReverseBytesINode, Node) \
never@10547 1774 declare_c2_type(ReverseBytesLNode, Node) \
kvn@30211 1775 declare_c2_type(ReductionNode, Node) \
never@10547 1776 declare_c2_type(VectorNode, Node) \
sviswanathan@54750 1777 declare_c2_type(AbsVBNode, VectorNode) \
sviswanathan@54750 1778 declare_c2_type(AbsVSNode, VectorNode) \
sviswanathan@54750 1779 declare_c2_type(AbsVINode, VectorNode) \
sviswanathan@54750 1780 declare_c2_type(AbsVLNode, VectorNode) \
never@10547 1781 declare_c2_type(AddVBNode, VectorNode) \
never@10547 1782 declare_c2_type(AddVSNode, VectorNode) \
never@10547 1783 declare_c2_type(AddVINode, VectorNode) \
kvn@30211 1784 declare_c2_type(AddReductionVINode, ReductionNode) \
never@10547 1785 declare_c2_type(AddVLNode, VectorNode) \
kvn@30211 1786 declare_c2_type(AddReductionVLNode, ReductionNode) \
never@10547 1787 declare_c2_type(AddVFNode, VectorNode) \
kvn@30211 1788 declare_c2_type(AddReductionVFNode, ReductionNode) \
never@10547 1789 declare_c2_type(AddVDNode, VectorNode) \
kvn@30211 1790 declare_c2_type(AddReductionVDNode, ReductionNode) \
never@10547 1791 declare_c2_type(SubVBNode, VectorNode) \
never@10547 1792 declare_c2_type(SubVSNode, VectorNode) \
never@10547 1793 declare_c2_type(SubVINode, VectorNode) \
never@10547 1794 declare_c2_type(SubVLNode, VectorNode) \
never@10547 1795 declare_c2_type(SubVFNode, VectorNode) \
never@10547 1796 declare_c2_type(SubVDNode, VectorNode) \
sviswanathan@54750 1797 declare_c2_type(MulVBNode, VectorNode) \
kvn@13893 1798 declare_c2_type(MulVSNode, VectorNode) \
kvn@30624 1799 declare_c2_type(MulVLNode, VectorNode) \
kvn@30624 1800 declare_c2_type(MulReductionVLNode, ReductionNode) \
kvn@13893 1801 declare_c2_type(MulVINode, VectorNode) \
kvn@30211 1802 declare_c2_type(MulReductionVINode, ReductionNode) \
never@10547 1803 declare_c2_type(MulVFNode, VectorNode) \
kvn@30211 1804 declare_c2_type(MulReductionVFNode, ReductionNode) \
never@10547 1805 declare_c2_type(MulVDNode, VectorNode) \
sviswanathan@54750 1806 declare_c2_type(NegVFNode, VectorNode) \
sviswanathan@54750 1807 declare_c2_type(NegVDNode, VectorNode) \
vdeshpande@46528 1808 declare_c2_type(FmaVDNode, VectorNode) \
vdeshpande@46528 1809 declare_c2_type(FmaVFNode, VectorNode) \
kvn@48309 1810 declare_c2_type(CMoveVFNode, VectorNode) \
iveresov@33469 1811 declare_c2_type(CMoveVDNode, VectorNode) \
kvn@30211 1812 declare_c2_type(MulReductionVDNode, ReductionNode) \
never@10547 1813 declare_c2_type(DivVFNode, VectorNode) \
never@10547 1814 declare_c2_type(DivVDNode, VectorNode) \
rlupusoru@49384 1815 declare_c2_type(PopCountVINode, VectorNode) \
never@10547 1816 declare_c2_type(LShiftVBNode, VectorNode) \
never@10547 1817 declare_c2_type(LShiftVSNode, VectorNode) \
never@10547 1818 declare_c2_type(LShiftVINode, VectorNode) \
kvn@13893 1819 declare_c2_type(LShiftVLNode, VectorNode) \
kvn@13104 1820 declare_c2_type(RShiftVBNode, VectorNode) \
kvn@13104 1821 declare_c2_type(RShiftVSNode, VectorNode) \
kvn@13104 1822 declare_c2_type(RShiftVINode, VectorNode) \
kvn@13893 1823 declare_c2_type(RShiftVLNode, VectorNode) \
kvn@13893 1824 declare_c2_type(URShiftVBNode, VectorNode) \
kvn@13893 1825 declare_c2_type(URShiftVSNode, VectorNode) \
kvn@13893 1826 declare_c2_type(URShiftVINode, VectorNode) \
kvn@13893 1827 declare_c2_type(URShiftVLNode, VectorNode) \
never@10547 1828 declare_c2_type(AndVNode, VectorNode) \
never@10547 1829 declare_c2_type(OrVNode, VectorNode) \
never@10547 1830 declare_c2_type(XorVNode, VectorNode) \
pli@54066 1831 declare_c2_type(MaxVNode, VectorNode) \
pli@54066 1832 declare_c2_type(MinVNode, VectorNode) \
pli@54066 1833 declare_c2_type(MaxReductionVNode, ReductionNode) \
pli@54066 1834 declare_c2_type(MinReductionVNode, ReductionNode) \
kvn@13104 1835 declare_c2_type(LoadVectorNode, LoadNode) \
kvn@13104 1836 declare_c2_type(StoreVectorNode, StoreNode) \
kvn@13104 1837 declare_c2_type(ReplicateBNode, VectorNode) \
kvn@13104 1838 declare_c2_type(ReplicateSNode, VectorNode) \
kvn@13104 1839 declare_c2_type(ReplicateINode, VectorNode) \
kvn@13104 1840 declare_c2_type(ReplicateLNode, VectorNode) \
kvn@13104 1841 declare_c2_type(ReplicateFNode, VectorNode) \
kvn@13104 1842 declare_c2_type(ReplicateDNode, VectorNode) \
never@10547 1843 declare_c2_type(PackNode, VectorNode) \
never@10547 1844 declare_c2_type(PackBNode, PackNode) \
never@10547 1845 declare_c2_type(PackSNode, PackNode) \
never@10547 1846 declare_c2_type(PackINode, PackNode) \
never@10547 1847 declare_c2_type(PackLNode, PackNode) \
never@10547 1848 declare_c2_type(PackFNode, PackNode) \
never@10547 1849 declare_c2_type(PackDNode, PackNode) \
kvn@13104 1850 declare_c2_type(Pack2LNode, PackNode) \
kvn@13104 1851 declare_c2_type(Pack2DNode, PackNode) \
never@10547 1852 declare_c2_type(ExtractNode, Node) \
never@10547 1853 declare_c2_type(ExtractBNode, ExtractNode) \
kvn@13893 1854 declare_c2_type(ExtractUBNode, ExtractNode) \
kvn@13893 1855 declare_c2_type(ExtractCNode, ExtractNode) \
never@10547 1856 declare_c2_type(ExtractSNode, ExtractNode) \
never@10547 1857 declare_c2_type(ExtractINode, ExtractNode) \
never@10547 1858 declare_c2_type(ExtractLNode, ExtractNode) \
never@10547 1859 declare_c2_type(ExtractFNode, ExtractNode) \
never@10547 1860 declare_c2_type(ExtractDNode, ExtractNode) \
rbackman@22911 1861 declare_c2_type(OverflowNode, CmpNode) \
rbackman@22911 1862 declare_c2_type(OverflowINode, OverflowNode) \
rbackman@22911 1863 declare_c2_type(OverflowAddINode, OverflowINode) \
rbackman@22911 1864 declare_c2_type(OverflowSubINode, OverflowINode) \
rbackman@22911 1865 declare_c2_type(OverflowMulINode, OverflowINode) \
rbackman@22911 1866 declare_c2_type(OverflowLNode, OverflowNode) \
rbackman@22911 1867 declare_c2_type(OverflowAddLNode, OverflowLNode) \
rbackman@22911 1868 declare_c2_type(OverflowSubLNode, OverflowLNode) \
rbackman@22911 1869 declare_c2_type(OverflowMulLNode, OverflowLNode) \
vdeshpande@41323 1870 declare_c2_type(FmaDNode, Node) \
vdeshpande@41323 1871 declare_c2_type(FmaFNode, Node) \
duke@1 1872 \
duke@1 1873 /*********************/ \
duke@1 1874 /* Adapter Blob Entries */ \
duke@1 1875 /*********************/ \
duke@1 1876 declare_toplevel_type(AdapterHandlerEntry) \
duke@1 1877 declare_toplevel_type(AdapterHandlerEntry*) \
duke@1 1878 \
never@10547 1879 /*********************/ \
never@10547 1880 /* CI */ \
never@10547 1881 /*********************/ \
never@10547 1882 declare_toplevel_type(ciEnv) \
never@10547 1883 declare_toplevel_type(ciObjectFactory) \
never@10547 1884 declare_toplevel_type(ciConstant) \
never@10547 1885 declare_toplevel_type(ciField) \
coleenp@13728 1886 declare_toplevel_type(ciSymbol) \
coleenp@13728 1887 declare_toplevel_type(ciBaseObject) \
coleenp@13728 1888 declare_type(ciObject, ciBaseObject) \
never@10547 1889 declare_type(ciInstance, ciObject) \
coleenp@13728 1890 declare_type(ciMetadata, ciBaseObject) \
coleenp@13728 1891 declare_type(ciMethod, ciMetadata) \
coleenp@13728 1892 declare_type(ciMethodData, ciMetadata) \
coleenp@13728 1893 declare_type(ciType, ciMetadata) \
never@10547 1894 declare_type(ciKlass, ciType) \
never@10547 1895 declare_type(ciInstanceKlass, ciKlass) \
never@10547 1896 declare_type(ciArrayKlass, ciKlass) \
never@10547 1897 declare_type(ciTypeArrayKlass, ciArrayKlass) \
never@10547 1898 declare_type(ciObjArrayKlass, ciArrayKlass) \
never@10547 1899 \
duke@1 1900 /********************/ \
duke@1 1901 /* -XX flags */ \
duke@1 1902 /********************/ \
duke@1 1903 \
gziemski@49902 1904 declare_toplevel_type(JVMFlag) \
gziemski@49902 1905 declare_toplevel_type(JVMFlag*) \
duke@1 1906 \
duke@1 1907 /********************/ \
never@10547 1908 /* JVMTI */ \
never@10547 1909 /********************/ \
never@10547 1910 \
never@10547 1911 declare_toplevel_type(JvmtiExport) \
never@10547 1912 \
never@10547 1913 /********************/ \
duke@1 1914 /* JDK/VM version */ \
duke@1 1915 /********************/ \
duke@1 1916 \
duke@1 1917 declare_toplevel_type(Abstract_VM_Version) \
duke@1 1918 declare_toplevel_type(JDK_Version) \
duke@1 1919 \
duke@1 1920 /*************/ \
duke@1 1921 /* Arguments */ \
duke@1 1922 /*************/ \
duke@1 1923 \
duke@1 1924 declare_toplevel_type(Arguments) \
duke@1 1925 \
ysuenaga@38266 1926 /***********/ \
ysuenaga@38266 1927 /* VMError */ \
ysuenaga@38266 1928 /***********/ \
ysuenaga@38266 1929 \
ysuenaga@38266 1930 declare_toplevel_type(VMError) \
ysuenaga@38266 1931 \
duke@1 1932 /***************/ \
duke@1 1933 /* Other types */ \
duke@1 1934 /***************/ \
duke@1 1935 \
duke@1 1936 /* all enum types */ \
duke@1 1937 \
duke@1 1938 declare_integer_type(Bytecodes::Code) \
duke@1 1939 declare_integer_type(Generation::Name) \
coleenp@13728 1940 declare_integer_type(InstanceKlass::ClassState) \
duke@1 1941 declare_integer_type(JavaThreadState) \
dbuck@46636 1942 declare_integer_type(ThreadState) \
duke@1 1943 declare_integer_type(Location::Type) \
duke@1 1944 declare_integer_type(Location::Where) \
gziemski@49902 1945 declare_integer_type(JVMFlag::Flags) \
never@10547 1946 COMPILER2_PRESENT(declare_integer_type(OptoReg::Name)) \
duke@1 1947 \
coleenp@13728 1948 declare_toplevel_type(CHeapObj<mtInternal>) \
coleenp@13728 1949 declare_type(Array<int>, MetaspaceObj) \
coleenp@13728 1950 declare_type(Array<u1>, MetaspaceObj) \
coleenp@13728 1951 declare_type(Array<u2>, MetaspaceObj) \
coleenp@13728 1952 declare_type(Array<Klass*>, MetaspaceObj) \
twisti@20288 1953 declare_type(Array<Method*>, MetaspaceObj) \
coleenp@13728 1954 \
stefank@38177 1955 declare_toplevel_type(BitMap) \
stefank@38177 1956 declare_type(BitMapView, BitMap) \
stefank@38177 1957 \
duke@1 1958 declare_integer_type(AccessFlags) /* FIXME: wrong type (not integer) */\
duke@1 1959 declare_toplevel_type(address) /* FIXME: should this be an integer type? */\
never@10547 1960 declare_integer_type(BasicType) /* FIXME: wrong type (not integer) */\
duke@1 1961 declare_toplevel_type(BreakpointInfo) \
duke@1 1962 declare_toplevel_type(BreakpointInfo*) \
duke@1 1963 declare_toplevel_type(CodeBlob*) \
rbackman@38133 1964 declare_toplevel_type(RuntimeBlob*) \
duke@1 1965 declare_toplevel_type(CompressedWriteStream*) \
duke@1 1966 declare_toplevel_type(ConstantPoolCacheEntry) \
duke@1 1967 declare_toplevel_type(elapsedTimer) \
never@10547 1968 declare_toplevel_type(frame) \
duke@1 1969 declare_toplevel_type(intptr_t*) \
duke@1 1970 declare_unsigned_integer_type(InvocationCounter) /* FIXME: wrong type (not integer) */ \
duke@1 1971 declare_toplevel_type(JavaThread*) \
rehn@54955 1972 declare_toplevel_type(JavaThread *const *const) \
never@8725 1973 declare_toplevel_type(java_lang_Class) \
never@10547 1974 declare_integer_type(JavaThread::AsyncRequests) \
sballal@45371 1975 declare_integer_type(JavaThread::TerminatedTypes) \
duke@1 1976 declare_toplevel_type(jbyte*) \
duke@1 1977 declare_toplevel_type(jbyte**) \
duke@1 1978 declare_toplevel_type(jint*) \
duke@1 1979 declare_toplevel_type(jniIdMapBase*) \
duke@1 1980 declare_unsigned_integer_type(juint) \
duke@1 1981 declare_unsigned_integer_type(julong) \
duke@1 1982 declare_toplevel_type(JNIHandleBlock*) \
duke@1 1983 declare_toplevel_type(JNIid) \
duke@1 1984 declare_toplevel_type(JNIid*) \
duke@1 1985 declare_toplevel_type(jmethodID*) \
duke@1 1986 declare_toplevel_type(Mutex*) \
duke@1 1987 declare_toplevel_type(nmethod*) \
never@10547 1988 COMPILER2_PRESENT(declare_unsigned_integer_type(node_idx_t)) \
duke@1 1989 declare_toplevel_type(ObjectMonitor*) \
coleenp@47634 1990 declare_toplevel_type(PaddedObjectMonitor*) \
duke@1 1991 declare_toplevel_type(oop*) \
duke@1 1992 declare_toplevel_type(OopMap**) \
duke@1 1993 declare_toplevel_type(OopMapCache*) \
duke@1 1994 declare_toplevel_type(OopMapSet*) \
duke@1 1995 declare_toplevel_type(VMReg) \
duke@1 1996 declare_toplevel_type(OSThread*) \
duke@1 1997 declare_integer_type(ReferenceType) \
duke@1 1998 declare_toplevel_type(StubQueue*) \
duke@1 1999 declare_toplevel_type(Thread*) \
never@10547 2000 declare_toplevel_type(Universe) \
stefank@54780 2001 declare_toplevel_type(CompressedOops) \
stefank@54780 2002 declare_toplevel_type(CompressedKlassPointers) \
twisti@20011 2003 declare_toplevel_type(os) \
never@10547 2004 declare_toplevel_type(vframeArray) \
coleenp@13728 2005 declare_toplevel_type(vframeArrayElement) \
jmasa@14123 2006 declare_toplevel_type(Annotations*) \
jgeorge@47816 2007 declare_type(OopMapValue, StackObj) \
jgeorge@49896 2008 declare_type(FileMapInfo, CHeapObj<mtInternal>) \
iklam@51477 2009 declare_toplevel_type(FileMapHeader) \
iklam@51477 2010 declare_toplevel_type(CDSFileMapRegion) \
jmasa@14123 2011 \
stefank@49730 2012 /************/ \
stefank@49730 2013 /* GC types */ \
stefank@49730 2014 /************/ \
jmasa@14123 2015 \
stefank@49730 2016 VM_TYPES_GC(declare_type, \
stefank@49730 2017 declare_toplevel_type, \
stefank@49730 2018 declare_integer_type)
duke@1 2019
duke@1 2020 //--------------------------------------------------------------------------------
duke@1 2021 // VM_INT_CONSTANTS
duke@1 2022 //
duke@1 2023 // This table contains integer constants required over in the
duke@1 2024 // serviceability agent. The "declare_constant" macro is used for all
duke@1 2025 // enums, etc., while "declare_preprocessor_constant" must be used for
duke@1 2026 // all #defined constants.
duke@1 2027
duke@1 2028 #define VM_INT_CONSTANTS(declare_constant, \
stefank@49730 2029 declare_constant_with_value, \
duke@1 2030 declare_preprocessor_constant, \
duke@1 2031 declare_c1_constant, \
duke@1 2032 declare_c2_constant, \
mikael@15189 2033 declare_c2_preprocessor_constant) \
duke@1 2034 \
stefank@49730 2035 /****************/ \
stefank@49730 2036 /* GC constants */ \
stefank@49730 2037 /****************/ \
stefank@49730 2038 \
stefank@49730 2039 VM_INT_CONSTANTS_GC(declare_constant, \
stefank@49730 2040 declare_constant_with_value) \
stefank@49730 2041 \
duke@1 2042 /******************/ \
duke@1 2043 /* Useful globals */ \
duke@1 2044 /******************/ \
duke@1 2045 \
twisti@20011 2046 declare_preprocessor_constant("ASSERT", DEBUG_ONLY(1) NOT_DEBUG(0)) \
duke@1 2047 \
duke@1 2048 /**************/ \
duke@1 2049 /* Stack bias */ \
duke@1 2050 /**************/ \
duke@1 2051 \
duke@1 2052 declare_preprocessor_constant("STACK_BIAS", STACK_BIAS) \
duke@1 2053 \
duke@1 2054 /****************/ \
duke@1 2055 /* Object sizes */ \
duke@1 2056 /****************/ \
duke@1 2057 \
coleenp@360 2058 declare_constant(oopSize) \
duke@1 2059 declare_constant(LogBytesPerWord) \
coleenp@13728 2060 declare_constant(BytesPerWord) \
duke@1 2061 declare_constant(BytesPerLong) \
duke@1 2062 \
twisti@20011 2063 declare_constant(LogKlassAlignmentInBytes) \
twisti@20011 2064 \
duke@1 2065 declare_constant(HeapWordSize) \
duke@1 2066 declare_constant(LogHeapWordSize) \
duke@1 2067 \
duke@1 2068 \
duke@1 2069 /************************/ \
duke@1 2070 /* PerfMemory - jvmstat */ \
duke@1 2071 /************************/ \
duke@1 2072 \
duke@1 2073 declare_preprocessor_constant("PERFDATA_MAJOR_VERSION", PERFDATA_MAJOR_VERSION) \
duke@1 2074 declare_preprocessor_constant("PERFDATA_MINOR_VERSION", PERFDATA_MINOR_VERSION) \
duke@1 2075 declare_preprocessor_constant("PERFDATA_BIG_ENDIAN", PERFDATA_BIG_ENDIAN) \
duke@1 2076 declare_preprocessor_constant("PERFDATA_LITTLE_ENDIAN", PERFDATA_LITTLE_ENDIAN) \
duke@1 2077 \
duke@1 2078 \
duke@1 2079 /************************************************************/ \
duke@1 2080 /* HotSpot specific JVM_ACC constants from global anon enum */ \
duke@1 2081 /************************************************************/ \
duke@1 2082 \
duke@1 2083 declare_constant(JVM_ACC_WRITTEN_FLAGS) \
duke@1 2084 declare_constant(JVM_ACC_MONITOR_MATCH) \
duke@1 2085 declare_constant(JVM_ACC_HAS_MONITOR_BYTECODES) \
duke@1 2086 declare_constant(JVM_ACC_HAS_LOOPS) \
duke@1 2087 declare_constant(JVM_ACC_LOOPS_FLAG_INIT) \
duke@1 2088 declare_constant(JVM_ACC_QUEUED) \
twisti@13891 2089 declare_constant(JVM_ACC_NOT_C2_OSR_COMPILABLE) \
duke@1 2090 declare_constant(JVM_ACC_HAS_LINE_NUMBER_TABLE) \
duke@1 2091 declare_constant(JVM_ACC_HAS_CHECKED_EXCEPTIONS) \
duke@1 2092 declare_constant(JVM_ACC_HAS_JSRS) \
duke@1 2093 declare_constant(JVM_ACC_IS_OLD) \
duke@1 2094 declare_constant(JVM_ACC_IS_OBSOLETE) \
duke@1 2095 declare_constant(JVM_ACC_IS_PREFIXED_NATIVE) \
duke@1 2096 declare_constant(JVM_ACC_HAS_MIRANDA_METHODS) \
duke@1 2097 declare_constant(JVM_ACC_HAS_VANILLA_CONSTRUCTOR) \
duke@1 2098 declare_constant(JVM_ACC_HAS_FINALIZER) \
vlivanov@35544 2099 declare_constant(JVM_ACC_IS_CLONEABLE_FAST) \
duke@1 2100 declare_constant(JVM_ACC_HAS_LOCAL_VARIABLE_TABLE) \
duke@1 2101 declare_constant(JVM_ACC_PROMOTED_FLAGS) \
duke@1 2102 declare_constant(JVM_ACC_FIELD_ACCESS_WATCHED) \
duke@1 2103 declare_constant(JVM_ACC_FIELD_MODIFICATION_WATCHED) \
twisti@33160 2104 declare_constant(JVM_ACC_FIELD_INTERNAL) \
twisti@33160 2105 declare_constant(JVM_ACC_FIELD_STABLE) \
twisti@33160 2106 declare_constant(JVM_ACC_FIELD_HAS_GENERIC_SIGNATURE) \
twisti@33160 2107 \
twisti@33160 2108 declare_constant(JVM_CONSTANT_Utf8) \
twisti@33160 2109 declare_constant(JVM_CONSTANT_Unicode) \
twisti@33160 2110 declare_constant(JVM_CONSTANT_Integer) \
twisti@33160 2111 declare_constant(JVM_CONSTANT_Float) \
twisti@33160 2112 declare_constant(JVM_CONSTANT_Long) \
twisti@33160 2113 declare_constant(JVM_CONSTANT_Double) \
twisti@33160 2114 declare_constant(JVM_CONSTANT_Class) \
twisti@33160 2115 declare_constant(JVM_CONSTANT_String) \
twisti@33160 2116 declare_constant(JVM_CONSTANT_Fieldref) \
twisti@33160 2117 declare_constant(JVM_CONSTANT_Methodref) \
twisti@33160 2118 declare_constant(JVM_CONSTANT_InterfaceMethodref) \
twisti@33160 2119 declare_constant(JVM_CONSTANT_NameAndType) \
twisti@33160 2120 declare_constant(JVM_CONSTANT_MethodHandle) \
twisti@33160 2121 declare_constant(JVM_CONSTANT_MethodType) \
psandoz@48826 2122 declare_constant(JVM_CONSTANT_Dynamic) \
twisti@33160 2123 declare_constant(JVM_CONSTANT_InvokeDynamic) \
lfoltan@54595 2124 declare_constant(JVM_CONSTANT_Module) \
lfoltan@54595 2125 declare_constant(JVM_CONSTANT_Package) \
twisti@33160 2126 declare_constant(JVM_CONSTANT_ExternalMax) \
twisti@33160 2127 \
twisti@33160 2128 declare_constant(JVM_CONSTANT_Invalid) \
twisti@33160 2129 declare_constant(JVM_CONSTANT_InternalMin) \
twisti@33160 2130 declare_constant(JVM_CONSTANT_UnresolvedClass) \
twisti@33160 2131 declare_constant(JVM_CONSTANT_ClassIndex) \
twisti@33160 2132 declare_constant(JVM_CONSTANT_StringIndex) \
twisti@33160 2133 declare_constant(JVM_CONSTANT_UnresolvedClassInError) \
twisti@33160 2134 declare_constant(JVM_CONSTANT_MethodHandleInError) \
twisti@33160 2135 declare_constant(JVM_CONSTANT_MethodTypeInError) \
psandoz@48826 2136 declare_constant(JVM_CONSTANT_DynamicInError) \
twisti@33160 2137 declare_constant(JVM_CONSTANT_InternalMax) \
duke@1 2138 \
duke@1 2139 /*****************************/ \
duke@1 2140 /* Thread::SuspendFlags enum */ \
duke@1 2141 /*****************************/ \
duke@1 2142 \
duke@1 2143 declare_constant(Thread::_external_suspend) \
duke@1 2144 declare_constant(Thread::_ext_suspended) \
duke@1 2145 declare_constant(Thread::_has_async_exception) \
duke@1 2146 \
duke@1 2147 /*******************/ \
duke@1 2148 /* JavaThreadState */ \
duke@1 2149 /*******************/ \
duke@1 2150 \
duke@1 2151 declare_constant(_thread_uninitialized) \
duke@1 2152 declare_constant(_thread_new) \
duke@1 2153 declare_constant(_thread_new_trans) \
duke@1 2154 declare_constant(_thread_in_native) \
duke@1 2155 declare_constant(_thread_in_native_trans) \
duke@1 2156 declare_constant(_thread_in_vm) \
duke@1 2157 declare_constant(_thread_in_vm_trans) \
duke@1 2158 declare_constant(_thread_in_Java) \
duke@1 2159 declare_constant(_thread_in_Java_trans) \
duke@1 2160 declare_constant(_thread_blocked) \
duke@1 2161 declare_constant(_thread_blocked_trans) \
sballal@45371 2162 declare_constant(JavaThread::_not_terminated) \
sballal@45371 2163 declare_constant(JavaThread::_thread_exiting) \
duke@1 2164 \
dbuck@46636 2165 /*******************/ \
dbuck@46636 2166 /* JavaThreadState */ \
dbuck@46636 2167 /*******************/ \
dbuck@46636 2168 \
dbuck@46636 2169 declare_constant(ALLOCATED) \
dbuck@46636 2170 declare_constant(INITIALIZED) \
dbuck@46636 2171 declare_constant(RUNNABLE) \
dbuck@46636 2172 declare_constant(MONITOR_WAIT) \
dbuck@46636 2173 declare_constant(CONDVAR_WAIT) \
dbuck@46636 2174 declare_constant(OBJECT_WAIT) \
dbuck@46636 2175 declare_constant(BREAKPOINTED) \
dbuck@46636 2176 declare_constant(SLEEPING) \
dbuck@46636 2177 declare_constant(ZOMBIE) \
dbuck@46636 2178 \
duke@1 2179 /******************************/ \
duke@1 2180 /* Klass misc. enum constants */ \
duke@1 2181 /******************************/ \
duke@1 2182 \
duke@1 2183 declare_constant(Klass::_primary_super_limit) \
twisti@33160 2184 declare_constant(Klass::_lh_neutral_value) \
duke@1 2185 declare_constant(Klass::_lh_instance_slow_path_bit) \
duke@1 2186 declare_constant(Klass::_lh_log2_element_size_shift) \
twisti@20011 2187 declare_constant(Klass::_lh_log2_element_size_mask) \
duke@1 2188 declare_constant(Klass::_lh_element_type_shift) \
twisti@20011 2189 declare_constant(Klass::_lh_element_type_mask) \
duke@1 2190 declare_constant(Klass::_lh_header_size_shift) \
twisti@20011 2191 declare_constant(Klass::_lh_header_size_mask) \
duke@1 2192 declare_constant(Klass::_lh_array_tag_shift) \
duke@1 2193 declare_constant(Klass::_lh_array_tag_type_value) \
duke@1 2194 declare_constant(Klass::_lh_array_tag_obj_value) \
duke@1 2195 \
duke@1 2196 /********************************/ \
coleenp@15601 2197 /* ConstMethod anon-enum */ \
duke@1 2198 /********************************/ \
duke@1 2199 \
twisti@23219 2200 declare_constant(Method::_caller_sensitive) \
twisti@23219 2201 declare_constant(Method::_force_inline) \
twisti@23219 2202 declare_constant(Method::_dont_inline) \
twisti@23219 2203 declare_constant(Method::_hidden) \
twisti@23219 2204 \
twisti@33160 2205 declare_constant(Method::nonvirtual_vtable_index) \
twisti@33160 2206 \
twisti@33160 2207 declare_constant(Method::extra_stack_entries_for_jsr292) \
twisti@33160 2208 \
coleenp@15601 2209 declare_constant(ConstMethod::_has_linenumber_table) \
coleenp@15601 2210 declare_constant(ConstMethod::_has_checked_exceptions) \
coleenp@15601 2211 declare_constant(ConstMethod::_has_localvariable_table) \
coleenp@15601 2212 declare_constant(ConstMethod::_has_exception_table) \
coleenp@15601 2213 declare_constant(ConstMethod::_has_generic_signature) \
dsamersoff@21072 2214 declare_constant(ConstMethod::_has_method_parameters) \
coleenp@15601 2215 declare_constant(ConstMethod::_has_method_annotations) \
coleenp@15601 2216 declare_constant(ConstMethod::_has_parameter_annotations) \
coleenp@15601 2217 declare_constant(ConstMethod::_has_default_annotations) \
coleenp@15601 2218 declare_constant(ConstMethod::_has_type_annotations) \
duke@1 2219 \
twisti@20011 2220 /**************/ \
twisti@20011 2221 /* DataLayout */ \
twisti@20011 2222 /**************/ \
twisti@20011 2223 \
twisti@20011 2224 declare_constant(DataLayout::cell_size) \
twisti@33160 2225 declare_constant(DataLayout::no_tag) \
twisti@33160 2226 declare_constant(DataLayout::bit_data_tag) \
twisti@33160 2227 declare_constant(DataLayout::counter_data_tag) \
twisti@33160 2228 declare_constant(DataLayout::jump_data_tag) \
twisti@33160 2229 declare_constant(DataLayout::receiver_type_data_tag) \
twisti@33160 2230 declare_constant(DataLayout::virtual_call_data_tag) \
twisti@33160 2231 declare_constant(DataLayout::ret_data_tag) \
twisti@33160 2232 declare_constant(DataLayout::branch_data_tag) \
twisti@33160 2233 declare_constant(DataLayout::multi_branch_data_tag) \
twisti@33160 2234 declare_constant(DataLayout::arg_info_data_tag) \
twisti@33160 2235 declare_constant(DataLayout::call_type_data_tag) \
twisti@33160 2236 declare_constant(DataLayout::virtual_call_type_data_tag) \
twisti@33160 2237 declare_constant(DataLayout::parameters_type_data_tag) \
twisti@33160 2238 declare_constant(DataLayout::speculative_trap_data_tag) \
twisti@20011 2239 \
duke@1 2240 /*************************************/ \
coleenp@13728 2241 /* InstanceKlass enum */ \
duke@1 2242 /*************************************/ \
duke@1 2243 \
duke@1 2244 \
never@10546 2245 /*************************************/ \
never@10546 2246 /* FieldInfo FieldOffset enum */ \
never@10546 2247 /*************************************/ \
never@10546 2248 \
never@10546 2249 declare_constant(FieldInfo::access_flags_offset) \
never@10546 2250 declare_constant(FieldInfo::name_index_offset) \
never@10546 2251 declare_constant(FieldInfo::signature_index_offset) \
never@10546 2252 declare_constant(FieldInfo::initval_index_offset) \
jwilhelm@15193 2253 declare_constant(FieldInfo::low_packed_offset) \
jwilhelm@15193 2254 declare_constant(FieldInfo::high_packed_offset) \
never@10546 2255 declare_constant(FieldInfo::field_slots) \
never@10546 2256 \
jwilhelm@15193 2257 /*************************************/ \
jwilhelm@15193 2258 /* FieldInfo tag constants */ \
jwilhelm@15193 2259 /*************************************/ \
jwilhelm@15193 2260 \
jwilhelm@15193 2261 declare_preprocessor_constant("FIELDINFO_TAG_SIZE", FIELDINFO_TAG_SIZE) \
sla@15225 2262 declare_preprocessor_constant("FIELDINFO_TAG_MASK", FIELDINFO_TAG_MASK) \
jwilhelm@15193 2263 declare_preprocessor_constant("FIELDINFO_TAG_OFFSET", FIELDINFO_TAG_OFFSET) \
jwilhelm@15193 2264 \
duke@1 2265 /************************************************/ \
coleenp@13728 2266 /* InstanceKlass InnerClassAttributeOffset enum */ \
duke@1 2267 /************************************************/ \
duke@1 2268 \
coleenp@13728 2269 declare_constant(InstanceKlass::inner_class_inner_class_info_offset) \
coleenp@13728 2270 declare_constant(InstanceKlass::inner_class_outer_class_info_offset) \
coleenp@13728 2271 declare_constant(InstanceKlass::inner_class_inner_name_offset) \
coleenp@13728 2272 declare_constant(InstanceKlass::inner_class_access_flags_offset) \
coleenp@13728 2273 declare_constant(InstanceKlass::inner_class_next_offset) \
duke@1 2274 \
jgeorge@48166 2275 /*****************************************************/ \
jgeorge@48166 2276 /* InstanceKlass EnclosingMethodAttributeOffset enum */ \
jgeorge@48166 2277 /*****************************************************/ \
jgeorge@48166 2278 \
jgeorge@48166 2279 declare_constant(InstanceKlass::enclosing_method_attribute_size) \
jgeorge@48166 2280 \
duke@1 2281 /*********************************/ \
coleenp@13728 2282 /* InstanceKlass ClassState enum */ \
duke@1 2283 /*********************************/ \
duke@1 2284 \
coleenp@13728 2285 declare_constant(InstanceKlass::allocated) \
coleenp@13728 2286 declare_constant(InstanceKlass::loaded) \
coleenp@13728 2287 declare_constant(InstanceKlass::linked) \
coleenp@13728 2288 declare_constant(InstanceKlass::being_initialized) \
coleenp@13728 2289 declare_constant(InstanceKlass::fully_initialized) \
coleenp@13728 2290 declare_constant(InstanceKlass::initialization_error) \
duke@1 2291 \
kvn@42650 2292 /***************************************/ \
kvn@42650 2293 /* InstanceKlass enums for _misc_flags */ \
kvn@42650 2294 /***************************************/ \
kvn@42650 2295 \
kvn@42650 2296 declare_constant(InstanceKlass::_misc_rewritten) \
kvn@42650 2297 declare_constant(InstanceKlass::_misc_has_nonstatic_fields) \
kvn@42650 2298 declare_constant(InstanceKlass::_misc_should_verify_class) \
lfoltan@51444 2299 declare_constant(InstanceKlass::_misc_is_unsafe_anonymous) \
kvn@42650 2300 declare_constant(InstanceKlass::_misc_is_contended) \
kvn@42650 2301 declare_constant(InstanceKlass::_misc_has_nonstatic_concrete_methods) \
kvn@42650 2302 declare_constant(InstanceKlass::_misc_declares_nonstatic_concrete_methods)\
kvn@42650 2303 declare_constant(InstanceKlass::_misc_has_been_redefined) \
kvn@42650 2304 declare_constant(InstanceKlass::_misc_has_passed_fingerprint_check) \
kvn@42650 2305 declare_constant(InstanceKlass::_misc_is_scratch_class) \
kvn@42650 2306 declare_constant(InstanceKlass::_misc_is_shared_boot_class) \
kvn@42650 2307 declare_constant(InstanceKlass::_misc_is_shared_platform_class) \
kvn@42650 2308 declare_constant(InstanceKlass::_misc_is_shared_app_class) \
kvn@42650 2309 \
duke@1 2310 /*********************************/ \
twisti@13391 2311 /* Symbol* - symbol max length */ \
duke@1 2312 /*********************************/ \
duke@1 2313 \
coleenp@8076 2314 declare_constant(Symbol::max_symbol_length) \
duke@1 2315 \
twisti@33160 2316 /***********************************************/ \
twisti@33160 2317 /* ConstantPool* layout enum for InvokeDynamic */ \
twisti@33160 2318 /***********************************************/ \
jrose@7114 2319 \
twisti@33160 2320 declare_constant(ConstantPool::_indy_bsm_offset) \
twisti@33160 2321 declare_constant(ConstantPool::_indy_argc_offset) \
twisti@33160 2322 declare_constant(ConstantPool::_indy_argv_offset) \
twisti@33160 2323 declare_constant(ConstantPool::CPCACHE_INDEX_TAG) \
jrose@7114 2324 \
twisti@13391 2325 /********************************/ \
twisti@13391 2326 /* ConstantPoolCacheEntry enums */ \
twisti@13391 2327 /********************************/ \
duke@1 2328 \
twisti@13391 2329 declare_constant(ConstantPoolCacheEntry::is_volatile_shift) \
twisti@13391 2330 declare_constant(ConstantPoolCacheEntry::is_final_shift) \
twisti@13391 2331 declare_constant(ConstantPoolCacheEntry::is_forced_virtual_shift) \
twisti@13391 2332 declare_constant(ConstantPoolCacheEntry::is_vfinal_shift) \
twisti@13391 2333 declare_constant(ConstantPoolCacheEntry::is_field_entry_shift) \
twisti@13391 2334 declare_constant(ConstantPoolCacheEntry::tos_state_shift) \
duke@1 2335 \
duke@1 2336 /***************************************/ \
duke@1 2337 /* java_lang_Thread::ThreadStatus enum */ \
duke@1 2338 /***************************************/ \
duke@1 2339 \
duke@1 2340 declare_constant(java_lang_Thread::NEW) \
duke@1 2341 declare_constant(java_lang_Thread::RUNNABLE) \
duke@1 2342 declare_constant(java_lang_Thread::SLEEPING) \
duke@1 2343 declare_constant(java_lang_Thread::IN_OBJECT_WAIT) \
duke@1 2344 declare_constant(java_lang_Thread::IN_OBJECT_WAIT_TIMED) \
duke@1 2345 declare_constant(java_lang_Thread::PARKED) \
duke@1 2346 declare_constant(java_lang_Thread::PARKED_TIMED) \
duke@1 2347 declare_constant(java_lang_Thread::BLOCKED_ON_MONITOR_ENTER) \
duke@1 2348 declare_constant(java_lang_Thread::TERMINATED) \
duke@1 2349 \
duke@1 2350 /******************************/ \
duke@1 2351 /* Debug info */ \
duke@1 2352 /******************************/ \
duke@1 2353 \
duke@1 2354 declare_constant(Location::OFFSET_MASK) \
duke@1 2355 declare_constant(Location::OFFSET_SHIFT) \
duke@1 2356 declare_constant(Location::TYPE_MASK) \
duke@1 2357 declare_constant(Location::TYPE_SHIFT) \
duke@1 2358 declare_constant(Location::WHERE_MASK) \
duke@1 2359 declare_constant(Location::WHERE_SHIFT) \
duke@1 2360 \
duke@1 2361 /* constants from Location::Type enum */ \
duke@1 2362 \
duke@1 2363 declare_constant(Location::normal) \
duke@1 2364 declare_constant(Location::oop) \
kvn@1135 2365 declare_constant(Location::narrowoop) \
duke@1 2366 declare_constant(Location::int_in_long) \
duke@1 2367 declare_constant(Location::lng) \
duke@1 2368 declare_constant(Location::float_in_dbl) \
duke@1 2369 declare_constant(Location::dbl) \
duke@1 2370 declare_constant(Location::addr) \
duke@1 2371 declare_constant(Location::invalid) \
duke@1 2372 \
duke@1 2373 /* constants from Location::Where enum */ \
duke@1 2374 \
duke@1 2375 declare_constant(Location::on_stack) \
duke@1 2376 declare_constant(Location::in_register) \
duke@1 2377 \
never@10547 2378 declare_constant(Deoptimization::Reason_many) \
never@10547 2379 declare_constant(Deoptimization::Reason_none) \
never@10547 2380 declare_constant(Deoptimization::Reason_null_check) \
never@10547 2381 declare_constant(Deoptimization::Reason_null_assert) \
never@10547 2382 declare_constant(Deoptimization::Reason_range_check) \
never@10547 2383 declare_constant(Deoptimization::Reason_class_check) \
never@10547 2384 declare_constant(Deoptimization::Reason_array_check) \
never@10547 2385 declare_constant(Deoptimization::Reason_intrinsic) \
never@10547 2386 declare_constant(Deoptimization::Reason_bimorphic) \
roland@50623 2387 declare_constant(Deoptimization::Reason_profile_predicate) \
never@10547 2388 declare_constant(Deoptimization::Reason_unloaded) \
never@10547 2389 declare_constant(Deoptimization::Reason_uninitialized) \
vlivanov@55105 2390 declare_constant(Deoptimization::Reason_initialized) \
never@10547 2391 declare_constant(Deoptimization::Reason_unreached) \
never@10547 2392 declare_constant(Deoptimization::Reason_unhandled) \
never@10547 2393 declare_constant(Deoptimization::Reason_constraint) \
never@10547 2394 declare_constant(Deoptimization::Reason_div0_check) \
never@10547 2395 declare_constant(Deoptimization::Reason_age) \
never@10547 2396 declare_constant(Deoptimization::Reason_predicate) \
never@10547 2397 declare_constant(Deoptimization::Reason_loop_limit_check) \
roland@24476 2398 declare_constant(Deoptimization::Reason_speculate_class_check) \
roland@24476 2399 declare_constant(Deoptimization::Reason_speculate_null_check) \
roland@46542 2400 declare_constant(Deoptimization::Reason_speculate_null_assert) \
roland@24476 2401 declare_constant(Deoptimization::Reason_rtm_state_change) \
rbackman@24934 2402 declare_constant(Deoptimization::Reason_unstable_if) \
roland@30183 2403 declare_constant(Deoptimization::Reason_unstable_fused_if) \
dsamersoff@40893 2404 NOT_ZERO(JVMCI_ONLY(declare_constant(Deoptimization::Reason_aliasing))) \
dsamersoff@40893 2405 NOT_ZERO(JVMCI_ONLY(declare_constant(Deoptimization::Reason_transfer_to_interpreter))) \
dsamersoff@40893 2406 NOT_ZERO(JVMCI_ONLY(declare_constant(Deoptimization::Reason_not_compiled_exception_handler))) \
dsamersoff@40893 2407 NOT_ZERO(JVMCI_ONLY(declare_constant(Deoptimization::Reason_unresolved))) \
dsamersoff@40893 2408 NOT_ZERO(JVMCI_ONLY(declare_constant(Deoptimization::Reason_jsr_mismatch))) \
roland@24476 2409 declare_constant(Deoptimization::Reason_tenured) \
never@10547 2410 declare_constant(Deoptimization::Reason_LIMIT) \
never@10547 2411 declare_constant(Deoptimization::Reason_RECORDED_LIMIT) \
never@10547 2412 \
twisti@20011 2413 declare_constant(Deoptimization::Action_none) \
twisti@20011 2414 declare_constant(Deoptimization::Action_maybe_recompile) \
twisti@20011 2415 declare_constant(Deoptimization::Action_reinterpret) \
twisti@20011 2416 declare_constant(Deoptimization::Action_make_not_entrant) \
twisti@20011 2417 declare_constant(Deoptimization::Action_make_not_compilable) \
twisti@20011 2418 declare_constant(Deoptimization::Action_LIMIT) \
twisti@20011 2419 \
dcubed@27165 2420 /***************************************************/ \
dcubed@27165 2421 /* DEFAULT_CACHE_LINE_SIZE (globalDefinitions.hpp) */ \
dcubed@27165 2422 /***************************************************/ \
dcubed@27165 2423 \
ysuenaga@40356 2424 declare_preprocessor_constant("DEFAULT_CACHE_LINE_SIZE", DEFAULT_CACHE_LINE_SIZE) \
dcubed@27165 2425 \
twisti@33160 2426 declare_constant(Deoptimization::Unpack_deopt) \
twisti@33160 2427 declare_constant(Deoptimization::Unpack_exception) \
twisti@33160 2428 declare_constant(Deoptimization::Unpack_uncommon_trap) \
twisti@33160 2429 declare_constant(Deoptimization::Unpack_reexecute) \
twisti@33160 2430 \
twisti@33160 2431 declare_constant(Deoptimization::_action_bits) \
twisti@33160 2432 declare_constant(Deoptimization::_reason_bits) \
twisti@33160 2433 declare_constant(Deoptimization::_debug_id_bits) \
twisti@33160 2434 declare_constant(Deoptimization::_action_shift) \
twisti@33160 2435 declare_constant(Deoptimization::_reason_shift) \
twisti@33160 2436 declare_constant(Deoptimization::_debug_id_shift) \
twisti@33160 2437 \
ysuenaga@48175 2438 /******************************************/ \
ysuenaga@48175 2439 /* BasicType enum (globalDefinitions.hpp) */ \
ysuenaga@48175 2440 /******************************************/ \
ysuenaga@48175 2441 \
ysuenaga@48175 2442 declare_constant(T_BOOLEAN) \
ysuenaga@48175 2443 declare_constant(T_CHAR) \
ysuenaga@48175 2444 declare_constant(T_FLOAT) \
ysuenaga@48175 2445 declare_constant(T_DOUBLE) \
ysuenaga@48175 2446 declare_constant(T_BYTE) \
ysuenaga@48175 2447 declare_constant(T_SHORT) \
ysuenaga@48175 2448 declare_constant(T_INT) \
ysuenaga@48175 2449 declare_constant(T_LONG) \
ysuenaga@48175 2450 declare_constant(T_OBJECT) \
ysuenaga@48175 2451 declare_constant(T_ARRAY) \
ysuenaga@48175 2452 declare_constant(T_VOID) \
ysuenaga@48175 2453 declare_constant(T_ADDRESS) \
ysuenaga@48175 2454 declare_constant(T_NARROWOOP) \
ysuenaga@48175 2455 declare_constant(T_METADATA) \
ysuenaga@48175 2456 declare_constant(T_NARROWKLASS) \
ysuenaga@48175 2457 declare_constant(T_CONFLICT) \
ysuenaga@48175 2458 declare_constant(T_ILLEGAL) \
ysuenaga@48175 2459 \
ysuenaga@48175 2460 /**********************************************/ \
ysuenaga@48175 2461 /* BasicTypeSize enum (globalDefinitions.hpp) */ \
ysuenaga@48175 2462 /**********************************************/ \
ysuenaga@48175 2463 \
ysuenaga@48175 2464 declare_constant(T_BOOLEAN_size) \
ysuenaga@48175 2465 declare_constant(T_CHAR_size) \
ysuenaga@48175 2466 declare_constant(T_FLOAT_size) \
ysuenaga@48175 2467 declare_constant(T_DOUBLE_size) \
ysuenaga@48175 2468 declare_constant(T_BYTE_size) \
ysuenaga@48175 2469 declare_constant(T_SHORT_size) \
ysuenaga@48175 2470 declare_constant(T_INT_size) \
ysuenaga@48175 2471 declare_constant(T_LONG_size) \
ysuenaga@48175 2472 declare_constant(T_OBJECT_size) \
ysuenaga@48175 2473 declare_constant(T_ARRAY_size) \
ysuenaga@48175 2474 declare_constant(T_NARROWOOP_size) \
ysuenaga@48175 2475 declare_constant(T_NARROWKLASS_size) \
ysuenaga@48175 2476 declare_constant(T_VOID_size) \
ysuenaga@48175 2477 \
duke@1 2478 /*********************/ \
duke@1 2479 /* Matcher (C2 only) */ \
duke@1 2480 /*********************/ \
duke@1 2481 \
duke@1 2482 declare_c2_preprocessor_constant("Matcher::interpreter_frame_pointer_reg", Matcher::interpreter_frame_pointer_reg()) \
duke@1 2483 \
duke@1 2484 /*********************************************/ \
duke@1 2485 /* MethodCompilation (globalDefinitions.hpp) */ \
duke@1 2486 /*********************************************/ \
duke@1 2487 \
duke@1 2488 declare_constant(InvocationEntryBci) \
duke@1 2489 \
twisti@33160 2490 /*************/ \
twisti@33160 2491 /* CompLevel */ \
twisti@33160 2492 /*************/ \
twisti@33160 2493 \
twisti@33160 2494 declare_constant(CompLevel_any) \
twisti@33160 2495 declare_constant(CompLevel_all) \
twisti@33160 2496 declare_constant(CompLevel_none) \
twisti@33160 2497 declare_constant(CompLevel_simple) \
twisti@33160 2498 declare_constant(CompLevel_limited_profile) \
twisti@33160 2499 declare_constant(CompLevel_full_profile) \
twisti@33160 2500 declare_constant(CompLevel_full_optimization) \
kvn@42650 2501 declare_constant(CompLevel_aot) \
twisti@33160 2502 \
duke@1 2503 /***************/ \
duke@1 2504 /* OopMapValue */ \
duke@1 2505 /***************/ \
duke@1 2506 \
duke@1 2507 declare_constant(OopMapValue::type_bits) \
duke@1 2508 declare_constant(OopMapValue::register_bits) \
duke@1 2509 declare_constant(OopMapValue::type_shift) \
duke@1 2510 declare_constant(OopMapValue::register_shift) \
duke@1 2511 declare_constant(OopMapValue::type_mask) \
duke@1 2512 declare_constant(OopMapValue::type_mask_in_place) \
duke@1 2513 declare_constant(OopMapValue::register_mask) \
duke@1 2514 declare_constant(OopMapValue::register_mask_in_place) \
duke@1 2515 declare_constant(OopMapValue::unused_value) \
duke@1 2516 declare_constant(OopMapValue::oop_value) \
coleenp@360 2517 declare_constant(OopMapValue::narrowoop_value) \
duke@1 2518 declare_constant(OopMapValue::callee_saved_value) \
duke@1 2519 declare_constant(OopMapValue::derived_oop_value) \
duke@1 2520 \
duke@1 2521 /******************/ \
duke@1 2522 /* JNIHandleBlock */ \
duke@1 2523 /******************/ \
duke@1 2524 \
duke@1 2525 declare_constant(JNIHandleBlock::block_size_in_oops) \
duke@1 2526 \
duke@1 2527 /**********************/ \
duke@1 2528 /* ObjectSynchronizer */ \
duke@1 2529 /**********************/ \
duke@1 2530 \
duke@1 2531 declare_constant(ObjectSynchronizer::_BLOCKSIZE) \
duke@1 2532 \
never@10517 2533 /**********************/ \
never@10517 2534 /* PcDesc */ \
never@10517 2535 /**********************/ \
never@10517 2536 \
never@10517 2537 declare_constant(PcDesc::PCDESC_reexecute) \
never@10517 2538 declare_constant(PcDesc::PCDESC_is_method_handle_invoke) \
never@10517 2539 declare_constant(PcDesc::PCDESC_return_oop) \
never@10517 2540 \
never@10517 2541 /**********************/ \
never@10517 2542 /* frame */ \
never@10517 2543 /**********************/ \
simonis@28369 2544 NOT_ZERO(PPC64_ONLY(declare_constant(frame::entry_frame_locals_size))) \
never@10517 2545 \
twisti@14294 2546 NOT_ZERO(X86_ONLY(declare_constant(frame::entry_frame_call_wrapper_offset))) \
never@10517 2547 declare_constant(frame::pc_return_offset) \
never@10517 2548 \
never@10567 2549 /*************/ \
never@10567 2550 /* vmSymbols */ \
never@10567 2551 /*************/ \
never@10567 2552 \
never@10567 2553 declare_constant(vmSymbols::FIRST_SID) \
never@10567 2554 declare_constant(vmSymbols::SID_LIMIT) \
never@10567 2555 \
twisti@20011 2556 /****************/ \
twisti@20011 2557 /* vmIntrinsics */ \
twisti@20011 2558 /****************/ \
twisti@20011 2559 \
twisti@20011 2560 declare_constant(vmIntrinsics::_invokeBasic) \
twisti@20011 2561 declare_constant(vmIntrinsics::_linkToVirtual) \
twisti@20011 2562 declare_constant(vmIntrinsics::_linkToStatic) \
twisti@20011 2563 declare_constant(vmIntrinsics::_linkToSpecial) \
twisti@20011 2564 declare_constant(vmIntrinsics::_linkToInterface) \
twisti@20011 2565 \
duke@1 2566 /********************************/ \
duke@1 2567 /* Calling convention constants */ \
duke@1 2568 /********************************/ \
duke@1 2569 \
duke@1 2570 declare_constant(RegisterImpl::number_of_registers) \
duke@1 2571 declare_constant(ConcreteRegisterImpl::number_of_registers) \
duke@1 2572 declare_preprocessor_constant("REG_COUNT", REG_COUNT) \
duke@1 2573 declare_c2_preprocessor_constant("SAVED_ON_ENTRY_REG_COUNT", SAVED_ON_ENTRY_REG_COUNT) \
dsamersoff@40893 2574 declare_c2_preprocessor_constant("C_SAVED_ON_ENTRY_REG_COUNT", C_SAVED_ON_ENTRY_REG_COUNT) \
dsamersoff@40893 2575 \
jgeorge@48166 2576 /************/ \
jgeorge@48166 2577 /* PerfData */ \
jgeorge@48166 2578 /************/ \
jgeorge@48166 2579 \
jgeorge@48166 2580 /***********************/ \
jgeorge@48166 2581 /* PerfData Units enum */ \
jgeorge@48166 2582 /***********************/ \
jgeorge@48166 2583 \
jgeorge@48166 2584 declare_constant(PerfData::U_None) \
jgeorge@48166 2585 declare_constant(PerfData::U_Bytes) \
jgeorge@48166 2586 declare_constant(PerfData::U_Ticks) \
jgeorge@48166 2587 declare_constant(PerfData::U_Events) \
jgeorge@48166 2588 declare_constant(PerfData::U_String) \
jgeorge@48166 2589 declare_constant(PerfData::U_Hertz) \
jgeorge@48166 2590 \
dsamersoff@40893 2591 /****************/ \
dsamersoff@40893 2592 /* JVMCI */ \
dsamersoff@40893 2593 /****************/ \
dsamersoff@40893 2594 \
ysuenaga@47566 2595 declare_preprocessor_constant("INCLUDE_JVMCI", INCLUDE_JVMCI) \
ysuenaga@47566 2596 \
ysuenaga@47566 2597 /****************/ \
ysuenaga@47566 2598 /* VMRegImpl */ \
ysuenaga@47566 2599 /****************/ \
ysuenaga@53637 2600 declare_constant(VMRegImpl::stack_slot_size) \
ysuenaga@53637 2601 \
ysuenaga@53637 2602 /******************************/ \
ysuenaga@53637 2603 /* -XX flags (value origin) */ \
ysuenaga@53637 2604 /******************************/ \
ysuenaga@53637 2605 declare_constant(JVMFlag::DEFAULT) \
ysuenaga@53637 2606 declare_constant(JVMFlag::COMMAND_LINE) \
ysuenaga@53637 2607 declare_constant(JVMFlag::ENVIRON_VAR) \
ysuenaga@53637 2608 declare_constant(JVMFlag::CONFIG_FILE) \
ysuenaga@53637 2609 declare_constant(JVMFlag::MANAGEMENT) \
ysuenaga@53637 2610 declare_constant(JVMFlag::ERGONOMIC) \
ysuenaga@53637 2611 declare_constant(JVMFlag::ATTACH_ON_DEMAND) \
ysuenaga@53637 2612 declare_constant(JVMFlag::INTERNAL) \
ysuenaga@53637 2613 declare_constant(JVMFlag::VALUE_ORIGIN_MASK) \
ysuenaga@53637 2614 declare_constant(JVMFlag::ORIG_COMMAND_LINE)
duke@1 2615
duke@1 2616 //--------------------------------------------------------------------------------
duke@1 2617 // VM_LONG_CONSTANTS
duke@1 2618 //
duke@1 2619 // This table contains long constants required over in the
duke@1 2620 // serviceability agent. The "declare_constant" macro is used for all
duke@1 2621 // enums, etc., while "declare_preprocessor_constant" must be used for
duke@1 2622 // all #defined constants.
duke@1 2623
mikael@15189 2624 #define VM_LONG_CONSTANTS(declare_constant, declare_preprocessor_constant, declare_c1_constant, declare_c2_constant, declare_c2_preprocessor_constant) \
duke@1 2625 \
pliden@50525 2626 /****************/ \
pliden@50525 2627 /* GC constants */ \
pliden@50525 2628 /****************/ \
pliden@50525 2629 \
pliden@50525 2630 VM_LONG_CONSTANTS_GC(declare_constant) \
pliden@50525 2631 \
duke@1 2632 /*********************/ \
duke@1 2633 /* MarkOop constants */ \
duke@1 2634 /*********************/ \
duke@1 2635 \
duke@1 2636 /* Note: some of these are declared as long constants just for */ \
duke@1 2637 /* consistency. The mask constants are the only ones requiring */ \
duke@1 2638 /* 64 bits (on 64-bit platforms). */ \
duke@1 2639 \
duke@1 2640 declare_constant(markOopDesc::age_bits) \
duke@1 2641 declare_constant(markOopDesc::lock_bits) \
duke@1 2642 declare_constant(markOopDesc::biased_lock_bits) \
duke@1 2643 declare_constant(markOopDesc::max_hash_bits) \
duke@1 2644 declare_constant(markOopDesc::hash_bits) \
duke@1 2645 \
duke@1 2646 declare_constant(markOopDesc::lock_shift) \
duke@1 2647 declare_constant(markOopDesc::biased_lock_shift) \
duke@1 2648 declare_constant(markOopDesc::age_shift) \
duke@1 2649 declare_constant(markOopDesc::hash_shift) \
duke@1 2650 \
duke@1 2651 declare_constant(markOopDesc::lock_mask) \
duke@1 2652 declare_constant(markOopDesc::lock_mask_in_place) \
duke@1 2653 declare_constant(markOopDesc::biased_lock_mask) \
duke@1 2654 declare_constant(markOopDesc::biased_lock_mask_in_place) \
duke@1 2655 declare_constant(markOopDesc::biased_lock_bit_in_place) \
duke@1 2656 declare_constant(markOopDesc::age_mask) \
duke@1 2657 declare_constant(markOopDesc::age_mask_in_place) \
twisti@20011 2658 declare_constant(markOopDesc::epoch_mask) \
twisti@20011 2659 declare_constant(markOopDesc::epoch_mask_in_place) \
duke@1 2660 declare_constant(markOopDesc::hash_mask) \
duke@1 2661 declare_constant(markOopDesc::hash_mask_in_place) \
duke@1 2662 declare_constant(markOopDesc::biased_lock_alignment) \
duke@1 2663 \
duke@1 2664 declare_constant(markOopDesc::locked_value) \
duke@1 2665 declare_constant(markOopDesc::unlocked_value) \
duke@1 2666 declare_constant(markOopDesc::monitor_value) \
duke@1 2667 declare_constant(markOopDesc::marked_value) \
duke@1 2668 declare_constant(markOopDesc::biased_lock_pattern) \
duke@1 2669 \
duke@1 2670 declare_constant(markOopDesc::no_hash) \
duke@1 2671 declare_constant(markOopDesc::no_hash_in_place) \
duke@1 2672 declare_constant(markOopDesc::no_lock_in_place) \
coleenp@613 2673 declare_constant(markOopDesc::max_age) \
coleenp@613 2674 \
coleenp@613 2675 /* Constants in markOop used by CMS. */ \
coleenp@613 2676 declare_constant(markOopDesc::cms_shift) \
coleenp@613 2677 declare_constant(markOopDesc::cms_mask) \
twisti@33160 2678 declare_constant(markOopDesc::size_shift) \
twisti@33160 2679 \
twisti@33160 2680 /* InvocationCounter constants */ \
twisti@33160 2681 declare_constant(InvocationCounter::count_increment) \
twisti@33160 2682 declare_constant(InvocationCounter::count_shift)
duke@1 2683
duke@1 2684
duke@1 2685 //--------------------------------------------------------------------------------
duke@1 2686 //
duke@1 2687
duke@1 2688 // Generate and check a nonstatic field in non-product builds
duke@1 2689 #ifndef PRODUCT
duke@1 2690 # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2691 # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2692 # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c)
duke@1 2693 # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2694 # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2695 # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c)
duke@1 2696 #else
duke@1 2697 # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2698 # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2699 # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c)
duke@1 2700 # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2701 # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2702 # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c)
duke@1 2703 #endif /* PRODUCT */
duke@1 2704
duke@1 2705 // Generate and check a nonstatic field in C1 builds
duke@1 2706 #ifdef COMPILER1
duke@1 2707 # define GENERATE_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2708 # define CHECK_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2709 # define ENSURE_C1_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c)
duke@1 2710 #else
duke@1 2711 # define GENERATE_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2712 # define CHECK_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2713 # define ENSURE_C1_FIELD_TYPE_PRESENT(a, b, c)
duke@1 2714 #endif /* COMPILER1 */
duke@1 2715 // Generate and check a nonstatic field in C2 builds
duke@1 2716 #ifdef COMPILER2
duke@1 2717 # define GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2718 # define CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2719 # define ENSURE_C2_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c)
duke@1 2720 #else
duke@1 2721 # define GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2722 # define CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2723 # define ENSURE_C2_FIELD_TYPE_PRESENT(a, b, c)
duke@1 2724 #endif /* COMPILER2 */
duke@1 2725
duke@1 2726 // Generate but do not check a static field in C1 builds
duke@1 2727 #ifdef COMPILER1
duke@1 2728 # define GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2729 #else
duke@1 2730 # define GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2731 #endif /* COMPILER1 */
duke@1 2732
duke@1 2733 // Generate but do not check a static field in C2 builds
duke@1 2734 #ifdef COMPILER2
duke@1 2735 # define GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2736 #else
duke@1 2737 # define GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c)
duke@1 2738 #endif /* COMPILER2 */
duke@1 2739
duke@1 2740 //--------------------------------------------------------------------------------
twisti@35123 2741 // VMTypeEntry build-specific macros
duke@1 2742 //
duke@1 2743
duke@1 2744 #ifdef COMPILER1
duke@1 2745 # define GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY(a) GENERATE_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@1 2746 # define CHECK_C1_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@1 2747 #else
duke@1 2748 # define GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@1 2749 # define CHECK_C1_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@1 2750 #endif /* COMPILER1 */
duke@1 2751
duke@1 2752 #ifdef COMPILER2
duke@1 2753 # define GENERATE_C2_VM_TYPE_ENTRY(a, b) GENERATE_VM_TYPE_ENTRY(a, b)
duke@1 2754 # define CHECK_C2_VM_TYPE_ENTRY(a, b) CHECK_VM_TYPE_ENTRY(a, b)
duke@1 2755 # define GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY(a) GENERATE_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@1 2756 # define CHECK_C2_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@1 2757 #else
duke@1 2758 # define GENERATE_C2_VM_TYPE_ENTRY(a, b)
duke@1 2759 # define CHECK_C2_VM_TYPE_ENTRY(a, b)
duke@1 2760 # define GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@1 2761 # define CHECK_C2_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@1 2762 #endif /* COMPILER2 */
duke@1 2763
duke@1 2764
duke@1 2765 //--------------------------------------------------------------------------------
twisti@35123 2766 // VMIntConstantEntry build-specific macros
duke@1 2767 //
duke@1 2768
duke@1 2769 // Generate an int constant for a C1 build
duke@1 2770 #ifdef COMPILER1
duke@1 2771 # define GENERATE_C1_VM_INT_CONSTANT_ENTRY(name) GENERATE_VM_INT_CONSTANT_ENTRY(name)
duke@1 2772 #else
duke@1 2773 # define GENERATE_C1_VM_INT_CONSTANT_ENTRY(name)
duke@1 2774 #endif /* COMPILER1 */
duke@1 2775
duke@1 2776 // Generate an int constant for a C2 build
duke@1 2777 #ifdef COMPILER2
duke@1 2778 # define GENERATE_C2_VM_INT_CONSTANT_ENTRY(name) GENERATE_VM_INT_CONSTANT_ENTRY(name)
duke@1 2779 # define GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY(name, value) GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY(name, value)
duke@1 2780 #else
duke@1 2781 # define GENERATE_C2_VM_INT_CONSTANT_ENTRY(name)
duke@1 2782 # define GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY(name, value)
duke@1 2783 #endif /* COMPILER1 */
duke@1 2784
twisti@35123 2785
duke@1 2786 //--------------------------------------------------------------------------------
twisti@35123 2787 // VMLongConstantEntry build-specific macros
duke@1 2788 //
duke@1 2789
duke@1 2790 // Generate a long constant for a C1 build
duke@1 2791 #ifdef COMPILER1
duke@1 2792 # define GENERATE_C1_VM_LONG_CONSTANT_ENTRY(name) GENERATE_VM_LONG_CONSTANT_ENTRY(name)
duke@1 2793 #else
duke@1 2794 # define GENERATE_C1_VM_LONG_CONSTANT_ENTRY(name)
duke@1 2795 #endif /* COMPILER1 */
duke@1 2796
duke@1 2797 // Generate a long constant for a C2 build
duke@1 2798 #ifdef COMPILER2
duke@1 2799 # define GENERATE_C2_VM_LONG_CONSTANT_ENTRY(name) GENERATE_VM_LONG_CONSTANT_ENTRY(name)
duke@1 2800 # define GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY(name, value) GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY(name, value)
duke@1 2801 #else
duke@1 2802 # define GENERATE_C2_VM_LONG_CONSTANT_ENTRY(name)
duke@1 2803 # define GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY(name, value)
duke@1 2804 #endif /* COMPILER1 */
duke@1 2805
twisti@33160 2806
duke@1 2807 //
duke@1 2808 // Instantiation of VMStructEntries, VMTypeEntries and VMIntConstantEntries
duke@1 2809 //
duke@1 2810
duke@1 2811 // These initializers are allowed to access private fields in classes
duke@1 2812 // as long as class VMStructs is a friend
duke@1 2813 VMStructEntry VMStructs::localHotSpotVMStructs[] = {
duke@1 2814
mikael@15189 2815 VM_STRUCTS(GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2816 GENERATE_STATIC_VM_STRUCT_ENTRY,
dcubed@33595 2817 GENERATE_STATIC_PTR_VOLATILE_VM_STRUCT_ENTRY,
mikael@15189 2818 GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2819 GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2820 GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2821 GENERATE_C1_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2822 GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2823 GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY,
mikael@15189 2824 GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY)
duke@1 2825
poonam@25335 2826
twisti@33160 2827 VM_STRUCTS_OS(GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
twisti@33160 2828 GENERATE_STATIC_VM_STRUCT_ENTRY,
twisti@33160 2829 GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY,
twisti@33160 2830 GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
twisti@33160 2831 GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY,
twisti@33160 2832 GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY,
twisti@33160 2833 GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY,
twisti@33160 2834 GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY)
twisti@33160 2835
mikael@15189 2836 VM_STRUCTS_CPU(GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2837 GENERATE_STATIC_VM_STRUCT_ENTRY,
mikael@15189 2838 GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2839 GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2840 GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2841 GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2842 GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY,
mikael@15189 2843 GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY)
duke@1 2844
mikael@15189 2845 VM_STRUCTS_OS_CPU(GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2846 GENERATE_STATIC_VM_STRUCT_ENTRY,
mikael@15189 2847 GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2848 GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2849 GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2850 GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY,
mikael@15189 2851 GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY,
mikael@15189 2852 GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY)
mikael@15189 2853
mikael@15189 2854 GENERATE_VM_STRUCT_LAST_ENTRY()
duke@1 2855 };
duke@1 2856
kzhaldyb@46343 2857 size_t VMStructs::localHotSpotVMStructsLength() {
kzhaldyb@46343 2858 return sizeof(localHotSpotVMStructs) / sizeof(VMStructEntry);
kzhaldyb@46343 2859 }
kzhaldyb@46343 2860
duke@1 2861 VMTypeEntry VMStructs::localHotSpotVMTypes[] = {
duke@1 2862
duke@1 2863 VM_TYPES(GENERATE_VM_TYPE_ENTRY,
duke@1 2864 GENERATE_TOPLEVEL_VM_TYPE_ENTRY,
duke@1 2865 GENERATE_OOP_VM_TYPE_ENTRY,
duke@1 2866 GENERATE_INTEGER_VM_TYPE_ENTRY,
duke@1 2867 GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY,
duke@1 2868 GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY,
duke@1 2869 GENERATE_C2_VM_TYPE_ENTRY,
mikael@15189 2870 GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY)
duke@1 2871
poonam@25335 2872
twisti@33160 2873 VM_TYPES_OS(GENERATE_VM_TYPE_ENTRY,
twisti@33160 2874 GENERATE_TOPLEVEL_VM_TYPE_ENTRY,
twisti@33160 2875 GENERATE_OOP_VM_TYPE_ENTRY,
twisti@33160 2876 GENERATE_INTEGER_VM_TYPE_ENTRY,
twisti@33160 2877 GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY,
twisti@33160 2878 GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY,
twisti@33160 2879 GENERATE_C2_VM_TYPE_ENTRY,
twisti@33160 2880 GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY)
twisti@33160 2881
duke@1 2882 VM_TYPES_CPU(GENERATE_VM_TYPE_ENTRY,
duke@1 2883 GENERATE_TOPLEVEL_VM_TYPE_ENTRY,
duke@1 2884 GENERATE_OOP_VM_TYPE_ENTRY,
duke@1 2885 GENERATE_INTEGER_VM_TYPE_ENTRY,
duke@1 2886 GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY,
duke@1 2887 GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY,
duke@1 2888 GENERATE_C2_VM_TYPE_ENTRY,
mikael@15189 2889 GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY)
duke@1 2890
duke@1 2891 VM_TYPES_OS_CPU(GENERATE_VM_TYPE_ENTRY,
duke@1 2892 GENERATE_TOPLEVEL_VM_TYPE_ENTRY,
duke@1 2893 GENERATE_OOP_VM_TYPE_ENTRY,
duke@1 2894 GENERATE_INTEGER_VM_TYPE_ENTRY,
duke@1 2895 GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY,
duke@1 2896 GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY,
duke@1 2897 GENERATE_C2_VM_TYPE_ENTRY,
mikael@15189 2898 GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY)
mikael@15189 2899
mikael@15189 2900 GENERATE_VM_TYPE_LAST_ENTRY()
duke@1 2901 };
duke@1 2902
kzhaldyb@46343 2903 size_t VMStructs::localHotSpotVMTypesLength() {
kzhaldyb@46343 2904 return sizeof(localHotSpotVMTypes) / sizeof(VMTypeEntry);
kzhaldyb@46343 2905 }
kzhaldyb@46343 2906
duke@1 2907 VMIntConstantEntry VMStructs::localHotSpotVMIntConstants[] = {
duke@1 2908
duke@1 2909 VM_INT_CONSTANTS(GENERATE_VM_INT_CONSTANT_ENTRY,
stefank@49730 2910 GENERATE_VM_INT_CONSTANT_WITH_VALUE_ENTRY,
duke@1 2911 GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY,
duke@1 2912 GENERATE_C1_VM_INT_CONSTANT_ENTRY,
duke@1 2913 GENERATE_C2_VM_INT_CONSTANT_ENTRY,
mikael@15189 2914 GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY)
duke@1 2915
twisti@33160 2916 VM_INT_CONSTANTS_OS(GENERATE_VM_INT_CONSTANT_ENTRY,
twisti@33160 2917 GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY,
twisti@33160 2918 GENERATE_C1_VM_INT_CONSTANT_ENTRY,
twisti@33160 2919 GENERATE_C2_VM_INT_CONSTANT_ENTRY,
twisti@33160 2920 GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY)
twisti@33160 2921
duke@1 2922 VM_INT_CONSTANTS_CPU(GENERATE_VM_INT_CONSTANT_ENTRY,
duke@1 2923 GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY,
duke@1 2924 GENE