diff options
Diffstat (limited to 'src/buildvm_x86.h')
-rw-r--r-- | src/buildvm_x86.h | 383 |
1 files changed, 192 insertions, 191 deletions
diff --git a/src/buildvm_x86.h b/src/buildvm_x86.h index e5a43031..6b8f4af4 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 |
15 | static const unsigned char build_actionlist[15233] = { | 15 | static const unsigned char build_actionlist[15260] = { |
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, |
@@ -630,124 +630,125 @@ static const unsigned char build_actionlist[15233] = { | |||
630 | 252,234,129,124,253,194,4,239,15,135,244,251,255,252,242,15,16,4,194,252, | 630 | 252,234,129,124,253,194,4,239,15,135,244,251,255,252,242,15,16,4,194,252, |
631 | 242,15,45,192,252,242,15,42,200,102,15,46,193,255,221,4,194,219,20,36,219, | 631 | 242,15,45,192,252,242,15,42,200,102,15,46,193,255,221,4,194,219,20,36,219, |
632 | 4,36,255,15,133,244,36,59,133,233,15,131,244,36,193,224,3,3,133,233,129,120, | 632 | 4,36,255,15,133,244,36,59,133,233,15,131,244,36,193,224,3,3,133,233,129,120, |
633 | 253,4,239,15,132,244,248,248,1,139,40,139,64,4,137,44,202,137,68,202,4,139, | 633 | 253,4,239,15,132,244,248,139,40,139,64,4,137,44,202,137,68,202,4,248,1,139, |
634 | 6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,2,131,189, | 634 | 6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,2,131,189, |
635 | 233,0,15,132,244,1,139,141,233,252,246,129,233,235,15,132,244,36,15,182,78, | 635 | 233,0,15,132,244,249,139,141,233,252,246,129,233,235,15,132,244,36,15,182, |
636 | 252,253,252,233,244,1,248,5,255,129,124,253,194,4,239,15,133,244,36,139,4, | 636 | 78,252,253,248,3,255,199,68,202,4,237,252,233,244,1,248,5,129,124,253,194, |
637 | 194,252,233,244,157,255,15,182,252,236,15,182,192,252,247,208,139,4,135,129, | 637 | 4,239,15,133,244,36,139,4,194,252,233,244,157,255,15,182,252,236,15,182,192, |
638 | 124,253,252,234,4,239,15,133,244,34,139,44,252,234,248,157,139,141,233,35, | 638 | 252,247,208,139,4,135,129,124,253,252,234,4,239,15,133,244,34,139,44,252, |
639 | 136,233,105,201,239,3,141,233,248,1,129,185,233,239,15,133,244,250,57,129, | 639 | 234,248,157,139,141,233,35,136,233,105,201,239,3,141,233,248,1,129,185,233, |
640 | 233,15,133,244,250,129,121,253,4,239,15,132,244,251,15,182,70,252,253,139, | 640 | 239,15,133,244,250,57,129,233,15,133,244,250,129,121,253,4,239,15,132,244, |
641 | 41,139,73,4,137,44,194,248,2,255,137,76,194,4,139,6,15,182,204,15,182,232, | 641 | 251,15,182,70,252,253,139,41,139,73,4,137,44,194,137,76,194,4,248,2,255,139, |
642 | 131,198,4,193,232,16,252,255,36,171,248,3,15,182,70,252,253,185,237,252,233, | 642 | 6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,3,15,182, |
643 | 244,2,248,4,139,137,233,133,201,15,133,244,1,248,5,139,141,233,133,201,15, | 643 | 70,252,253,199,68,194,4,237,252,233,244,2,248,4,139,137,233,133,201,15,133, |
644 | 132,244,3,252,246,129,233,235,15,133,244,3,252,233,244,34,255,15,182,252, | 644 | 244,1,248,5,139,141,233,133,201,15,132,244,3,252,246,129,233,235,15,133,244, |
645 | 236,15,182,192,129,124,253,252,234,4,239,15,133,244,35,139,44,252,234,59, | 645 | 3,252,233,244,34,255,15,182,252,236,15,182,192,129,124,253,252,234,4,239, |
646 | 133,233,15,131,244,35,193,224,3,3,133,233,129,120,253,4,239,15,132,244,248, | 646 | 15,133,244,35,139,44,252,234,59,133,233,15,131,244,35,193,224,3,3,133,233, |
647 | 248,1,139,40,139,64,4,137,44,202,137,68,202,4,139,6,15,182,204,15,182,232, | 647 | 129,120,253,4,239,15,132,244,248,139,40,139,64,4,137,44,202,137,68,202,4, |
648 | 131,198,4,193,232,16,252,255,36,171,248,2,131,189,233,0,15,132,244,1,139, | 648 | 248,1,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248, |
649 | 141,233,252,246,129,233,235,15,132,244,35,255,15,182,252,236,15,182,192,129, | 649 | 2,131,189,233,0,15,132,244,249,139,141,233,252,246,129,233,235,15,132,244, |
650 | 124,253,252,234,4,239,15,133,244,39,139,44,252,234,129,124,253,194,4,239, | 650 | 35,255,15,182,78,252,253,248,3,199,68,202,4,237,252,233,244,1,255,15,182, |
651 | 15,135,244,251,255,15,133,244,39,59,133,233,15,131,244,39,193,224,3,3,133, | 651 | 252,236,15,182,192,129,124,253,252,234,4,239,15,133,244,39,139,44,252,234, |
652 | 129,124,253,194,4,239,15,135,244,251,255,15,133,244,39,59,133,233,15,131, | ||
653 | 244,39,193,224,3,3,133,233,129,120,253,4,239,15,132,244,249,248,1,252,246, | ||
654 | 133,233,235,15,133,244,253,248,2,139,108,202,4,139,12,202,137,104,4,137,8, | ||
655 | 139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,3,131, | ||
656 | 189,233,0,15,132,244,1,139,141,233,255,252,246,129,233,235,15,132,244,39, | ||
657 | 15,182,78,252,253,252,233,244,1,248,5,129,124,253,194,4,239,15,133,244,39, | ||
658 | 139,4,194,252,233,244,158,248,7,128,165,233,235,139,139,233,137,171,233,137, | ||
659 | 141,233,15,182,78,252,253,252,233,244,2,255,15,182,252,236,15,182,192,252, | ||
660 | 247,208,139,4,135,129,124,253,252,234,4,239,15,133,244,37,139,44,252,234, | ||
661 | 248,158,139,141,233,35,136,233,105,201,239,198,133,233,0,3,141,233,248,1, | ||
662 | 129,185,233,239,15,133,244,251,57,129,233,15,133,244,251,129,121,253,4,239, | ||
663 | 15,132,244,250,248,2,255,252,246,133,233,235,15,133,244,253,248,3,15,182, | ||
664 | 70,252,253,139,108,194,4,139,4,194,137,105,4,137,1,139,6,15,182,204,15,182, | ||
665 | 232,131,198,4,193,232,16,252,255,36,171,248,4,131,189,233,0,15,132,244,2, | ||
666 | 137,76,36,16,139,141,233,252,246,129,233,235,15,132,244,37,139,76,36,16,252, | ||
667 | 233,244,2,248,5,139,137,233,133,201,15,133,244,1,255,139,141,233,133,201, | ||
668 | 15,132,244,252,252,246,129,233,235,15,132,244,37,248,6,137,68,36,16,199,68, | ||
669 | 36,20,237,137,108,36,12,141,68,36,16,137,108,36,4,139,108,36,48,137,68,36, | ||
670 | 8,137,44,36,137,149,233,137,116,36,24,232,251,1,32,139,149,233,139,108,36, | ||
671 | 12,137,193,252,233,244,2,248,7,128,165,233,235,139,131,233,137,171,233,137, | ||
672 | 133,233,252,233,244,3,255,15,182,252,236,15,182,192,129,124,253,252,234,4, | ||
673 | 239,15,133,244,38,139,44,252,234,59,133,233,15,131,244,38,193,224,3,3,133, | ||
652 | 233,129,120,253,4,239,15,132,244,249,248,1,252,246,133,233,235,15,133,244, | 674 | 233,129,120,253,4,239,15,132,244,249,248,1,252,246,133,233,235,15,133,244, |
653 | 253,248,2,139,108,202,4,139,12,202,137,104,4,137,8,139,6,15,182,204,15,182, | 675 | 253,248,2,139,108,202,4,139,12,202,137,104,4,137,8,139,6,15,182,204,15,182, |
654 | 232,131,198,4,193,232,16,252,255,36,171,248,3,131,189,233,0,15,132,244,1, | 676 | 232,131,198,4,193,232,16,252,255,36,171,248,3,131,189,233,0,15,132,244,1, |
655 | 139,141,233,255,252,246,129,233,235,15,132,244,39,15,182,78,252,253,252,233, | 677 | 255,139,141,233,252,246,129,233,235,15,132,244,38,15,182,78,252,253,252,233, |
656 | 244,1,248,5,129,124,253,194,4,239,15,133,244,39,139,4,194,252,233,244,158, | 678 | 244,1,248,7,128,165,233,235,139,139,233,137,171,233,137,141,233,15,182,78, |
657 | 248,7,128,165,233,235,139,139,233,137,171,233,137,141,233,15,182,78,252,253, | 679 | 252,253,252,233,244,2,255,137,124,36,16,139,60,199,248,1,141,12,202,139,105, |
658 | 252,233,244,2,255,15,182,252,236,15,182,192,252,247,208,139,4,135,129,124, | 680 | 252,248,252,246,133,233,235,15,133,244,253,248,2,139,68,36,20,131,232,1,15, |
659 | 253,252,234,4,239,15,133,244,37,139,44,252,234,248,158,139,141,233,35,136, | 681 | 132,244,250,1,252,248,59,133,233,15,135,244,251,41,252,248,193,231,3,3,189, |
660 | 233,105,201,239,198,133,233,0,3,141,233,248,1,129,185,233,239,15,133,244, | 682 | 233,248,3,139,41,137,47,139,105,4,131,193,8,137,111,4,131,199,8,131,232,1, |
661 | 251,57,129,233,15,133,244,251,129,121,253,4,239,15,132,244,250,248,2,255, | 683 | 15,133,244,3,248,4,139,124,36,16,139,6,15,182,204,15,182,232,131,198,4,193, |
662 | 252,246,133,233,235,15,133,244,253,248,3,15,182,70,252,253,139,108,194,4, | 684 | 232,16,252,255,36,171,248,5,137,108,36,4,139,108,36,48,137,149,233,137,68, |
663 | 139,4,194,137,105,4,137,1,139,6,15,182,204,15,182,232,131,198,4,193,232,16, | 685 | 36,8,137,44,36,137,116,36,24,232,251,1,33,139,149,233,15,182,78,252,253,252, |
664 | 252,255,36,171,248,4,131,189,233,0,15,132,244,2,137,76,36,16,139,141,233, | 686 | 233,244,1,248,7,255,128,165,233,235,139,131,233,137,171,233,137,133,233,252, |
665 | 252,246,129,233,235,15,132,244,37,139,76,36,16,252,233,244,2,248,5,139,137, | 687 | 233,244,2,255,3,68,36,20,255,129,124,253,202,4,239,139,44,202,15,133,244, |
666 | 233,133,201,15,133,244,1,255,139,141,233,133,201,15,132,244,252,252,246,129, | 688 | 51,141,84,202,8,137,114,252,252,139,181,233,139,14,15,182,252,233,15,182, |
667 | 233,235,15,132,244,37,248,6,137,68,36,16,199,68,36,20,237,137,108,36,12,141, | 689 | 205,131,198,4,252,255,36,171,255,141,76,202,8,137,215,139,105,252,248,129, |
668 | 68,36,16,137,108,36,4,139,108,36,48,137,68,36,8,137,44,36,137,149,233,137, | 690 | 121,253,252,252,239,15,133,244,28,248,52,139,114,252,252,252,247,198,237, |
669 | 116,36,24,232,251,1,32,139,149,233,139,108,36,12,137,193,252,233,244,2,248, | 691 | 15,133,244,253,248,1,137,106,252,248,137,68,36,20,131,232,1,15,132,244,249, |
670 | 7,128,165,233,235,139,131,233,137,171,233,137,133,233,252,233,244,3,255,15, | 692 | 248,2,139,41,137,47,139,105,4,131,193,8,137,111,4,131,199,8,131,232,1,15, |
671 | 182,252,236,15,182,192,129,124,253,252,234,4,239,15,133,244,38,139,44,252, | 693 | 133,244,2,139,106,252,248,248,3,139,68,36,20,128,189,233,1,15,135,244,251, |
672 | 234,59,133,233,15,131,244,38,193,224,3,3,133,233,129,120,253,4,239,15,132, | 694 | 248,4,139,181,233,139,14,15,182,252,233,15,182,205,131,198,4,252,255,36,171, |
673 | 244,249,248,1,252,246,133,233,235,15,133,244,253,248,2,139,108,202,4,139, | 695 | 248,5,255,252,247,198,237,15,133,244,4,15,182,78,252,253,252,247,209,141, |
674 | 12,202,137,104,4,137,8,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252, | 696 | 12,202,139,121,252,248,139,191,233,139,191,233,252,233,244,4,248,7,129,252, |
675 | 255,36,171,248,3,131,189,233,0,15,132,244,1,255,139,141,233,252,246,129,233, | 697 | 238,239,252,247,198,237,15,133,244,254,41,252,242,137,215,139,114,252,252, |
676 | 235,15,132,244,38,15,182,78,252,253,252,233,244,1,248,7,128,165,233,235,139, | 698 | 252,233,244,1,248,8,129,198,239,252,233,244,1,255,141,76,202,8,139,105,232, |
677 | 139,233,137,171,233,137,141,233,15,182,78,252,253,252,233,244,2,255,137,124, | 699 | 139,65,252,236,137,41,137,65,4,139,105,252,240,139,65,252,244,137,105,8,137, |
678 | 36,16,139,60,199,248,1,141,12,202,139,105,252,248,252,246,133,233,235,15, | 700 | 65,12,139,105,224,139,65,228,137,105,252,248,137,65,252,252,129,252,248,239, |
679 | 133,244,253,248,2,139,68,36,20,131,232,1,15,132,244,250,1,252,248,59,133, | 701 | 184,237,15,133,244,28,137,202,137,114,252,252,139,181,233,139,14,15,182,252, |
680 | 233,15,135,244,251,41,252,248,193,231,3,3,189,233,248,3,139,41,137,47,139, | 702 | 233,15,182,205,131,198,4,252,255,36,171,255,15,182,252,236,15,182,192,137, |
681 | 105,4,131,193,8,137,111,4,131,199,8,131,232,1,15,133,244,3,248,4,139,124, | 703 | 124,36,16,141,188,253,194,233,141,12,202,43,122,252,252,133,252,237,15,132, |
682 | 36,16,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248, | 704 | 244,251,141,108,252,233,252,248,57,215,15,131,244,248,248,1,139,71,252,248, |
683 | 5,137,108,36,4,139,108,36,48,137,149,233,137,68,36,8,137,44,36,137,116,36, | 705 | 137,1,139,71,252,252,131,199,8,137,65,4,131,193,8,57,252,233,15,131,244,249, |
684 | 24,232,251,1,33,139,149,233,15,182,78,252,253,252,233,244,1,248,7,255,128, | 706 | 57,215,15,130,244,1,248,2,199,65,4,237,131,193,8,57,252,233,15,130,244,2, |
685 | 165,233,235,139,131,233,137,171,233,137,133,233,252,233,244,2,255,3,68,36, | 707 | 248,3,139,124,36,16,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252, |
686 | 20,255,129,124,253,202,4,239,139,44,202,15,133,244,51,141,84,202,8,137,114, | 708 | 255,36,171,248,5,199,68,36,20,1,0,0,0,137,208,41,252,248,15,134,244,3,137, |
687 | 252,252,139,181,233,139,14,15,182,252,233,15,182,205,131,198,4,252,255,36, | 709 | 197,193,252,237,3,131,197,1,137,108,36,20,139,108,36,48,1,200,59,133,233, |
688 | 171,255,141,76,202,8,137,215,139,105,252,248,129,121,253,252,252,239,15,133, | 710 | 15,135,244,253,248,6,255,139,71,252,248,137,1,139,71,252,252,131,199,8,137, |
689 | 244,28,248,52,139,114,252,252,252,247,198,237,15,133,244,253,248,1,137,106, | 711 | 65,4,131,193,8,57,215,15,130,244,6,252,233,244,3,248,7,137,149,233,137,141, |
690 | 252,248,137,68,36,20,131,232,1,15,132,244,249,248,2,139,41,137,47,139,105, | 712 | 233,137,116,36,24,41,215,139,84,36,20,131,252,234,1,137,252,233,232,251,1, |
691 | 4,137,111,4,131,199,8,131,193,8,131,232,1,15,133,244,2,139,106,252,248,248, | 713 | 0,139,149,233,139,141,233,1,215,252,233,244,6,255,193,225,3,255,248,1,139, |
692 | 3,139,68,36,20,128,189,233,1,15,135,244,251,248,4,139,181,233,139,14,15,182, | 714 | 114,252,252,137,68,36,20,252,247,198,237,15,133,244,253,255,248,13,137,215, |
693 | 252,233,15,182,205,131,198,4,252,255,36,171,248,5,255,252,247,198,237,15, | 715 | 131,232,1,15,132,244,249,248,2,139,44,15,137,111,252,248,139,108,15,4,137, |
694 | 133,244,4,15,182,78,252,253,252,247,209,141,12,202,139,121,252,248,139,191, | 716 | 111,252,252,131,199,8,131,232,1,15,133,244,2,248,3,139,68,36,20,15,182,110, |
695 | 233,139,191,233,252,233,244,4,248,7,129,252,238,239,252,247,198,237,15,133, | 717 | 252,255,248,5,57,197,15,135,244,252,255,139,108,10,4,137,106,252,252,139, |
696 | 244,254,41,252,242,137,215,139,114,252,252,252,233,244,1,248,8,129,198,239, | 718 | 44,10,137,106,252,248,255,248,5,56,70,252,255,15,135,244,252,255,15,182,78, |
697 | 252,233,244,1,255,141,76,202,8,139,105,232,139,65,252,236,137,41,137,65,4, | 719 | 252,253,252,247,209,141,20,202,139,122,252,248,139,191,233,139,191,233,139, |
698 | 139,105,252,240,139,65,252,244,137,105,8,137,65,12,139,105,224,139,65,228, | 720 | 6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,6,255,199, |
699 | 137,105,252,248,137,65,252,252,129,252,248,239,184,237,15,133,244,28,137, | 721 | 71,252,252,237,131,199,8,255,199,68,194,252,244,237,255,131,192,1,252,233, |
700 | 202,137,114,252,252,139,181,233,139,14,15,182,252,233,15,182,205,131,198, | 722 | 244,5,248,7,141,174,233,252,247,197,237,15,133,244,14,41,252,234,255,1,252, |
701 | 4,252,255,36,171,255,15,182,252,236,15,182,192,137,124,36,16,141,188,253, | 723 | 233,255,137,252,245,209,252,237,129,229,239,102,131,172,253,43,233,1,15,132, |
702 | 194,233,141,12,202,43,122,252,252,133,252,237,15,132,244,251,141,108,252, | 724 | 244,140,255,141,12,202,255,129,121,253,4,239,15,135,244,53,129,121,253,12, |
703 | 233,252,248,57,215,15,131,244,248,248,1,139,71,252,248,137,1,139,71,252,252, | 725 | 239,15,135,244,53,255,139,105,20,255,129,252,253,239,15,135,244,53,255,252, |
704 | 131,199,8,137,65,4,131,193,8,57,252,233,15,131,244,249,57,215,15,130,244, | 726 | 242,15,16,1,252,242,15,16,73,8,255,252,242,15,88,65,16,252,242,15,17,1,133, |
705 | 1,248,2,199,65,4,237,131,193,8,57,252,233,15,130,244,2,248,3,139,124,36,16, | 727 | 252,237,15,136,244,249,255,15,140,244,249,255,102,15,46,200,248,1,252,242, |
706 | 139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,5,199, | 728 | 15,17,65,24,255,221,65,8,221,1,255,220,65,16,221,17,221,81,24,133,252,237, |
707 | 68,36,20,1,0,0,0,137,208,41,252,248,15,134,244,3,137,197,193,252,237,3,131, | 729 | 15,136,244,247,255,221,81,24,15,140,244,247,255,217,201,248,1,255,15,183, |
708 | 197,1,137,108,36,20,139,108,36,48,1,200,59,133,233,15,135,244,253,248,6,255, | 730 | 70,252,254,255,15,131,244,248,141,180,253,134,233,255,141,180,253,134,233, |
709 | 139,71,252,248,137,1,139,71,252,252,131,199,8,137,65,4,131,193,8,57,215,15, | 731 | 15,183,70,252,254,15,131,245,255,15,130,244,248,141,180,253,134,233,255,248, |
710 | 130,244,6,252,233,244,3,248,7,137,149,233,137,141,233,137,116,36,24,41,215, | 732 | 3,102,15,46,193,252,233,244,1,255,141,12,202,139,105,4,129,252,253,239,15, |
711 | 139,84,36,20,131,252,234,1,137,252,233,232,251,1,0,139,149,233,139,141,233, | 733 | 132,244,247,255,137,105,252,252,139,41,137,105,252,248,252,233,245,255,141, |
712 | 1,215,252,233,244,6,255,193,225,3,255,248,1,139,114,252,252,137,68,36,20, | 734 | 180,253,134,233,139,1,137,105,252,252,137,65,252,248,255,139,139,233,139, |
713 | 252,247,198,237,15,133,244,253,255,248,13,137,215,131,232,1,15,132,244,249, | 735 | 4,129,139,128,233,139,108,36,48,137,147,233,137,171,233,252,255,224,255,141, |
714 | 248,2,139,44,15,137,111,252,248,139,108,15,4,137,111,252,252,131,199,8,131, | 736 | 180,253,134,233,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255, |
715 | 232,1,15,133,244,2,248,3,139,68,36,20,15,182,110,252,255,248,5,57,197,15, | 737 | 36,171,255,137,252,245,209,252,237,129,229,239,102,131,172,253,43,233,1,15, |
716 | 135,244,252,255,139,108,10,4,137,106,252,252,139,44,10,137,106,252,248,255, | 738 | 132,244,142,255,139,190,233,139,108,36,48,141,12,202,59,141,233,15,135,244, |
717 | 248,5,56,70,252,255,15,135,244,252,255,15,182,78,252,253,252,247,209,141, | 739 | 23,15,182,142,233,57,200,15,134,244,249,248,2,255,15,183,70,252,254,252,233, |
718 | 20,202,139,122,252,248,139,191,233,139,191,233,139,6,15,182,204,15,182,232, | 740 | 245,255,248,3,199,68,194,252,252,237,131,192,1,57,200,15,134,244,3,252,233, |
719 | 131,198,4,193,232,16,252,255,36,171,248,6,255,199,71,252,252,237,131,199, | 741 | 244,2,255,141,44,197,237,141,4,194,139,122,252,248,137,104,252,252,137,120, |
720 | 8,255,199,68,194,252,244,237,255,131,192,1,252,233,244,5,248,7,141,174,233, | 742 | 252,248,139,108,36,48,141,12,200,59,141,233,15,135,244,22,137,209,137,194, |
721 | 252,247,197,237,15,133,244,14,41,252,234,255,1,252,233,255,137,252,245,209, | 743 | 15,182,174,233,133,252,237,15,132,244,248,248,1,131,193,8,57,209,15,131,244, |
722 | 252,237,129,229,239,102,131,172,253,43,233,1,15,132,244,140,255,141,12,202, | 744 | 249,139,121,252,248,137,56,139,121,252,252,137,120,4,131,192,8,199,65,252, |
723 | 255,129,121,253,4,239,15,135,244,53,129,121,253,12,239,15,135,244,53,255, | 745 | 252,237,131,252,237,1,15,133,244,1,248,2,255,139,190,233,139,6,15,182,204, |
724 | 139,105,20,255,129,252,253,239,15,135,244,53,255,252,242,15,16,1,252,242, | 746 | 15,182,232,131,198,4,193,232,16,252,255,36,171,255,248,3,199,64,4,237,131, |
725 | 15,16,73,8,255,252,242,15,88,65,16,252,242,15,17,1,133,252,237,15,136,244, | 747 | 192,8,131,252,237,1,15,133,244,3,252,233,244,2,255,139,106,252,248,139,189, |
726 | 249,255,15,140,244,249,255,102,15,46,200,248,1,252,242,15,17,65,24,255,221, | 748 | 233,139,108,36,48,141,68,194,252,248,137,149,233,141,136,233,59,141,233,137, |
727 | 65,8,221,1,255,220,65,16,221,17,221,81,24,133,252,237,15,136,244,247,255, | 749 | 133,233,255,137,44,36,255,137,124,36,4,137,44,36,255,15,135,244,21,199,131, |
728 | 221,81,24,15,140,244,247,255,217,201,248,1,255,15,183,70,252,254,255,15,131, | 750 | 233,237,255,252,255,215,255,252,255,147,233,255,199,131,233,237,139,149,233, |
729 | 244,248,141,180,253,134,233,255,141,180,253,134,233,15,183,70,252,254,15, | 751 | 141,12,194,252,247,217,3,141,233,139,114,252,252,252,233,244,12,255,254,0 |
730 | 131,245,255,15,130,244,248,141,180,253,134,233,255,248,3,102,15,46,193,252, | ||
731 | 233,244,1,255,141,12,202,139,105,4,129,252,253,239,15,132,244,247,255,137, | ||
732 | 105,252,252,139,41,137,105,252,248,252,233,245,255,141,180,253,134,233,139, | ||
733 | 1,137,105,252,252,137,65,252,248,255,139,139,233,139,4,129,139,128,233,139, | ||
734 | 108,36,48,137,147,233,137,171,233,252,255,224,255,141,180,253,134,233,139, | ||
735 | 6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,137,252,245, | ||
736 | 209,252,237,129,229,239,102,131,172,253,43,233,1,15,132,244,142,255,139,190, | ||
737 | 233,139,108,36,48,141,12,202,59,141,233,15,135,244,23,15,182,142,233,57,200, | ||
738 | 15,134,244,249,248,2,255,15,183,70,252,254,252,233,245,255,248,3,199,68,194, | ||
739 | 252,252,237,131,192,1,57,200,15,134,244,3,252,233,244,2,255,141,44,197,237, | ||
740 | 141,4,194,139,122,252,248,137,104,252,252,137,120,252,248,139,108,36,48,141, | ||
741 | 12,200,59,141,233,15,135,244,22,137,209,137,194,15,182,174,233,133,252,237, | ||
742 | 15,132,244,248,248,1,131,193,8,57,209,15,131,244,249,139,121,252,248,137, | ||
743 | 56,139,121,252,252,137,120,4,131,192,8,199,65,252,252,237,131,252,237,1,15, | ||
744 | 133,244,1,248,2,255,139,190,233,139,6,15,182,204,15,182,232,131,198,4,193, | ||
745 | 232,16,252,255,36,171,255,248,3,199,64,4,237,131,192,8,131,252,237,1,15,133, | ||
746 | 244,3,252,233,244,2,255,139,106,252,248,139,189,233,139,108,36,48,141,68, | ||
747 | 194,252,248,137,149,233,141,136,233,59,141,233,137,133,233,255,137,44,36, | ||
748 | 255,137,124,36,4,137,44,36,255,15,135,244,21,199,131,233,237,255,252,255, | ||
749 | 215,255,252,255,147,233,255,199,131,233,237,139,149,233,141,12,194,252,247, | ||
750 | 217,3,141,233,139,114,252,252,252,233,244,12,255,254,0 | ||
751 | }; | 752 | }; |
752 | 753 | ||
753 | enum { | 754 | enum { |
@@ -2050,19 +2051,19 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2050 | dasm_put(Dst, 2527); | 2051 | dasm_put(Dst, 2527); |
2051 | } | 2052 | } |
2052 | dasm_put(Dst, 12787, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); | 2053 | dasm_put(Dst, 12787, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); |
2053 | dasm_put(Dst, 12879, LJ_TSTR); | 2054 | dasm_put(Dst, 12875, LJ_TNIL, LJ_TSTR); |
2054 | break; | 2055 | break; |
2055 | case BC_TGETS: | 2056 | case BC_TGETS: |
2056 | dasm_put(Dst, 12897, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); | 2057 | dasm_put(Dst, 12904, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); |
2057 | dasm_put(Dst, 12981, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); | 2058 | dasm_put(Dst, 12992, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); |
2058 | break; | 2059 | break; |
2059 | case BC_TGETB: | 2060 | case BC_TGETB: |
2060 | dasm_put(Dst, 13052, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); | 2061 | dasm_put(Dst, 13062, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); |
2061 | dasm_put(Dst, 11389); | 2062 | dasm_put(Dst, 13161, LJ_TNIL); |
2062 | break; | 2063 | break; |
2063 | 2064 | ||
2064 | case BC_TSETV: | 2065 | case BC_TSETV: |
2065 | dasm_put(Dst, 13151, LJ_TTAB, LJ_TISNUM); | 2066 | dasm_put(Dst, 13178, LJ_TTAB, LJ_TISNUM); |
2066 | if (sse) { | 2067 | if (sse) { |
2067 | dasm_put(Dst, 12756); | 2068 | dasm_put(Dst, 12756); |
2068 | } else { | 2069 | } else { |
@@ -2074,22 +2075,22 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2074 | } | 2075 | } |
2075 | dasm_put(Dst, 2527); | 2076 | dasm_put(Dst, 2527); |
2076 | } | 2077 | } |
2077 | dasm_put(Dst, 13184, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable)); | 2078 | dasm_put(Dst, 13211, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable)); |
2078 | dasm_put(Dst, 13267, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); | 2079 | dasm_put(Dst, 13294, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); |
2079 | break; | 2080 | break; |
2080 | case BC_TSETS: | 2081 | case BC_TSETS: |
2081 | dasm_put(Dst, 13329, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); | 2082 | dasm_put(Dst, 13356, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); |
2082 | dasm_put(Dst, 13404, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next)); | 2083 | dasm_put(Dst, 13431, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next)); |
2083 | dasm_put(Dst, 13496, 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)); | 2084 | dasm_put(Dst, 13523, 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)); |
2084 | break; | 2085 | break; |
2085 | case BC_TSETB: | 2086 | case BC_TSETB: |
2086 | dasm_put(Dst, 13592, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable)); | 2087 | dasm_put(Dst, 13619, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable)); |
2087 | dasm_put(Dst, 13690, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); | 2088 | dasm_put(Dst, 13717, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); |
2088 | break; | 2089 | break; |
2089 | 2090 | ||
2090 | case BC_TSETM: | 2091 | case BC_TSETM: |
2091 | dasm_put(Dst, 13736, Dt6(->marked), LJ_GC_BLACK, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base)); | 2092 | dasm_put(Dst, 13763, Dt6(->marked), LJ_GC_BLACK, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base)); |
2092 | dasm_put(Dst, 13885, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); | 2093 | dasm_put(Dst, 13912, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); |
2093 | break; | 2094 | break; |
2094 | 2095 | ||
2095 | /* -- Calls and vararg handling ----------------------------------------- */ | 2096 | /* -- Calls and vararg handling ----------------------------------------- */ |
@@ -2097,60 +2098,60 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2097 | case BC_CALL: case BC_CALLM: | 2098 | case BC_CALL: case BC_CALLM: |
2098 | dasm_put(Dst, 11403); | 2099 | dasm_put(Dst, 11403); |
2099 | if (op == BC_CALLM) { | 2100 | if (op == BC_CALLM) { |
2100 | dasm_put(Dst, 13903); | 2101 | dasm_put(Dst, 13930); |
2101 | } | 2102 | } |
2102 | dasm_put(Dst, 13908, LJ_TFUNC, Dt7(->pc)); | 2103 | dasm_put(Dst, 13935, LJ_TFUNC, Dt7(->pc)); |
2103 | break; | 2104 | break; |
2104 | 2105 | ||
2105 | case BC_CALLMT: | 2106 | case BC_CALLMT: |
2106 | dasm_put(Dst, 13903); | 2107 | dasm_put(Dst, 13930); |
2107 | break; | 2108 | break; |
2108 | case BC_CALLT: | 2109 | case BC_CALLT: |
2109 | dasm_put(Dst, 13949, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->pc)); | 2110 | dasm_put(Dst, 13976, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->pc)); |
2110 | dasm_put(Dst, 14067, FRAME_TYPE, Dt7(->pc), PC2PROTO(k), FRAME_VARG, FRAME_TYPEP, FRAME_VARG); | 2111 | dasm_put(Dst, 14094, FRAME_TYPE, Dt7(->pc), PC2PROTO(k), FRAME_VARG, FRAME_TYPEP, FRAME_VARG); |
2111 | break; | 2112 | break; |
2112 | 2113 | ||
2113 | case BC_ITERC: | 2114 | case BC_ITERC: |
2114 | dasm_put(Dst, 14137, LJ_TFUNC, 2+1, Dt7(->pc)); | 2115 | dasm_put(Dst, 14164, LJ_TFUNC, 2+1, Dt7(->pc)); |
2115 | break; | 2116 | break; |
2116 | 2117 | ||
2117 | case BC_VARG: | 2118 | case BC_VARG: |
2118 | dasm_put(Dst, 14217, (8+FRAME_VARG), LJ_TNIL, Dt1(->maxstack)); | 2119 | dasm_put(Dst, 14244, (8+FRAME_VARG), LJ_TNIL, Dt1(->maxstack)); |
2119 | dasm_put(Dst, 14381, Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top)); | 2120 | dasm_put(Dst, 14408, Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top)); |
2120 | break; | 2121 | break; |
2121 | 2122 | ||
2122 | /* -- Returns ----------------------------------------------------------- */ | 2123 | /* -- Returns ----------------------------------------------------------- */ |
2123 | 2124 | ||
2124 | case BC_RETM: | 2125 | case BC_RETM: |
2125 | dasm_put(Dst, 13903); | 2126 | dasm_put(Dst, 13930); |
2126 | break; | 2127 | break; |
2127 | 2128 | ||
2128 | case BC_RET: case BC_RET0: case BC_RET1: | 2129 | case BC_RET: case BC_RET0: case BC_RET1: |
2129 | if (op != BC_RET0) { | 2130 | if (op != BC_RET0) { |
2130 | dasm_put(Dst, 14452); | 2131 | dasm_put(Dst, 14479); |
2131 | } | 2132 | } |
2132 | dasm_put(Dst, 14456, FRAME_TYPE); | 2133 | dasm_put(Dst, 14483, FRAME_TYPE); |
2133 | switch (op) { | 2134 | switch (op) { |
2134 | case BC_RET: | 2135 | case BC_RET: |
2135 | dasm_put(Dst, 14475); | 2136 | dasm_put(Dst, 14502); |
2136 | break; | 2137 | break; |
2137 | case BC_RET1: | 2138 | case BC_RET1: |
2138 | dasm_put(Dst, 14533); | 2139 | dasm_put(Dst, 14560); |
2139 | /* fallthrough */ | 2140 | /* fallthrough */ |
2140 | case BC_RET0: | 2141 | case BC_RET0: |
2141 | dasm_put(Dst, 14549); | 2142 | dasm_put(Dst, 14576); |
2142 | default: | 2143 | default: |
2143 | break; | 2144 | break; |
2144 | } | 2145 | } |
2145 | dasm_put(Dst, 14560, Dt7(->pc), PC2PROTO(k)); | 2146 | dasm_put(Dst, 14587, Dt7(->pc), PC2PROTO(k)); |
2146 | if (op == BC_RET) { | 2147 | if (op == BC_RET) { |
2147 | dasm_put(Dst, 14602, LJ_TNIL); | 2148 | dasm_put(Dst, 14629, LJ_TNIL); |
2148 | } else { | 2149 | } else { |
2149 | dasm_put(Dst, 14611, LJ_TNIL); | 2150 | dasm_put(Dst, 14638, LJ_TNIL); |
2150 | } | 2151 | } |
2151 | dasm_put(Dst, 14618, -FRAME_VARG, FRAME_TYPEP); | 2152 | dasm_put(Dst, 14645, -FRAME_VARG, FRAME_TYPEP); |
2152 | if (op != BC_RET0) { | 2153 | if (op != BC_RET0) { |
2153 | dasm_put(Dst, 14642); | 2154 | dasm_put(Dst, 14669); |
2154 | } | 2155 | } |
2155 | dasm_put(Dst, 4689); | 2156 | dasm_put(Dst, 4689); |
2156 | break; | 2157 | break; |
@@ -2160,7 +2161,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2160 | 2161 | ||
2161 | case BC_FORL: | 2162 | case BC_FORL: |
2162 | #if LJ_HASJIT | 2163 | #if LJ_HASJIT |
2163 | dasm_put(Dst, 14646, HOTCOUNT_PCMASK, GG_DISP2HOT); | 2164 | dasm_put(Dst, 14673, HOTCOUNT_PCMASK, GG_DISP2HOT); |
2164 | #endif | 2165 | #endif |
2165 | break; | 2166 | break; |
2166 | 2167 | ||
@@ -2172,57 +2173,57 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2172 | case BC_FORI: | 2173 | case BC_FORI: |
2173 | case BC_IFORL: | 2174 | case BC_IFORL: |
2174 | vk = (op == BC_IFORL || op == BC_JFORL); | 2175 | vk = (op == BC_IFORL || op == BC_JFORL); |
2175 | dasm_put(Dst, 14667); | 2176 | dasm_put(Dst, 14694); |
2176 | if (!vk) { | 2177 | if (!vk) { |
2177 | dasm_put(Dst, 14671, LJ_TISNUM, LJ_TISNUM); | 2178 | dasm_put(Dst, 14698, LJ_TISNUM, LJ_TISNUM); |
2178 | } | 2179 | } |
2179 | dasm_put(Dst, 14690); | 2180 | dasm_put(Dst, 14717); |
2180 | if (!vk) { | 2181 | if (!vk) { |
2181 | dasm_put(Dst, 14694, LJ_TISNUM); | 2182 | dasm_put(Dst, 14721, LJ_TISNUM); |
2182 | } | 2183 | } |
2183 | if (sse) { | 2184 | if (sse) { |
2184 | dasm_put(Dst, 14703); | 2185 | dasm_put(Dst, 14730); |
2185 | if (vk) { | 2186 | if (vk) { |
2186 | dasm_put(Dst, 14715); | 2187 | dasm_put(Dst, 14742); |
2187 | } else { | 2188 | } else { |
2188 | dasm_put(Dst, 14734); | 2189 | dasm_put(Dst, 14761); |
2189 | } | 2190 | } |
2190 | dasm_put(Dst, 14739); | 2191 | dasm_put(Dst, 14766); |
2191 | } else { | 2192 | } else { |
2192 | dasm_put(Dst, 14752); | 2193 | dasm_put(Dst, 14779); |
2193 | if (vk) { | 2194 | if (vk) { |
2194 | dasm_put(Dst, 14758); | 2195 | dasm_put(Dst, 14785); |
2195 | } else { | 2196 | } else { |
2196 | dasm_put(Dst, 14774); | 2197 | dasm_put(Dst, 14801); |
2197 | } | 2198 | } |
2198 | dasm_put(Dst, 14782); | 2199 | dasm_put(Dst, 14809); |
2199 | if (cmov) { | 2200 | if (cmov) { |
2200 | dasm_put(Dst, 10818); | 2201 | dasm_put(Dst, 10818); |
2201 | } else { | 2202 | } else { |
2202 | dasm_put(Dst, 10824); | 2203 | dasm_put(Dst, 10824); |
2203 | } | 2204 | } |
2204 | if (!cmov) { | 2205 | if (!cmov) { |
2205 | dasm_put(Dst, 14787); | 2206 | dasm_put(Dst, 14814); |
2206 | } | 2207 | } |
2207 | } | 2208 | } |
2208 | if (op == BC_FORI) { | 2209 | if (op == BC_FORI) { |
2209 | dasm_put(Dst, 14793, -BCBIAS_J*4); | 2210 | dasm_put(Dst, 14820, -BCBIAS_J*4); |
2210 | } else if (op == BC_JFORI) { | 2211 | } else if (op == BC_JFORI) { |
2211 | dasm_put(Dst, 14803, -BCBIAS_J*4, BC_JLOOP); | 2212 | dasm_put(Dst, 14830, -BCBIAS_J*4, BC_JLOOP); |
2212 | } else if (op == BC_IFORL) { | 2213 | } else if (op == BC_IFORL) { |
2213 | dasm_put(Dst, 14817, -BCBIAS_J*4); | 2214 | dasm_put(Dst, 14844, -BCBIAS_J*4); |
2214 | } else { | 2215 | } else { |
2215 | dasm_put(Dst, 14813, BC_JLOOP); | 2216 | dasm_put(Dst, 14840, BC_JLOOP); |
2216 | } | 2217 | } |
2217 | dasm_put(Dst, 10853); | 2218 | dasm_put(Dst, 10853); |
2218 | if (sse) { | 2219 | if (sse) { |
2219 | dasm_put(Dst, 14827); | 2220 | dasm_put(Dst, 14854); |
2220 | } | 2221 | } |
2221 | break; | 2222 | break; |
2222 | 2223 | ||
2223 | case BC_ITERL: | 2224 | case BC_ITERL: |
2224 | #if LJ_HASJIT | 2225 | #if LJ_HASJIT |
2225 | dasm_put(Dst, 14646, HOTCOUNT_PCMASK, GG_DISP2HOT); | 2226 | dasm_put(Dst, 14673, HOTCOUNT_PCMASK, GG_DISP2HOT); |
2226 | #endif | 2227 | #endif |
2227 | break; | 2228 | break; |
2228 | 2229 | ||
@@ -2231,18 +2232,18 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2231 | break; | 2232 | break; |
2232 | #endif | 2233 | #endif |
2233 | case BC_IITERL: | 2234 | case BC_IITERL: |
2234 | dasm_put(Dst, 14838, LJ_TNIL); | 2235 | dasm_put(Dst, 14865, LJ_TNIL); |
2235 | if (op == BC_JITERL) { | 2236 | if (op == BC_JITERL) { |
2236 | dasm_put(Dst, 14853, BC_JLOOP); | 2237 | dasm_put(Dst, 14880, BC_JLOOP); |
2237 | } else { | 2238 | } else { |
2238 | dasm_put(Dst, 14867, -BCBIAS_J*4); | 2239 | dasm_put(Dst, 14894, -BCBIAS_J*4); |
2239 | } | 2240 | } |
2240 | dasm_put(Dst, 11150); | 2241 | dasm_put(Dst, 11150); |
2241 | break; | 2242 | break; |
2242 | 2243 | ||
2243 | case BC_LOOP: | 2244 | case BC_LOOP: |
2244 | #if LJ_HASJIT | 2245 | #if LJ_HASJIT |
2245 | dasm_put(Dst, 14646, HOTCOUNT_PCMASK, GG_DISP2HOT); | 2246 | dasm_put(Dst, 14673, HOTCOUNT_PCMASK, GG_DISP2HOT); |
2246 | #endif | 2247 | #endif |
2247 | break; | 2248 | break; |
2248 | 2249 | ||
@@ -2252,12 +2253,12 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2252 | 2253 | ||
2253 | case BC_JLOOP: | 2254 | case BC_JLOOP: |
2254 | #if LJ_HASJIT | 2255 | #if LJ_HASJIT |
2255 | dasm_put(Dst, 14883, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L)); | 2256 | dasm_put(Dst, 14910, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L)); |
2256 | #endif | 2257 | #endif |
2257 | break; | 2258 | break; |
2258 | 2259 | ||
2259 | case BC_JMP: | 2260 | case BC_JMP: |
2260 | dasm_put(Dst, 14906, -BCBIAS_J*4); | 2261 | dasm_put(Dst, 14933, -BCBIAS_J*4); |
2261 | break; | 2262 | break; |
2262 | 2263 | ||
2263 | /* -- Function headers -------------------------------------------------- */ | 2264 | /* -- Function headers -------------------------------------------------- */ |
@@ -2271,7 +2272,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2271 | 2272 | ||
2272 | case BC_FUNCF: | 2273 | case BC_FUNCF: |
2273 | #if LJ_HASJIT | 2274 | #if LJ_HASJIT |
2274 | dasm_put(Dst, 14930, HOTCOUNT_PCMASK, GG_DISP2HOT); | 2275 | dasm_put(Dst, 14957, HOTCOUNT_PCMASK, GG_DISP2HOT); |
2275 | #endif | 2276 | #endif |
2276 | case BC_FUNCV: /* NYI: compiled vararg functions. */ | 2277 | case BC_FUNCV: /* NYI: compiled vararg functions. */ |
2277 | break; | 2278 | break; |
@@ -2281,13 +2282,13 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2281 | break; | 2282 | break; |
2282 | #endif | 2283 | #endif |
2283 | case BC_IFUNCF: | 2284 | case BC_IFUNCF: |
2284 | dasm_put(Dst, 14951, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams)); | 2285 | dasm_put(Dst, 14978, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams)); |
2285 | if (op == BC_JFUNCF) { | 2286 | if (op == BC_JFUNCF) { |
2286 | dasm_put(Dst, 14981, BC_JLOOP); | 2287 | dasm_put(Dst, 15008, BC_JLOOP); |
2287 | } else { | 2288 | } else { |
2288 | dasm_put(Dst, 10855); | 2289 | dasm_put(Dst, 10855); |
2289 | } | 2290 | } |
2290 | dasm_put(Dst, 14990, LJ_TNIL); | 2291 | dasm_put(Dst, 15017, LJ_TNIL); |
2291 | break; | 2292 | break; |
2292 | 2293 | ||
2293 | case BC_JFUNCV: | 2294 | case BC_JFUNCV: |
@@ -2298,30 +2299,30 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2298 | break; /* NYI: compiled vararg functions. */ | 2299 | break; /* NYI: compiled vararg functions. */ |
2299 | 2300 | ||
2300 | case BC_IFUNCV: | 2301 | case BC_IFUNCV: |
2301 | dasm_put(Dst, 15012, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL); | 2302 | dasm_put(Dst, 15039, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL); |
2302 | if (op == BC_JFUNCV) { | 2303 | if (op == BC_JFUNCV) { |
2303 | dasm_put(Dst, 14981, BC_JLOOP); | 2304 | dasm_put(Dst, 15008, BC_JLOOP); |
2304 | } else { | 2305 | } else { |
2305 | dasm_put(Dst, 15103, -4+PC2PROTO(k)); | 2306 | dasm_put(Dst, 15130, -4+PC2PROTO(k)); |
2306 | } | 2307 | } |
2307 | dasm_put(Dst, 15125, LJ_TNIL); | 2308 | dasm_put(Dst, 15152, LJ_TNIL); |
2308 | break; | 2309 | break; |
2309 | 2310 | ||
2310 | case BC_FUNCC: | 2311 | case BC_FUNCC: |
2311 | case BC_FUNCCW: | 2312 | case BC_FUNCCW: |
2312 | dasm_put(Dst, 15147, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top)); | 2313 | dasm_put(Dst, 15174, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top)); |
2313 | if (op == BC_FUNCC) { | 2314 | if (op == BC_FUNCC) { |
2314 | dasm_put(Dst, 15176); | 2315 | dasm_put(Dst, 15203); |
2315 | } else { | 2316 | } else { |
2316 | dasm_put(Dst, 15180); | 2317 | dasm_put(Dst, 15207); |
2317 | } | 2318 | } |
2318 | dasm_put(Dst, 15188, DISPATCH_GL(vmstate), ~LJ_VMST_C); | 2319 | dasm_put(Dst, 15215, DISPATCH_GL(vmstate), ~LJ_VMST_C); |
2319 | if (op == BC_FUNCC) { | 2320 | if (op == BC_FUNCC) { |
2320 | dasm_put(Dst, 15197); | 2321 | dasm_put(Dst, 15224); |
2321 | } else { | 2322 | } else { |
2322 | dasm_put(Dst, 15201, DISPATCH_GL(wrapf)); | 2323 | dasm_put(Dst, 15228, DISPATCH_GL(wrapf)); |
2323 | } | 2324 | } |
2324 | dasm_put(Dst, 15206, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top)); | 2325 | dasm_put(Dst, 15233, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top)); |
2325 | break; | 2326 | break; |
2326 | 2327 | ||
2327 | /* ---------------------------------------------------------------------- */ | 2328 | /* ---------------------------------------------------------------------- */ |
@@ -2349,7 +2350,7 @@ static int build_backend(BuildCtx *ctx) | |||
2349 | 2350 | ||
2350 | build_subroutines(ctx, cmov, sse); | 2351 | build_subroutines(ctx, cmov, sse); |
2351 | 2352 | ||
2352 | dasm_put(Dst, 15231); | 2353 | dasm_put(Dst, 15258); |
2353 | for (op = 0; op < BC__MAX; op++) | 2354 | for (op = 0; op < BC__MAX; op++) |
2354 | build_ins(ctx, (BCOp)op, op, cmov, sse); | 2355 | build_ins(ctx, (BCOp)op, op, cmov, sse); |
2355 | 2356 | ||