diff options
author | Mike Pall <mike> | 2009-12-08 20:35:29 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2009-12-08 20:35:29 +0100 |
commit | 3f1f9e11f4f699ae94182d4cba158092f434a7f6 (patch) | |
tree | 88fbb674a21a1d554d4b1ee9d4ef2c5fed6a1d88 /src/lj_parse.c | |
parent | 5287b9326479ea2b7dddd6f642673e58e5a7f354 (diff) | |
download | luajit-3f1f9e11f4f699ae94182d4cba158092f434a7f6.tar.gz luajit-3f1f9e11f4f699ae94182d4cba158092f434a7f6.tar.bz2 luajit-3f1f9e11f4f699ae94182d4cba158092f434a7f6.zip |
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.
Diffstat (limited to 'src/lj_parse.c')
-rw-r--r-- | src/lj_parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_parse.c b/src/lj_parse.c index 000772fe..1de07e92 100644 --- a/src/lj_parse.c +++ b/src/lj_parse.c | |||
@@ -317,6 +317,7 @@ GCstr *lj_parse_keepstr(LexState *ls, const char *str, size_t len) | |||
317 | GCstr *s = lj_str_new(L, str, len); | 317 | GCstr *s = lj_str_new(L, str, len); |
318 | TValue *tv = lj_tab_setstr(L, ls->fs->kt, s); | 318 | TValue *tv = lj_tab_setstr(L, ls->fs->kt, s); |
319 | if (tvisnil(tv)) setboolV(tv, 1); /* Anchor string to avoid GC. */ | 319 | if (tvisnil(tv)) setboolV(tv, 1); /* Anchor string to avoid GC. */ |
320 | lj_gc_check(L); | ||
320 | return s; | 321 | return s; |
321 | } | 322 | } |
322 | 323 | ||