< prev index next >

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/HotSpotVMConfig.java

Print this page

 80     final int classLoaderDataOffset = getFieldOffset("Klass::_class_loader_data", Integer.class, "ClassLoaderData*");
 81 
 82     /**
 83      * The offset of the _java_mirror field (of type {@link Class}) in a Klass.
 84      */
 85     final int javaMirrorOffset = getFieldOffset("Klass::_java_mirror", Integer.class, "OopHandle");
 86 
 87     final int klassAccessFlagsOffset = getFieldOffset("Klass::_access_flags", Integer.class, "AccessFlags");
 88     final int klassLayoutHelperOffset = getFieldOffset("Klass::_layout_helper", Integer.class, "jint");
 89 
 90     final int klassLayoutHelperNeutralValue = getConstant("Klass::_lh_neutral_value", Integer.class);
 91     final int klassLayoutHelperInstanceSlowPathBit = getConstant("Klass::_lh_instance_slow_path_bit", Integer.class);
 92 
 93     final int vtableEntrySize = getFieldValue("CompilerToVM::Data::sizeof_vtableEntry", Integer.class, "int");
 94     final int vtableEntryMethodOffset = getFieldOffset("vtableEntry::_method", Integer.class, "Method*");
 95 
 96     final int instanceKlassInitStateOffset = getFieldOffset("InstanceKlass::_init_state", Integer.class, "InstanceKlass::ClassState");
 97     final int instanceKlassConstantsOffset = getFieldOffset("InstanceKlass::_constants", Integer.class, "ConstantPool*");
 98     final int instanceKlassFieldInfoStreamOffset = getFieldOffset("InstanceKlass::_fieldinfo_stream", Integer.class, "Array<u1>*");
 99     final int instanceKlassAnnotationsOffset = getFieldOffset("InstanceKlass::_annotations", Integer.class, "Annotations*");
100     final int instanceKlassMiscFlagsOffset = getFieldOffset("InstanceKlass::_misc_flags._flags", Integer.class, "u2");
101     final int klassVtableStartOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_start_offset", Integer.class, "int");
102     final int klassVtableLengthOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_length_offset", Integer.class, "int");
103 
104     final int instanceKlassStateLinked = getConstant("InstanceKlass::linked", Integer.class);
105     final int instanceKlassStateFullyInitialized = getConstant("InstanceKlass::fully_initialized", Integer.class);
106     final int instanceKlassStateBeingInitialized = getConstant("InstanceKlass::being_initialized", Integer.class);
107 
108     final int annotationsFieldAnnotationsOffset = getFieldOffset("Annotations::_fields_annotations", Integer.class, "Array<AnnotationArray*>*");
109     final int annotationsClassAnnotationsOffset = getFieldOffset("Annotations::_class_annotations", Integer.class, "AnnotationArray*");
110     final int fieldsAnnotationsBaseOffset = getFieldValue("CompilerToVM::Data::_fields_annotations_base_offset", Integer.class, "int");
111 
112     final int arrayU1LengthOffset = getFieldOffset("Array<int>::_length", Integer.class, "int");
113     final int arrayU1DataOffset = getFieldOffset("Array<u1>::_data", Integer.class);
114     final int arrayU2DataOffset = getFieldOffset("Array<u2>::_data", Integer.class);
115 
116     final int jvmAccHasFinalizer = getConstant("JVM_ACC_HAS_FINALIZER", Integer.class);
117     final int jvmFieldFlagInternalShift = getConstant("FieldInfo::FieldFlags::_ff_injected", Integer.class);
118     final int jvmFieldFlagStableShift = getConstant("FieldInfo::FieldFlags::_ff_stable", Integer.class);
119     final int jvmAccIsCloneableFast = getConstant("JVM_ACC_IS_CLONEABLE_FAST", Integer.class);
120 

284     final int dataLayoutHeaderSize = getConstant("DataLayout::cell_size", Integer.class);
285     final int dataLayoutTagOffset = getFieldOffset("DataLayout::_header._struct._tag", Integer.class, "u1");
286     final int dataLayoutFlagsOffset = getFieldOffset("DataLayout::_header._struct._flags", Integer.class, "u1");
287     final int dataLayoutBCIOffset = getFieldOffset("DataLayout::_header._struct._bci", Integer.class, "u2");
288     final int dataLayoutCellSize = getConstant("DataLayout::cell_size", Integer.class);
289 
290     final int dataLayoutNoTag = getConstant("DataLayout::no_tag", Integer.class);
291     final int dataLayoutBitDataTag = getConstant("DataLayout::bit_data_tag", Integer.class);
292     final int dataLayoutCounterDataTag = getConstant("DataLayout::counter_data_tag", Integer.class);
293     final int dataLayoutJumpDataTag = getConstant("DataLayout::jump_data_tag", Integer.class);
294     final int dataLayoutReceiverTypeDataTag = getConstant("DataLayout::receiver_type_data_tag", Integer.class);
295     final int dataLayoutVirtualCallDataTag = getConstant("DataLayout::virtual_call_data_tag", Integer.class);
296     final int dataLayoutRetDataTag = getConstant("DataLayout::ret_data_tag", Integer.class);
297     final int dataLayoutBranchDataTag = getConstant("DataLayout::branch_data_tag", Integer.class);
298     final int dataLayoutMultiBranchDataTag = getConstant("DataLayout::multi_branch_data_tag", Integer.class);
299     final int dataLayoutArgInfoDataTag = getConstant("DataLayout::arg_info_data_tag", Integer.class);
300     final int dataLayoutCallTypeDataTag = getConstant("DataLayout::call_type_data_tag", Integer.class);
301     final int dataLayoutVirtualCallTypeDataTag = getConstant("DataLayout::virtual_call_type_data_tag", Integer.class);
302     final int dataLayoutParametersTypeDataTag = getConstant("DataLayout::parameters_type_data_tag", Integer.class);
303     final int dataLayoutSpeculativeTrapDataTag = getConstant("DataLayout::speculative_trap_data_tag", Integer.class);



304 
305     final int bciProfileWidth = getFlag("BciProfileWidth", Integer.class);
306     final int typeProfileWidth = getFlag("TypeProfileWidth", Integer.class);
307     final int methodProfileWidth = getFlag("MethodProfileWidth", Integer.class, 0);
308 
309     final int deoptReasonNone = getConstant("Deoptimization::Reason_none", Integer.class);
310     final int deoptReasonNullCheck = getConstant("Deoptimization::Reason_null_check", Integer.class);
311     final int deoptReasonRangeCheck = getConstant("Deoptimization::Reason_range_check", Integer.class);
312     final int deoptReasonClassCheck = getConstant("Deoptimization::Reason_class_check", Integer.class);
313     final int deoptReasonArrayCheck = getConstant("Deoptimization::Reason_array_check", Integer.class);
314     final int deoptReasonUnreached0 = getConstant("Deoptimization::Reason_unreached0", Integer.class);
315     final int deoptReasonTypeCheckInlining = getConstant("Deoptimization::Reason_type_checked_inlining", Integer.class);
316     final int deoptReasonOptimizedTypeCheck = getConstant("Deoptimization::Reason_optimized_type_check", Integer.class);
317     final int deoptReasonNotCompiledExceptionHandler = getConstant("Deoptimization::Reason_not_compiled_exception_handler", Integer.class);
318     final int deoptReasonUnresolved = getConstant("Deoptimization::Reason_unresolved", Integer.class);
319     final int deoptReasonJsrMismatch = getConstant("Deoptimization::Reason_jsr_mismatch", Integer.class);
320     final int deoptReasonDiv0Check = getConstant("Deoptimization::Reason_div0_check", Integer.class);
321     final int deoptReasonConstraint = getConstant("Deoptimization::Reason_constraint", Integer.class);
322     final int deoptReasonLoopLimitCheck = getConstant("Deoptimization::Reason_loop_limit_check", Integer.class);
323     final int deoptReasonAliasing = getConstant("Deoptimization::Reason_aliasing", Integer.class);

 80     final int classLoaderDataOffset = getFieldOffset("Klass::_class_loader_data", Integer.class, "ClassLoaderData*");
 81 
 82     /**
 83      * The offset of the _java_mirror field (of type {@link Class}) in a Klass.
 84      */
 85     final int javaMirrorOffset = getFieldOffset("Klass::_java_mirror", Integer.class, "OopHandle");
 86 
 87     final int klassAccessFlagsOffset = getFieldOffset("Klass::_access_flags", Integer.class, "AccessFlags");
 88     final int klassLayoutHelperOffset = getFieldOffset("Klass::_layout_helper", Integer.class, "jint");
 89 
 90     final int klassLayoutHelperNeutralValue = getConstant("Klass::_lh_neutral_value", Integer.class);
 91     final int klassLayoutHelperInstanceSlowPathBit = getConstant("Klass::_lh_instance_slow_path_bit", Integer.class);
 92 
 93     final int vtableEntrySize = getFieldValue("CompilerToVM::Data::sizeof_vtableEntry", Integer.class, "int");
 94     final int vtableEntryMethodOffset = getFieldOffset("vtableEntry::_method", Integer.class, "Method*");
 95 
 96     final int instanceKlassInitStateOffset = getFieldOffset("InstanceKlass::_init_state", Integer.class, "InstanceKlass::ClassState");
 97     final int instanceKlassConstantsOffset = getFieldOffset("InstanceKlass::_constants", Integer.class, "ConstantPool*");
 98     final int instanceKlassFieldInfoStreamOffset = getFieldOffset("InstanceKlass::_fieldinfo_stream", Integer.class, "Array<u1>*");
 99     final int instanceKlassAnnotationsOffset = getFieldOffset("InstanceKlass::_annotations", Integer.class, "Annotations*");
100     final int instanceKlassMiscFlagsOffset = getFieldOffset("InstanceKlass::_misc_flags._flags", Integer.class, "u4");
101     final int klassVtableStartOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_start_offset", Integer.class, "int");
102     final int klassVtableLengthOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_length_offset", Integer.class, "int");
103 
104     final int instanceKlassStateLinked = getConstant("InstanceKlass::linked", Integer.class);
105     final int instanceKlassStateFullyInitialized = getConstant("InstanceKlass::fully_initialized", Integer.class);
106     final int instanceKlassStateBeingInitialized = getConstant("InstanceKlass::being_initialized", Integer.class);
107 
108     final int annotationsFieldAnnotationsOffset = getFieldOffset("Annotations::_fields_annotations", Integer.class, "Array<AnnotationArray*>*");
109     final int annotationsClassAnnotationsOffset = getFieldOffset("Annotations::_class_annotations", Integer.class, "AnnotationArray*");
110     final int fieldsAnnotationsBaseOffset = getFieldValue("CompilerToVM::Data::_fields_annotations_base_offset", Integer.class, "int");
111 
112     final int arrayU1LengthOffset = getFieldOffset("Array<int>::_length", Integer.class, "int");
113     final int arrayU1DataOffset = getFieldOffset("Array<u1>::_data", Integer.class);
114     final int arrayU2DataOffset = getFieldOffset("Array<u2>::_data", Integer.class);
115 
116     final int jvmAccHasFinalizer = getConstant("JVM_ACC_HAS_FINALIZER", Integer.class);
117     final int jvmFieldFlagInternalShift = getConstant("FieldInfo::FieldFlags::_ff_injected", Integer.class);
118     final int jvmFieldFlagStableShift = getConstant("FieldInfo::FieldFlags::_ff_stable", Integer.class);
119     final int jvmAccIsCloneableFast = getConstant("JVM_ACC_IS_CLONEABLE_FAST", Integer.class);
120 

284     final int dataLayoutHeaderSize = getConstant("DataLayout::cell_size", Integer.class);
285     final int dataLayoutTagOffset = getFieldOffset("DataLayout::_header._struct._tag", Integer.class, "u1");
286     final int dataLayoutFlagsOffset = getFieldOffset("DataLayout::_header._struct._flags", Integer.class, "u1");
287     final int dataLayoutBCIOffset = getFieldOffset("DataLayout::_header._struct._bci", Integer.class, "u2");
288     final int dataLayoutCellSize = getConstant("DataLayout::cell_size", Integer.class);
289 
290     final int dataLayoutNoTag = getConstant("DataLayout::no_tag", Integer.class);
291     final int dataLayoutBitDataTag = getConstant("DataLayout::bit_data_tag", Integer.class);
292     final int dataLayoutCounterDataTag = getConstant("DataLayout::counter_data_tag", Integer.class);
293     final int dataLayoutJumpDataTag = getConstant("DataLayout::jump_data_tag", Integer.class);
294     final int dataLayoutReceiverTypeDataTag = getConstant("DataLayout::receiver_type_data_tag", Integer.class);
295     final int dataLayoutVirtualCallDataTag = getConstant("DataLayout::virtual_call_data_tag", Integer.class);
296     final int dataLayoutRetDataTag = getConstant("DataLayout::ret_data_tag", Integer.class);
297     final int dataLayoutBranchDataTag = getConstant("DataLayout::branch_data_tag", Integer.class);
298     final int dataLayoutMultiBranchDataTag = getConstant("DataLayout::multi_branch_data_tag", Integer.class);
299     final int dataLayoutArgInfoDataTag = getConstant("DataLayout::arg_info_data_tag", Integer.class);
300     final int dataLayoutCallTypeDataTag = getConstant("DataLayout::call_type_data_tag", Integer.class);
301     final int dataLayoutVirtualCallTypeDataTag = getConstant("DataLayout::virtual_call_type_data_tag", Integer.class);
302     final int dataLayoutParametersTypeDataTag = getConstant("DataLayout::parameters_type_data_tag", Integer.class);
303     final int dataLayoutSpeculativeTrapDataTag = getConstant("DataLayout::speculative_trap_data_tag", Integer.class);
304     final int dataLayoutArrayLoadDataTag = getConstant("DataLayout::array_load_data_tag", Integer.class);
305     final int dataLayoutArrayStoreDataTag = getConstant("DataLayout::array_store_data_tag", Integer.class);
306     final int dataLayoutACmpDataTag = getConstant("DataLayout::acmp_data_tag", Integer.class);
307 
308     final int bciProfileWidth = getFlag("BciProfileWidth", Integer.class);
309     final int typeProfileWidth = getFlag("TypeProfileWidth", Integer.class);
310     final int methodProfileWidth = getFlag("MethodProfileWidth", Integer.class, 0);
311 
312     final int deoptReasonNone = getConstant("Deoptimization::Reason_none", Integer.class);
313     final int deoptReasonNullCheck = getConstant("Deoptimization::Reason_null_check", Integer.class);
314     final int deoptReasonRangeCheck = getConstant("Deoptimization::Reason_range_check", Integer.class);
315     final int deoptReasonClassCheck = getConstant("Deoptimization::Reason_class_check", Integer.class);
316     final int deoptReasonArrayCheck = getConstant("Deoptimization::Reason_array_check", Integer.class);
317     final int deoptReasonUnreached0 = getConstant("Deoptimization::Reason_unreached0", Integer.class);
318     final int deoptReasonTypeCheckInlining = getConstant("Deoptimization::Reason_type_checked_inlining", Integer.class);
319     final int deoptReasonOptimizedTypeCheck = getConstant("Deoptimization::Reason_optimized_type_check", Integer.class);
320     final int deoptReasonNotCompiledExceptionHandler = getConstant("Deoptimization::Reason_not_compiled_exception_handler", Integer.class);
321     final int deoptReasonUnresolved = getConstant("Deoptimization::Reason_unresolved", Integer.class);
322     final int deoptReasonJsrMismatch = getConstant("Deoptimization::Reason_jsr_mismatch", Integer.class);
323     final int deoptReasonDiv0Check = getConstant("Deoptimization::Reason_div0_check", Integer.class);
324     final int deoptReasonConstraint = getConstant("Deoptimization::Reason_constraint", Integer.class);
325     final int deoptReasonLoopLimitCheck = getConstant("Deoptimization::Reason_loop_limit_check", Integer.class);
326     final int deoptReasonAliasing = getConstant("Deoptimization::Reason_aliasing", Integer.class);
< prev index next >