< 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 klassMiscFlagsOffset = getFieldOffset("Klass::_misc_flags._flags", Integer.class, "u1");
102     final int klassVtableStartOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_start_offset", Integer.class, "int");
103     final int klassVtableLengthOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_length_offset", Integer.class, "int");
104 
105     final int instanceKlassStateLinked = getConstant("InstanceKlass::linked", Integer.class);
106     final int instanceKlassStateFullyInitialized = getConstant("InstanceKlass::fully_initialized", Integer.class);
107     final int instanceKlassStateBeingInitialized = getConstant("InstanceKlass::being_initialized", Integer.class);
108 
109     final int annotationsFieldAnnotationsOffset = getFieldOffset("Annotations::_fields_annotations", Integer.class, "Array<AnnotationArray*>*");
110     final int annotationsClassAnnotationsOffset = getFieldOffset("Annotations::_class_annotations", Integer.class, "AnnotationArray*");
111     final int fieldsAnnotationsBaseOffset = getFieldValue("CompilerToVM::Data::_fields_annotations_base_offset", Integer.class, "int");
112 
113     final int arrayU1LengthOffset = getFieldOffset("Array<int>::_length", Integer.class, "int");
114     final int arrayU1DataOffset = getFieldOffset("Array<u1>::_data", Integer.class);
115     final int arrayU2DataOffset = getFieldOffset("Array<u2>::_data", Integer.class);
116 
117     final int jvmAccHasFinalizer = getConstant("KlassFlags::_misc_has_finalizer", Integer.class);
118     final int jvmFieldFlagInternalShift = getConstant("FieldInfo::FieldFlags::_ff_injected", Integer.class);
119     final int jvmFieldFlagStableShift = getConstant("FieldInfo::FieldFlags::_ff_stable", Integer.class);
120     final int jvmAccIsCloneableFast = getConstant("KlassFlags::_misc_is_cloneable_fast", Integer.class);

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



306 
307     final int bciProfileWidth = getFlag("BciProfileWidth", Integer.class);
308     final int typeProfileWidth = getFlag("TypeProfileWidth", Integer.class);
309     final int methodProfileWidth = getFlag("MethodProfileWidth", Integer.class, 0);
310 
311     final int deoptReasonNone = getConstant("Deoptimization::Reason_none", Integer.class);
312     final int deoptReasonNullCheck = getConstant("Deoptimization::Reason_null_check", Integer.class);
313     final int deoptReasonRangeCheck = getConstant("Deoptimization::Reason_range_check", Integer.class);
314     final int deoptReasonClassCheck = getConstant("Deoptimization::Reason_class_check", Integer.class);
315     final int deoptReasonArrayCheck = getConstant("Deoptimization::Reason_array_check", Integer.class);
316     final int deoptReasonUnreached0 = getConstant("Deoptimization::Reason_unreached0", Integer.class);
317     final int deoptReasonTypeCheckInlining = getConstant("Deoptimization::Reason_type_checked_inlining", Integer.class);
318     final int deoptReasonOptimizedTypeCheck = getConstant("Deoptimization::Reason_optimized_type_check", Integer.class);
319     final int deoptReasonNotCompiledExceptionHandler = getConstant("Deoptimization::Reason_not_compiled_exception_handler", Integer.class);
320     final int deoptReasonUnresolved = getConstant("Deoptimization::Reason_unresolved", Integer.class);
321     final int deoptReasonJsrMismatch = getConstant("Deoptimization::Reason_jsr_mismatch", Integer.class);
322     final int deoptReasonDiv0Check = getConstant("Deoptimization::Reason_div0_check", Integer.class);
323     final int deoptReasonConstraint = getConstant("Deoptimization::Reason_constraint", Integer.class);
324     final int deoptReasonLoopLimitCheck = getConstant("Deoptimization::Reason_loop_limit_check", Integer.class);
325     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 klassMiscFlagsOffset = getFieldOffset("Klass::_misc_flags._flags", Integer.class, "u1");
102     final int klassVtableStartOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_start_offset", Integer.class, "int");
103     final int klassVtableLengthOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_length_offset", Integer.class, "int");
104 
105     final int instanceKlassStateLinked = getConstant("InstanceKlass::linked", Integer.class);
106     final int instanceKlassStateFullyInitialized = getConstant("InstanceKlass::fully_initialized", Integer.class);
107     final int instanceKlassStateBeingInitialized = getConstant("InstanceKlass::being_initialized", Integer.class);
108 
109     final int annotationsFieldAnnotationsOffset = getFieldOffset("Annotations::_fields_annotations", Integer.class, "Array<AnnotationArray*>*");
110     final int annotationsClassAnnotationsOffset = getFieldOffset("Annotations::_class_annotations", Integer.class, "AnnotationArray*");
111     final int fieldsAnnotationsBaseOffset = getFieldValue("CompilerToVM::Data::_fields_annotations_base_offset", Integer.class, "int");
112 
113     final int arrayU1LengthOffset = getFieldOffset("Array<int>::_length", Integer.class, "int");
114     final int arrayU1DataOffset = getFieldOffset("Array<u1>::_data", Integer.class);
115     final int arrayU2DataOffset = getFieldOffset("Array<u2>::_data", Integer.class);
116 
117     final int jvmAccHasFinalizer = getConstant("KlassFlags::_misc_has_finalizer", Integer.class);
118     final int jvmFieldFlagInternalShift = getConstant("FieldInfo::FieldFlags::_ff_injected", Integer.class);
119     final int jvmFieldFlagStableShift = getConstant("FieldInfo::FieldFlags::_ff_stable", Integer.class);
120     final int jvmAccIsCloneableFast = getConstant("KlassFlags::_misc_is_cloneable_fast", Integer.class);

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