143 final int methodFlagsOffset = getFieldOffset("Method::_flags", Integer.class, "u2"); 144 final int methodVtableIndexOffset = getFieldOffset("Method::_vtable_index", Integer.class, "int"); 145 146 final int methodDataOffset = getFieldOffset("Method::_method_data", Integer.class, "MethodData*"); 147 final int methodCodeOffset = getFieldOffset("Method::_code", Integer.class, "CompiledMethod*"); 148 149 final int methodFlagsCallerSensitive = getConstant("Method::_caller_sensitive", Integer.class); 150 final int methodFlagsForceInline = getConstant("Method::_force_inline", Integer.class); 151 final int methodFlagsIntrinsicCandidate = getConstant("Method::_intrinsic_candidate", Integer.class); 152 final int methodFlagsDontInline = getConstant("Method::_dont_inline", Integer.class); 153 final int methodFlagsReservedStackAccess = getConstant("Method::_reserved_stack_access", Integer.class); 154 final int nonvirtualVtableIndex = getConstant("Method::nonvirtual_vtable_index", Integer.class); 155 final int invalidVtableIndex = getConstant("Method::invalid_vtable_index", Integer.class); 156 157 final int methodDataSize = getFieldOffset("MethodData::_size", Integer.class, "int"); 158 final int methodDataDataSize = getFieldOffset("MethodData::_data_size", Integer.class, "int"); 159 final int methodDataOopDataOffset = getFieldOffset("MethodData::_data[0]", Integer.class, "intptr_t"); 160 final int methodDataOopTrapHistoryOffset = getFieldOffset("MethodData::_trap_hist._array[0]", Integer.class, "u1"); 161 final int methodDataIRSizeOffset = getFieldOffset("MethodData::_jvmci_ir_size", Integer.class, "int"); 162 163 final int nmethodCompLevelOffset = getFieldOffset("nmethod::_comp_level", Integer.class, "int"); 164 165 final int compilationLevelNone = getConstant("CompLevel_none", Integer.class); 166 final int compilationLevelSimple = getConstant("CompLevel_simple", Integer.class); 167 final int compilationLevelLimitedProfile = getConstant("CompLevel_limited_profile", Integer.class); 168 final int compilationLevelFullProfile = getConstant("CompLevel_full_profile", Integer.class); 169 final int compilationLevelFullOptimization = getConstant("CompLevel_full_optimization", Integer.class); 170 171 final int compLevelAdjustmentNone = getConstant("JVMCIRuntime::none", Integer.class); 172 final int compLevelAdjustmentByHolder = getConstant("JVMCIRuntime::by_holder", Integer.class); 173 final int compLevelAdjustmentByFullSignature = getConstant("JVMCIRuntime::by_full_signature", Integer.class); 174 175 final int invocationEntryBci = getConstant("InvocationEntryBci", Integer.class); 176 177 final int extraStackEntries = getFieldValue("CompilerToVM::Data::Method_extra_stack_entries", Integer.class, "int"); 178 179 final int constMethodConstantsOffset = getFieldOffset("ConstMethod::_constants", Integer.class, "ConstantPool*"); 180 final int constMethodFlagsOffset = getFieldOffset("ConstMethod::_flags", Integer.class, "u2"); 181 final int constMethodCodeSizeOffset = getFieldOffset("ConstMethod::_code_size", Integer.class, "u2"); 182 final int constMethodNameIndexOffset = getFieldOffset("ConstMethod::_name_index", Integer.class, "u2"); | 143 final int methodFlagsOffset = getFieldOffset("Method::_flags", Integer.class, "u2"); 144 final int methodVtableIndexOffset = getFieldOffset("Method::_vtable_index", Integer.class, "int"); 145 146 final int methodDataOffset = getFieldOffset("Method::_method_data", Integer.class, "MethodData*"); 147 final int methodCodeOffset = getFieldOffset("Method::_code", Integer.class, "CompiledMethod*"); 148 149 final int methodFlagsCallerSensitive = getConstant("Method::_caller_sensitive", Integer.class); 150 final int methodFlagsForceInline = getConstant("Method::_force_inline", Integer.class); 151 final int methodFlagsIntrinsicCandidate = getConstant("Method::_intrinsic_candidate", Integer.class); 152 final int methodFlagsDontInline = getConstant("Method::_dont_inline", Integer.class); 153 final int methodFlagsReservedStackAccess = getConstant("Method::_reserved_stack_access", Integer.class); 154 final int nonvirtualVtableIndex = getConstant("Method::nonvirtual_vtable_index", Integer.class); 155 final int invalidVtableIndex = getConstant("Method::invalid_vtable_index", Integer.class); 156 157 final int methodDataSize = getFieldOffset("MethodData::_size", Integer.class, "int"); 158 final int methodDataDataSize = getFieldOffset("MethodData::_data_size", Integer.class, "int"); 159 final int methodDataOopDataOffset = getFieldOffset("MethodData::_data[0]", Integer.class, "intptr_t"); 160 final int methodDataOopTrapHistoryOffset = getFieldOffset("MethodData::_trap_hist._array[0]", Integer.class, "u1"); 161 final int methodDataIRSizeOffset = getFieldOffset("MethodData::_jvmci_ir_size", Integer.class, "int"); 162 163 final int methodDataDecompiles = getFieldOffset("MethodData::_nof_decompiles", Integer.class, "uint"); 164 final int methodDataOverflowRecompiles = getFieldOffset("MethodData::_nof_overflow_recompiles", Integer.class, "uint"); 165 final int methodDataOverflowTraps = getFieldOffset("MethodData::_nof_overflow_traps", Integer.class, "uint"); 166 167 final int nmethodCompLevelOffset = getFieldOffset("nmethod::_comp_level", Integer.class, "int"); 168 169 final int compilationLevelNone = getConstant("CompLevel_none", Integer.class); 170 final int compilationLevelSimple = getConstant("CompLevel_simple", Integer.class); 171 final int compilationLevelLimitedProfile = getConstant("CompLevel_limited_profile", Integer.class); 172 final int compilationLevelFullProfile = getConstant("CompLevel_full_profile", Integer.class); 173 final int compilationLevelFullOptimization = getConstant("CompLevel_full_optimization", Integer.class); 174 175 final int compLevelAdjustmentNone = getConstant("JVMCIRuntime::none", Integer.class); 176 final int compLevelAdjustmentByHolder = getConstant("JVMCIRuntime::by_holder", Integer.class); 177 final int compLevelAdjustmentByFullSignature = getConstant("JVMCIRuntime::by_full_signature", Integer.class); 178 179 final int invocationEntryBci = getConstant("InvocationEntryBci", Integer.class); 180 181 final int extraStackEntries = getFieldValue("CompilerToVM::Data::Method_extra_stack_entries", Integer.class, "int"); 182 183 final int constMethodConstantsOffset = getFieldOffset("ConstMethod::_constants", Integer.class, "ConstantPool*"); 184 final int constMethodFlagsOffset = getFieldOffset("ConstMethod::_flags", Integer.class, "u2"); 185 final int constMethodCodeSizeOffset = getFieldOffset("ConstMethod::_code_size", Integer.class, "u2"); 186 final int constMethodNameIndexOffset = getFieldOffset("ConstMethod::_name_index", Integer.class, "u2"); |