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/buildvm_fold.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/buildvm_fold.c')
-rw-r--r-- | src/buildvm_fold.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildvm_fold.c b/src/buildvm_fold.c index 271118e0..77af3dc5 100644 --- a/src/buildvm_fold.c +++ b/src/buildvm_fold.c | |||
@@ -107,6 +107,10 @@ static uint32_t nexttoken(char **pp, int allowlit, int allowany) | |||
107 | for (i = 0; irfield_names[i]; i++) | 107 | for (i = 0; irfield_names[i]; i++) |
108 | if (!strcmp(irfield_names[i], p+5)) | 108 | if (!strcmp(irfield_names[i], p+5)) |
109 | return i; | 109 | return i; |
110 | } else if (allowlit && !strncmp(p, "IRCALL_", 7)) { | ||
111 | for (i = 0; ircall_names[i]; i++) | ||
112 | if (!strcmp(ircall_names[i], p+7)) | ||
113 | return i; | ||
110 | } else if (allowany && !strcmp("any", p)) { | 114 | } else if (allowany && !strcmp("any", p)) { |
111 | return 0xff; | 115 | return 0xff; |
112 | } else { | 116 | } else { |