Lines Matching refs:interval
31 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
32 ASSERT_EQ(0u, interval->GetStart()); in TEST()
37 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
38 ASSERT_EQ(4u, interval->GetStart()); in TEST()
48 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
49 ASSERT_TRUE(interval->IsDeadAt(42)); in TEST()
50 ASSERT_TRUE(interval->IsDeadAt(43)); in TEST()
51 ASSERT_FALSE(interval->IsDeadAt(41)); in TEST()
52 ASSERT_FALSE(interval->IsDeadAt(0)); in TEST()
53 ASSERT_FALSE(interval->IsDeadAt(22)); in TEST()
58 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
59 ASSERT_TRUE(interval->IsDeadAt(16)); in TEST()
60 ASSERT_TRUE(interval->IsDeadAt(32)); in TEST()
61 ASSERT_FALSE(interval->IsDeadAt(0)); in TEST()
62 ASSERT_FALSE(interval->IsDeadAt(4)); in TEST()
63 ASSERT_FALSE(interval->IsDeadAt(12)); in TEST()
64 ASSERT_FALSE(interval->IsDeadAt(13)); in TEST()
65 ASSERT_FALSE(interval->IsDeadAt(14)); in TEST()
66 ASSERT_FALSE(interval->IsDeadAt(15)); in TEST()
76 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
77 ASSERT_TRUE(interval->Covers(0)); in TEST()
78 ASSERT_TRUE(interval->Covers(4)); in TEST()
79 ASSERT_TRUE(interval->Covers(41)); in TEST()
80 ASSERT_FALSE(interval->Covers(42)); in TEST()
81 ASSERT_FALSE(interval->Covers(54)); in TEST()
86 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
87 ASSERT_FALSE(interval->Covers(0)); in TEST()
88 ASSERT_TRUE(interval->Covers(4)); in TEST()
89 ASSERT_TRUE(interval->Covers(11)); in TEST()
90 ASSERT_FALSE(interval->Covers(12)); in TEST()
91 ASSERT_FALSE(interval->Covers(13)); in TEST()
92 ASSERT_TRUE(interval->Covers(14)); in TEST()
93 ASSERT_TRUE(interval->Covers(15)); in TEST()
94 ASSERT_FALSE(interval->Covers(16)); in TEST()
166 static bool RangesEquals(LiveInterval* interval, in RangesEquals() argument
169 LiveRange* current = interval->GetFirstRange(); in RangesEquals()
197 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
198 LiveInterval* split = interval->SplitAt(1); in TEST()
200 ASSERT_TRUE(RangesEquals(interval, expected, arraysize(expected))); in TEST()
208 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
209 LiveInterval* split = interval->SplitAt(3); in TEST()
211 ASSERT_TRUE(RangesEquals(interval, expected, arraysize(expected))); in TEST()
219 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
220 LiveInterval* split = interval->SplitAt(1); in TEST()
222 ASSERT_TRUE(RangesEquals(interval, expected, arraysize(expected))); in TEST()
230 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
231 LiveInterval* split = interval->SplitAt(5); in TEST()
233 ASSERT_TRUE(RangesEquals(interval, expected, arraysize(expected))); in TEST()
241 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
242 LiveInterval* split = interval->SplitAt(9); in TEST()
244 ASSERT_TRUE(RangesEquals(interval, expected, arraysize(expected))); in TEST()
252 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
253 LiveInterval* split = interval->SplitAt(6); in TEST()
255 ASSERT_TRUE(RangesEquals(interval, expected, arraysize(expected))); in TEST()
263 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
264 LiveInterval* split = interval->SplitAt(4); in TEST()
266 ASSERT_TRUE(RangesEquals(interval, expected, arraysize(expected))); in TEST()
274 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
275 LiveInterval* split = interval->SplitAt(5); in TEST()
277 ASSERT_TRUE(RangesEquals(interval, ranges, arraysize(ranges))); in TEST()
288 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
289 interval->AddLoopRange(0, 8); in TEST()
290 LiveRange* range = interval->GetFirstRange(); in TEST()
299 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
300 interval->AddLoopRange(0, 8); in TEST()
301 LiveRange* range = interval->GetFirstRange(); in TEST()
310 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
311 interval->AddLoopRange(0, 8); in TEST()
312 LiveRange* range = interval->GetFirstRange(); in TEST()
321 LiveInterval* interval = BuildInterval(ranges, arraysize(ranges), allocator); in TEST() local
322 interval->AddLoopRange(0, 8); in TEST()
323 LiveRange* range = interval->GetFirstRange(); in TEST()