Fast forward to sync public repo.
Compile math.sinh(), math.cosh(), math.tanh() and math.random(). Compile various io.*() functions. Drive the GC forward on string allocations in the parser. Improve KNUM fuse vs. load heuristics. Add abstract C call handling to IR.
This commit is contained in:
@@ -317,6 +317,7 @@ GCstr *lj_parse_keepstr(LexState *ls, const char *str, size_t len)
|
||||
GCstr *s = lj_str_new(L, str, len);
|
||||
TValue *tv = lj_tab_setstr(L, ls->fs->kt, s);
|
||||
if (tvisnil(tv)) setboolV(tv, 1); /* Anchor string to avoid GC. */
|
||||
lj_gc_check(L);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user