Home
last modified time | relevance | path

Searched refs:code_info (Results 1 – 22 of 22) sorted by relevance

/art/compiler/optimizing/
Dstack_map_test.cc31 const CodeInfo& code_info, in CheckStackMask() argument
34 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(stack_map); in CheckStackMask()
67 CodeInfo code_info(memory.data()); in TEST() local
68 ASSERT_EQ(1u, code_info.GetNumberOfStackMaps()); in TEST()
70 uint32_t number_of_catalog_entries = code_info.GetNumberOfLocationCatalogEntries(); in TEST()
73 StackMap stack_map = code_info.GetStackMapAt(0); in TEST()
74 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0))); in TEST()
75 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64 * kPcAlign))); in TEST()
78 ASSERT_EQ(0x3u, code_info.GetRegisterMaskOf(stack_map)); in TEST()
80 ASSERT_TRUE(CheckStackMask(code_info, stack_map, sp_mask)); in TEST()
[all …]
Dstack_map_stream.cc59 dchecks_.emplace_back([=](const CodeInfo& code_info) { in BeginMethod() argument
60 DCHECK_EQ(code_info.packed_frame_size_, frame_size_in_bytes / kStackAlignment); in BeginMethod()
61 DCHECK_EQ(code_info.core_spill_mask_, core_spill_mask); in BeginMethod()
62 DCHECK_EQ(code_info.fp_spill_mask_, fp_spill_mask); in BeginMethod()
63 DCHECK_EQ(code_info.number_of_dex_registers_, num_dex_registers); in BeginMethod()
126 dchecks_.emplace_back([=](const CodeInfo& code_info) { in BeginStackMapEntry() argument
128 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset, in BeginStackMapEntry()
132 StackMap stack_map = code_info.GetCatchStackMapForDexPc(dex_pc); in BeginStackMapEntry()
135 StackMap stack_map = code_info.GetStackMapAt(stack_map_index); in BeginStackMapEntry()
139 CHECK_EQ(code_info.GetRegisterMaskOf(stack_map), register_mask); in BeginStackMapEntry()
[all …]
Dcode_generator.cc1070 const CodeInfo& code_info, in CheckCovers() argument
1076 DCHECK(code_info.GetOsrStackMapForDexPc(dex_pc).IsValid()); in CheckCovers()
1086 const CodeInfo& code_info, in CheckLoopEntriesCanBeUsedForOsr() argument
1109 CheckCovers(target, graph, code_info, loop_headers, &covered); in CheckLoopEntriesCanBeUsedForOsr()
1119 CheckCovers(target, graph, code_info, loop_headers, &covered); in CheckLoopEntriesCanBeUsedForOsr()
Doptimizing_compiler.cc1281 info.code_info = nullptr; in JitCompile()
1389 info.code_info = stack_map.size() == 0 ? nullptr : stack_map.data(); in JitCompile()
/art/runtime/
Dstack_map.cc65 CodeInfo code_info(data); in DecodeFrameInfo() local
66 return QuickMethodFrameInfo(code_info.packed_frame_size_ * kStackAlignment, in DecodeFrameInfo()
67 code_info.core_spill_mask_, in DecodeFrameInfo()
68 code_info.fp_spill_mask_); in DecodeFrameInfo()
72 CodeInfo code_info(header->GetOptimizedCodeInfoPtr()); in DecodeGcMasksOnly() local
74 copy.stack_maps_ = code_info.stack_maps_; in DecodeGcMasksOnly()
75 copy.register_masks_ = code_info.register_masks_; in DecodeGcMasksOnly()
76 copy.stack_masks_ = code_info.stack_masks_; in DecodeGcMasksOnly()
81 CodeInfo code_info(header->GetOptimizedCodeInfoPtr()); in DecodeInlineInfoOnly() local
83 copy.number_of_dex_registers_ = code_info.number_of_dex_registers_; in DecodeInlineInfoOnly()
[all …]
Doat_quick_method_header.cc43 CodeInfo code_info = CodeInfo::DecodeInlineInfoOnly(this); in ToDexPc() local
44 StackMap stack_map = code_info.GetStackMapForNativePcOffset(sought_offset); in ToDexPc()
72 CodeInfo code_info = CodeInfo::DecodeInlineInfoOnly(this); in ToNativeQuickPc() local
78 LIKELY(is_for_catch_handler) ? code_info.GetCatchStackMapForDexPc(dex_pc) in ToNativeQuickPc()
79 : code_info.GetStackMapForDexPc(dex_pc); in ToNativeQuickPc()
Dcheck_reference_map_visitor.h72 CodeInfo code_info(GetCurrentOatQuickMethodHeader()); in CheckOptimizedMethod()
73 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in CheckOptimizedMethod()
82 DexRegisterMap dex_register_map = code_info.GetDexRegisterMapOf(stack_map); in CheckOptimizedMethod()
84 uint32_t register_mask = code_info.GetRegisterMaskOf(stack_map); in CheckOptimizedMethod()
85 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(stack_map); in CheckOptimizedMethod()
Dquick_exception_handler.cc250 CodeInfo code_info(handler_method_header_); in SetCatchEnvironmentForOptimizedHandler() local
253 StackMap catch_stack_map = code_info.GetCatchStackMapForDexPc(GetHandlerDexPc()); in SetCatchEnvironmentForOptimizedHandler()
255 DexRegisterMap catch_vreg_map = code_info.GetDexRegisterMapOf(catch_stack_map); in SetCatchEnvironmentForOptimizedHandler()
264 code_info.GetStackMapForNativePcOffset(stack_visitor->GetNativePcOffset()); in SetCatchEnvironmentForOptimizedHandler()
266 DexRegisterMap throw_vreg_map = code_info.GetDexRegisterMapOf(throw_stack_map); in SetCatchEnvironmentForOptimizedHandler()
459 CodeInfo code_info(method_header); in HandleOptimizingDeoptimization() local
461 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in HandleOptimizingDeoptimization()
464 uint32_t register_mask = code_info.GetRegisterMaskOf(stack_map); in HandleOptimizingDeoptimization()
465 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(stack_map); in HandleOptimizingDeoptimization()
467 ? code_info.GetInlineDexRegisterMapOf(stack_map, GetCurrentInlinedFrame()) in HandleOptimizingDeoptimization()
[all …]
Dstack.cc109 CodeInfo* code_info = GetCurrentInlineInfo(); in GetMethod() local
111 return GetResolvedMethod(*GetCurrentQuickFrame(), *code_info, current_inline_frames_); in GetMethod()
281 CodeInfo code_info(method_header); in GetVRegFromOptimizedCode() local
284 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in GetVRegFromOptimizedCode()
288 ? code_info.GetInlineDexRegisterMapOf(stack_map, current_inline_frames_.back()) in GetVRegFromOptimizedCode()
289 : code_info.GetDexRegisterMapOf(stack_map); in GetVRegFromOptimizedCode()
298 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(stack_map); in GetVRegFromOptimizedCode()
307 uint32_t register_mask = code_info.GetRegisterMaskOf(stack_map); in GetVRegFromOptimizedCode()
897 CodeInfo* code_info = GetCurrentInlineInfo(); in WalkStack() local
901 for (current_inline_frames_ = code_info->GetInlineInfosOf(*stack_map); in WalkStack()
Dstack_map.h165 const CodeInfo& code_info,
285 size_t Dedupe(const uint8_t* code_info);
426 static void CollectSizeStats(const uint8_t* code_info, /*out*/ Stats* parent);
Dthread.cc3806 CodeInfo code_info = kPrecise in VisitQuickFrameWithVregCallback() local
3809 StackMap map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in VisitQuickFrameWithVregCallback()
3812 T vreg_info(m, code_info, map, visitor_); in VisitQuickFrameWithVregCallback()
3815 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(map); in VisitQuickFrameWithVregCallback()
3830 uint32_t register_mask = code_info.GetRegisterMaskOf(map); in VisitQuickFrameWithVregCallback()
3877 const CodeInfo& code_info ATTRIBUTE_UNUSED, in VisitQuickFrameNonPrecise()
3911 code_info(_code_info), in VisitQuickFramePrecise()
3912 dex_register_map(code_info.GetDexRegisterMapOf(map)), in VisitQuickFramePrecise()
3959 const CodeInfo& code_info; in VisitQuickFramePrecise() member
/art/compiler/debug/
Delf_debug_line_writer.h93 if (mi->code_info != nullptr) { in WriteCompilationUnit()
95 const CodeInfo code_info(mi->code_info); in WriteCompilationUnit()
96 pc2dex_map.reserve(code_info.GetNumberOfStackMaps()); in WriteCompilationUnit()
97 for (StackMap stack_map : code_info.GetStackMaps()) { in WriteCompilationUnit()
Delf_debug_loc_writer.h93 const CodeInfo code_info(method_info->code_info); in GetVariableLocations()
95 for (uint32_t s = 0; s < code_info.GetNumberOfStackMaps(); s++) { in GetVariableLocations()
96 StackMap stack_map = code_info.GetStackMapAt(s); in GetVariableLocations()
118 const StackMap stack_map = code_info.GetStackMapAt(stack_map_index); in GetVariableLocations()
179 if (method_info->code_info == nullptr || dex_register_maps.empty()) { in WriteDebugLocEntry()
Dmethod_debug_info.h44 const uint8_t* code_info; member
Delf_debug_info_writer.h191 std::unique_ptr<const CodeInfo> code_info; in Write() local
193 if (accessor.HasCodeItem() && mi->code_info != nullptr) { in Write()
194 code_info.reset(new CodeInfo(mi->code_info)); in Write()
195 for (StackMap stack_map : code_info->GetStackMaps()) { in Write()
196 dex_reg_maps.push_back(code_info->GetDexRegisterMapOf(stack_map)); in Write()
/art/runtime/entrypoints/jni/
Djni_entrypoints.cc158 CodeInfo code_info = CodeInfo::DecodeInlineInfoOnly(current_code); in artCriticalNativeFrameSize() local
159 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in artCriticalNativeFrameSize()
161 BitTableRange<InlineInfo> inline_infos = code_info.GetInlineInfosOf(stack_map); in artCriticalNativeFrameSize()
163 inline_infos.empty() ? method : GetResolvedMethod(method, code_info, inline_infos); in artCriticalNativeFrameSize()
/art/runtime/entrypoints/
Dentrypoint_utils.cc211 CodeInfo code_info = CodeInfo::DecodeInlineInfoOnly(current_code); in DoGetCalleeSaveMethodCaller() local
212 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in DoGetCalleeSaveMethodCaller()
214 BitTableRange<InlineInfo> inline_infos = code_info.GetInlineInfosOf(stack_map); in DoGetCalleeSaveMethodCaller()
216 caller = GetResolvedMethod(outer_method, code_info, inline_infos); in DoGetCalleeSaveMethodCaller()
Dentrypoint_utils-inl.h51 const CodeInfo& code_info, in GetResolvedMethod() argument
68 uint32_t method_index = code_info.GetMethodIndexOf(inline_info); in GetResolvedMethod()
83 uint32_t method_index = code_info.GetMethodIndexOf(inline_info); in GetResolvedMethod()
/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints.cc262 CodeInfo code_info = CodeInfo::DecodeInlineInfoOnly(current_code); in GetCallingDexPc() local
263 StackMap stack_map = code_info.GetStackMapForNativePcOffset(outer_pc_offset); in GetCallingDexPc()
265 BitTableRange<InlineInfo> inline_infos = code_info.GetInlineInfosOf(stack_map); in GetCallingDexPc()
1169 CodeInfo code_info(current_code); in DumpB74410240DebugData() local
1170 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in DumpB74410240DebugData()
1186 BitTableRange<InlineInfo> inline_infos = code_info.GetInlineInfosOf(stack_map); in DumpB74410240DebugData()
1194 uint32_t method_index = code_info.GetMethodIndexOf(inline_info); in DumpB74410240DebugData()
/art/runtime/jit/
Djit.cc493 CodeInfo code_info(osr_method); in PrepareForOsr() local
496 StackMap stack_map = code_info.GetOsrStackMapForDexPc(dex_pc); in PrepareForOsr()
505 DexRegisterMap vreg_map = code_info.GetDexRegisterMapOf(stack_map); in PrepareForOsr()
/art/oatdump/
Doatdump.cc320 info.code_info = info.is_optimized ? method_header->GetOptimizedCodeInfoPtr() : nullptr; in WalkOatMethod()
1359 CodeInfo code_info(raw_code_info); in DumpVmapData() local
1362 DumpCodeInfo(vios, code_info, oat_method); in DumpVmapData()
1376 const CodeInfo& code_info, in DumpCodeInfo() argument
1378 code_info.Dump(vios, in DumpCodeInfo()
/art/dex2oat/linker/
Doat_writer.cc1379 const uint8_t* code_info = compiled_method->GetVmapTable().data(); in VisitMethod() local
1380 DCHECK(code_info != nullptr); in VisitMethod()
1398 info.frame_size_in_bytes = CodeInfo::DecodeFrameInfo(code_info).FrameSizeInBytes(); in VisitMethod()
1399 info.code_info = code_info; in VisitMethod()