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()
90 dchecks_.emplace_back([=](const CodeInfo& code_info) { in EndMethod() argument
91 CHECK_EQ(code_info.code_size_, code_size); in EndMethod()
140 dchecks_.emplace_back([=](const CodeInfo& code_info) { in BeginStackMapEntry() argument
142 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset, in BeginStackMapEntry()
146 StackMap stack_map = code_info.GetCatchStackMapForDexPc(dex_pc); in BeginStackMapEntry()
[all …]
Dcode_generator.cc1092 const CodeInfo& code_info, in CheckCovers() argument
1098 DCHECK(code_info.GetOsrStackMapForDexPc(dex_pc).IsValid()); in CheckCovers()
1108 const CodeInfo& code_info, in CheckLoopEntriesCanBeUsedForOsr() argument
1131 CheckCovers(target, graph, code_info, loop_headers, &covered); in CheckLoopEntriesCanBeUsedForOsr()
1141 CheckCovers(target, graph, code_info, loop_headers, &covered); in CheckLoopEntriesCanBeUsedForOsr()
Doptimizing_compiler.cc1299 info.code_info = nullptr; in JitCompile()
1407 info.code_info = stack_map.size() == 0 ? nullptr : stack_map.data(); in JitCompile()
/art/runtime/
Dstack_map.cc65 CodeInfo code_info(header->GetOptimizedCodeInfoPtr()); in DecodeGcMasksOnly() local
67 copy.stack_maps_ = code_info.stack_maps_; in DecodeGcMasksOnly()
68 copy.register_masks_ = code_info.register_masks_; in DecodeGcMasksOnly()
69 copy.stack_masks_ = code_info.stack_masks_; in DecodeGcMasksOnly()
74 CodeInfo code_info(header->GetOptimizedCodeInfoPtr()); in DecodeInlineInfoOnly() local
76 copy.number_of_dex_registers_ = code_info.number_of_dex_registers_; in DecodeInlineInfoOnly()
77 copy.stack_maps_ = code_info.stack_maps_; in DecodeInlineInfoOnly()
78 copy.inline_infos_ = code_info.inline_infos_; in DecodeInlineInfoOnly()
79 copy.method_infos_ = code_info.method_infos_; in DecodeInlineInfoOnly()
93 CodeInfo code_info(code_info_data, nullptr, [&](size_t i, auto*, BitMemoryRegion region) { in Dedupe() local
[all …]
Dcheck_reference_map_visitor.h81 CodeInfo code_info(GetCurrentOatQuickMethodHeader()); in CheckOptimizedMethod()
82 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in CheckOptimizedMethod()
83 if (search_for_valid_stack_map && !code_info.GetStackMaskOf(stack_map).IsValid()) { in CheckOptimizedMethod()
84 for (StackMap map : code_info.GetStackMaps()) { in CheckOptimizedMethod()
85 if (map.GetDexPc() == dex_pc && code_info.GetStackMaskOf(map).IsValid()) { in CheckOptimizedMethod()
99 DexRegisterMap dex_register_map = code_info.GetDexRegisterMapOf(stack_map); in CheckOptimizedMethod()
101 uint32_t register_mask = code_info.GetRegisterMaskOf(stack_map); in CheckOptimizedMethod()
102 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(stack_map); in CheckOptimizedMethod()
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()
Dstack_map.h165 const CodeInfo& code_info,
285 size_t Dedupe(const uint8_t* code_info);
307 CodeInfo code_info = DecodeHeaderOnly(code_info_data); in DecodeFrameInfo() local
308 return QuickMethodFrameInfo(code_info.packed_frame_size_ * kStackAlignment, in DecodeFrameInfo()
309 code_info.core_spill_mask_, in DecodeFrameInfo()
310 code_info.fp_spill_mask_); in DecodeFrameInfo()
314 CodeInfo code_info; in DecodeHeaderOnly() local
317 ForEachHeaderField([&code_info, &header](size_t i, auto member_pointer) { in DecodeHeaderOnly()
318 code_info.*member_pointer = header[i]; in DecodeHeaderOnly()
320 return code_info; in DecodeHeaderOnly()
[all …]
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()
275 CodeInfo code_info(method_header); in GetVRegFromOptimizedCode() local
278 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in GetVRegFromOptimizedCode()
282 ? code_info.GetInlineDexRegisterMapOf(stack_map, current_inline_frames_.back()) in GetVRegFromOptimizedCode()
283 : code_info.GetDexRegisterMapOf(stack_map); in GetVRegFromOptimizedCode()
292 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(stack_map); in GetVRegFromOptimizedCode()
301 uint32_t register_mask = code_info.GetRegisterMaskOf(stack_map); in GetVRegFromOptimizedCode()
871 CodeInfo* code_info = GetCurrentInlineInfo(); in WalkStack() local
875 for (current_inline_frames_ = code_info->GetInlineInfosOf(*stack_map); in WalkStack()
Dthread.cc3941 CodeInfo code_info = kPrecise in VisitQuickFrameWithVregCallback() local
3944 StackMap map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in VisitQuickFrameWithVregCallback()
3947 T vreg_info(m, code_info, map, visitor_); in VisitQuickFrameWithVregCallback()
3950 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(map); in VisitQuickFrameWithVregCallback()
3965 uint32_t register_mask = code_info.GetRegisterMaskOf(map); in VisitQuickFrameWithVregCallback()
4012 const CodeInfo& code_info ATTRIBUTE_UNUSED, in VisitQuickFrameNonPrecise()
4046 code_info(_code_info), in VisitQuickFramePrecise()
4047 dex_register_map(code_info.GetDexRegisterMapOf(map)), in VisitQuickFramePrecise()
4094 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.cc161 CodeInfo code_info = CodeInfo::DecodeInlineInfoOnly(current_code); in artCriticalNativeFrameSize() local
162 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in artCriticalNativeFrameSize()
164 BitTableRange<InlineInfo> inline_infos = code_info.GetInlineInfosOf(stack_map); in artCriticalNativeFrameSize()
166 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/oatdump/
Doatdump.cc321 info.code_info = info.is_optimized ? method_header->GetOptimizedCodeInfoPtr() : nullptr; in WalkOatMethod()
1336 CodeInfo code_info(raw_code_info); in DumpVmapData() local
1339 DumpCodeInfo(vios, code_info, oat_method); in DumpVmapData()
1353 const CodeInfo& code_info, in DumpCodeInfo() argument
1355 code_info.Dump(vios, in DumpCodeInfo()
1519 CodeInfo code_info(oat_method.GetVmapTable()); in DumpCode() local
1521 code_info.CollectSizeStats(oat_method.GetVmapTable(), stats_["CodeInfo"]); in DumpCode()
1524 for (const StackMap& it : code_info.GetStackMaps()) { in DumpCode()
1536 stack_map.Dump(vios, code_info, oat_method.GetCodeOffset(), instruction_set_); in DumpCode()
/art/runtime/jit/
Djit.cc499 CodeInfo code_info(osr_method); in PrepareForOsr() local
502 StackMap stack_map = code_info.GetOsrStackMapForDexPc(dex_pc); in PrepareForOsr()
511 DexRegisterMap vreg_map = code_info.GetDexRegisterMapOf(stack_map); in PrepareForOsr()
/art/dex2oat/linker/
Doat_writer.cc1386 const uint8_t* code_info = compiled_method->GetVmapTable().data(); in VisitMethod() local
1387 DCHECK(code_info != nullptr); in VisitMethod()
1406 info.frame_size_in_bytes = CodeInfo::DecodeFrameInfo(code_info).FrameSizeInBytes(); in VisitMethod()
1407 info.code_info = code_info; in VisitMethod()