Lines Matching refs:ToAddress

2749 static inline i::Address ToAddress(int n) {  in ToAddress()  function
2757 CHECK_EQ(0, map.GetTraceNodeId(ToAddress(150))); in TEST()
2760 map.AddRange(ToAddress(0x100), 0x100, 1U); in TEST()
2761 CHECK_EQ(0, map.GetTraceNodeId(ToAddress(0x50))); in TEST()
2762 CHECK_EQ(1, map.GetTraceNodeId(ToAddress(0x100))); in TEST()
2763 CHECK_EQ(1, map.GetTraceNodeId(ToAddress(0x150))); in TEST()
2764 CHECK_EQ(0, map.GetTraceNodeId(ToAddress(0x100 + 0x100))); in TEST()
2768 map.AddRange(ToAddress(0x200), 0x100, 2U); in TEST()
2769 CHECK_EQ(2, map.GetTraceNodeId(ToAddress(0x2a0))); in TEST()
2773 map.AddRange(ToAddress(0x180), 0x100, 3U); in TEST()
2774 CHECK_EQ(1, map.GetTraceNodeId(ToAddress(0x17F))); in TEST()
2775 CHECK_EQ(2, map.GetTraceNodeId(ToAddress(0x280))); in TEST()
2776 CHECK_EQ(3, map.GetTraceNodeId(ToAddress(0x180))); in TEST()
2781 map.AddRange(ToAddress(0x400), 0x100, 4U); in TEST()
2782 CHECK_EQ(1, map.GetTraceNodeId(ToAddress(0x17F))); in TEST()
2783 CHECK_EQ(2, map.GetTraceNodeId(ToAddress(0x280))); in TEST()
2784 CHECK_EQ(3, map.GetTraceNodeId(ToAddress(0x180))); in TEST()
2785 CHECK_EQ(4, map.GetTraceNodeId(ToAddress(0x450))); in TEST()
2786 CHECK_EQ(0, map.GetTraceNodeId(ToAddress(0x500))); in TEST()
2787 CHECK_EQ(0, map.GetTraceNodeId(ToAddress(0x350))); in TEST()
2791 map.AddRange(ToAddress(0x200), 0x400, 5U); in TEST()
2792 CHECK_EQ(5, map.GetTraceNodeId(ToAddress(0x200))); in TEST()
2793 CHECK_EQ(5, map.GetTraceNodeId(ToAddress(0x400))); in TEST()
2797 map.AddRange(ToAddress(0x180), 0x80, 6U); in TEST()
2798 map.AddRange(ToAddress(0x180), 0x80, 7U); in TEST()
2799 CHECK_EQ(7, map.GetTraceNodeId(ToAddress(0x180))); in TEST()
2800 CHECK_EQ(5, map.GetTraceNodeId(ToAddress(0x200))); in TEST()
2805 CHECK_EQ(0, map.GetTraceNodeId(ToAddress(0x400))); in TEST()