Lines Matching defs:spaces

66     // Create a bunch of dummy bitmaps since these are required to create image spaces. The bitmaps
67 // do not need to cover the image spaces though.
189 ImmuneSpaces spaces;
195 spaces.AddSpace(&a);
196 spaces.AddSpace(&b);
198 EXPECT_TRUE(spaces.ContainsSpace(&a));
199 EXPECT_TRUE(spaces.ContainsSpace(&b));
200 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()), a.Begin());
201 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().End()), b.Limit());
207 ImmuneSpaces spaces;
229 spaces.AddSpace(image_space.get());
231 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()),
233 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().End()),
239 spaces.AddSpace(&space);
241 EXPECT_TRUE(spaces.ContainsSpace(image_space.get()));
242 EXPECT_TRUE(spaces.ContainsSpace(&space));
243 // CreateLargestImmuneRegion should have coalesced the two spaces since the oat code after the
246 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()),
248 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().End()), space.Limit());
295 ImmuneSpaces spaces;
299 spaces.AddSpace(space1.get());
301 spaces.AddSpace(space2.get());
303 // There are no more heap bytes, the immune region should only be the first 2 image spaces and
305 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()),
307 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().End()),
314 spaces.AddSpace(space3.get());
316 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()),
318 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().End()),
338 spaces.AddSpace(space4.get());
340 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()),
342 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().End()),
361 spaces.AddSpace(space5.get());
363 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()), space5->Begin());
364 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().End()), space5->Limit());