Lines Matching defs:Cache
37 typedef DenseSlabAllocCache Cache;
38 typedef typename Cache::IndexT IndexT;
60 IndexT Alloc(Cache *c) {
66 void Free(Cache *c, IndexT idx) {
68 if (c->pos == Cache::kSize)
79 void FlushCache(Cache *c) {
88 void InitCache(Cache *c) {
100 void Refill(Cache *c) {
121 for (uptr i = 0; i < Cache::kSize / 2 && freelist_ != 0; i++) {
128 void Drain(Cache *c) {
130 for (uptr i = 0; i < Cache::kSize / 2; i++) {