Lines Matching defs:Magic
70 intptr_t magic; // kMagicAllocated or kMagicUnallocated xor this
210 // magic numbers to identify allocated and unallocated blocks
256 // create an appropriate magic number for an object at "ptr"
257 // "magic" should be kMagicAllocated or kMagicUnallocated
258 inline static intptr_t Magic(intptr_t magic, AllocList::Header *ptr) {
259 return magic ^ reinterpret_cast<intptr_t>(ptr);
275 arena->freelist.header.magic =
276 Magic(kMagicUnallocated, &arena->freelist.header);
325 RAW_CHECK(region->header.magic ==
326 Magic(kMagicUnallocated, ®ion->header),
327 "bad magic number in DeleteArena()");
365 RAW_CHECK(next->header.magic == Magic(kMagicUnallocated, &next->header),
366 "bad magic number in Next()");
385 n->header.magic = 0;
400 magic == Magic(kMagicAllocated, &f->header),
401 "bad magic number in AddToFreelist()");
407 f->header.magic = Magic(kMagicUnallocated, &f->header);
418 RAW_CHECK(f->header.magic == Magic(kMagicAllocated, &f->header),
419 "bad magic number in Free()");
473 s->header.magic = Magic(kMagicAllocated, &s->header);
484 n->header.magic = Magic(kMagicAllocated, &n->header);
489 s->header.magic = Magic(kMagicAllocated, &s->header);