Lines Matching refs:stack_map

32     const StackMap& stack_map,  in CheckStackMask()  argument
34 BitMemoryRegion stack_mask = code_info.GetStackMaskOf(encoding, stack_map); in CheckStackMask()
79 StackMap stack_map = code_info.GetStackMapAt(0, encoding); in TEST() local
80 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0, encoding))); in TEST()
81 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64, encoding))); in TEST()
82 ASSERT_EQ(0u, stack_map.GetDexPc(encoding.stack_map.encoding)); in TEST()
83 ASSERT_EQ(64u, stack_map.GetNativePcOffset(encoding.stack_map.encoding, kRuntimeISA)); in TEST()
84 ASSERT_EQ(0x3u, code_info.GetRegisterMaskOf(encoding, stack_map)); in TEST()
86 ASSERT_TRUE(CheckStackMask(code_info, encoding, stack_map, sp_mask)); in TEST()
88 ASSERT_TRUE(stack_map.HasDexRegisterMap(encoding.stack_map.encoding)); in TEST()
90 code_info.GetDexRegisterMapOf(stack_map, encoding, number_of_dex_registers); in TEST()
127 ASSERT_FALSE(stack_map.HasInlineInfo(encoding.stack_map.encoding)); in TEST()
195 StackMap stack_map = code_info.GetStackMapAt(0, encoding); in TEST() local
196 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0, encoding))); in TEST()
197 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64, encoding))); in TEST()
198 ASSERT_EQ(0u, stack_map.GetDexPc(encoding.stack_map.encoding)); in TEST()
199 ASSERT_EQ(64u, stack_map.GetNativePcOffset(encoding.stack_map.encoding, kRuntimeISA)); in TEST()
200 ASSERT_EQ(0x3u, code_info.GetRegisterMaskOf(encoding, stack_map)); in TEST()
202 ASSERT_TRUE(CheckStackMask(code_info, encoding, stack_map, sp_mask1)); in TEST()
204 ASSERT_TRUE(stack_map.HasDexRegisterMap(encoding.stack_map.encoding)); in TEST()
206 code_info.GetDexRegisterMapOf(stack_map, encoding, number_of_dex_registers); in TEST()
243 ASSERT_TRUE(stack_map.HasInlineInfo(encoding.stack_map.encoding)); in TEST()
244 InlineInfo inline_info = code_info.GetInlineInfoOf(stack_map, encoding); in TEST()
254 StackMap stack_map = code_info.GetStackMapAt(1, encoding); in TEST() local
255 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(1u, encoding))); in TEST()
256 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(128u, encoding))); in TEST()
257 ASSERT_EQ(1u, stack_map.GetDexPc(encoding.stack_map.encoding)); in TEST()
258 ASSERT_EQ(128u, stack_map.GetNativePcOffset(encoding.stack_map.encoding, kRuntimeISA)); in TEST()
259 ASSERT_EQ(0xFFu, code_info.GetRegisterMaskOf(encoding, stack_map)); in TEST()
261 ASSERT_TRUE(CheckStackMask(code_info, encoding, stack_map, sp_mask2)); in TEST()
263 ASSERT_TRUE(stack_map.HasDexRegisterMap(encoding.stack_map.encoding)); in TEST()
265 code_info.GetDexRegisterMapOf(stack_map, encoding, number_of_dex_registers); in TEST()
303 ASSERT_FALSE(stack_map.HasInlineInfo(encoding.stack_map.encoding)); in TEST()
308 StackMap stack_map = code_info.GetStackMapAt(2, encoding); in TEST() local
309 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(2u, encoding))); in TEST()
310 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(192u, encoding))); in TEST()
311 ASSERT_EQ(2u, stack_map.GetDexPc(encoding.stack_map.encoding)); in TEST()
312 ASSERT_EQ(192u, stack_map.GetNativePcOffset(encoding.stack_map.encoding, kRuntimeISA)); in TEST()
313 ASSERT_EQ(0xABu, code_info.GetRegisterMaskOf(encoding, stack_map)); in TEST()
315 ASSERT_TRUE(CheckStackMask(code_info, encoding, stack_map, sp_mask3)); in TEST()
317 ASSERT_TRUE(stack_map.HasDexRegisterMap(encoding.stack_map.encoding)); in TEST()
319 code_info.GetDexRegisterMapOf(stack_map, encoding, number_of_dex_registers); in TEST()
357 ASSERT_FALSE(stack_map.HasInlineInfo(encoding.stack_map.encoding)); in TEST()
362 StackMap stack_map = code_info.GetStackMapAt(3, encoding); in TEST() local
363 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(3u, encoding))); in TEST()
364 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(256u, encoding))); in TEST()
365 ASSERT_EQ(3u, stack_map.GetDexPc(encoding.stack_map.encoding)); in TEST()
366 ASSERT_EQ(256u, stack_map.GetNativePcOffset(encoding.stack_map.encoding, kRuntimeISA)); in TEST()
367 ASSERT_EQ(0xCDu, code_info.GetRegisterMaskOf(encoding, stack_map)); in TEST()
369 ASSERT_TRUE(CheckStackMask(code_info, encoding, stack_map, sp_mask4)); in TEST()
371 ASSERT_TRUE(stack_map.HasDexRegisterMap(encoding.stack_map.encoding)); in TEST()
373 code_info.GetDexRegisterMapOf(stack_map, encoding, number_of_dex_registers); in TEST()
411 ASSERT_FALSE(stack_map.HasInlineInfo(encoding.stack_map.encoding)); in TEST()
456 StackMap stack_map = code_info.GetStackMapAt(0, encoding); in TEST() local
457 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0, encoding))); in TEST()
458 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64, encoding))); in TEST()
459 ASSERT_EQ(0u, stack_map.GetDexPc(encoding.stack_map.encoding)); in TEST()
460 ASSERT_EQ(64u, stack_map.GetNativePcOffset(encoding.stack_map.encoding, kRuntimeISA)); in TEST()
461 ASSERT_EQ(0x3u, code_info.GetRegisterMaskOf(encoding, stack_map)); in TEST()
463 ASSERT_TRUE(CheckStackMask(code_info, encoding, stack_map, sp_mask1)); in TEST()
465 ASSERT_TRUE(stack_map.HasDexRegisterMap(encoding.stack_map.encoding)); in TEST()
466 DexRegisterMap map(code_info.GetDexRegisterMapOf(stack_map, encoding, number_of_dex_registers)); in TEST()
503 ASSERT_TRUE(stack_map.HasInlineInfo(encoding.stack_map.encoding)); in TEST()
504 InlineInfo inline_info = code_info.GetInlineInfoOf(stack_map, encoding); in TEST()
506 stack_map.GetDexRegisterMapOffset(encoding.stack_map.encoding)); in TEST()
540 StackMap stack_map = code_info.GetStackMapAt(0, encoding); in TEST() local
541 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0, encoding))); in TEST()
542 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64, encoding))); in TEST()
543 ASSERT_EQ(0u, stack_map.GetDexPc(encoding.stack_map.encoding)); in TEST()
544 ASSERT_EQ(64u, stack_map.GetNativePcOffset(encoding.stack_map.encoding, kRuntimeISA)); in TEST()
545 ASSERT_EQ(0x3u, code_info.GetRegisterMaskOf(encoding, stack_map)); in TEST()
547 ASSERT_TRUE(stack_map.HasDexRegisterMap(encoding.stack_map.encoding)); in TEST()
549 code_info.GetDexRegisterMapOf(stack_map, encoding, number_of_dex_registers); in TEST()
584 ASSERT_FALSE(stack_map.HasInlineInfo(encoding.stack_map.encoding)); in TEST()
645 ASSERT_TRUE(stack_map1.HasDexRegisterMap(encoding.stack_map.encoding)); in TEST()
649 ASSERT_NE(stack_map1.GetDexRegisterMapOffset(encoding.stack_map.encoding), in TEST()
651 ASSERT_EQ(stack_map1.GetDexRegisterMapOffset(encoding.stack_map.encoding), 0xFFu); in TEST()
705 ASSERT_EQ(sm0.GetDexRegisterMapOffset(encoding.stack_map.encoding), in TEST()
706 sm1.GetDexRegisterMapOffset(encoding.stack_map.encoding)); in TEST()
707 ASSERT_NE(sm0.GetDexRegisterMapOffset(encoding.stack_map.encoding), in TEST()
708 sm2.GetDexRegisterMapOffset(encoding.stack_map.encoding)); in TEST()
709 ASSERT_NE(sm1.GetDexRegisterMapOffset(encoding.stack_map.encoding), in TEST()
710 sm2.GetDexRegisterMapOffset(encoding.stack_map.encoding)); in TEST()
742 StackMap stack_map = code_info.GetStackMapAt(0, encoding); in TEST() local
743 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(0, encoding))); in TEST()
744 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(64, encoding))); in TEST()
745 ASSERT_EQ(0u, stack_map.GetDexPc(encoding.stack_map.encoding)); in TEST()
746 ASSERT_EQ(64u, stack_map.GetNativePcOffset(encoding.stack_map.encoding, kRuntimeISA)); in TEST()
747 ASSERT_EQ(0x3u, code_info.GetRegisterMaskOf(encoding, stack_map)); in TEST()
749 ASSERT_FALSE(stack_map.HasDexRegisterMap(encoding.stack_map.encoding)); in TEST()
750 ASSERT_FALSE(stack_map.HasInlineInfo(encoding.stack_map.encoding)); in TEST()
752 stack_map = code_info.GetStackMapAt(1, encoding); in TEST()
753 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForDexPc(1, encoding))); in TEST()
754 ASSERT_TRUE(stack_map.Equals(code_info.GetStackMapForNativePcOffset(68, encoding))); in TEST()
755 ASSERT_EQ(1u, stack_map.GetDexPc(encoding.stack_map.encoding)); in TEST()
756 ASSERT_EQ(68u, stack_map.GetNativePcOffset(encoding.stack_map.encoding, kRuntimeISA)); in TEST()
757 ASSERT_EQ(0x4u, code_info.GetRegisterMaskOf(encoding, stack_map)); in TEST()
759 ASSERT_FALSE(stack_map.HasDexRegisterMap(encoding.stack_map.encoding)); in TEST()
760 ASSERT_FALSE(stack_map.HasInlineInfo(encoding.stack_map.encoding)); in TEST()
898 ASSERT_FALSE(sm2.HasInlineInfo(encoding.stack_map.encoding)); in TEST()
976 EXPECT_EQ(stack_map1.GetStackMaskIndex(encoding.stack_map.encoding), in TEST()
977 stack_map2.GetStackMaskIndex(encoding.stack_map.encoding)); in TEST()