Lines Matching refs:tb
66 stringtable *tb = &G(L)->strt; in luaS_resize() local
69 if (newsize > tb->size) { in luaS_resize()
70 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize()
71 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; in luaS_resize()
74 for (i=0; i<tb->size; i++) { in luaS_resize()
75 GCObject *p = tb->hash[i]; in luaS_resize()
76 tb->hash[i] = NULL; in luaS_resize()
80 gch(p)->next = tb->hash[h]; /* chain it */ in luaS_resize()
81 tb->hash[h] = p; in luaS_resize()
86 if (newsize < tb->size) { in luaS_resize()
88 lua_assert(tb->hash[newsize] == NULL && tb->hash[tb->size - 1] == NULL); in luaS_resize()
89 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize()
91 tb->size = newsize; in luaS_resize()
119 stringtable *tb = &G(L)->strt; in newshrstr() local
121 if (tb->nuse >= cast(lu_int32, tb->size) && tb->size <= MAX_INT/2) in newshrstr()
122 luaS_resize(L, tb->size*2); /* too crowded */ in newshrstr()
123 list = &tb->hash[lmod(h, tb->size)]; in newshrstr()
125 tb->nuse++; in newshrstr()