Home
last modified time | relevance | path

Searched refs:stack_map (Results 1 – 25 of 29) sorted by relevance

12

/art/compiler/optimizing/
Dstack_map_test.cc33 const StackMap& stack_map, in CheckStackMask() argument
35 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(stack_map); in CheckStackMask()
79 StackMap stack_map = code_info.GetStackMapAt(0); in TEST() local
80 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0))); in TEST()
81 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64 * kPcAlign))); in TEST()
82 ASSERT_EQ(0u, stack_map.GetDexPc()); in TEST()
83 ASSERT_EQ(64u * kPcAlign, stack_map.GetNativePcOffset(kRuntimeISA)); in TEST()
84 ASSERT_EQ(0x3u, code_info.GetRegisterMaskOf(stack_map)); in TEST()
86 ASSERT_TRUE(CheckStackMask(code_info, stack_map, sp_mask)); in TEST()
88 ASSERT_TRUE(stack_map.HasDexRegisterMap()); in TEST()
[all …]
Dstack_map_stream.cc156 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset, in BeginStackMapEntry() local
158 CHECK_EQ(stack_map.Row(), stack_map_index); in BeginStackMapEntry()
160 StackMap stack_map = code_info.GetCatchStackMapForDexPc( in BeginStackMapEntry() local
162 CHECK_EQ(stack_map.Row(), stack_map_index); in BeginStackMapEntry()
164 StackMap stack_map = code_info.GetStackMapAt(stack_map_index); in BeginStackMapEntry() local
165 CHECK_EQ(stack_map.GetNativePcOffset(instruction_set_), native_pc_offset); in BeginStackMapEntry()
166 CHECK_EQ(stack_map.GetKind(), static_cast<uint32_t>(kind)); in BeginStackMapEntry()
167 CHECK_EQ(stack_map.GetDexPc(), dex_pc); in BeginStackMapEntry()
168 CHECK_EQ(code_info.GetRegisterMaskOf(stack_map), register_mask); in BeginStackMapEntry()
169 BitMemoryRegion seen_stack_mask = code_info.GetStackMaskOf(stack_map); in BeginStackMapEntry()
[all …]
Doptimizing_compiler.cc727 ScopedArenaVector<uint8_t> stack_map = codegen->BuildStackMaps(code_item_for_osr_check); in Emit() local
733 ArrayRef<const uint8_t>(stack_map), in Emit()
1205 ScopedArenaVector<uint8_t> stack_map = in JniCompile() local
1213 ArrayRef<const uint8_t>(stack_map), in JniCompile()
1275 ScopedArenaVector<uint8_t> stack_map = in JitCompile() local
1286 stack_map.size(), in JitCompile()
1327 ArrayRef<const uint8_t>(stack_map), in JitCompile()
1378 ScopedArenaVector<uint8_t> stack_map = codegen->BuildStackMaps(code_item); in JitCompile() local
1385 stack_map.size(), in JitCompile()
1423 info.code_info = stack_map.size() == 0 ? nullptr : stack_map.data(); in JitCompile()
[all …]
/art/runtime/
Doat_quick_method_header.cc43 StackMap stack_map = code_info.GetStackMapForNativePcOffset(sought_offset); in ToDexPc() local
44 if (stack_map.IsValid()) { in ToDexPc()
45 return stack_map.GetDexPc(); in ToDexPc()
69 StackMap stack_map = code_info.GetStackMapForDexPc(dex_pc); in ToNativeQuickPc() local
70 if (stack_map.IsValid()) { in ToNativeQuickPc()
71 return reinterpret_cast<uintptr_t>(entry_point) + stack_map.GetNativePcOffset(kRuntimeISA); in ToNativeQuickPc()
95 StackMap stack_map = code_info.GetCatchStackMapForDexPc(dex_pc_list); in ToNativeQuickPcForCatchHandlers() local
96 *stack_map_row = stack_map.Row(); in ToNativeQuickPcForCatchHandlers()
97 if (stack_map.IsValid()) { in ToNativeQuickPcForCatchHandlers()
99 stack_map.GetNativePcOffset(kRuntimeISA); in ToNativeQuickPcForCatchHandlers()
Dstack_map.h205 const StackMap& stack_map) const;
330 BitMemoryRegion GetStackMaskOf(const StackMap& stack_map) const { in GetStackMaskOf() argument
331 uint32_t index = stack_map.GetStackMaskIndex(); in GetStackMaskOf()
335 uint32_t GetRegisterMaskOf(const StackMap& stack_map) const { in GetRegisterMaskOf() argument
336 uint32_t index = stack_map.GetRegisterMaskIndex(); in GetRegisterMaskOf()
367 ALWAYS_INLINE DexRegisterMap GetDexRegisterMapOf(StackMap stack_map) const { in GetDexRegisterMapOf() argument
368 return GetDexRegisterMapOf(stack_map, /* first= */ 0, number_of_dex_registers_); in GetDexRegisterMapOf()
372 ALWAYS_INLINE DexRegisterMap GetInlineDexRegisterMapOf(StackMap stack_map, in GetInlineDexRegisterMapOf() argument
374 if (stack_map.HasDexRegisterMap()) { in GetInlineDexRegisterMapOf()
375 DCHECK(stack_map.HasInlineInfoIndex()); in GetInlineDexRegisterMapOf()
[all …]
Dcheck_reference_map_visitor.h82 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in CheckOptimizedMethod() local
83 if (search_for_valid_stack_map && !code_info.GetStackMaskOf(stack_map).IsValid()) { in CheckOptimizedMethod()
86 stack_map = map; 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()
Dstack_map.cc113 StackMap stack_map = GetStackMapAt(s); in DecodeDexRegisterMap() local
118 uint32_t mask_index = stack_map.GetDexRegisterMaskIndex(); in DecodeDexRegisterMap()
128 uint32_t map_index = stack_map.GetDexRegisterMapIndex(); in DecodeDexRegisterMap()
248 for (StackMap stack_map : stack_maps_) { in Dump() local
249 stack_map.Dump(vios, *this, code_offset, instruction_set); in Dump()
286 const StackMap& stack_map) const { in Dump()
287 uint32_t depth = Row() - stack_map.GetInlineInfoIndex(); in Dump()
307 code_info.GetInlineDexRegisterMapOf(stack_map, *this).Dump(vios); in Dump()
Dstack.cc131 StackMap* stack_map = GetCurrentStackMap(); in GetDexPc() local
132 CHECK(stack_map->IsValid()) << "StackMap not found for " << std::hex << cur_quick_frame_pc_; in GetDexPc()
133 return stack_map->GetDexPc(); in GetDexPc()
306 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in GetVRegFromOptimizedCode() local
307 DCHECK(stack_map.IsValid()); in GetVRegFromOptimizedCode()
310 ? code_info.GetInlineDexRegisterMapOf(stack_map, current_inline_frames_.back()) in GetVRegFromOptimizedCode()
311 : code_info.GetDexRegisterMapOf(stack_map, in GetVRegFromOptimizedCode()
325 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(stack_map); in GetVRegFromOptimizedCode()
334 uint32_t register_mask = code_info.GetRegisterMaskOf(stack_map); in GetVRegFromOptimizedCode()
891 StackMap* stack_map = GetCurrentStackMap(); in WalkStack() local
[all …]
Dquick_exception_handler.cc559 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in HandleOptimizingDeoptimization() local
562 uint32_t register_mask = code_info.GetRegisterMaskOf(stack_map); in HandleOptimizingDeoptimization()
563 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(stack_map); in HandleOptimizingDeoptimization()
565 ? code_info.GetInlineDexRegisterMapOf(stack_map, GetCurrentInlinedFrame()) in HandleOptimizingDeoptimization()
566 : code_info.GetDexRegisterMapOf(stack_map); in HandleOptimizingDeoptimization()
/art/dex2oat/linker/
Dcode_info_table_deduper_test.cc62 StackMap stack_map = code_info.GetStackMapAt(0); in TEST() local
63 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0))); in TEST()
64 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64 * kPcAlign))); in TEST()
65 ASSERT_EQ(0u, stack_map.GetDexPc()); in TEST()
66 ASSERT_EQ(64u * kPcAlign, stack_map.GetNativePcOffset(kRuntimeISA)); in TEST()
68 ASSERT_TRUE(stack_map.HasDexRegisterMap()); in TEST()
69 DexRegisterMap dex_register_map = code_info.GetDexRegisterMapOf(stack_map); in TEST()
/art/compiler/debug/
Delf_debug_loc_writer.h100 StackMap stack_map = code_info.GetStackMapAt(s); in GetVariableLocations() local
101 DCHECK(stack_map.IsValid()); in GetVariableLocations()
102 if (!stack_map.HasDexRegisterMap()) { in GetVariableLocations()
110 const uint32_t pc_offset = stack_map.GetNativePcOffset(isa); in GetVariableLocations()
122 const StackMap stack_map = code_info.GetStackMapAt(stack_map_index); in GetVariableLocations() local
134 uint32_t dex_pc = stack_map.GetDexPc(); in GetVariableLocations()
Delf_debug_line_writer.h99 for (StackMap stack_map : code_info.GetStackMaps()) { in WriteCompilationUnit() local
100 const uint32_t pc = stack_map.GetNativePcOffset(isa); in WriteCompilationUnit()
101 const int32_t dex = stack_map.GetDexPc(); in WriteCompilationUnit()
103 if (stack_map.HasDexRegisterMap()) { in WriteCompilationUnit()
Delf_debug_info_writer.h196 for (StackMap stack_map : code_info->GetStackMaps()) { in Write() local
197 dex_reg_maps.push_back(code_info->GetDexRegisterMapOf(stack_map)); in Write()
/art/runtime/jit/
Djit_memory_region.cc358 const uint8_t* stack_map, in CommitCode() argument
384 new (method_header) OatQuickMethodHeader((stack_map != nullptr) ? result - stack_map : 0u); in CommitCode()
453 ArrayRef<const uint8_t> stack_map) { in CommitData() argument
458 DCHECK_LE(root_table_size + stack_map.size(), reserved_data.size()); in CommitData()
460 memcpy(stack_map_data, stack_map.data(), stack_map.size()); in CommitData()
463 if (UNLIKELY(!FlushCpuCaches(roots_data, roots_data + root_table_size + stack_map.size()))) { in CommitData()
Djit_memory_region.h93 const uint8_t* stack_map,
100 ArrayRef<const uint8_t> stack_map)
Djit.cc484 StackMap stack_map = code_info.GetOsrStackMapForDexPc(dex_pc); in PrepareForOsr() local
485 if (!stack_map.IsValid()) { in PrepareForOsr()
493 DexRegisterMap vreg_map = code_info.GetDexRegisterMapOf(stack_map); in PrepareForOsr()
538 osr_data->native_pc = stack_map.GetNativePcOffset(kRuntimeISA) + in PrepareForOsr()
Djit_code_cache.cc374 static uint32_t GetNumberOfRoots(const uint8_t* stack_map) { in GetNumberOfRoots() argument
377 return reinterpret_cast<const uint32_t*>(stack_map)[-1]; in GetNumberOfRoots()
662 ArrayRef<const uint8_t> stack_map, in Commit() argument
692 if (!region->CommitData(reserved_data, roots, stack_map)) { in Commit()
Djit_code_cache.h267 ArrayRef<const uint8_t> stack_map, // Compiler output (source).
/art/runtime/entrypoints/jni/
Djni_entrypoints.cc166 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in artCriticalNativeFrameSize() local
167 DCHECK(stack_map.IsValid()); in artCriticalNativeFrameSize()
168 BitTableRange<InlineInfo> inline_infos = code_info.GetInlineInfosOf(stack_map); in artCriticalNativeFrameSize()
171 uint32_t dex_pc = inline_infos.empty() ? stack_map.GetDexPc() : inline_infos.back().GetDexPc(); in artCriticalNativeFrameSize()
/art/compiler/driver/
Dcompiled_code_storage.h46 ArrayRef<const uint8_t> stack_map,
/art/compiler/
Dcommon_compiler_test.cc135 ArrayRef<const uint8_t> stack_map, in CreateCompiledMethod() argument
147 CHECK(!stack_map.empty()); in CreateCompiledMethod()
148 stack_map_.assign(stack_map.begin(), stack_map.end()); in CreateCompiledMethod()
Dexception_test.cc93 ScopedArenaVector<uint8_t> stack_map = stack_maps.Encode(); in SetUp() local
95 const size_t stack_maps_size = stack_map.size(); in SetUp()
104 memcpy(&fake_header_code_and_maps_[0], stack_map.data(), stack_maps_size); in SetUp()
/art/runtime/entrypoints/
Dentrypoint_utils.cc226 StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); in DoGetCalleeSaveMethodCallerAndDexPc() local
227 DCHECK(stack_map.IsValid()); in DoGetCalleeSaveMethodCallerAndDexPc()
228 BitTableRange<InlineInfo> inline_infos = code_info.GetInlineInfosOf(stack_map); in DoGetCalleeSaveMethodCallerAndDexPc()
233 *dex_pc = stack_map.GetDexPc(); in DoGetCalleeSaveMethodCallerAndDexPc()
/art/dex2oat/driver/
Dcompiled_method_storage.cc259 ArrayRef<const uint8_t> stack_map, in CreateCompiledMethod() argument
264 this, instruction_set, code, stack_map, cfi, patches); in CreateCompiledMethod()
Dcompiled_method_storage.h75 ArrayRef<const uint8_t> stack_map,

12