enum value filtering / lookup cache

This commit is contained in:
Ryan Fleury
2025-05-07 15:46:59 -07:00
parent e7a4f407bb
commit 80f1a8b7ba
4 changed files with 256 additions and 5 deletions
+2
View File
@@ -650,6 +650,8 @@ e_select_base_ctx(E_BaseCtx *ctx)
e_cache->cons_key_slots = push_array(e_cache->arena, E_ConsTypeSlot, e_cache->cons_key_slots_count);
e_cache->member_cache_slots_count = 256;
e_cache->member_cache_slots = push_array(e_cache->arena, E_MemberCacheSlot, e_cache->member_cache_slots_count);
e_cache->enum_val_cache_slots_count = 256;
e_cache->enum_val_cache_slots = push_array(e_cache->arena, E_EnumValCacheSlot, e_cache->enum_val_cache_slots_count);
e_cache->type_cache_slots_count = 1024;
e_cache->type_cache_slots = push_array(e_cache->arena, E_TypeCacheSlot, e_cache->type_cache_slots_count);
e_cache->file_type_key = e_type_key_cons(.kind = E_TypeKind_Set,