Lines Matching refs:code_info
31 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()
83 DexRegisterMap dex_register_map = code_info.GetDexRegisterMapOf(stack_map); in TEST()
94 DexRegisterLocation location0 = code_info.GetDexRegisterCatalogEntry(0); in TEST()
95 DexRegisterLocation location1 = code_info.GetDexRegisterCatalogEntry(1); in TEST()
153 CodeInfo code_info(memory.data()); in TEST() local
154 ASSERT_EQ(4u, code_info.GetNumberOfStackMaps()); in TEST()
156 uint32_t number_of_catalog_entries = code_info.GetNumberOfLocationCatalogEntries(); in TEST()
161 StackMap stack_map = code_info.GetStackMapAt(0); in TEST()
162 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0))); in TEST()
163 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64 * kPcAlign))); in TEST()
166 ASSERT_EQ(0x3u, code_info.GetRegisterMaskOf(stack_map)); in TEST()
168 ASSERT_TRUE(CheckStackMask(code_info, stack_map, sp_mask1)); in TEST()
171 DexRegisterMap dex_register_map = code_info.GetDexRegisterMapOf(stack_map); in TEST()
182 DexRegisterLocation location0 = code_info.GetDexRegisterCatalogEntry(0); in TEST()
183 DexRegisterLocation location1 = code_info.GetDexRegisterCatalogEntry(1); in TEST()
190 auto inline_infos = code_info.GetInlineInfosOf(stack_map); in TEST()
200 StackMap stack_map = code_info.GetStackMapAt(1); in TEST()
201 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(1u))); in TEST()
202 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(128u * kPcAlign))); in TEST()
205 ASSERT_EQ(0xFFu, code_info.GetRegisterMaskOf(stack_map)); in TEST()
207 ASSERT_TRUE(CheckStackMask(code_info, stack_map, sp_mask2)); in TEST()
210 DexRegisterMap dex_register_map = code_info.GetDexRegisterMapOf(stack_map); in TEST()
221 DexRegisterLocation location0 = code_info.GetDexRegisterCatalogEntry(2); in TEST()
222 DexRegisterLocation location1 = code_info.GetDexRegisterCatalogEntry(3); in TEST()
233 StackMap stack_map = code_info.GetStackMapAt(2); in TEST()
234 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(2u))); in TEST()
235 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(192u * kPcAlign))); in TEST()
238 ASSERT_EQ(0xABu, code_info.GetRegisterMaskOf(stack_map)); in TEST()
240 ASSERT_TRUE(CheckStackMask(code_info, stack_map, sp_mask3)); in TEST()
243 DexRegisterMap dex_register_map = code_info.GetDexRegisterMapOf(stack_map); in TEST()
254 DexRegisterLocation location0 = code_info.GetDexRegisterCatalogEntry(4); in TEST()
255 DexRegisterLocation location1 = code_info.GetDexRegisterCatalogEntry(5); in TEST()
266 StackMap stack_map = code_info.GetStackMapAt(3); in TEST()
267 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(3u))); in TEST()
268 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(256u * kPcAlign))); in TEST()
271 ASSERT_EQ(0xCDu, code_info.GetRegisterMaskOf(stack_map)); in TEST()
273 ASSERT_TRUE(CheckStackMask(code_info, stack_map, sp_mask4)); in TEST()
276 DexRegisterMap dex_register_map = code_info.GetDexRegisterMapOf(stack_map); in TEST()
287 DexRegisterLocation location0 = code_info.GetDexRegisterCatalogEntry(3); in TEST()
288 DexRegisterLocation location1 = code_info.GetDexRegisterCatalogEntry(6); in TEST()
323 CodeInfo code_info(memory.data()); in TEST() local
324 ASSERT_EQ(1u, code_info.GetNumberOfStackMaps()); in TEST()
326 uint32_t number_of_catalog_entries = code_info.GetNumberOfLocationCatalogEntries(); in TEST()
331 StackMap stack_map = code_info.GetStackMapAt(0); in TEST()
332 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0))); in TEST()
333 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64 * kPcAlign))); in TEST()
336 ASSERT_EQ(0x3u, code_info.GetRegisterMaskOf(stack_map)); in TEST()
338 ASSERT_TRUE(CheckStackMask(code_info, stack_map, sp_mask1)); in TEST()
341 DexRegisterMap map(code_info.GetDexRegisterMapOf(stack_map)); in TEST()
352 DexRegisterLocation location0 = code_info.GetDexRegisterCatalogEntry(0); in TEST()
353 DexRegisterLocation location1 = code_info.GetDexRegisterCatalogEntry(1); in TEST()
378 CodeInfo code_info(memory.data()); in TEST() local
379 ASSERT_EQ(1u, code_info.GetNumberOfStackMaps()); in TEST()
381 uint32_t number_of_catalog_entries = code_info.GetNumberOfLocationCatalogEntries(); in TEST()
384 StackMap stack_map = code_info.GetStackMapAt(0); in TEST()
385 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0))); in TEST()
386 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64 * kPcAlign))); in TEST()
389 ASSERT_EQ(0x3u, code_info.GetRegisterMaskOf(stack_map)); in TEST()
392 DexRegisterMap dex_register_map = code_info.GetDexRegisterMapOf(stack_map); in TEST()
402 DexRegisterLocation location1 = code_info.GetDexRegisterCatalogEntry(0); in TEST()
485 CodeInfo code_info(memory.data()); in TEST() local
486 ASSERT_EQ(2u, code_info.GetNumberOfStackMaps()); in TEST()
488 uint32_t number_of_catalog_entries = code_info.GetNumberOfLocationCatalogEntries(); in TEST()
491 StackMap stack_map = code_info.GetStackMapAt(0); in TEST()
492 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0))); in TEST()
493 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64 * kPcAlign))); in TEST()
496 ASSERT_EQ(0x3u, code_info.GetRegisterMaskOf(stack_map)); in TEST()
501 stack_map = code_info.GetStackMapAt(1); in TEST()
502 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(1))); in TEST()
503 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(68 * kPcAlign))); in TEST()
506 ASSERT_EQ(0x4u, code_info.GetRegisterMaskOf(stack_map)); in TEST()
720 CodeInfo code_info(memory.data()); in TEST() local
721 ASSERT_EQ(2u, code_info.GetNumberOfStackMaps()); in TEST()
723 StackMap stack_map1 = code_info.GetStackMapForNativePcOffset(4 * kPcAlign); in TEST()
724 StackMap stack_map2 = code_info.GetStackMapForNativePcOffset(8 * kPcAlign); in TEST()
750 CodeInfo code_info(out.data() + deduped); in TEST() local
751 ASSERT_EQ(1u, code_info.GetNumberOfStackMaps()); in TEST()
753 StackMap stack_map = code_info.GetStackMapAt(0); in TEST()
754 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0))); in TEST()
755 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64 * kPcAlign))); in TEST()
760 DexRegisterMap dex_register_map = code_info.GetDexRegisterMapOf(stack_map); in TEST()