Lines Matching defs:cache
1378 * cache effects). The lower this is, the more memory we'll use. */
5421 upb_handlercache *cache;
5584 upb_handlercache *cache,
5594 h->cache = cache;
5698 return upb_handlercache_addcleanup(h->cache, p, func);
5829 upb_handlercache *cache = upb_gmalloc(sizeof(*cache));
5831 if (!cache) return NULL;
5833 cache->arena = upb_arena_new();
5835 cache->callback = callback;
5836 cache->closure = closure;
5838 if (!upb_inttable_init(&cache->tab, UPB_CTYPE_PTR)) goto oom;
5840 return cache;
5843 upb_gfree(cache);
5847 void upb_handlercache_free(upb_handlercache *cache) {
5848 upb_inttable_uninit(&cache->tab);
5849 upb_arena_free(cache->arena);
5850 upb_gfree(cache);
9253 const upb_json_codecache *cache;
9371 const upb_json_codecache *cache = p->method->cache;
9375 ok = upb_inttable_lookupptr(&cache->methods, frame->m, &v);
12256 m->cache = c;
12429 /* To print timestamp, printer needs to cache its seconds and nanos values
13619 const upb_json_printercache *cache = closure;
13620 const bool preserve_fieldnames = cache->preserve_fieldnames;
13787 upb_json_printercache *cache = upb_gmalloc(sizeof(*cache));
13788 upb_handlercache *ret = upb_handlercache_new(printer_sethandlers, cache);
13790 cache->preserve_fieldnames = preserve_proto_fieldnames;
13791 upb_handlercache_addcleanup(ret, cache, upb_gfree);