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.h259
1 files changed, 150 insertions, 109 deletions
diff --git a/src/buildvm_x64win.h b/src/buildvm_x64win.h
index dba00741..bc4da564 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[13907] = { 15static const unsigned char build_actionlist[14208] = {
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,129,252,246,239,252,247,198,237, 18 36,84,252,247,198,237,15,132,244,13,248,14,129,252,246,239,252,247,198,237,
@@ -635,60 +635,75 @@ static const unsigned char build_actionlist[13907] = {
635 141,76,202,8,72,139,105,232,72,139,65,252,240,72,137,41,72,137,65,8,139,105, 635 141,76,202,8,72,139,105,232,72,139,65,252,240,72,137,41,72,137,65,8,139,105,
636 224,139,65,228,137,105,252,248,137,65,252,252,129,252,248,239,184,237,15, 636 224,139,65,228,137,105,252,248,137,65,252,252,129,252,248,239,184,237,15,
637 133,244,28,137,202,137,114,252,252,139,181,233,139,14,15,182,252,233,15,182, 637 133,244,28,137,202,137,114,252,252,139,181,233,139,14,15,182,252,233,15,182,
638 205,131,198,4,252,255,36,252,235,255,15,182,252,236,15,182,192,137,124,36, 638 205,131,198,4,252,255,36,252,235,255,137,124,36,80,137,92,36,84,139,108,202,
639 80,141,188,253,194,233,141,12,202,43,122,252,252,133,252,237,15,132,244,251, 639 252,240,139,68,202,252,248,139,157,233,131,198,4,139,189,233,248,1,57,216,
640 141,108,252,233,252,248,57,215,15,131,244,248,248,1,72,139,71,252,248,131, 640 15,131,244,251,129,124,253,199,4,239,15,132,244,250,255,252,242,15,42,192,
641 199,8,72,137,1,131,193,8,57,252,233,15,131,244,249,57,215,15,130,244,1,248, 641 255,219,68,202,252,248,255,72,139,44,199,72,137,108,202,8,131,192,1,255,137,
642 2,199,65,4,237,131,193,8,57,252,233,15,130,244,2,248,3,139,124,36,80,139, 642 68,202,252,248,248,2,15,183,70,252,254,141,180,253,134,233,248,3,139,92,36,
643 6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,252,235,248,5,199, 643 84,139,124,36,80,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,
644 68,36,84,1,0,0,0,137,208,41,252,248,15,134,244,3,137,197,193,252,237,3,131, 644 36,252,235,248,4,131,192,1,255,137,68,202,252,248,255,252,233,244,1,248,5,
645 197,1,137,108,36,84,139,108,36,96,1,200,59,133,233,15,135,244,253,248,6,255, 645 41,216,248,6,59,133,233,15,135,244,3,105,252,248,239,3,189,233,129,191,233,
646 72,139,71,252,248,131,199,8,72,137,1,131,193,8,57,215,15,130,244,6,252,233, 646 239,15,132,244,253,141,92,24,1,72,139,175,233,72,139,135,233,72,137,44,202,
647 244,3,248,7,137,149,233,137,141,233,137,116,36,100,41,215,139,84,36,84,131, 647 72,137,68,202,8,137,92,202,252,248,252,233,244,2,248,7,131,192,1,252,233,
648 252,234,1,137,252,233,232,251,1,0,139,149,233,139,141,233,1,215,252,233,244, 648 244,6,255,129,124,253,202,252,236,239,15,133,244,251,139,108,202,232,129,
649 6,255,193,225,3,255,248,1,139,114,252,252,137,68,36,84,252,247,198,237,15, 649 124,253,202,252,244,239,15,133,244,251,129,124,253,202,252,252,239,15,133,
650 133,244,253,255,248,13,137,215,131,232,1,15,132,244,249,248,2,72,139,44,15, 650 244,251,128,189,233,235,15,133,244,251,141,180,253,134,233,199,68,202,252,
651 72,137,111,252,248,131,199,8,131,232,1,15,133,244,2,248,3,139,68,36,84,15, 651 248,0,0,0,0,248,1,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,
652 182,110,252,255,248,5,57,197,15,135,244,252,255,72,139,44,10,72,137,106,252, 652 36,252,235,248,5,198,70,252,252,235,141,180,253,134,233,198,6,235,252,233,
653 248,255,248,5,56,70,252,255,15,135,244,252,255,15,182,78,252,253,72,252,247, 653 244,1,255,15,182,252,236,15,182,192,137,124,36,80,141,188,253,194,233,141,
654 209,141,20,202,139,122,252,248,139,191,233,139,191,233,139,6,15,182,204,15, 654 12,202,43,122,252,252,133,252,237,15,132,244,251,141,108,252,233,252,248,
655 182,232,131,198,4,193,232,16,252,255,36,252,235,248,6,255,199,71,252,252, 655 57,215,15,131,244,248,248,1,72,139,71,252,248,131,199,8,72,137,1,131,193,
656 237,131,199,8,255,199,68,194,252,244,237,255,131,192,1,252,233,244,5,248, 656 8,57,252,233,15,131,244,249,57,215,15,130,244,1,248,2,199,65,4,237,131,193,
657 7,141,174,233,252,247,197,237,15,133,244,14,41,252,234,255,1,252,233,255, 657 8,57,252,233,15,130,244,2,248,3,139,124,36,80,139,6,15,182,204,15,182,232,
658 137,252,245,209,252,237,129,229,239,102,131,172,253,43,233,1,15,132,244,140, 658 131,198,4,193,232,16,252,255,36,252,235,248,5,199,68,36,84,1,0,0,0,137,208,
659 255,141,12,202,255,129,121,253,4,239,15,135,244,53,129,121,253,12,239,15, 659 41,252,248,15,134,244,3,137,197,193,252,237,3,131,197,1,137,108,36,84,139,
660 135,244,53,255,139,105,20,255,129,252,253,239,15,135,244,53,255,252,242,15, 660 108,36,96,1,200,59,133,233,15,135,244,253,248,6,255,72,139,71,252,248,131,
661 16,1,252,242,15,16,73,8,255,252,242,15,88,65,16,252,242,15,17,1,133,252,237, 661 199,8,72,137,1,131,193,8,57,215,15,130,244,6,252,233,244,3,248,7,137,149,
662 15,136,244,249,255,15,140,244,249,255,102,15,46,200,248,1,252,242,15,17,65, 662 233,137,141,233,137,116,36,100,41,215,139,84,36,84,131,252,234,1,137,252,
663 24,255,221,65,8,221,1,255,220,65,16,221,17,221,81,24,133,252,237,15,136,244, 663 233,232,251,1,0,139,149,233,139,141,233,1,215,252,233,244,6,255,193,225,3,
664 247,255,221,81,24,15,140,244,247,255,217,201,248,1,255,15,183,70,252,254, 664 255,248,1,139,114,252,252,137,68,36,84,252,247,198,237,15,133,244,253,255,
665 255,15,131,244,248,141,180,253,134,233,255,141,180,253,134,233,15,183,70, 665 248,13,137,215,131,232,1,15,132,244,249,248,2,72,139,44,15,72,137,111,252,
666 252,254,15,131,245,255,15,130,244,248,141,180,253,134,233,255,248,3,102,15, 666 248,131,199,8,131,232,1,15,133,244,2,248,3,139,68,36,84,15,182,110,252,255,
667 46,193,252,233,244,1,255,141,12,202,139,105,4,129,252,253,239,15,132,244, 667 248,5,57,197,15,135,244,252,255,72,139,44,10,72,137,106,252,248,255,248,5,
668 247,255,137,105,252,252,139,41,137,105,252,248,252,233,245,255,141,180,253, 668 56,70,252,255,15,135,244,252,255,15,182,78,252,253,72,252,247,209,141,20,
669 134,233,139,1,137,105,252,252,137,65,252,248,255,139,139,233,139,4,129,72, 669 202,139,122,252,248,139,191,233,139,191,233,139,6,15,182,204,15,182,232,131,
670 139,128,233,139,108,36,96,137,147,233,137,171,233,76,137,100,36,80,76,137, 670 198,4,193,232,16,252,255,36,252,235,248,6,255,199,71,252,252,237,131,199,
671 108,36,32,76,137,116,36,24,76,137,124,36,16,72,137,225,72,129,252,236,239, 671 8,255,199,68,194,252,244,237,255,131,192,1,252,233,244,5,248,7,141,174,233,
672 102,15,127,49,102,15,127,185,233,102,68,15,127,129,233,102,68,15,127,137, 672 252,247,197,237,15,133,244,14,41,252,234,255,1,252,233,255,137,252,245,209,
673 233,102,68,15,127,145,233,102,68,15,127,153,233,102,68,15,127,161,233,102, 673 252,237,129,229,239,102,131,172,253,43,233,1,15,132,244,140,255,141,12,202,
674 68,15,127,169,233,102,68,15,127,177,233,102,68,15,127,185,233,252,255,224, 674 255,129,121,253,4,239,15,135,244,53,129,121,253,12,239,15,135,244,53,255,
675 255,141,180,253,134,233,139,6,15,182,204,15,182,232,131,198,4,193,232,16, 675 139,105,20,255,129,252,253,239,15,135,244,53,255,252,242,15,16,1,252,242,
676 252,255,36,252,235,255,137,252,245,209,252,237,129,229,239,102,131,172,253, 676 15,16,73,8,255,252,242,15,88,65,16,252,242,15,17,1,133,252,237,15,136,244,
677 43,233,1,15,132,244,142,255,139,190,233,139,108,36,96,141,12,202,59,141,233, 677 249,255,15,140,244,249,255,102,15,46,200,248,1,252,242,15,17,65,24,255,221,
678 15,135,244,23,15,182,142,233,57,200,15,134,244,249,248,2,255,15,183,70,252, 678 65,8,221,1,255,220,65,16,221,17,221,81,24,133,252,237,15,136,244,247,255,
679 254,252,233,245,255,248,3,199,68,194,252,252,237,131,192,1,57,200,15,134, 679 221,81,24,15,140,244,247,255,217,201,248,1,255,15,183,70,252,254,255,15,131,
680 244,3,252,233,244,2,255,141,44,197,237,141,4,194,139,122,252,248,137,104, 680 244,248,141,180,253,134,233,255,141,180,253,134,233,15,183,70,252,254,15,
681 252,252,137,120,252,248,139,108,36,96,141,12,200,59,141,233,15,135,244,22, 681 131,245,255,15,130,244,248,141,180,253,134,233,255,248,3,102,15,46,193,252,
682 137,209,137,194,15,182,174,233,133,252,237,15,132,244,248,248,1,131,193,8, 682 233,244,1,255,141,12,202,139,105,4,129,252,253,239,15,132,244,247,255,137,
683 57,209,15,131,244,249,139,121,252,248,137,56,139,121,252,252,137,120,4,131, 683 105,252,252,139,41,137,105,252,248,252,233,245,255,141,180,253,134,233,139,
684 192,8,199,65,252,252,237,131,252,237,1,15,133,244,1,248,2,255,139,190,233, 684 1,137,105,252,252,137,65,252,248,255,139,139,233,139,4,129,72,139,128,233,
685 139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,252,235,255,248, 685 139,108,36,96,137,147,233,137,171,233,76,137,100,36,80,76,137,108,36,32,76,
686 3,199,64,4,237,131,192,8,131,252,237,1,15,133,244,3,252,233,244,2,255,139, 686 137,116,36,24,76,137,124,36,16,72,137,225,72,129,252,236,239,102,15,127,49,
687 106,252,248,72,139,189,233,139,108,36,96,141,68,194,252,248,137,149,233,141, 687 102,15,127,185,233,102,68,15,127,129,233,102,68,15,127,137,233,102,68,15,
688 136,233,59,141,233,137,133,233,255,137,252,233,255,72,137,252,250,137,252, 688 127,145,233,102,68,15,127,153,233,102,68,15,127,161,233,102,68,15,127,169,
689 233,255,15,135,244,21,199,131,233,237,255,252,255,215,255,252,255,147,233, 689 233,102,68,15,127,177,233,102,68,15,127,185,233,252,255,224,255,141,180,253,
690 255,199,131,233,237,139,149,233,141,12,194,252,247,217,3,141,233,139,114, 690 134,233,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,252,235,
691 252,252,252,233,244,12,255,254,0 691 255,137,252,245,209,252,237,129,229,239,102,131,172,253,43,233,1,15,132,244,
692 142,255,139,190,233,139,108,36,96,141,12,202,59,141,233,15,135,244,23,15,
693 182,142,233,57,200,15,134,244,249,248,2,255,15,183,70,252,254,252,233,245,
694 255,248,3,199,68,194,252,252,237,131,192,1,57,200,15,134,244,3,252,233,244,
695 2,255,141,44,197,237,141,4,194,139,122,252,248,137,104,252,252,137,120,252,
696 248,139,108,36,96,141,12,200,59,141,233,15,135,244,22,137,209,137,194,15,
697 182,174,233,133,252,237,15,132,244,248,248,1,131,193,8,57,209,15,131,244,
698 249,139,121,252,248,137,56,139,121,252,252,137,120,4,131,192,8,199,65,252,
699 252,237,131,252,237,1,15,133,244,1,248,2,255,139,190,233,139,6,15,182,204,
700 15,182,232,131,198,4,193,232,16,252,255,36,252,235,255,248,3,199,64,4,237,
701 131,192,8,131,252,237,1,15,133,244,3,252,233,244,2,255,139,106,252,248,72,
702 139,189,233,139,108,36,96,141,68,194,252,248,137,149,233,141,136,233,59,141,
703 233,137,133,233,255,137,252,233,255,72,137,252,250,137,252,233,255,15,135,
704 244,21,199,131,233,237,255,252,255,215,255,252,255,147,233,255,199,131,233,
705 237,139,149,233,141,12,194,252,247,217,3,141,233,139,114,252,252,252,233,
706 244,12,255,254,0
692}; 707};
693 708
694enum { 709enum {
@@ -1984,9 +1999,35 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
1984 dasm_put(Dst, 12750, LJ_TFUNC, 2+1, Dt7(->pc)); 1999 dasm_put(Dst, 12750, LJ_TFUNC, 2+1, Dt7(->pc));
1985 break; 2000 break;
1986 2001
2002 case BC_ITERN:
2003#if LJ_HASJIT
2004#endif
2005 dasm_put(Dst, 12821, Dt6(->asize), Dt6(->array), LJ_TNIL);
2006 if (sse) {
2007 dasm_put(Dst, 12867);
2008 } else {
2009 dasm_put(Dst, 12873);
2010 }
2011 dasm_put(Dst, 12879);
2012 if (sse) {
2013 dasm_put(Dst, 9920);
2014 } else {
2015 dasm_put(Dst, 9932);
2016 }
2017 dasm_put(Dst, 12892, -BCBIAS_J*4);
2018 if (!sse) {
2019 dasm_put(Dst, 12944);
2020 }
2021 dasm_put(Dst, 12950, Dt6(->hmask), sizeof(Node), Dt6(->node), DtB(->val.it), LJ_TNIL, DtB(->key), DtB(->val));
2022 break;
2023
2024 case BC_ISNEXT:
2025 dasm_put(Dst, 13022, LJ_TFUNC, LJ_TTAB, LJ_TNIL, Dt8(->ffid), FF_next_N, -BCBIAS_J*4, BC_JMP, -BCBIAS_J*4, BC_ITERC);
2026 break;
2027
1987 case BC_VARG: 2028 case BC_VARG:
1988 dasm_put(Dst, 12821, (8+FRAME_VARG), LJ_TNIL, Dt1(->maxstack)); 2029 dasm_put(Dst, 13122, (8+FRAME_VARG), LJ_TNIL, Dt1(->maxstack));
1989 dasm_put(Dst, 12981, Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top)); 2030 dasm_put(Dst, 13282, Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top));
1990 break; 2031 break;
1991 2032
1992 /* -- Returns ----------------------------------------------------------- */ 2033 /* -- Returns ----------------------------------------------------------- */
@@ -1997,30 +2038,30 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
1997 2038
1998 case BC_RET: case BC_RET0: case BC_RET1: 2039 case BC_RET: case BC_RET0: case BC_RET1:
1999 if (op != BC_RET0) { 2040 if (op != BC_RET0) {
2000 dasm_put(Dst, 13047); 2041 dasm_put(Dst, 13348);
2001 } 2042 }
2002 dasm_put(Dst, 13051, FRAME_TYPE); 2043 dasm_put(Dst, 13352, FRAME_TYPE);
2003 switch (op) { 2044 switch (op) {
2004 case BC_RET: 2045 case BC_RET:
2005 dasm_put(Dst, 13070); 2046 dasm_put(Dst, 13371);
2006 break; 2047 break;
2007 case BC_RET1: 2048 case BC_RET1:
2008 dasm_put(Dst, 13122); 2049 dasm_put(Dst, 13423);
2009 /* fallthrough */ 2050 /* fallthrough */
2010 case BC_RET0: 2051 case BC_RET0:
2011 dasm_put(Dst, 13132); 2052 dasm_put(Dst, 13433);
2012 default: 2053 default:
2013 break; 2054 break;
2014 } 2055 }
2015 dasm_put(Dst, 13143, Dt7(->pc), PC2PROTO(k)); 2056 dasm_put(Dst, 13444, Dt7(->pc), PC2PROTO(k));
2016 if (op == BC_RET) { 2057 if (op == BC_RET) {
2017 dasm_put(Dst, 13187, LJ_TNIL); 2058 dasm_put(Dst, 13488, LJ_TNIL);
2018 } else { 2059 } else {
2019 dasm_put(Dst, 13196, LJ_TNIL); 2060 dasm_put(Dst, 13497, LJ_TNIL);
2020 } 2061 }
2021 dasm_put(Dst, 13203, -FRAME_VARG, FRAME_TYPEP); 2062 dasm_put(Dst, 13504, -FRAME_VARG, FRAME_TYPEP);
2022 if (op != BC_RET0) { 2063 if (op != BC_RET0) {
2023 dasm_put(Dst, 13227); 2064 dasm_put(Dst, 13528);
2024 } 2065 }
2025 dasm_put(Dst, 4507); 2066 dasm_put(Dst, 4507);
2026 break; 2067 break;
@@ -2030,7 +2071,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2030 2071
2031 case BC_FORL: 2072 case BC_FORL:
2032#if LJ_HASJIT 2073#if LJ_HASJIT
2033 dasm_put(Dst, 13231, HOTCOUNT_PCMASK, GG_DISP2HOT); 2074 dasm_put(Dst, 13532, HOTCOUNT_PCMASK, GG_DISP2HOT);
2034#endif 2075#endif
2035 break; 2076 break;
2036 2077
@@ -2042,57 +2083,57 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2042 case BC_FORI: 2083 case BC_FORI:
2043 case BC_IFORL: 2084 case BC_IFORL:
2044 vk = (op == BC_IFORL || op == BC_JFORL); 2085 vk = (op == BC_IFORL || op == BC_JFORL);
2045 dasm_put(Dst, 13252); 2086 dasm_put(Dst, 13553);
2046 if (!vk) { 2087 if (!vk) {
2047 dasm_put(Dst, 13256, LJ_TISNUM, LJ_TISNUM); 2088 dasm_put(Dst, 13557, LJ_TISNUM, LJ_TISNUM);
2048 } 2089 }
2049 dasm_put(Dst, 13275); 2090 dasm_put(Dst, 13576);
2050 if (!vk) { 2091 if (!vk) {
2051 dasm_put(Dst, 13279, LJ_TISNUM); 2092 dasm_put(Dst, 13580, LJ_TISNUM);
2052 } 2093 }
2053 if (sse) { 2094 if (sse) {
2054 dasm_put(Dst, 13288); 2095 dasm_put(Dst, 13589);
2055 if (vk) { 2096 if (vk) {
2056 dasm_put(Dst, 13300); 2097 dasm_put(Dst, 13601);
2057 } else { 2098 } else {
2058 dasm_put(Dst, 13319); 2099 dasm_put(Dst, 13620);
2059 } 2100 }
2060 dasm_put(Dst, 13324); 2101 dasm_put(Dst, 13625);
2061 } else { 2102 } else {
2062 dasm_put(Dst, 13337); 2103 dasm_put(Dst, 13638);
2063 if (vk) { 2104 if (vk) {
2064 dasm_put(Dst, 13343); 2105 dasm_put(Dst, 13644);
2065 } else { 2106 } else {
2066 dasm_put(Dst, 13359); 2107 dasm_put(Dst, 13660);
2067 } 2108 }
2068 dasm_put(Dst, 13367); 2109 dasm_put(Dst, 13668);
2069 if (cmov) { 2110 if (cmov) {
2070 dasm_put(Dst, 9470); 2111 dasm_put(Dst, 9470);
2071 } else { 2112 } else {
2072 dasm_put(Dst, 9476); 2113 dasm_put(Dst, 9476);
2073 } 2114 }
2074 if (!cmov) { 2115 if (!cmov) {
2075 dasm_put(Dst, 13372); 2116 dasm_put(Dst, 13673);
2076 } 2117 }
2077 } 2118 }
2078 if (op == BC_FORI) { 2119 if (op == BC_FORI) {
2079 dasm_put(Dst, 13378, -BCBIAS_J*4); 2120 dasm_put(Dst, 13679, -BCBIAS_J*4);
2080 } else if (op == BC_JFORI) { 2121 } else if (op == BC_JFORI) {
2081 dasm_put(Dst, 13388, -BCBIAS_J*4, BC_JLOOP); 2122 dasm_put(Dst, 13689, -BCBIAS_J*4, BC_JLOOP);
2082 } else if (op == BC_IFORL) { 2123 } else if (op == BC_IFORL) {
2083 dasm_put(Dst, 13402, -BCBIAS_J*4); 2124 dasm_put(Dst, 13703, -BCBIAS_J*4);
2084 } else { 2125 } else {
2085 dasm_put(Dst, 13398, BC_JLOOP); 2126 dasm_put(Dst, 13699, BC_JLOOP);
2086 } 2127 }
2087 dasm_put(Dst, 9505); 2128 dasm_put(Dst, 9505);
2088 if (sse) { 2129 if (sse) {
2089 dasm_put(Dst, 13412); 2130 dasm_put(Dst, 13713);
2090 } 2131 }
2091 break; 2132 break;
2092 2133
2093 case BC_ITERL: 2134 case BC_ITERL:
2094#if LJ_HASJIT 2135#if LJ_HASJIT
2095 dasm_put(Dst, 13231, HOTCOUNT_PCMASK, GG_DISP2HOT); 2136 dasm_put(Dst, 13532, HOTCOUNT_PCMASK, GG_DISP2HOT);
2096#endif 2137#endif
2097 break; 2138 break;
2098 2139
@@ -2101,18 +2142,18 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2101 break; 2142 break;
2102#endif 2143#endif
2103 case BC_IITERL: 2144 case BC_IITERL:
2104 dasm_put(Dst, 13423, LJ_TNIL); 2145 dasm_put(Dst, 13724, LJ_TNIL);
2105 if (op == BC_JITERL) { 2146 if (op == BC_JITERL) {
2106 dasm_put(Dst, 13438, BC_JLOOP); 2147 dasm_put(Dst, 13739, BC_JLOOP);
2107 } else { 2148 } else {
2108 dasm_put(Dst, 13452, -BCBIAS_J*4); 2149 dasm_put(Dst, 13753, -BCBIAS_J*4);
2109 } 2150 }
2110 dasm_put(Dst, 9805); 2151 dasm_put(Dst, 9805);
2111 break; 2152 break;
2112 2153
2113 case BC_LOOP: 2154 case BC_LOOP:
2114#if LJ_HASJIT 2155#if LJ_HASJIT
2115 dasm_put(Dst, 13231, HOTCOUNT_PCMASK, GG_DISP2HOT); 2156 dasm_put(Dst, 13532, HOTCOUNT_PCMASK, GG_DISP2HOT);
2116#endif 2157#endif
2117 break; 2158 break;
2118 2159
@@ -2122,12 +2163,12 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2122 2163
2123 case BC_JLOOP: 2164 case BC_JLOOP:
2124#if LJ_HASJIT 2165#if LJ_HASJIT
2125 dasm_put(Dst, 13468, 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); 2166 dasm_put(Dst, 13769, 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);
2126#endif 2167#endif
2127 break; 2168 break;
2128 2169
2129 case BC_JMP: 2170 case BC_JMP:
2130 dasm_put(Dst, 13577, -BCBIAS_J*4); 2171 dasm_put(Dst, 13878, -BCBIAS_J*4);
2131 break; 2172 break;
2132 2173
2133 /* -- Function headers -------------------------------------------------- */ 2174 /* -- Function headers -------------------------------------------------- */
@@ -2141,7 +2182,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2141 2182
2142 case BC_FUNCF: 2183 case BC_FUNCF:
2143#if LJ_HASJIT 2184#if LJ_HASJIT
2144 dasm_put(Dst, 13602, HOTCOUNT_PCMASK, GG_DISP2HOT); 2185 dasm_put(Dst, 13903, HOTCOUNT_PCMASK, GG_DISP2HOT);
2145#endif 2186#endif
2146 case BC_FUNCV: /* NYI: compiled vararg functions. */ 2187 case BC_FUNCV: /* NYI: compiled vararg functions. */
2147 break; 2188 break;
@@ -2151,13 +2192,13 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2151 break; 2192 break;
2152#endif 2193#endif
2153 case BC_IFUNCF: 2194 case BC_IFUNCF:
2154 dasm_put(Dst, 13623, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams)); 2195 dasm_put(Dst, 13924, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams));
2155 if (op == BC_JFUNCF) { 2196 if (op == BC_JFUNCF) {
2156 dasm_put(Dst, 13653, BC_JLOOP); 2197 dasm_put(Dst, 13954, BC_JLOOP);
2157 } else { 2198 } else {
2158 dasm_put(Dst, 9507); 2199 dasm_put(Dst, 9507);
2159 } 2200 }
2160 dasm_put(Dst, 13662, LJ_TNIL); 2201 dasm_put(Dst, 13963, LJ_TNIL);
2161 break; 2202 break;
2162 2203
2163 case BC_JFUNCV: 2204 case BC_JFUNCV:
@@ -2168,30 +2209,30 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2168 break; /* NYI: compiled vararg functions. */ 2209 break; /* NYI: compiled vararg functions. */
2169 2210
2170 case BC_IFUNCV: 2211 case BC_IFUNCV:
2171 dasm_put(Dst, 13684, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL); 2212 dasm_put(Dst, 13985, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL);
2172 if (op == BC_JFUNCV) { 2213 if (op == BC_JFUNCV) {
2173 dasm_put(Dst, 13653, BC_JLOOP); 2214 dasm_put(Dst, 13954, BC_JLOOP);
2174 } else { 2215 } else {
2175 dasm_put(Dst, 13775, -4+PC2PROTO(k)); 2216 dasm_put(Dst, 14076, -4+PC2PROTO(k));
2176 } 2217 }
2177 dasm_put(Dst, 13798, LJ_TNIL); 2218 dasm_put(Dst, 14099, LJ_TNIL);
2178 break; 2219 break;
2179 2220
2180 case BC_FUNCC: 2221 case BC_FUNCC:
2181 case BC_FUNCCW: 2222 case BC_FUNCCW:
2182 dasm_put(Dst, 13820, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top)); 2223 dasm_put(Dst, 14121, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top));
2183 if (op == BC_FUNCC) { 2224 if (op == BC_FUNCC) {
2184 dasm_put(Dst, 13850); 2225 dasm_put(Dst, 14151);
2185 } else { 2226 } else {
2186 dasm_put(Dst, 13854); 2227 dasm_put(Dst, 14155);
2187 } 2228 }
2188 dasm_put(Dst, 13862, DISPATCH_GL(vmstate), ~LJ_VMST_C); 2229 dasm_put(Dst, 14163, DISPATCH_GL(vmstate), ~LJ_VMST_C);
2189 if (op == BC_FUNCC) { 2230 if (op == BC_FUNCC) {
2190 dasm_put(Dst, 13871); 2231 dasm_put(Dst, 14172);
2191 } else { 2232 } else {
2192 dasm_put(Dst, 13875, DISPATCH_GL(wrapf)); 2233 dasm_put(Dst, 14176, DISPATCH_GL(wrapf));
2193 } 2234 }
2194 dasm_put(Dst, 13880, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top)); 2235 dasm_put(Dst, 14181, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top));
2195 break; 2236 break;
2196 2237
2197 /* ---------------------------------------------------------------------- */ 2238 /* ---------------------------------------------------------------------- */
@@ -2219,7 +2260,7 @@ static int build_backend(BuildCtx *ctx)
2219 2260
2220 build_subroutines(ctx, cmov, sse); 2261 build_subroutines(ctx, cmov, sse);
2221 2262
2222 dasm_put(Dst, 13905); 2263 dasm_put(Dst, 14206);
2223 for (op = 0; op < BC__MAX; op++) 2264 for (op = 0; op < BC__MAX; op++)
2224 build_ins(ctx, (BCOp)op, op, cmov, sse); 2265 build_ins(ctx, (BCOp)op, op, cmov, sse);
2225 2266