Home
last modified time | relevance | path

Searched refs:code_info (Results 1 – 20 of 20) 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.cc1019 const CodeInfo& code_info, in CheckCovers() argument
1025 DCHECK(code_info.GetOsrStackMapForDexPc(dex_pc).IsValid()); in CheckCovers()
1035 const CodeInfo& code_info, in CheckLoopEntriesCanBeUsedForOsr() argument
1058 CheckCovers(target, graph, code_info, loop_headers, &covered); in CheckLoopEntriesCanBeUsedForOsr()
1068 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.cc42 CodeInfo code_info = CodeInfo::DecodeInlineInfoOnly(this); in ToDexPc() local
43 StackMap stack_map = code_info.GetStackMapForNativePcOffset(sought_offset); in ToDexPc()
71 CodeInfo code_info = CodeInfo::DecodeInlineInfoOnly(this); in ToNativeQuickPc() local
77 LIKELY(is_for_catch_handler) ? code_info.GetCatchStackMapForDexPc(dex_pc) in ToNativeQuickPc()
78 : 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.cc248 CodeInfo code_info(handler_method_header_); in SetCatchEnvironmentForOptimizedHandler() local
251 StackMap catch_stack_map = code_info.GetCatchStackMapForDexPc(GetHandlerDexPc()); in SetCatchEnvironmentForOptimizedHandler()
253 DexRegisterMap catch_vreg_map = code_info.GetDexRegisterMapOf(catch_stack_map); in SetCatchEnvironmentForOptimizedHandler()
262 code_info.GetStackMapForNativePcOffset(stack_visitor->GetNativePcOffset()); in SetCatchEnvironmentForOptimizedHandler()
264 DexRegisterMap throw_vreg_map = code_info.GetDexRegisterMapOf(throw_stack_map); in SetCatchEnvironmentForOptimizedHandler()
457 CodeInfo code_info(method_header); in HandleOptimizingDeoptimization() local
459 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in HandleOptimizingDeoptimization()
462 uint32_t register_mask = code_info.GetRegisterMaskOf(stack_map); in HandleOptimizingDeoptimization()
463 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(stack_map); in HandleOptimizingDeoptimization()
465 ? code_info.GetInlineDexRegisterMapOf(stack_map, GetCurrentInlinedFrame()) in HandleOptimizingDeoptimization()
[all …]
Dstack.cc108 CodeInfo* code_info = GetCurrentInlineInfo(); in GetMethod() local
110 return GetResolvedMethod(*GetCurrentQuickFrame(), *code_info, current_inline_frames_); in GetMethod()
280 CodeInfo code_info(method_header); in GetVRegFromOptimizedCode() local
283 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in GetVRegFromOptimizedCode()
287 ? code_info.GetInlineDexRegisterMapOf(stack_map, current_inline_frames_.back()) in GetVRegFromOptimizedCode()
288 : code_info.GetDexRegisterMapOf(stack_map); in GetVRegFromOptimizedCode()
297 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(stack_map); in GetVRegFromOptimizedCode()
306 uint32_t register_mask = code_info.GetRegisterMaskOf(stack_map); in GetVRegFromOptimizedCode()
896 CodeInfo* code_info = GetCurrentInlineInfo(); in WalkStack() local
900 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);
/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/
Dentrypoint_utils.cc208 CodeInfo code_info = CodeInfo::DecodeInlineInfoOnly(current_code); in DoGetCalleeSaveMethodCaller() local
209 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in DoGetCalleeSaveMethodCaller()
211 BitTableRange<InlineInfo> inline_infos = code_info.GetInlineInfosOf(stack_map); in DoGetCalleeSaveMethodCaller()
213 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.cc263 CodeInfo code_info = CodeInfo::DecodeInlineInfoOnly(current_code); in GetCallingDexPc() local
264 StackMap stack_map = code_info.GetStackMapForNativePcOffset(outer_pc_offset); in GetCallingDexPc()
266 BitTableRange<InlineInfo> inline_infos = code_info.GetInlineInfosOf(stack_map); in GetCallingDexPc()
1170 CodeInfo code_info(current_code); in DumpB74410240DebugData() local
1171 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in DumpB74410240DebugData()
1187 BitTableRange<InlineInfo> inline_infos = code_info.GetInlineInfosOf(stack_map); in DumpB74410240DebugData()
1195 uint32_t method_index = code_info.GetMethodIndexOf(inline_info); in DumpB74410240DebugData()
/art/runtime/jit/
Djit.cc489 CodeInfo code_info(osr_method); in PrepareForOsr() local
492 StackMap stack_map = code_info.GetOsrStackMapForDexPc(dex_pc); in PrepareForOsr()
501 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()
1355 CodeInfo code_info(raw_code_info); in DumpVmapData() local
1358 DumpCodeInfo(vios, code_info, oat_method); in DumpVmapData()
1372 const CodeInfo& code_info, in DumpCodeInfo() argument
1374 code_info.Dump(vios, in DumpCodeInfo()
/art/dex2oat/linker/
Doat_writer.cc1368 const uint8_t* code_info = compiled_method->GetVmapTable().data(); in VisitMethod() local
1369 DCHECK(code_info != nullptr); in VisitMethod()
1387 info.frame_size_in_bytes = CodeInfo::DecodeFrameInfo(code_info).FrameSizeInBytes(); in VisitMethod()
1388 info.code_info = code_info; in VisitMethod()