summaryrefslogtreecommitdiff
path: root/src/buildvm_x86.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildvm_x86.h')
-rw-r--r--src/buildvm_x86.h211
1 files changed, 105 insertions, 106 deletions
diff --git a/src/buildvm_x86.h b/src/buildvm_x86.h
index 10392991..7624330c 100644
--- a/src/buildvm_x86.h
+++ b/src/buildvm_x86.h
@@ -12,7 +12,7 @@
12#define DASM_SECTION_CODE_OP 0 12#define DASM_SECTION_CODE_OP 0
13#define DASM_SECTION_CODE_SUB 1 13#define DASM_SECTION_CODE_SUB 1
14#define DASM_MAXSECTION 2 14#define DASM_MAXSECTION 2
15static const unsigned char build_actionlist[15235] = { 15static const unsigned char build_actionlist[15227] = {
16 254,1,248,10,252,247,198,237,15,132,244,11,131,230,252,248,41,252,242,141, 16 254,1,248,10,252,247,198,237,15,132,244,11,131,230,252,248,41,252,242,141,
17 76,49,252,248,139,114,252,252,199,68,10,4,237,248,12,131,192,1,137,68,36, 17 76,49,252,248,139,114,252,252,199,68,10,4,237,248,12,131,192,1,137,68,36,
18 20,252,247,198,237,15,132,244,13,248,14,129,252,246,239,252,247,198,237,15, 18 20,252,247,198,237,15,132,244,13,248,14,129,252,246,239,252,247,198,237,15,
@@ -698,57 +698,56 @@ static const unsigned char build_actionlist[15235] = {
698 139,105,252,240,139,65,252,244,137,105,8,137,65,12,139,105,224,139,65,228, 698 139,105,252,240,139,65,252,244,137,105,8,137,65,12,139,105,224,139,65,228,
699 137,105,252,248,137,65,252,252,129,252,248,239,184,237,15,133,244,28,137, 699 137,105,252,248,137,65,252,252,129,252,248,239,184,237,15,133,244,28,137,
700 202,137,114,252,252,139,181,233,139,14,15,182,252,233,15,182,205,131,198, 700 202,137,114,252,252,139,181,233,139,14,15,182,252,233,15,182,205,131,198,
701 4,252,255,36,171,255,15,182,252,236,139,66,252,248,141,12,202,139,128,233, 701 4,252,255,36,171,255,15,182,252,236,15,182,192,137,124,36,16,141,188,253,
702 15,182,128,233,137,124,36,16,141,188,253,194,233,43,122,252,252,133,252,237, 702 194,233,141,12,202,43,122,252,252,133,252,237,15,132,244,251,141,108,252,
703 15,132,244,251,141,108,252,233,252,248,57,215,15,131,244,248,248,1,139,71, 703 233,252,248,57,215,15,131,244,248,248,1,139,71,252,248,137,1,139,71,252,252,
704 252,248,137,1,139,71,252,252,131,199,8,137,65,4,131,193,8,57,252,233,15,131, 704 131,199,8,137,65,4,131,193,8,57,252,233,15,131,244,249,57,215,15,130,244,
705 244,249,57,215,15,130,244,1,248,2,199,65,4,237,131,193,8,57,252,233,15,130, 705 1,248,2,199,65,4,237,131,193,8,57,252,233,15,130,244,2,248,3,139,124,36,16,
706 244,2,248,3,139,124,36,16,139,6,15,182,204,15,182,232,131,198,4,193,232,16, 706 139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,5,199,
707 252,255,36,171,248,5,199,68,36,20,1,0,0,0,137,208,41,252,248,15,134,244,3, 707 68,36,20,1,0,0,0,137,208,41,252,248,15,134,244,3,137,197,193,252,237,3,131,
708 255,137,197,193,252,237,3,131,197,1,137,108,36,20,139,108,36,48,1,200,59, 708 197,1,137,108,36,20,139,108,36,48,1,200,59,133,233,15,135,244,253,248,6,255,
709 133,233,15,135,244,253,248,6,139,71,252,248,137,1,139,71,252,252,131,199, 709 139,71,252,248,137,1,139,71,252,252,131,199,8,137,65,4,131,193,8,57,215,15,
710 8,137,65,4,131,193,8,57,215,15,130,244,6,252,233,244,3,248,7,137,149,233, 710 130,244,6,252,233,244,3,248,7,137,149,233,137,141,233,137,116,36,24,41,215,
711 137,141,233,137,116,36,24,41,215,139,84,36,20,131,252,234,1,137,252,233,232, 711 139,84,36,20,131,252,234,1,137,252,233,232,251,1,0,139,149,233,139,141,233,
712 251,1,0,139,149,233,139,141,233,1,215,252,233,244,6,255,193,225,3,255,248, 712 1,215,252,233,244,6,255,193,225,3,255,248,1,139,114,252,252,137,68,36,20,
713 1,139,114,252,252,137,68,36,20,252,247,198,237,15,133,244,253,255,248,13, 713 252,247,198,237,15,133,244,253,255,248,13,137,215,131,232,1,15,132,244,249,
714 137,215,131,232,1,15,132,244,249,248,2,139,44,15,137,111,252,248,139,108, 714 248,2,139,44,15,137,111,252,248,139,108,15,4,137,111,252,252,131,199,8,131,
715 15,4,137,111,252,252,131,199,8,131,232,1,15,133,244,2,248,3,139,68,36,20, 715 232,1,15,133,244,2,248,3,139,68,36,20,15,182,110,252,255,248,5,57,197,15,
716 15,182,110,252,255,248,5,57,197,15,135,244,252,255,139,108,10,4,137,106,252, 716 135,244,252,255,139,108,10,4,137,106,252,252,139,44,10,137,106,252,248,255,
717 252,139,44,10,137,106,252,248,255,248,5,56,70,252,255,15,135,244,252,255, 717 248,5,56,70,252,255,15,135,244,252,255,15,182,78,252,253,252,247,209,141,
718 15,182,78,252,253,252,247,209,141,20,202,139,122,252,248,139,191,233,139, 718 20,202,139,122,252,248,139,191,233,139,191,233,139,6,15,182,204,15,182,232,
719 191,233,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248, 719 131,198,4,193,232,16,252,255,36,171,248,6,255,199,71,252,252,237,131,199,
720 6,255,199,71,252,252,237,131,199,8,255,199,68,194,252,244,237,255,131,192, 720 8,255,199,68,194,252,244,237,255,131,192,1,252,233,244,5,248,7,141,174,233,
721 1,252,233,244,5,248,7,141,174,233,252,247,197,237,15,133,244,14,41,252,234, 721 252,247,197,237,15,133,244,14,41,252,234,255,1,252,233,255,137,252,245,209,
722 255,1,252,233,255,137,252,245,209,252,237,129,229,239,102,131,172,253,43, 722 252,237,129,229,239,102,131,172,253,43,233,1,15,132,244,140,255,141,12,202,
723 233,1,15,132,244,140,255,141,12,202,255,129,121,253,4,239,15,135,244,53,129, 723 255,129,121,253,4,239,15,135,244,53,129,121,253,12,239,15,135,244,53,255,
724 121,253,12,239,15,135,244,53,255,139,105,20,255,129,252,253,239,15,135,244, 724 139,105,20,255,129,252,253,239,15,135,244,53,255,252,242,15,16,1,252,242,
725 53,255,252,242,15,16,1,252,242,15,16,73,8,255,252,242,15,88,65,16,252,242, 725 15,16,73,8,255,252,242,15,88,65,16,252,242,15,17,1,133,252,237,15,136,244,
726 15,17,1,133,252,237,15,136,244,249,255,15,140,244,249,255,102,15,46,200,248, 726 249,255,15,140,244,249,255,102,15,46,200,248,1,252,242,15,17,65,24,255,221,
727 1,252,242,15,17,65,24,255,221,65,8,221,1,255,220,65,16,221,17,221,81,24,133, 727 65,8,221,1,255,220,65,16,221,17,221,81,24,133,252,237,15,136,244,247,255,
728 252,237,15,136,244,247,255,221,81,24,15,140,244,247,255,217,201,248,1,255, 728 221,81,24,15,140,244,247,255,217,201,248,1,255,15,183,70,252,254,255,15,131,
729 15,183,70,252,254,255,15,131,244,248,141,180,253,134,233,255,141,180,253, 729 244,248,141,180,253,134,233,255,141,180,253,134,233,15,183,70,252,254,15,
730 134,233,15,183,70,252,254,15,131,245,255,15,130,244,248,141,180,253,134,233, 730 131,245,255,15,130,244,248,141,180,253,134,233,255,248,3,102,15,46,193,252,
731 255,248,3,102,15,46,193,252,233,244,1,255,141,12,202,139,105,4,129,252,253, 731 233,244,1,255,141,12,202,139,105,4,129,252,253,239,15,132,244,247,255,137,
732 239,15,132,244,247,255,137,105,252,252,139,41,137,105,252,248,252,233,245, 732 105,252,252,139,41,137,105,252,248,252,233,245,255,141,180,253,134,233,139,
733 255,141,180,253,134,233,139,1,137,105,252,252,137,65,252,248,255,139,139, 733 1,137,105,252,252,137,65,252,248,255,139,139,233,139,4,129,139,128,233,139,
734 233,139,4,129,139,128,233,139,108,36,48,137,147,233,137,171,233,252,255,224, 734 108,36,48,137,147,233,137,171,233,252,255,224,255,141,180,253,134,233,139,
735 255,141,180,253,134,233,139,6,15,182,204,15,182,232,131,198,4,193,232,16, 735 6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,137,252,245,
736 252,255,36,171,255,137,252,245,209,252,237,129,229,239,102,131,172,253,43, 736 209,252,237,129,229,239,102,131,172,253,43,233,1,15,132,244,142,255,139,190,
737 233,1,15,132,244,142,255,139,190,233,139,108,36,48,141,12,202,59,141,233, 737 233,139,108,36,48,141,12,202,59,141,233,15,135,244,23,15,182,142,233,57,200,
738 15,135,244,23,15,182,142,233,57,200,15,134,244,249,248,2,255,15,183,70,252, 738 15,134,244,249,248,2,255,15,183,70,252,254,252,233,245,255,248,3,199,68,194,
739 254,252,233,245,255,248,3,199,68,194,252,252,237,131,192,1,57,200,15,134, 739 252,252,237,131,192,1,57,200,15,134,244,3,252,233,244,2,255,141,44,197,237,
740 244,3,252,233,244,2,255,141,44,197,237,141,4,194,139,122,252,248,137,104, 740 141,4,194,139,122,252,248,137,104,252,252,137,120,252,248,139,108,36,48,141,
741 252,252,137,120,252,248,139,108,36,48,141,12,200,59,141,233,15,135,244,22, 741 12,200,59,141,233,15,135,244,22,137,209,137,194,15,182,174,233,133,252,237,
742 137,209,137,194,15,182,174,233,133,252,237,15,132,244,248,248,1,131,193,8, 742 15,132,244,248,248,1,131,193,8,57,209,15,131,244,249,139,121,252,248,137,
743 57,209,15,131,244,249,139,121,252,248,137,56,139,121,252,252,137,120,4,131, 743 56,139,121,252,252,137,120,4,131,192,8,199,65,252,252,237,131,252,237,1,15,
744 192,8,199,65,252,252,237,131,252,237,1,15,133,244,1,248,2,255,139,190,233, 744 133,244,1,248,2,255,139,190,233,139,6,15,182,204,15,182,232,131,198,4,193,
745 139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,248,3, 745 232,16,252,255,36,171,255,248,3,199,64,4,237,131,192,8,131,252,237,1,15,133,
746 199,64,4,237,131,192,8,131,252,237,1,15,133,244,3,252,233,244,2,255,139,106, 746 244,3,252,233,244,2,255,139,106,252,248,139,189,233,139,108,36,48,141,68,
747 252,248,139,189,233,139,108,36,48,141,68,194,252,248,137,149,233,141,136, 747 194,252,248,137,149,233,141,136,233,59,141,233,137,133,233,255,137,44,36,
748 233,59,141,233,137,133,233,255,137,44,36,255,137,124,36,4,137,44,36,255,15, 748 255,137,124,36,4,137,44,36,255,15,135,244,21,199,131,233,237,255,252,255,
749 135,244,21,199,131,233,237,255,252,255,215,255,252,255,147,233,255,199,131, 749 215,255,252,255,147,233,255,199,131,233,237,139,149,233,141,12,194,252,247,
750 233,237,139,149,233,141,12,194,252,247,217,3,141,233,139,114,252,252,252, 750 217,3,141,233,139,114,252,252,252,233,244,12,255,254,0
751 233,244,12,255,254,0
752}; 751};
753 752
754enum { 753enum {
@@ -2116,8 +2115,8 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2116 break; 2115 break;
2117 2116
2118 case BC_VARG: 2117 case BC_VARG:
2119 dasm_put(Dst, 14211, Dt7(->pc), PC2PROTO(numparams), (8+FRAME_VARG), LJ_TNIL); 2118 dasm_put(Dst, 14211, (8+FRAME_VARG), LJ_TNIL, Dt1(->maxstack));
2120 dasm_put(Dst, 14355, Dt1(->maxstack), Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top)); 2119 dasm_put(Dst, 14375, Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top));
2121 break; 2120 break;
2122 2121
2123 /* -- Returns ----------------------------------------------------------- */ 2122 /* -- Returns ----------------------------------------------------------- */
@@ -2128,30 +2127,30 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2128 2127
2129 case BC_RET: case BC_RET0: case BC_RET1: 2128 case BC_RET: case BC_RET0: case BC_RET1:
2130 if (op != BC_RET0) { 2129 if (op != BC_RET0) {
2131 dasm_put(Dst, 14454); 2130 dasm_put(Dst, 14446);
2132 } 2131 }
2133 dasm_put(Dst, 14458, FRAME_TYPE); 2132 dasm_put(Dst, 14450, FRAME_TYPE);
2134 switch (op) { 2133 switch (op) {
2135 case BC_RET: 2134 case BC_RET:
2136 dasm_put(Dst, 14477); 2135 dasm_put(Dst, 14469);
2137 break; 2136 break;
2138 case BC_RET1: 2137 case BC_RET1:
2139 dasm_put(Dst, 14535); 2138 dasm_put(Dst, 14527);
2140 /* fallthrough */ 2139 /* fallthrough */
2141 case BC_RET0: 2140 case BC_RET0:
2142 dasm_put(Dst, 14551); 2141 dasm_put(Dst, 14543);
2143 default: 2142 default:
2144 break; 2143 break;
2145 } 2144 }
2146 dasm_put(Dst, 14562, Dt7(->pc), PC2PROTO(k)); 2145 dasm_put(Dst, 14554, Dt7(->pc), PC2PROTO(k));
2147 if (op == BC_RET) { 2146 if (op == BC_RET) {
2148 dasm_put(Dst, 14604, LJ_TNIL); 2147 dasm_put(Dst, 14596, LJ_TNIL);
2149 } else { 2148 } else {
2150 dasm_put(Dst, 14613, LJ_TNIL); 2149 dasm_put(Dst, 14605, LJ_TNIL);
2151 } 2150 }
2152 dasm_put(Dst, 14620, -FRAME_VARG, FRAME_TYPEP); 2151 dasm_put(Dst, 14612, -FRAME_VARG, FRAME_TYPEP);
2153 if (op != BC_RET0) { 2152 if (op != BC_RET0) {
2154 dasm_put(Dst, 14644); 2153 dasm_put(Dst, 14636);
2155 } 2154 }
2156 dasm_put(Dst, 4683); 2155 dasm_put(Dst, 4683);
2157 break; 2156 break;
@@ -2161,7 +2160,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2161 2160
2162 case BC_FORL: 2161 case BC_FORL:
2163#if LJ_HASJIT 2162#if LJ_HASJIT
2164 dasm_put(Dst, 14648, HOTCOUNT_PCMASK, GG_DISP2HOT); 2163 dasm_put(Dst, 14640, HOTCOUNT_PCMASK, GG_DISP2HOT);
2165#endif 2164#endif
2166 break; 2165 break;
2167 2166
@@ -2173,57 +2172,57 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2173 case BC_FORI: 2172 case BC_FORI:
2174 case BC_IFORL: 2173 case BC_IFORL:
2175 vk = (op == BC_IFORL || op == BC_JFORL); 2174 vk = (op == BC_IFORL || op == BC_JFORL);
2176 dasm_put(Dst, 14669); 2175 dasm_put(Dst, 14661);
2177 if (!vk) { 2176 if (!vk) {
2178 dasm_put(Dst, 14673, LJ_TISNUM, LJ_TISNUM); 2177 dasm_put(Dst, 14665, LJ_TISNUM, LJ_TISNUM);
2179 } 2178 }
2180 dasm_put(Dst, 14692); 2179 dasm_put(Dst, 14684);
2181 if (!vk) { 2180 if (!vk) {
2182 dasm_put(Dst, 14696, LJ_TISNUM); 2181 dasm_put(Dst, 14688, LJ_TISNUM);
2183 } 2182 }
2184 if (sse) { 2183 if (sse) {
2185 dasm_put(Dst, 14705); 2184 dasm_put(Dst, 14697);
2186 if (vk) { 2185 if (vk) {
2187 dasm_put(Dst, 14717); 2186 dasm_put(Dst, 14709);
2188 } else { 2187 } else {
2189 dasm_put(Dst, 14736); 2188 dasm_put(Dst, 14728);
2190 } 2189 }
2191 dasm_put(Dst, 14741); 2190 dasm_put(Dst, 14733);
2192 } else { 2191 } else {
2193 dasm_put(Dst, 14754); 2192 dasm_put(Dst, 14746);
2194 if (vk) { 2193 if (vk) {
2195 dasm_put(Dst, 14760); 2194 dasm_put(Dst, 14752);
2196 } else { 2195 } else {
2197 dasm_put(Dst, 14776); 2196 dasm_put(Dst, 14768);
2198 } 2197 }
2199 dasm_put(Dst, 14784); 2198 dasm_put(Dst, 14776);
2200 if (cmov) { 2199 if (cmov) {
2201 dasm_put(Dst, 10812); 2200 dasm_put(Dst, 10812);
2202 } else { 2201 } else {
2203 dasm_put(Dst, 10818); 2202 dasm_put(Dst, 10818);
2204 } 2203 }
2205 if (!cmov) { 2204 if (!cmov) {
2206 dasm_put(Dst, 14789); 2205 dasm_put(Dst, 14781);
2207 } 2206 }
2208 } 2207 }
2209 if (op == BC_FORI) { 2208 if (op == BC_FORI) {
2210 dasm_put(Dst, 14795, -BCBIAS_J*4); 2209 dasm_put(Dst, 14787, -BCBIAS_J*4);
2211 } else if (op == BC_JFORI) { 2210 } else if (op == BC_JFORI) {
2212 dasm_put(Dst, 14805, -BCBIAS_J*4, BC_JLOOP); 2211 dasm_put(Dst, 14797, -BCBIAS_J*4, BC_JLOOP);
2213 } else if (op == BC_IFORL) { 2212 } else if (op == BC_IFORL) {
2214 dasm_put(Dst, 14819, -BCBIAS_J*4); 2213 dasm_put(Dst, 14811, -BCBIAS_J*4);
2215 } else { 2214 } else {
2216 dasm_put(Dst, 14815, BC_JLOOP); 2215 dasm_put(Dst, 14807, BC_JLOOP);
2217 } 2216 }
2218 dasm_put(Dst, 10847); 2217 dasm_put(Dst, 10847);
2219 if (sse) { 2218 if (sse) {
2220 dasm_put(Dst, 14829); 2219 dasm_put(Dst, 14821);
2221 } 2220 }
2222 break; 2221 break;
2223 2222
2224 case BC_ITERL: 2223 case BC_ITERL:
2225#if LJ_HASJIT 2224#if LJ_HASJIT
2226 dasm_put(Dst, 14648, HOTCOUNT_PCMASK, GG_DISP2HOT); 2225 dasm_put(Dst, 14640, HOTCOUNT_PCMASK, GG_DISP2HOT);
2227#endif 2226#endif
2228 break; 2227 break;
2229 2228
@@ -2232,18 +2231,18 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2232 break; 2231 break;
2233#endif 2232#endif
2234 case BC_IITERL: 2233 case BC_IITERL:
2235 dasm_put(Dst, 14840, LJ_TNIL); 2234 dasm_put(Dst, 14832, LJ_TNIL);
2236 if (op == BC_JITERL) { 2235 if (op == BC_JITERL) {
2237 dasm_put(Dst, 14855, BC_JLOOP); 2236 dasm_put(Dst, 14847, BC_JLOOP);
2238 } else { 2237 } else {
2239 dasm_put(Dst, 14869, -BCBIAS_J*4); 2238 dasm_put(Dst, 14861, -BCBIAS_J*4);
2240 } 2239 }
2241 dasm_put(Dst, 11144); 2240 dasm_put(Dst, 11144);
2242 break; 2241 break;
2243 2242
2244 case BC_LOOP: 2243 case BC_LOOP:
2245#if LJ_HASJIT 2244#if LJ_HASJIT
2246 dasm_put(Dst, 14648, HOTCOUNT_PCMASK, GG_DISP2HOT); 2245 dasm_put(Dst, 14640, HOTCOUNT_PCMASK, GG_DISP2HOT);
2247#endif 2246#endif
2248 break; 2247 break;
2249 2248
@@ -2253,12 +2252,12 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2253 2252
2254 case BC_JLOOP: 2253 case BC_JLOOP:
2255#if LJ_HASJIT 2254#if LJ_HASJIT
2256 dasm_put(Dst, 14885, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L)); 2255 dasm_put(Dst, 14877, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L));
2257#endif 2256#endif
2258 break; 2257 break;
2259 2258
2260 case BC_JMP: 2259 case BC_JMP:
2261 dasm_put(Dst, 14908, -BCBIAS_J*4); 2260 dasm_put(Dst, 14900, -BCBIAS_J*4);
2262 break; 2261 break;
2263 2262
2264 /* -- Function headers -------------------------------------------------- */ 2263 /* -- Function headers -------------------------------------------------- */
@@ -2272,7 +2271,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2272 2271
2273 case BC_FUNCF: 2272 case BC_FUNCF:
2274#if LJ_HASJIT 2273#if LJ_HASJIT
2275 dasm_put(Dst, 14932, HOTCOUNT_PCMASK, GG_DISP2HOT); 2274 dasm_put(Dst, 14924, HOTCOUNT_PCMASK, GG_DISP2HOT);
2276#endif 2275#endif
2277 case BC_FUNCV: /* NYI: compiled vararg functions. */ 2276 case BC_FUNCV: /* NYI: compiled vararg functions. */
2278 break; 2277 break;
@@ -2282,13 +2281,13 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2282 break; 2281 break;
2283#endif 2282#endif
2284 case BC_IFUNCF: 2283 case BC_IFUNCF:
2285 dasm_put(Dst, 14953, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams)); 2284 dasm_put(Dst, 14945, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams));
2286 if (op == BC_JFUNCF) { 2285 if (op == BC_JFUNCF) {
2287 dasm_put(Dst, 14983, BC_JLOOP); 2286 dasm_put(Dst, 14975, BC_JLOOP);
2288 } else { 2287 } else {
2289 dasm_put(Dst, 10849); 2288 dasm_put(Dst, 10849);
2290 } 2289 }
2291 dasm_put(Dst, 14992, LJ_TNIL); 2290 dasm_put(Dst, 14984, LJ_TNIL);
2292 break; 2291 break;
2293 2292
2294 case BC_JFUNCV: 2293 case BC_JFUNCV:
@@ -2299,30 +2298,30 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2299 break; /* NYI: compiled vararg functions. */ 2298 break; /* NYI: compiled vararg functions. */
2300 2299
2301 case BC_IFUNCV: 2300 case BC_IFUNCV:
2302 dasm_put(Dst, 15014, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL); 2301 dasm_put(Dst, 15006, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL);
2303 if (op == BC_JFUNCV) { 2302 if (op == BC_JFUNCV) {
2304 dasm_put(Dst, 14983, BC_JLOOP); 2303 dasm_put(Dst, 14975, BC_JLOOP);
2305 } else { 2304 } else {
2306 dasm_put(Dst, 15105, -4+PC2PROTO(k)); 2305 dasm_put(Dst, 15097, -4+PC2PROTO(k));
2307 } 2306 }
2308 dasm_put(Dst, 15127, LJ_TNIL); 2307 dasm_put(Dst, 15119, LJ_TNIL);
2309 break; 2308 break;
2310 2309
2311 case BC_FUNCC: 2310 case BC_FUNCC:
2312 case BC_FUNCCW: 2311 case BC_FUNCCW:
2313 dasm_put(Dst, 15149, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top)); 2312 dasm_put(Dst, 15141, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top));
2314 if (op == BC_FUNCC) { 2313 if (op == BC_FUNCC) {
2315 dasm_put(Dst, 15178); 2314 dasm_put(Dst, 15170);
2316 } else { 2315 } else {
2317 dasm_put(Dst, 15182); 2316 dasm_put(Dst, 15174);
2318 } 2317 }
2319 dasm_put(Dst, 15190, DISPATCH_GL(vmstate), ~LJ_VMST_C); 2318 dasm_put(Dst, 15182, DISPATCH_GL(vmstate), ~LJ_VMST_C);
2320 if (op == BC_FUNCC) { 2319 if (op == BC_FUNCC) {
2321 dasm_put(Dst, 15199); 2320 dasm_put(Dst, 15191);
2322 } else { 2321 } else {
2323 dasm_put(Dst, 15203, DISPATCH_GL(wrapf)); 2322 dasm_put(Dst, 15195, DISPATCH_GL(wrapf));
2324 } 2323 }
2325 dasm_put(Dst, 15208, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top)); 2324 dasm_put(Dst, 15200, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top));
2326 break; 2325 break;
2327 2326
2328 /* ---------------------------------------------------------------------- */ 2327 /* ---------------------------------------------------------------------- */
@@ -2350,7 +2349,7 @@ static int build_backend(BuildCtx *ctx)
2350 2349
2351 build_subroutines(ctx, cmov, sse); 2350 build_subroutines(ctx, cmov, sse);
2352 2351
2353 dasm_put(Dst, 15233); 2352 dasm_put(Dst, 15225);
2354 for (op = 0; op < BC__MAX; op++) 2353 for (op = 0; op < BC__MAX; op++)
2355 build_ins(ctx, (BCOp)op, op, cmov, sse); 2354 build_ins(ctx, (BCOp)op, op, cmov, sse);
2356 2355