commit 58bf463
Devine Lu Linvega
·
2022-08-06 17:25:34 +0000 UTC
parent 57dfcdf
Removed tail-call optimizations with JSR JMP2r
1 files changed,
+1,
-3
+1,
-3
1@@ -217,14 +217,12 @@ writeopcode(char *w)
2 {
3 Uint8 res;
4 if(jsrlast && scmp(w, "JMP2r", 5)) { /* tail-call optimization */
5- p.data[p.ptr - 1] = jsrlast == 2 ? findopcode("JMP2") : findopcode("JMP");
6+ p.data[p.ptr - 1] = findopcode("JMP2");
7 jsrlast = 0;
8 return 1;
9 }
10 res = writebyte(findopcode(w));
11 if(scmp(w, "JSR2", 4))
12- jsrlast = 2;
13- else if(scmp(w, "JSR", 3))
14 jsrlast = 1;
15 return res;
16 }