Home
last modified time | relevance | path

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

/art/compiler/optimizing/
Dstack_map_test.cc30 const CodeInfo& code_info, in CheckStackMask() argument
34 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(encoding, stack_map); in CheckStackMask()
65 CodeInfo code_info(region); in TEST() local
66 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in TEST()
67 ASSERT_EQ(1u, code_info.GetNumberOfStackMaps(encoding)); in TEST()
69 uint32_t number_of_catalog_entries = code_info.GetNumberOfLocationCatalogEntries(encoding); in TEST()
71 DexRegisterLocationCatalog location_catalog = code_info.GetDexRegisterLocationCatalog(encoding); in TEST()
78 StackMap stack_map = code_info.GetStackMapAt(0, encoding); in TEST()
79 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0, encoding))); in TEST()
80 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64, encoding))); in TEST()
[all …]
Dstack_map_stream.cc324 CodeInfo code_info(region); in FillInCodeInfo() local
325 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in FillInCodeInfo()
352 StackMap stack_map = code_info.GetStackMapAt(i, encoding); in FillInCodeInfo()
366 InvokeInfo invoke_info(code_info.GetInvokeInfo(encoding, invoke_info_idx)); in FillInCodeInfo()
375 InlineInfo inline_info = code_info.GetInlineInfo(next_inline_info_index, encoding); in FillInCodeInfo()
422 BitMemoryRegion stack_mask = code_info.GetStackMask(i, encoding); in FillInCodeInfo()
431 BitMemoryRegion register_mask = code_info.GetRegisterMask(i, encoding); in FillInCodeInfo()
516 void StackMapStream::CheckDexRegisterMap(const CodeInfo& code_info, in CheckDexRegisterMap() argument
521 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in CheckDexRegisterMap()
536 reg, num_dex_registers, code_info, encoding); in CheckDexRegisterMap()
[all …]
Dstack_map_stream.h219 void CheckDexRegisterMap(const CodeInfo& code_info,
Dcode_generator.cc672 const CodeInfo& code_info, in CheckCovers() argument
675 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in CheckCovers()
679 DCHECK(code_info.GetOsrStackMapForDexPc(dex_pc, encoding).IsValid()); in CheckCovers()
689 const CodeInfo& code_info, in CheckLoopEntriesCanBeUsedForOsr() argument
713 CheckCovers(target, graph, code_info, loop_headers, &covered); in CheckLoopEntriesCanBeUsedForOsr()
723 CheckCovers(target, graph, code_info, loop_headers, &covered); in CheckLoopEntriesCanBeUsedForOsr()
Doptimizing_compiler.cc1265 info.code_info = stack_map_size == 0 ? nullptr : stack_map_data; in JitCompile()
/art/runtime/
Dstack_map.cc59 const CodeInfo& code_info, in GetLocationInternalKind() argument
62 code_info.GetDexRegisterLocationCatalog(enc); in GetLocationInternalKind()
66 code_info.GetNumberOfLocationCatalogEntries(enc)); in GetLocationInternalKind()
72 const CodeInfo& code_info, in GetDexRegisterLocation() argument
75 code_info.GetDexRegisterLocationCatalog(enc); in GetDexRegisterLocation()
79 code_info.GetNumberOfLocationCatalogEntries(enc)); in GetDexRegisterLocation()
155 const CodeInfo& code_info) { in Dump() argument
156 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in Dump()
157 size_t number_of_location_catalog_entries = code_info.GetNumberOfLocationCatalogEntries(encoding); in Dump()
158 size_t location_catalog_size_in_bytes = code_info.GetDexRegisterLocationCatalogSize(encoding); in Dump()
[all …]
Doat_quick_method_header.cc44 CodeInfo code_info = GetOptimizedCodeInfo(); in ToDexPc() local
45 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in ToDexPc()
46 StackMap stack_map = code_info.GetStackMapForNativePcOffset(sought_offset, encoding); in ToDexPc()
73 CodeInfo code_info = GetOptimizedCodeInfo(); in ToNativeQuickPc() local
74 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in ToNativeQuickPc()
80 LIKELY(is_for_catch_handler) ? code_info.GetCatchStackMapForDexPc(dex_pc, encoding) in ToNativeQuickPc()
81 : code_info.GetStackMapForDexPc(dex_pc, encoding); in ToNativeQuickPc()
Dcheck_reference_map_visitor.h64 CodeInfo code_info = GetCurrentOatQuickMethodHeader()->GetOptimizedCodeInfo(); in CheckOptimizedMethod() local
65 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in CheckOptimizedMethod()
66 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset, encoding); in CheckOptimizedMethod()
69 code_info.GetDexRegisterMapOf(stack_map, encoding, number_of_dex_registers); in CheckOptimizedMethod()
70 uint32_t register_mask = code_info.GetRegisterMaskOf(encoding, stack_map); in CheckOptimizedMethod()
71 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(encoding, stack_map); in CheckOptimizedMethod()
76 reg, number_of_dex_registers, code_info, encoding); in CheckOptimizedMethod()
Dquick_exception_handler.cc225 CodeInfo code_info = handler_method_header_->GetOptimizedCodeInfo(); in SetCatchEnvironmentForOptimizedHandler() local
226 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in SetCatchEnvironmentForOptimizedHandler()
229 StackMap catch_stack_map = code_info.GetCatchStackMapForDexPc(GetHandlerDexPc(), encoding); in SetCatchEnvironmentForOptimizedHandler()
232 code_info.GetDexRegisterMapOf(catch_stack_map, encoding, number_of_vregs); in SetCatchEnvironmentForOptimizedHandler()
239 code_info.GetStackMapForNativePcOffset(stack_visitor->GetNativePcOffset(), encoding); in SetCatchEnvironmentForOptimizedHandler()
242 code_info.GetDexRegisterMapOf(throw_stack_map, encoding, number_of_vregs); in SetCatchEnvironmentForOptimizedHandler()
248 catch_vreg_map.GetLocationKind(vreg, number_of_vregs, code_info, encoding); in SetCatchEnvironmentForOptimizedHandler()
258 code_info, in SetCatchEnvironmentForOptimizedHandler()
272 code_info, in SetCatchEnvironmentForOptimizedHandler()
404 CodeInfo code_info = method_header->GetOptimizedCodeInfo(); in HandleOptimizingDeoptimization() local
[all …]
Dstack.cc129 CodeInfo code_info = method_header->GetOptimizedCodeInfo(); in GetCurrentInlineInfo() local
130 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in GetCurrentInlineInfo()
131 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset, encoding); in GetCurrentInlineInfo()
133 return code_info.GetInlineInfoOf(stack_map, encoding); in GetCurrentInlineInfo()
278 CodeInfo code_info = method_header->GetOptimizedCodeInfo(); in GetVRegFromOptimizedCode() local
279 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in GetVRegFromOptimizedCode()
282 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset, encoding); in GetVRegFromOptimizedCode()
287 ? code_info.GetDexRegisterMapAtDepth(depth_in_stack_map, in GetVRegFromOptimizedCode()
288 code_info.GetInlineInfoOf(stack_map, encoding), in GetVRegFromOptimizedCode()
291 : code_info.GetDexRegisterMapOf(stack_map, encoding, number_of_dex_registers); in GetVRegFromOptimizedCode()
[all …]
Dstack_map.h372 const CodeInfo& code_info);
458 const CodeInfo& code_info, in GetLocationKind() argument
461 GetLocationInternalKind(dex_register_number, number_of_dex_registers, code_info, enc)); in GetLocationKind()
467 const CodeInfo& code_info,
473 const CodeInfo& code_info,
478 const CodeInfo& code_info, in GetStackOffsetInBytes() argument
481 GetDexRegisterLocation(dex_register_number, number_of_dex_registers, code_info, enc); in GetStackOffsetInBytes()
489 const CodeInfo& code_info, in GetConstant() argument
492 GetDexRegisterLocation(dex_register_number, number_of_dex_registers, code_info, enc); in GetConstant()
499 const CodeInfo& code_info, in GetMachineRegister() argument
[all …]
Dthread.cc3196 CodeInfo code_info = method_header->GetOptimizedCodeInfo(); in VisitQuickFrameWithVregCallback() local
3197 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in VisitQuickFrameWithVregCallback()
3198 StackMap map = code_info.GetStackMapForNativePcOffset(native_pc_offset, encoding); in VisitQuickFrameWithVregCallback()
3201 T vreg_info(m, code_info, encoding, map, visitor_); in VisitQuickFrameWithVregCallback()
3204 const size_t number_of_bits = code_info.GetNumberOfStackMaskBits(encoding); in VisitQuickFrameWithVregCallback()
3205 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(encoding, map); in VisitQuickFrameWithVregCallback()
3220 uint32_t register_mask = code_info.GetRegisterMaskOf(encoding, map); in VisitQuickFrameWithVregCallback()
3251 const CodeInfo& code_info ATTRIBUTE_UNUSED, in VisitQuickFrameNonPrecise()
3287 code_info(_code_info), in VisitQuickFramePrecise()
3289 dex_register_map(code_info.GetDexRegisterMapOf(map, in VisitQuickFramePrecise()
[all …]
/art/compiler/debug/
Delf_debug_loc_writer.h101 const CodeInfo code_info(method_info->code_info); in GetVariableLocations()
102 const CodeInfoEncoding encoding = code_info.ExtractEncoding(); in GetVariableLocations()
104 for (uint32_t s = 0; s < code_info.GetNumberOfStackMaps(encoding); s++) { in GetVariableLocations()
105 StackMap stack_map = code_info.GetStackMapAt(s, encoding); in GetVariableLocations()
127 const StackMap& stack_map = code_info.GetStackMapAt(stack_map_index, encoding); in GetVariableLocations()
153 vreg, method_info->code_item->registers_size_, code_info, encoding); in GetVariableLocations()
156 vreg + 1, method_info->code_item->registers_size_, code_info, encoding); in GetVariableLocations()
189 if (method_info->code_info == nullptr || dex_register_maps.empty()) { in WriteDebugLocEntry()
Delf_debug_line_writer.h99 if (mi->code_info != nullptr) { in WriteCompilationUnit()
101 const CodeInfo code_info(mi->code_info); in WriteCompilationUnit()
102 const CodeInfoEncoding encoding = code_info.ExtractEncoding(); in WriteCompilationUnit()
103 pc2dex_map.reserve(code_info.GetNumberOfStackMaps(encoding)); in WriteCompilationUnit()
104 for (uint32_t s = 0; s < code_info.GetNumberOfStackMaps(encoding); s++) { in WriteCompilationUnit()
105 StackMap stack_map = code_info.GetStackMapAt(s, encoding); in WriteCompilationUnit()
Dmethod_debug_info.h41 const void* code_info; member
Delf_debug_info_writer.h182 if (mi->code_info != nullptr) { in Write()
183 const CodeInfo code_info(mi->code_info); in Write()
184 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in Write()
185 for (size_t s = 0; s < code_info.GetNumberOfStackMaps(encoding); ++s) { in Write()
186 const StackMap& stack_map = code_info.GetStackMapAt(s, encoding); in Write()
187 dex_reg_maps.push_back(code_info.GetDexRegisterMapOf( in Write()
/art/runtime/entrypoints/
Dentrypoint_utils.cc204 CodeInfo code_info = current_code->GetOptimizedCodeInfo(); in DoGetCalleeSaveMethodCaller() local
206 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in DoGetCalleeSaveMethodCaller()
207 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset, encoding); in DoGetCalleeSaveMethodCaller()
210 InlineInfo inline_info = code_info.GetInlineInfoOf(stack_map, encoding); in DoGetCalleeSaveMethodCaller()
/art/runtime/jit/
Djit.cc457 CodeInfo code_info = osr_method->GetOptimizedCodeInfo(); in MaybeDoOnStackReplacement() local
458 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in MaybeDoOnStackReplacement()
461 StackMap stack_map = code_info.GetOsrStackMapForDexPc(dex_pc + dex_pc_offset, encoding); in MaybeDoOnStackReplacement()
478 code_info.GetDexRegisterMapOf(stack_map, encoding, number_of_vregs); in MaybeDoOnStackReplacement()
500 vreg_map.GetLocationKind(vreg, number_of_vregs, code_info, encoding); in MaybeDoOnStackReplacement()
516 code_info, in MaybeDoOnStackReplacement()
/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints.cc345 CodeInfo code_info = current_code->GetOptimizedCodeInfo(); in GetCallingDexPc() local
346 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in GetCallingDexPc()
347 StackMap stack_map = code_info.GetStackMapForNativePcOffset(outer_pc_offset, encoding); in GetCallingDexPc()
350 InlineInfo inline_info = code_info.GetInlineInfoOf(stack_map, encoding); in GetCallingDexPc()
373 CodeInfo code_info = current_code->GetOptimizedCodeInfo(); in GetInvokeType() local
374 CodeInfoEncoding encoding = code_info.ExtractEncoding(); in GetInvokeType()
376 InvokeInfo invoke(code_info.GetInvokeInfoForNativePcOffset(outer_pc_offset, encoding)); in GetInvokeType()
/art/oatdump/
Doatdump.cc283 info.code_info = info.is_optimized ? method_header->GetOptimizedCodeInfoPtr() : nullptr; in WalkOatMethod()
1363 CodeInfo code_info(raw_code_info); in DumpVmapData() local
1367 DumpCodeInfo(vios, code_info, oat_method, *code_item, method_info); in DumpVmapData()
1381 const CodeInfo& code_info, in DumpCodeInfo() argument
1385 code_info.Dump(vios, in DumpCodeInfo()
/art/compiler/
Doat_writer.cc894 info.code_info = has_code_info ? compiled_method->GetVmapTable().data() : nullptr; in VisitMethod()