119 static_field(CompilerToVM::Data, dpow, address) \
120 \
121 static_field(CompilerToVM::Data, symbol_init, address) \
122 static_field(CompilerToVM::Data, symbol_clinit, address) \
123 \
124 static_field(CompilerToVM::Data, data_section_item_alignment, int) \
125 \
126 static_field(CompilerToVM::Data, _should_notify_object_alloc, int*) \
127 \
128 static_field(Abstract_VM_Version, _features, uint64_t) \
129 \
130 nonstatic_field(Annotations, _class_annotations, AnnotationArray*) \
131 nonstatic_field(Annotations, _fields_annotations, Array<AnnotationArray*>*) \
132 \
133 nonstatic_field(Array<int>, _length, int) \
134 unchecked_nonstatic_field(Array<u1>, _data, sizeof(u1)) \
135 unchecked_nonstatic_field(Array<u2>, _data, sizeof(u2)) \
136 nonstatic_field(Array<Klass*>, _length, int) \
137 nonstatic_field(Array<Klass*>, _data[0], Klass*) \
138 \
139 volatile_nonstatic_field(BasicLock, _displaced_header, markWord) \
140 \
141 static_field(CodeCache, _low_bound, address) \
142 static_field(CodeCache, _high_bound, address) \
143 \
144 nonstatic_field(CollectedHeap, _total_collections, unsigned int) \
145 \
146 nonstatic_field(CompileTask, _num_inlined_bytecodes, int) \
147 \
148 volatile_nonstatic_field(CompiledICData, _speculated_method, Method*) \
149 volatile_nonstatic_field(CompiledICData, _speculated_klass, uintptr_t) \
150 nonstatic_field(CompiledICData, _itable_defc_klass, Klass*) \
151 nonstatic_field(CompiledICData, _itable_refc_klass, Klass*) \
152 \
153 nonstatic_field(ConstantPool, _tags, Array<u1>*) \
154 nonstatic_field(ConstantPool, _pool_holder, InstanceKlass*) \
155 nonstatic_field(ConstantPool, _length, int) \
156 nonstatic_field(ConstantPool, _flags, u2) \
157 nonstatic_field(ConstantPool, _source_file_name_index, u2) \
158 \
159 nonstatic_field(ConstMethod, _constants, ConstantPool*) \
442 declare_toplevel_type(oopDesc) \
443 declare_type(arrayOopDesc, oopDesc) \
444 \
445 declare_toplevel_type(CompiledICData) \
446 declare_toplevel_type(MetaspaceObj) \
447 declare_type(Metadata, MetaspaceObj) \
448 declare_type(Klass, Metadata) \
449 declare_type(InstanceKlass, Klass) \
450 declare_type(ConstantPool, Metadata) \
451
452 #define VM_INT_CONSTANTS(declare_constant, declare_constant_with_value, declare_preprocessor_constant) \
453 declare_preprocessor_constant("ASSERT", DEBUG_ONLY(1) NOT_DEBUG(0)) \
454 \
455 declare_constant(CompLevel_none) \
456 declare_constant(CompLevel_simple) \
457 declare_constant(CompLevel_limited_profile) \
458 declare_constant(CompLevel_full_profile) \
459 declare_constant(CompLevel_full_optimization) \
460 declare_constant(HeapWordSize) \
461 declare_constant(InvocationEntryBci) \
462 declare_constant(LogKlassAlignmentInBytes) \
463 declare_constant(JVMCINMethodData::SPECULATION_LENGTH_BITS) \
464 \
465 declare_constant(JVM_ACC_WRITTEN_FLAGS) \
466 declare_constant(JVM_ACC_HAS_FINALIZER) \
467 declare_constant(JVM_ACC_IS_CLONEABLE_FAST) \
468 declare_constant(JVM_ACC_IS_HIDDEN_CLASS) \
469 declare_constant(JVM_ACC_IS_VALUE_BASED_CLASS) \
470 declare_constant(FieldInfo::FieldFlags::_ff_injected) \
471 declare_constant(FieldInfo::FieldFlags::_ff_stable) \
472 declare_preprocessor_constant("JVM_ACC_VARARGS", JVM_ACC_VARARGS) \
473 declare_preprocessor_constant("JVM_ACC_BRIDGE", JVM_ACC_BRIDGE) \
474 declare_preprocessor_constant("JVM_ACC_ANNOTATION", JVM_ACC_ANNOTATION) \
475 declare_preprocessor_constant("JVM_ACC_ENUM", JVM_ACC_ENUM) \
476 declare_preprocessor_constant("JVM_ACC_SYNTHETIC", JVM_ACC_SYNTHETIC) \
477 declare_preprocessor_constant("JVM_ACC_INTERFACE", JVM_ACC_INTERFACE) \
478 \
479 declare_constant(JVM_CONSTANT_Utf8) \
480 declare_constant(JVM_CONSTANT_Unicode) \
481 declare_constant(JVM_CONSTANT_Integer) \
482 declare_constant(JVM_CONSTANT_Float) \
|
119 static_field(CompilerToVM::Data, dpow, address) \
120 \
121 static_field(CompilerToVM::Data, symbol_init, address) \
122 static_field(CompilerToVM::Data, symbol_clinit, address) \
123 \
124 static_field(CompilerToVM::Data, data_section_item_alignment, int) \
125 \
126 static_field(CompilerToVM::Data, _should_notify_object_alloc, int*) \
127 \
128 static_field(Abstract_VM_Version, _features, uint64_t) \
129 \
130 nonstatic_field(Annotations, _class_annotations, AnnotationArray*) \
131 nonstatic_field(Annotations, _fields_annotations, Array<AnnotationArray*>*) \
132 \
133 nonstatic_field(Array<int>, _length, int) \
134 unchecked_nonstatic_field(Array<u1>, _data, sizeof(u1)) \
135 unchecked_nonstatic_field(Array<u2>, _data, sizeof(u2)) \
136 nonstatic_field(Array<Klass*>, _length, int) \
137 nonstatic_field(Array<Klass*>, _data[0], Klass*) \
138 \
139 volatile_nonstatic_field(BasicLock, _metadata, uintptr_t) \
140 \
141 static_field(CodeCache, _low_bound, address) \
142 static_field(CodeCache, _high_bound, address) \
143 \
144 nonstatic_field(CollectedHeap, _total_collections, unsigned int) \
145 \
146 nonstatic_field(CompileTask, _num_inlined_bytecodes, int) \
147 \
148 volatile_nonstatic_field(CompiledICData, _speculated_method, Method*) \
149 volatile_nonstatic_field(CompiledICData, _speculated_klass, uintptr_t) \
150 nonstatic_field(CompiledICData, _itable_defc_klass, Klass*) \
151 nonstatic_field(CompiledICData, _itable_refc_klass, Klass*) \
152 \
153 nonstatic_field(ConstantPool, _tags, Array<u1>*) \
154 nonstatic_field(ConstantPool, _pool_holder, InstanceKlass*) \
155 nonstatic_field(ConstantPool, _length, int) \
156 nonstatic_field(ConstantPool, _flags, u2) \
157 nonstatic_field(ConstantPool, _source_file_name_index, u2) \
158 \
159 nonstatic_field(ConstMethod, _constants, ConstantPool*) \
442 declare_toplevel_type(oopDesc) \ 443 declare_type(arrayOopDesc, oopDesc) \ 444 \ 445 declare_toplevel_type(CompiledICData) \ 446 declare_toplevel_type(MetaspaceObj) \ 447 declare_type(Metadata, MetaspaceObj) \ 448 declare_type(Klass, Metadata) \ 449 declare_type(InstanceKlass, Klass) \ 450 declare_type(ConstantPool, Metadata) \ 451 452 #define VM_INT_CONSTANTS(declare_constant, declare_constant_with_value, declare_preprocessor_constant) \ 453 declare_preprocessor_constant("ASSERT", DEBUG_ONLY(1) NOT_DEBUG(0)) \ 454 \ 455 declare_constant(CompLevel_none) \ 456 declare_constant(CompLevel_simple) \ 457 declare_constant(CompLevel_limited_profile) \ 458 declare_constant(CompLevel_full_profile) \ 459 declare_constant(CompLevel_full_optimization) \ 460 declare_constant(HeapWordSize) \ 461 declare_constant(InvocationEntryBci) \ 462 declare_constant(JVMCINMethodData::SPECULATION_LENGTH_BITS) \ 463 \ 464 declare_constant(JVM_ACC_WRITTEN_FLAGS) \ 465 declare_constant(JVM_ACC_HAS_FINALIZER) \ 466 declare_constant(JVM_ACC_IS_CLONEABLE_FAST) \ 467 declare_constant(JVM_ACC_IS_HIDDEN_CLASS) \ 468 declare_constant(JVM_ACC_IS_VALUE_BASED_CLASS) \ 469 declare_constant(FieldInfo::FieldFlags::_ff_injected) \ 470 declare_constant(FieldInfo::FieldFlags::_ff_stable) \ 471 declare_preprocessor_constant("JVM_ACC_VARARGS", JVM_ACC_VARARGS) \ 472 declare_preprocessor_constant("JVM_ACC_BRIDGE", JVM_ACC_BRIDGE) \ 473 declare_preprocessor_constant("JVM_ACC_ANNOTATION", JVM_ACC_ANNOTATION) \ 474 declare_preprocessor_constant("JVM_ACC_ENUM", JVM_ACC_ENUM) \ 475 declare_preprocessor_constant("JVM_ACC_SYNTHETIC", JVM_ACC_SYNTHETIC) \ 476 declare_preprocessor_constant("JVM_ACC_INTERFACE", JVM_ACC_INTERFACE) \ 477 \ 478 declare_constant(JVM_CONSTANT_Utf8) \ 479 declare_constant(JVM_CONSTANT_Unicode) \ 480 declare_constant(JVM_CONSTANT_Integer) \ 481 declare_constant(JVM_CONSTANT_Float) \ |