Lines Matching defs:Cache
39 typedef DenseSlabAllocCache Cache;
40 typedef typename Cache::IndexT IndexT;
62 IndexT Alloc(Cache *c) {
68 void Free(Cache *c, IndexT idx) {
70 if (c->pos == Cache::kSize)
81 void FlushCache(Cache *c) {
90 void InitCache(Cache *c) {
102 void Refill(Cache *c) {
123 for (uptr i = 0; i < Cache::kSize / 2 && freelist_ != 0; i++) {
130 void Drain(Cache *c) {
132 for (uptr i = 0; i < Cache::kSize / 2; i++) {