aboutsummaryrefslogtreecommitdiff
path: root/src/buildvm_fold.c
diff options
context:
space:
mode:
authorMike Pall <mike>2009-12-08 20:35:29 +0100
committerMike Pall <mike>2009-12-08 20:35:29 +0100
commit3f1f9e11f4f699ae94182d4cba158092f434a7f6 (patch)
tree88fbb674a21a1d554d4b1ee9d4ef2c5fed6a1d88 /src/buildvm_fold.c
parent5287b9326479ea2b7dddd6f642673e58e5a7f354 (diff)
downloadluajit-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.c4
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 {