summaryrefslogtreecommitdiff
path: root/src/buildvm_x64win.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildvm_x64win.h')
-rw-r--r--src/buildvm_x64win.h200
1 files changed, 100 insertions, 100 deletions
diff --git a/src/buildvm_x64win.h b/src/buildvm_x64win.h
index 97581286..656b6590 100644
--- a/src/buildvm_x64win.h
+++ b/src/buildvm_x64win.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[14023] = { 15static const unsigned char build_actionlist[14024] = {
16 254,1,248,10,252,247,198,237,15,132,244,11,131,230,252,248,41,252,242,72, 16 254,1,248,10,252,247,198,237,15,132,244,11,131,230,252,248,41,252,242,72,
17 141,76,49,252,248,139,114,252,252,199,68,10,4,237,248,12,131,192,1,137,68, 17 141,76,49,252,248,139,114,252,252,199,68,10,4,237,248,12,131,192,1,137,68,
18 36,84,252,247,198,237,15,132,244,13,248,14,252,247,198,237,15,132,244,10, 18 36,84,252,247,198,237,15,132,244,13,248,14,252,247,198,237,15,132,244,10,
@@ -554,21 +554,21 @@ static const unsigned char build_actionlist[14023] = {
554 131,198,4,193,232,16,252,255,36,252,235,255,72,252,247,208,139,108,36,96, 554 131,198,4,193,232,16,252,255,36,252,235,255,72,252,247,208,139,108,36,96,
555 137,149,233,68,139,66,252,248,139,20,135,137,252,233,137,116,36,100,232,251, 555 137,149,233,68,139,66,252,248,139,20,135,137,252,233,137,116,36,100,232,251,
556 1,28,139,149,233,15,182,78,252,253,137,4,202,199,68,202,4,237,139,6,15,182, 556 1,28,139,149,233,15,182,78,252,253,137,4,202,199,68,202,4,237,139,6,15,182,
557 204,15,182,232,131,198,4,193,232,16,252,255,36,252,235,255,139,76,36,96,137, 557 204,15,182,232,131,198,4,193,232,16,252,255,36,252,235,255,139,108,36,96,
558 145,233,248,1,65,137,192,37,252,255,7,0,0,65,193,232,11,61,252,255,7,0,0, 558 137,149,233,139,139,233,59,139,233,137,116,36,100,15,131,244,251,248,1,65,
559 15,132,244,249,248,2,137,194,139,131,233,137,205,59,131,233,137,116,36,100, 559 137,192,37,252,255,7,0,0,65,193,232,11,61,252,255,7,0,0,15,132,244,249,248,
560 15,131,244,251,232,251,1,29,139,149,233,15,182,78,252,253,137,4,202,199,68, 560 2,137,252,233,137,194,232,251,1,29,139,149,233,15,182,78,252,253,137,4,202,
561 202,4,237,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,252, 561 199,68,202,4,237,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,
562 235,248,3,184,1,8,0,0,252,233,244,2,248,5,232,251,1,30,15,183,70,252,254, 562 36,252,235,248,3,184,1,8,0,0,252,233,244,2,248,5,137,252,233,232,251,1,30,
563 137,252,233,252,233,244,1,255,72,252,247,208,139,108,36,96,139,139,233,137, 563 15,183,70,252,254,252,233,244,1,255,72,252,247,208,139,108,36,96,139,139,
564 116,36,100,59,139,233,137,149,233,15,131,244,249,248,2,139,20,135,137,252, 564 233,137,116,36,100,59,139,233,137,149,233,15,131,244,249,248,2,139,20,135,
565 233,232,251,1,31,139,149,233,15,182,78,252,253,137,4,202,199,68,202,4,237, 565 137,252,233,232,251,1,31,139,149,233,15,182,78,252,253,137,4,202,199,68,202,
566 139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,252,235,248,3, 566 4,237,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,252,235,
567 137,252,233,232,251,1,30,15,183,70,252,254,72,252,247,208,252,233,244,2,255, 567 248,3,137,252,233,232,251,1,30,15,183,70,252,254,72,252,247,208,252,233,244,
568 72,252,247,208,139,106,252,248,139,173,233,139,4,135,252,233,244,157,255, 568 2,255,72,252,247,208,139,106,252,248,139,173,233,139,4,135,252,233,244,157,
569 72,252,247,208,139,106,252,248,139,173,233,139,4,135,252,233,244,158,255, 569 255,72,252,247,208,139,106,252,248,139,173,233,139,4,135,252,233,244,158,
570 15,182,252,236,15,182,192,129,124,253,252,234,4,239,15,133,244,36,139,44, 570 255,15,182,252,236,15,182,192,129,124,253,252,234,4,239,15,133,244,36,139,
571 252,234,129,124,253,194,4,239,15,135,244,251,255,252,242,15,16,4,194,252, 571 44,252,234,129,124,253,194,4,239,15,135,244,251,255,252,242,15,16,4,194,252,
572 242,15,45,192,252,242,15,42,200,102,15,46,193,255,15,133,244,36,59,133,233, 572 242,15,45,192,252,242,15,42,200,102,15,46,193,255,15,133,244,36,59,133,233,
573 15,131,244,36,193,224,3,3,133,233,129,120,253,4,239,15,132,244,248,248,1, 573 15,131,244,36,193,224,3,3,133,233,129,120,253,4,239,15,132,244,248,248,1,
574 139,40,139,64,4,137,44,202,137,68,202,4,139,6,15,182,204,15,182,232,131,198, 574 139,40,139,64,4,137,44,202,137,68,202,4,139,6,15,182,204,15,182,232,131,198,
@@ -1912,61 +1912,61 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
1912 dasm_put(Dst, 11175, Dt1(->base), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), LJ_TTAB); 1912 dasm_put(Dst, 11175, Dt1(->base), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), LJ_TTAB);
1913 break; 1913 break;
1914 case BC_TDUP: 1914 case BC_TDUP:
1915 dasm_put(Dst, 11296, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB); 1915 dasm_put(Dst, 11297, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB);
1916 break; 1916 break;
1917 1917
1918 case BC_GGET: 1918 case BC_GGET:
1919 dasm_put(Dst, 11391, Dt7(->env)); 1919 dasm_put(Dst, 11392, Dt7(->env));
1920 break; 1920 break;
1921 case BC_GSET: 1921 case BC_GSET:
1922 dasm_put(Dst, 11410, Dt7(->env)); 1922 dasm_put(Dst, 11411, Dt7(->env));
1923 break; 1923 break;
1924 1924
1925 case BC_TGETV: 1925 case BC_TGETV:
1926 dasm_put(Dst, 11429, LJ_TTAB, LJ_TISNUM); 1926 dasm_put(Dst, 11430, LJ_TTAB, LJ_TISNUM);
1927 if (sse) { 1927 if (sse) {
1928 dasm_put(Dst, 11462); 1928 dasm_put(Dst, 11463);
1929 } else { 1929 } else {
1930 } 1930 }
1931 dasm_put(Dst, 11483, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); 1931 dasm_put(Dst, 11484, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
1932 dasm_put(Dst, 11576, LJ_TSTR); 1932 dasm_put(Dst, 11577, LJ_TSTR);
1933 break; 1933 break;
1934 case BC_TGETS: 1934 case BC_TGETS:
1935 dasm_put(Dst, 11594, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); 1935 dasm_put(Dst, 11595, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL);
1936 dasm_put(Dst, 11679, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); 1936 dasm_put(Dst, 11680, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
1937 break; 1937 break;
1938 case BC_TGETB: 1938 case BC_TGETB:
1939 dasm_put(Dst, 11751, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); 1939 dasm_put(Dst, 11752, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
1940 dasm_put(Dst, 10092); 1940 dasm_put(Dst, 10092);
1941 break; 1941 break;
1942 1942
1943 case BC_TSETV: 1943 case BC_TSETV:
1944 dasm_put(Dst, 11851, LJ_TTAB, LJ_TISNUM); 1944 dasm_put(Dst, 11852, LJ_TTAB, LJ_TISNUM);
1945 if (sse) { 1945 if (sse) {
1946 dasm_put(Dst, 11462); 1946 dasm_put(Dst, 11463);
1947 } else { 1947 } else {
1948 } 1948 }
1949 dasm_put(Dst, 11884, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable)); 1949 dasm_put(Dst, 11885, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable));
1950 dasm_put(Dst, 11968, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); 1950 dasm_put(Dst, 11969, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
1951 break; 1951 break;
1952 case BC_TSETS: 1952 case BC_TSETS:
1953 dasm_put(Dst, 12030, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); 1953 dasm_put(Dst, 12031, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL);
1954 dasm_put(Dst, 12106, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next)); 1954 dasm_put(Dst, 12107, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next));
1955 dasm_put(Dst, 12199, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt1(->base), Dt1(->base), Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); 1955 dasm_put(Dst, 12200, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt1(->base), Dt1(->base), Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
1956 break; 1956 break;
1957 case BC_TSETB: 1957 case BC_TSETB:
1958 dasm_put(Dst, 12290, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable)); 1958 dasm_put(Dst, 12291, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable));
1959 dasm_put(Dst, 12389, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); 1959 dasm_put(Dst, 12390, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
1960 break; 1960 break;
1961 1961
1962 case BC_TSETM: 1962 case BC_TSETM:
1963 dasm_put(Dst, 12435); 1963 dasm_put(Dst, 12436);
1964 if (sse) { 1964 if (sse) {
1965 dasm_put(Dst, 12440); 1965 dasm_put(Dst, 12441);
1966 } else { 1966 } else {
1967 } 1967 }
1968 dasm_put(Dst, 12447, Dt6(->marked), LJ_GC_BLACK, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base)); 1968 dasm_put(Dst, 12448, Dt6(->marked), LJ_GC_BLACK, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base));
1969 dasm_put(Dst, 12587, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); 1969 dasm_put(Dst, 12588, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
1970 break; 1970 break;
1971 1971
1972 /* -- Calls and vararg handling ----------------------------------------- */ 1972 /* -- Calls and vararg handling ----------------------------------------- */
@@ -1974,60 +1974,60 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
1974 case BC_CALL: case BC_CALLM: 1974 case BC_CALL: case BC_CALLM:
1975 dasm_put(Dst, 10106); 1975 dasm_put(Dst, 10106);
1976 if (op == BC_CALLM) { 1976 if (op == BC_CALLM) {
1977 dasm_put(Dst, 12605); 1977 dasm_put(Dst, 12606);
1978 } 1978 }
1979 dasm_put(Dst, 12610, LJ_TFUNC, Dt7(->pc)); 1979 dasm_put(Dst, 12611, LJ_TFUNC, Dt7(->pc));
1980 break; 1980 break;
1981 1981
1982 case BC_CALLMT: 1982 case BC_CALLMT:
1983 dasm_put(Dst, 12605); 1983 dasm_put(Dst, 12606);
1984 break; 1984 break;
1985 case BC_CALLT: 1985 case BC_CALLT:
1986 dasm_put(Dst, 12652, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->pc)); 1986 dasm_put(Dst, 12653, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->pc));
1987 dasm_put(Dst, 12771, FRAME_TYPE, Dt7(->pc), PC2PROTO(k)); 1987 dasm_put(Dst, 12772, FRAME_TYPE, Dt7(->pc), PC2PROTO(k));
1988 break; 1988 break;
1989 1989
1990 case BC_ITERC: 1990 case BC_ITERC:
1991 dasm_put(Dst, 12829, LJ_TFUNC, 2+1, Dt7(->pc)); 1991 dasm_put(Dst, 12830, LJ_TFUNC, 2+1, Dt7(->pc));
1992 break; 1992 break;
1993 1993
1994 case BC_VARG: 1994 case BC_VARG:
1995 dasm_put(Dst, 12910, Dt7(->pc), PC2PROTO(numparams), (8+FRAME_VARG), LJ_TNIL); 1995 dasm_put(Dst, 12911, Dt7(->pc), PC2PROTO(numparams), (8+FRAME_VARG), LJ_TNIL);
1996 dasm_put(Dst, 13055, Dt1(->maxstack), Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top)); 1996 dasm_put(Dst, 13056, Dt1(->maxstack), Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top));
1997 break; 1997 break;
1998 1998
1999 /* -- Returns ----------------------------------------------------------- */ 1999 /* -- Returns ----------------------------------------------------------- */
2000 2000
2001 case BC_RETM: 2001 case BC_RETM:
2002 dasm_put(Dst, 12605); 2002 dasm_put(Dst, 12606);
2003 break; 2003 break;
2004 2004
2005 case BC_RET: case BC_RET0: case BC_RET1: 2005 case BC_RET: case BC_RET0: case BC_RET1:
2006 if (op != BC_RET0) { 2006 if (op != BC_RET0) {
2007 dasm_put(Dst, 13154); 2007 dasm_put(Dst, 13155);
2008 } 2008 }
2009 dasm_put(Dst, 13158, FRAME_TYPE); 2009 dasm_put(Dst, 13159, FRAME_TYPE);
2010 switch (op) { 2010 switch (op) {
2011 case BC_RET: 2011 case BC_RET:
2012 dasm_put(Dst, 13177); 2012 dasm_put(Dst, 13178);
2013 break; 2013 break;
2014 case BC_RET1: 2014 case BC_RET1:
2015 dasm_put(Dst, 13235); 2015 dasm_put(Dst, 13236);
2016 /* fallthrough */ 2016 /* fallthrough */
2017 case BC_RET0: 2017 case BC_RET0:
2018 dasm_put(Dst, 13251); 2018 dasm_put(Dst, 13252);
2019 default: 2019 default:
2020 break; 2020 break;
2021 } 2021 }
2022 dasm_put(Dst, 13262, Dt7(->pc), PC2PROTO(k)); 2022 dasm_put(Dst, 13263, Dt7(->pc), PC2PROTO(k));
2023 if (op == BC_RET) { 2023 if (op == BC_RET) {
2024 dasm_put(Dst, 13306, LJ_TNIL); 2024 dasm_put(Dst, 13307, LJ_TNIL);
2025 } else { 2025 } else {
2026 dasm_put(Dst, 13315, LJ_TNIL); 2026 dasm_put(Dst, 13316, LJ_TNIL);
2027 } 2027 }
2028 dasm_put(Dst, 13322); 2028 dasm_put(Dst, 13323);
2029 if (op != BC_RET0) { 2029 if (op != BC_RET0) {
2030 dasm_put(Dst, 13343); 2030 dasm_put(Dst, 13344);
2031 } 2031 }
2032 dasm_put(Dst, 4570); 2032 dasm_put(Dst, 4570);
2033 break; 2033 break;
@@ -2037,7 +2037,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2037 2037
2038 case BC_FORL: 2038 case BC_FORL:
2039#if LJ_HASJIT 2039#if LJ_HASJIT
2040 dasm_put(Dst, 13347, HOTCOUNT_PCMASK, GG_DISP2HOT); 2040 dasm_put(Dst, 13348, HOTCOUNT_PCMASK, GG_DISP2HOT);
2041#endif 2041#endif
2042 break; 2042 break;
2043 2043
@@ -2049,57 +2049,57 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2049 case BC_FORI: 2049 case BC_FORI:
2050 case BC_IFORL: 2050 case BC_IFORL:
2051 vk = (op == BC_IFORL || op == BC_JFORL); 2051 vk = (op == BC_IFORL || op == BC_JFORL);
2052 dasm_put(Dst, 13368); 2052 dasm_put(Dst, 13369);
2053 if (!vk) { 2053 if (!vk) {
2054 dasm_put(Dst, 13372, LJ_TISNUM, LJ_TISNUM); 2054 dasm_put(Dst, 13373, LJ_TISNUM, LJ_TISNUM);
2055 } 2055 }
2056 dasm_put(Dst, 13391); 2056 dasm_put(Dst, 13392);
2057 if (!vk) { 2057 if (!vk) {
2058 dasm_put(Dst, 13395, LJ_TISNUM); 2058 dasm_put(Dst, 13396, LJ_TISNUM);
2059 } 2059 }
2060 if (sse) { 2060 if (sse) {
2061 dasm_put(Dst, 13404); 2061 dasm_put(Dst, 13405);
2062 if (vk) { 2062 if (vk) {
2063 dasm_put(Dst, 13416); 2063 dasm_put(Dst, 13417);
2064 } else { 2064 } else {
2065 dasm_put(Dst, 13435); 2065 dasm_put(Dst, 13436);
2066 } 2066 }
2067 dasm_put(Dst, 13440); 2067 dasm_put(Dst, 13441);
2068 } else { 2068 } else {
2069 dasm_put(Dst, 13453); 2069 dasm_put(Dst, 13454);
2070 if (vk) { 2070 if (vk) {
2071 dasm_put(Dst, 13459); 2071 dasm_put(Dst, 13460);
2072 } else { 2072 } else {
2073 dasm_put(Dst, 13475); 2073 dasm_put(Dst, 13476);
2074 } 2074 }
2075 dasm_put(Dst, 13483); 2075 dasm_put(Dst, 13484);
2076 if (cmov) { 2076 if (cmov) {
2077 dasm_put(Dst, 9529); 2077 dasm_put(Dst, 9529);
2078 } else { 2078 } else {
2079 dasm_put(Dst, 9535); 2079 dasm_put(Dst, 9535);
2080 } 2080 }
2081 if (!cmov) { 2081 if (!cmov) {
2082 dasm_put(Dst, 13488); 2082 dasm_put(Dst, 13489);
2083 } 2083 }
2084 } 2084 }
2085 if (op == BC_FORI) { 2085 if (op == BC_FORI) {
2086 dasm_put(Dst, 13494, -BCBIAS_J*4); 2086 dasm_put(Dst, 13495, -BCBIAS_J*4);
2087 } else if (op == BC_JFORI) { 2087 } else if (op == BC_JFORI) {
2088 dasm_put(Dst, 13504, -BCBIAS_J*4, BC_JLOOP); 2088 dasm_put(Dst, 13505, -BCBIAS_J*4, BC_JLOOP);
2089 } else if (op == BC_IFORL) { 2089 } else if (op == BC_IFORL) {
2090 dasm_put(Dst, 13518, -BCBIAS_J*4); 2090 dasm_put(Dst, 13519, -BCBIAS_J*4);
2091 } else { 2091 } else {
2092 dasm_put(Dst, 13514, BC_JLOOP); 2092 dasm_put(Dst, 13515, BC_JLOOP);
2093 } 2093 }
2094 dasm_put(Dst, 9564); 2094 dasm_put(Dst, 9564);
2095 if (sse) { 2095 if (sse) {
2096 dasm_put(Dst, 13528); 2096 dasm_put(Dst, 13529);
2097 } 2097 }
2098 break; 2098 break;
2099 2099
2100 case BC_ITERL: 2100 case BC_ITERL:
2101#if LJ_HASJIT 2101#if LJ_HASJIT
2102 dasm_put(Dst, 13347, HOTCOUNT_PCMASK, GG_DISP2HOT); 2102 dasm_put(Dst, 13348, HOTCOUNT_PCMASK, GG_DISP2HOT);
2103#endif 2103#endif
2104 break; 2104 break;
2105 2105
@@ -2108,18 +2108,18 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2108 break; 2108 break;
2109#endif 2109#endif
2110 case BC_IITERL: 2110 case BC_IITERL:
2111 dasm_put(Dst, 13539, LJ_TNIL); 2111 dasm_put(Dst, 13540, LJ_TNIL);
2112 if (op == BC_JITERL) { 2112 if (op == BC_JITERL) {
2113 dasm_put(Dst, 13554, BC_JLOOP); 2113 dasm_put(Dst, 13555, BC_JLOOP);
2114 } else { 2114 } else {
2115 dasm_put(Dst, 13568, -BCBIAS_J*4); 2115 dasm_put(Dst, 13569, -BCBIAS_J*4);
2116 } 2116 }
2117 dasm_put(Dst, 9864); 2117 dasm_put(Dst, 9864);
2118 break; 2118 break;
2119 2119
2120 case BC_LOOP: 2120 case BC_LOOP:
2121#if LJ_HASJIT 2121#if LJ_HASJIT
2122 dasm_put(Dst, 13347, HOTCOUNT_PCMASK, GG_DISP2HOT); 2122 dasm_put(Dst, 13348, HOTCOUNT_PCMASK, GG_DISP2HOT);
2123#endif 2123#endif
2124 break; 2124 break;
2125 2125
@@ -2129,12 +2129,12 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2129 2129
2130 case BC_JLOOP: 2130 case BC_JLOOP:
2131#if LJ_HASJIT 2131#if LJ_HASJIT
2132 dasm_put(Dst, 13584, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L), 9*16+4*8, -1*16, -2*16, -3*16, -4*16, -5*16, -6*16, -7*16, -8*16, -9*16); 2132 dasm_put(Dst, 13585, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L), 9*16+4*8, -1*16, -2*16, -3*16, -4*16, -5*16, -6*16, -7*16, -8*16, -9*16);
2133#endif 2133#endif
2134 break; 2134 break;
2135 2135
2136 case BC_JMP: 2136 case BC_JMP:
2137 dasm_put(Dst, 13693, -BCBIAS_J*4); 2137 dasm_put(Dst, 13694, -BCBIAS_J*4);
2138 break; 2138 break;
2139 2139
2140 /* -- Function headers -------------------------------------------------- */ 2140 /* -- Function headers -------------------------------------------------- */
@@ -2148,7 +2148,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2148 2148
2149 case BC_FUNCF: 2149 case BC_FUNCF:
2150#if LJ_HASJIT 2150#if LJ_HASJIT
2151 dasm_put(Dst, 13718, HOTCOUNT_PCMASK, GG_DISP2HOT); 2151 dasm_put(Dst, 13719, HOTCOUNT_PCMASK, GG_DISP2HOT);
2152#endif 2152#endif
2153 case BC_FUNCV: /* NYI: compiled vararg functions. */ 2153 case BC_FUNCV: /* NYI: compiled vararg functions. */
2154 break; 2154 break;
@@ -2158,13 +2158,13 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2158 break; 2158 break;
2159#endif 2159#endif
2160 case BC_IFUNCF: 2160 case BC_IFUNCF:
2161 dasm_put(Dst, 13739, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams)); 2161 dasm_put(Dst, 13740, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams));
2162 if (op == BC_JFUNCF) { 2162 if (op == BC_JFUNCF) {
2163 dasm_put(Dst, 13769, BC_JLOOP); 2163 dasm_put(Dst, 13770, BC_JLOOP);
2164 } else { 2164 } else {
2165 dasm_put(Dst, 9566); 2165 dasm_put(Dst, 9566);
2166 } 2166 }
2167 dasm_put(Dst, 13778, LJ_TNIL); 2167 dasm_put(Dst, 13779, LJ_TNIL);
2168 break; 2168 break;
2169 2169
2170 case BC_JFUNCV: 2170 case BC_JFUNCV:
@@ -2175,30 +2175,30 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2175 break; /* NYI: compiled vararg functions. */ 2175 break; /* NYI: compiled vararg functions. */
2176 2176
2177 case BC_IFUNCV: 2177 case BC_IFUNCV:
2178 dasm_put(Dst, 13800, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL); 2178 dasm_put(Dst, 13801, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL);
2179 if (op == BC_JFUNCV) { 2179 if (op == BC_JFUNCV) {
2180 dasm_put(Dst, 13769, BC_JLOOP); 2180 dasm_put(Dst, 13770, BC_JLOOP);
2181 } else { 2181 } else {
2182 dasm_put(Dst, 13891, -4+PC2PROTO(k)); 2182 dasm_put(Dst, 13892, -4+PC2PROTO(k));
2183 } 2183 }
2184 dasm_put(Dst, 13914, LJ_TNIL); 2184 dasm_put(Dst, 13915, LJ_TNIL);
2185 break; 2185 break;
2186 2186
2187 case BC_FUNCC: 2187 case BC_FUNCC:
2188 case BC_FUNCCW: 2188 case BC_FUNCCW:
2189 dasm_put(Dst, 13936, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top)); 2189 dasm_put(Dst, 13937, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top));
2190 if (op == BC_FUNCC) { 2190 if (op == BC_FUNCC) {
2191 dasm_put(Dst, 13966); 2191 dasm_put(Dst, 13967);
2192 } else { 2192 } else {
2193 dasm_put(Dst, 13970); 2193 dasm_put(Dst, 13971);
2194 } 2194 }
2195 dasm_put(Dst, 13978, DISPATCH_GL(vmstate), ~LJ_VMST_C); 2195 dasm_put(Dst, 13979, DISPATCH_GL(vmstate), ~LJ_VMST_C);
2196 if (op == BC_FUNCC) { 2196 if (op == BC_FUNCC) {
2197 dasm_put(Dst, 13987); 2197 dasm_put(Dst, 13988);
2198 } else { 2198 } else {
2199 dasm_put(Dst, 13991, DISPATCH_GL(wrapf)); 2199 dasm_put(Dst, 13992, DISPATCH_GL(wrapf));
2200 } 2200 }
2201 dasm_put(Dst, 13996, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top)); 2201 dasm_put(Dst, 13997, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top));
2202 break; 2202 break;
2203 2203
2204 /* ---------------------------------------------------------------------- */ 2204 /* ---------------------------------------------------------------------- */
@@ -2226,7 +2226,7 @@ static int build_backend(BuildCtx *ctx)
2226 2226
2227 build_subroutines(ctx, cmov, sse); 2227 build_subroutines(ctx, cmov, sse);
2228 2228
2229 dasm_put(Dst, 14021); 2229 dasm_put(Dst, 14022);
2230 for (op = 0; op < BC__MAX; op++) 2230 for (op = 0; op < BC__MAX; op++)
2231 build_ins(ctx, (BCOp)op, op, cmov, sse); 2231 build_ins(ctx, (BCOp)op, op, cmov, sse);
2232 2232