< prev index next >

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

Print this page

 84     final int classLoaderDataOffset = getFieldOffset("Klass::_class_loader_data", Integer.class, "ClassLoaderData*");
 85 
 86     /**
 87      * The offset of the _java_mirror field (of type {@link Class}) in a Klass.
 88      */
 89     final int javaMirrorOffset = getFieldOffset("Klass::_java_mirror", Integer.class, "OopHandle");
 90 
 91     final int klassAccessFlagsOffset = getFieldOffset("Klass::_access_flags", Integer.class, "AccessFlags");
 92     final int klassLayoutHelperOffset = getFieldOffset("Klass::_layout_helper", Integer.class, "jint");
 93 
 94     final int klassLayoutHelperNeutralValue = getConstant("Klass::_lh_neutral_value", Integer.class);
 95     final int klassLayoutHelperInstanceSlowPathBit = getConstant("Klass::_lh_instance_slow_path_bit", Integer.class);
 96 
 97     final int vtableEntrySize = getFieldValue("CompilerToVM::Data::sizeof_vtableEntry", Integer.class, "int");
 98     final int vtableEntryMethodOffset = getFieldOffset("vtableEntry::_method", Integer.class, "Method*");
 99 
100     final int instanceKlassInitStateOffset = getFieldOffset("InstanceKlass::_init_state", Integer.class, "u1");
101     final int instanceKlassConstantsOffset = getFieldOffset("InstanceKlass::_constants", Integer.class, "ConstantPool*");
102     final int instanceKlassFieldsOffset = getFieldOffset("InstanceKlass::_fields", Integer.class, "Array<u2>*");
103     final int instanceKlassAnnotationsOffset = getFieldOffset("InstanceKlass::_annotations", Integer.class, "Annotations*");
104     final int instanceKlassMiscFlagsOffset = getFieldOffset("InstanceKlass::_misc_flags", Integer.class, "u2");
105     final int klassVtableStartOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_start_offset", Integer.class, "int");
106     final int klassVtableLengthOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_length_offset", Integer.class, "int");
107 
108     final int instanceKlassStateLinked = getConstant("InstanceKlass::linked", Integer.class);
109     final int instanceKlassStateFullyInitialized = getConstant("InstanceKlass::fully_initialized", Integer.class);
110     final int instanceKlassStateBeingInitialized = getConstant("InstanceKlass::being_initialized", Integer.class);
111 
112     final int annotationsFieldAnnotationsOffset = getFieldOffset("Annotations::_fields_annotations", Integer.class, "Array<AnnotationArray*>*");
113     final int fieldsAnnotationsBaseOffset = getFieldValue("CompilerToVM::Data::_fields_annotations_base_offset", Integer.class, "int");
114 
115     final int arrayU1LengthOffset = getFieldOffset("Array<int>::_length", Integer.class, "int");
116     final int arrayU1DataOffset = getFieldOffset("Array<u1>::_data", Integer.class);
117     final int arrayU2DataOffset = getFieldOffset("Array<u2>::_data", Integer.class);
118 
119     final int fieldInfoAccessFlagsOffset = getConstant("FieldInfo::access_flags_offset", Integer.class);
120     final int fieldInfoNameIndexOffset = getConstant("FieldInfo::name_index_offset", Integer.class);
121     final int fieldInfoSignatureIndexOffset = getConstant("FieldInfo::signature_index_offset", Integer.class);
122     final int fieldInfoLowPackedOffset = getConstant("FieldInfo::low_packed_offset", Integer.class);
123     final int fieldInfoHighPackedOffset = getConstant("FieldInfo::high_packed_offset", Integer.class);
124     final int fieldInfoFieldSlots = getConstant("FieldInfo::field_slots", Integer.class);

298     final int dataLayoutHeaderSize = getConstant("DataLayout::cell_size", Integer.class);
299     final int dataLayoutTagOffset = getFieldOffset("DataLayout::_header._struct._tag", Integer.class, "u1");
300     final int dataLayoutFlagsOffset = getFieldOffset("DataLayout::_header._struct._flags", Integer.class, "u1");
301     final int dataLayoutBCIOffset = getFieldOffset("DataLayout::_header._struct._bci", Integer.class, "u2");
302     final int dataLayoutCellSize = getConstant("DataLayout::cell_size", Integer.class);
303 
304     final int dataLayoutNoTag = getConstant("DataLayout::no_tag", Integer.class);
305     final int dataLayoutBitDataTag = getConstant("DataLayout::bit_data_tag", Integer.class);
306     final int dataLayoutCounterDataTag = getConstant("DataLayout::counter_data_tag", Integer.class);
307     final int dataLayoutJumpDataTag = getConstant("DataLayout::jump_data_tag", Integer.class);
308     final int dataLayoutReceiverTypeDataTag = getConstant("DataLayout::receiver_type_data_tag", Integer.class);
309     final int dataLayoutVirtualCallDataTag = getConstant("DataLayout::virtual_call_data_tag", Integer.class);
310     final int dataLayoutRetDataTag = getConstant("DataLayout::ret_data_tag", Integer.class);
311     final int dataLayoutBranchDataTag = getConstant("DataLayout::branch_data_tag", Integer.class);
312     final int dataLayoutMultiBranchDataTag = getConstant("DataLayout::multi_branch_data_tag", Integer.class);
313     final int dataLayoutArgInfoDataTag = getConstant("DataLayout::arg_info_data_tag", Integer.class);
314     final int dataLayoutCallTypeDataTag = getConstant("DataLayout::call_type_data_tag", Integer.class);
315     final int dataLayoutVirtualCallTypeDataTag = getConstant("DataLayout::virtual_call_type_data_tag", Integer.class);
316     final int dataLayoutParametersTypeDataTag = getConstant("DataLayout::parameters_type_data_tag", Integer.class);
317     final int dataLayoutSpeculativeTrapDataTag = getConstant("DataLayout::speculative_trap_data_tag", Integer.class);


318 
319     final int bciProfileWidth = getFlag("BciProfileWidth", Integer.class);
320     final int typeProfileWidth = getFlag("TypeProfileWidth", Integer.class);
321     final int methodProfileWidth = getFlag("MethodProfileWidth", Integer.class, 0);
322 
323     final int deoptReasonNone = getConstant("Deoptimization::Reason_none", Integer.class);
324     final int deoptReasonNullCheck = getConstant("Deoptimization::Reason_null_check", Integer.class);
325     final int deoptReasonRangeCheck = getConstant("Deoptimization::Reason_range_check", Integer.class);
326     final int deoptReasonClassCheck = getConstant("Deoptimization::Reason_class_check", Integer.class);
327     final int deoptReasonArrayCheck = getConstant("Deoptimization::Reason_array_check", Integer.class);
328     final int deoptReasonUnreached0 = getConstant("Deoptimization::Reason_unreached0", Integer.class);
329     final int deoptReasonTypeCheckInlining = getConstant("Deoptimization::Reason_type_checked_inlining", Integer.class);
330     final int deoptReasonOptimizedTypeCheck = getConstant("Deoptimization::Reason_optimized_type_check", Integer.class);
331     final int deoptReasonNotCompiledExceptionHandler = getConstant("Deoptimization::Reason_not_compiled_exception_handler", Integer.class);
332     final int deoptReasonUnresolved = getConstant("Deoptimization::Reason_unresolved", Integer.class);
333     final int deoptReasonJsrMismatch = getConstant("Deoptimization::Reason_jsr_mismatch", Integer.class);
334     final int deoptReasonDiv0Check = getConstant("Deoptimization::Reason_div0_check", Integer.class);
335     final int deoptReasonConstraint = getConstant("Deoptimization::Reason_constraint", Integer.class);
336     final int deoptReasonLoopLimitCheck = getConstant("Deoptimization::Reason_loop_limit_check", Integer.class);
337     final int deoptReasonAliasing = getConstant("Deoptimization::Reason_aliasing", Integer.class);

 84     final int classLoaderDataOffset = getFieldOffset("Klass::_class_loader_data", Integer.class, "ClassLoaderData*");
 85 
 86     /**
 87      * The offset of the _java_mirror field (of type {@link Class}) in a Klass.
 88      */
 89     final int javaMirrorOffset = getFieldOffset("Klass::_java_mirror", Integer.class, "OopHandle");
 90 
 91     final int klassAccessFlagsOffset = getFieldOffset("Klass::_access_flags", Integer.class, "AccessFlags");
 92     final int klassLayoutHelperOffset = getFieldOffset("Klass::_layout_helper", Integer.class, "jint");
 93 
 94     final int klassLayoutHelperNeutralValue = getConstant("Klass::_lh_neutral_value", Integer.class);
 95     final int klassLayoutHelperInstanceSlowPathBit = getConstant("Klass::_lh_instance_slow_path_bit", Integer.class);
 96 
 97     final int vtableEntrySize = getFieldValue("CompilerToVM::Data::sizeof_vtableEntry", Integer.class, "int");
 98     final int vtableEntryMethodOffset = getFieldOffset("vtableEntry::_method", Integer.class, "Method*");
 99 
100     final int instanceKlassInitStateOffset = getFieldOffset("InstanceKlass::_init_state", Integer.class, "u1");
101     final int instanceKlassConstantsOffset = getFieldOffset("InstanceKlass::_constants", Integer.class, "ConstantPool*");
102     final int instanceKlassFieldsOffset = getFieldOffset("InstanceKlass::_fields", Integer.class, "Array<u2>*");
103     final int instanceKlassAnnotationsOffset = getFieldOffset("InstanceKlass::_annotations", Integer.class, "Annotations*");
104     final int instanceKlassMiscFlagsOffset = getFieldOffset("InstanceKlass::_misc_flags", Integer.class, "u4");
105     final int klassVtableStartOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_start_offset", Integer.class, "int");
106     final int klassVtableLengthOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_length_offset", Integer.class, "int");
107 
108     final int instanceKlassStateLinked = getConstant("InstanceKlass::linked", Integer.class);
109     final int instanceKlassStateFullyInitialized = getConstant("InstanceKlass::fully_initialized", Integer.class);
110     final int instanceKlassStateBeingInitialized = getConstant("InstanceKlass::being_initialized", Integer.class);
111 
112     final int annotationsFieldAnnotationsOffset = getFieldOffset("Annotations::_fields_annotations", Integer.class, "Array<AnnotationArray*>*");
113     final int fieldsAnnotationsBaseOffset = getFieldValue("CompilerToVM::Data::_fields_annotations_base_offset", Integer.class, "int");
114 
115     final int arrayU1LengthOffset = getFieldOffset("Array<int>::_length", Integer.class, "int");
116     final int arrayU1DataOffset = getFieldOffset("Array<u1>::_data", Integer.class);
117     final int arrayU2DataOffset = getFieldOffset("Array<u2>::_data", Integer.class);
118 
119     final int fieldInfoAccessFlagsOffset = getConstant("FieldInfo::access_flags_offset", Integer.class);
120     final int fieldInfoNameIndexOffset = getConstant("FieldInfo::name_index_offset", Integer.class);
121     final int fieldInfoSignatureIndexOffset = getConstant("FieldInfo::signature_index_offset", Integer.class);
122     final int fieldInfoLowPackedOffset = getConstant("FieldInfo::low_packed_offset", Integer.class);
123     final int fieldInfoHighPackedOffset = getConstant("FieldInfo::high_packed_offset", Integer.class);
124     final int fieldInfoFieldSlots = getConstant("FieldInfo::field_slots", Integer.class);

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