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.h1411
1 files changed, 706 insertions, 705 deletions
diff --git a/src/buildvm_x86.h b/src/buildvm_x86.h
index 547cd0d2..952e14d0 100644
--- a/src/buildvm_x86.h
+++ b/src/buildvm_x86.h
@@ -12,150 +12,150 @@
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[15234] = { 15static const unsigned char build_actionlist[15254] = {
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,252,247,198,237,15,132,244,10,199, 18 20,252,247,198,237,15,132,244,13,248,14,129,252,246,239,252,247,198,237,15,
19 131,233,237,131,230,252,248,41,214,252,247,222,131,232,1,15,132,244,248,248, 19 133,244,10,199,131,233,237,131,230,252,248,41,214,252,247,222,131,232,1,15,
20 1,139,44,10,137,106,252,248,139,108,10,4,137,106,252,252,131,194,8,131,232, 20 132,244,248,248,1,139,44,10,137,106,252,248,139,108,10,4,137,106,252,252,
21 1,15,133,244,1,248,2,255,139,108,36,48,137,181,233,248,3,139,68,36,20,139, 21 131,194,8,131,232,1,15,133,244,1,248,2,255,139,108,36,48,137,181,233,248,
22 76,36,56,248,4,57,193,15,133,244,252,248,5,131,252,234,8,137,149,233,248, 22 3,139,68,36,20,139,76,36,56,248,4,57,193,15,133,244,252,248,5,131,252,234,
23 15,139,76,36,52,137,141,233,49,192,248,16,131,196,28,91,94,95,93,195,248, 23 8,137,149,233,248,15,139,76,36,52,137,141,233,49,192,248,16,131,196,28,91,
24 6,15,130,244,253,59,149,233,15,135,244,254,199,66,252,252,237,131,194,8,131, 24 94,95,93,195,248,6,15,130,244,253,59,149,233,15,135,244,254,199,66,252,252,
25 192,1,252,233,244,4,248,7,255,133,201,15,132,244,5,41,193,141,20,202,252, 25 237,131,194,8,131,192,1,252,233,244,4,248,7,255,133,201,15,132,244,5,41,193,
26 233,244,5,248,8,137,149,233,137,68,36,20,137,202,137,252,233,232,251,1,0, 26 141,20,202,252,233,244,5,248,8,137,149,233,137,68,36,20,137,202,137,252,233,
27 139,149,233,252,233,244,3,248,17,137,208,137,204,248,18,139,108,36,48,139, 27 232,251,1,0,139,149,233,252,233,244,3,248,17,137,208,137,204,248,18,139,108,
28 173,233,199,133,233,237,252,233,244,16,248,19,129,225,239,137,204,248,20, 28 36,48,139,173,233,199,133,233,237,252,233,244,16,248,19,129,225,239,137,204,
29 139,108,36,48,185,252,248,252,255,252,255,252,255,184,237,255,139,149,233, 29 248,20,139,108,36,48,185,252,248,252,255,252,255,252,255,184,237,255,139,
30 139,157,233,129,195,239,139,114,252,252,199,66,252,252,237,199,131,233,237, 30 149,233,139,157,233,129,195,239,139,114,252,252,199,66,252,252,237,199,131,
31 252,233,244,12,248,21,186,237,252,233,244,248,248,22,131,232,8,252,233,244, 31 233,237,252,233,244,12,248,21,186,237,252,233,244,248,248,22,131,232,8,252,
32 247,248,23,141,68,194,252,248,248,1,15,182,142,233,131,198,4,137,149,233, 32 233,244,247,248,23,141,68,194,252,248,248,1,15,182,142,233,131,198,4,137,
33 137,133,233,255,137,116,36,24,137,202,248,2,137,252,233,232,251,1,0,139,149, 33 149,233,137,133,233,255,137,116,36,24,137,202,248,2,137,252,233,232,251,1,
34 233,139,133,233,139,106,252,248,139,114,252,252,41,208,193,232,3,131,192, 34 0,139,149,233,139,133,233,139,106,252,248,139,114,252,252,41,208,193,232,
35 1,139,181,233,139,14,15,182,252,233,15,182,205,131,198,4,252,255,36,171,248, 35 3,131,192,1,139,181,233,139,14,15,182,252,233,15,182,205,131,198,4,252,255,
36 24,85,87,86,83,131,252,236,28,139,108,36,48,139,76,36,52,190,237,49,192,141, 36 36,171,248,24,85,87,86,83,131,252,236,28,139,108,36,48,139,76,36,52,190,237,
37 188,253,36,233,139,157,233,129,195,239,137,189,233,137,68,36,24,137,68,36, 37 49,192,141,188,253,36,233,139,157,233,129,195,239,137,189,233,137,68,36,24,
38 52,56,133,233,15,132,244,249,199,131,233,237,136,133,233,139,149,233,139, 38 137,68,36,52,56,133,233,15,132,244,249,199,131,233,237,136,133,233,139,149,
39 133,233,41,200,193,232,3,131,192,1,41,209,139,114,252,252,137,68,36,20,252, 39 233,139,133,233,41,200,193,232,3,131,192,1,41,209,139,114,252,252,137,68,
40 247,198,237,15,132,244,13,255,252,233,244,14,248,25,85,87,86,83,131,252,236, 40 36,20,252,247,198,237,15,132,244,13,255,252,233,244,14,248,25,85,87,86,83,
41 28,190,237,252,233,244,247,248,26,85,87,86,83,131,252,236,28,190,237,248, 41 131,252,236,28,190,237,252,233,244,247,248,26,85,87,86,83,131,252,236,28,
42 1,139,108,36,48,139,76,36,52,139,189,233,137,124,36,52,137,108,36,24,137, 42 190,237,248,1,139,108,36,48,139,76,36,52,139,189,233,137,124,36,52,137,108,
43 165,233,248,2,139,157,233,129,195,239,248,3,199,131,233,237,139,149,233,1, 43 36,24,137,165,233,248,2,139,157,233,129,195,239,248,3,199,131,233,237,139,
44 206,41,214,139,133,233,41,200,193,232,3,131,192,1,248,27,255,139,105,252, 44 149,233,1,206,41,214,139,133,233,41,200,193,232,3,131,192,1,248,27,255,139,
45 248,129,121,253,252,252,239,15,133,244,28,248,29,137,202,137,114,252,252, 45 105,252,248,129,121,253,252,252,239,15,133,244,28,248,29,137,202,137,114,
46 139,181,233,139,14,15,182,252,233,15,182,205,131,198,4,252,255,36,171,248, 46 252,252,139,181,233,139,14,15,182,252,233,15,182,205,131,198,4,252,255,36,
47 30,85,87,86,83,131,252,236,28,139,108,36,48,139,68,36,56,139,76,36,52,139, 47 171,248,30,85,87,86,83,131,252,236,28,139,108,36,48,139,68,36,56,139,76,36,
48 84,36,60,137,108,36,24,139,189,233,43,189,233,199,68,36,60,0,0,0,0,137,124, 48 52,139,84,36,60,137,108,36,24,139,189,233,43,189,233,199,68,36,60,0,0,0,0,
49 36,56,137,68,36,8,137,76,36,4,137,44,36,139,189,233,137,124,36,52,137,165, 49 137,124,36,56,137,68,36,8,137,76,36,4,137,44,36,139,189,233,137,124,36,52,
50 233,252,255,210,133,192,15,132,244,15,137,193,190,237,252,233,244,2,248,11, 50 137,165,233,252,255,210,133,192,15,132,244,15,137,193,190,237,252,233,244,
51 1,209,131,230,252,248,137,213,41,252,242,199,68,193,252,252,237,137,200,139, 51 2,248,11,1,209,131,230,252,248,137,213,41,252,242,199,68,193,252,252,237,
52 117,252,244,139,77,252,240,139,122,252,248,139,191,233,139,191,233,252,255, 52 137,200,139,117,252,244,139,77,252,240,139,122,252,248,139,191,233,139,191,
53 225,248,31,255,15,182,78,252,255,131,252,237,16,141,12,202,41,252,233,15, 53 233,252,255,225,248,31,255,15,182,78,252,255,131,252,237,16,141,12,202,41,
54 132,244,32,252,247,217,193,252,233,3,137,76,36,8,139,72,4,139,0,137,77,4, 54 252,233,15,132,244,32,252,247,217,193,252,233,3,137,76,36,8,139,72,4,139,
55 137,69,0,137,108,36,4,252,233,244,33,248,34,137,68,36,16,199,68,36,20,237, 55 0,137,77,4,137,69,0,137,108,36,4,252,233,244,33,248,34,137,68,36,16,199,68,
56 141,68,36,16,128,126,252,252,235,15,133,244,247,141,139,233,137,41,199,65, 56 36,20,237,141,68,36,16,128,126,252,252,235,15,133,244,247,141,139,233,137,
57 4,237,137,205,252,233,244,248,248,35,15,182,70,252,254,255,252,242,15,42, 57 41,199,65,4,237,137,205,252,233,244,248,248,35,15,182,70,252,254,255,252,
58 192,252,242,15,17,68,36,16,255,137,68,36,12,219,68,36,12,221,92,36,16,255, 58 242,15,42,192,252,242,15,17,68,36,16,255,137,68,36,12,219,68,36,12,221,92,
59 141,68,36,16,252,233,244,247,248,36,15,182,70,252,254,141,4,194,248,1,15, 59 36,16,255,141,68,36,16,252,233,244,247,248,36,15,182,70,252,254,141,4,194,
60 182,110,252,255,141,44,252,234,248,2,137,108,36,4,139,108,36,48,137,68,36, 60 248,1,15,182,110,252,255,141,44,252,234,248,2,137,108,36,4,139,108,36,48,
61 8,137,44,36,137,149,233,137,116,36,24,232,251,1,1,139,149,233,133,192,15, 61 137,68,36,8,137,44,36,137,149,233,137,116,36,24,232,251,1,1,139,149,233,133,
62 132,244,249,248,32,15,182,78,252,253,139,104,4,139,0,137,108,202,4,137,4, 62 192,15,132,244,249,248,32,15,182,78,252,253,139,104,4,139,0,137,108,202,4,
63 202,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,3, 63 137,4,202,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,
64 139,141,233,137,113,252,244,141,177,233,41,214,139,105,252,248,184,237,252, 64 248,3,139,141,233,137,113,252,244,141,177,233,41,214,139,105,252,248,184,
65 233,244,29,248,37,137,68,36,16,199,68,36,20,237,141,68,36,16,128,126,252, 65 237,252,233,244,29,248,37,137,68,36,16,199,68,36,20,237,141,68,36,16,128,
66 252,235,15,133,244,247,255,141,139,233,137,41,199,65,4,237,137,205,252,233, 66 126,252,252,235,15,133,244,247,255,141,139,233,137,41,199,65,4,237,137,205,
67 244,248,248,38,15,182,70,252,254,255,141,68,36,16,252,233,244,247,248,39, 67 252,233,244,248,248,38,15,182,70,252,254,255,141,68,36,16,252,233,244,247,
68 15,182,70,252,254,141,4,194,248,1,15,182,110,252,255,141,44,252,234,248,2, 68 248,39,15,182,70,252,254,141,4,194,248,1,15,182,110,252,255,141,44,252,234,
69 137,108,36,4,139,108,36,48,137,68,36,8,137,44,36,137,149,233,137,116,36,24, 69 248,2,137,108,36,4,139,108,36,48,137,68,36,8,137,44,36,137,149,233,137,116,
70 232,251,1,2,139,149,233,133,192,15,132,244,249,15,182,78,252,253,139,108, 70 36,24,232,251,1,2,139,149,233,133,192,15,132,244,249,15,182,78,252,253,139,
71 202,4,139,12,202,137,104,4,137,8,248,40,139,6,15,182,204,15,182,232,131,198, 71 108,202,4,139,12,202,137,104,4,137,8,248,40,139,6,15,182,204,15,182,232,131,
72 4,193,232,16,252,255,36,171,248,3,139,141,233,137,113,252,244,15,182,70,252, 72 198,4,193,232,16,252,255,36,171,248,3,139,141,233,137,113,252,244,15,182,
73 253,139,108,194,4,139,4,194,137,105,20,137,65,16,141,177,233,41,214,139,105, 73 70,252,253,139,108,194,4,139,4,194,137,105,20,137,65,16,141,177,233,41,214,
74 252,248,184,237,252,233,244,29,248,41,15,182,110,252,252,141,4,194,141,12, 74 139,105,252,248,184,237,252,233,244,29,248,41,15,182,110,252,252,141,4,194,
75 202,137,108,36,12,139,108,36,48,137,68,36,8,137,76,36,4,137,44,36,137,149, 75 141,12,202,137,108,36,12,139,108,36,48,137,68,36,8,137,76,36,4,137,44,36,
76 233,137,116,36,24,232,251,1,3,248,3,139,149,233,255,131,252,248,1,15,135, 76 137,149,233,137,116,36,24,232,251,1,3,248,3,139,149,233,255,131,252,248,1,
77 244,42,248,4,141,118,4,15,130,244,252,248,5,15,183,70,252,254,141,180,253, 77 15,135,244,42,248,4,141,118,4,15,130,244,252,248,5,15,183,70,252,254,141,
78 134,233,248,6,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36, 78 180,253,134,233,248,6,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,
79 171,248,43,131,198,4,129,120,253,4,239,15,130,244,5,252,233,244,6,248,44, 79 255,36,171,248,43,131,198,4,129,120,253,4,239,15,130,244,5,252,233,244,6,
80 129,120,253,4,239,252,233,244,4,248,45,131,252,238,4,137,108,36,12,139,108, 80 248,44,129,120,253,4,239,252,233,244,4,248,45,131,252,238,4,137,108,36,12,
81 36,48,137,68,36,8,137,76,36,4,137,44,36,137,149,233,255,137,116,36,24,232, 81 139,108,36,48,137,68,36,8,137,76,36,4,137,44,36,137,149,233,255,137,116,36,
82 251,1,4,252,233,244,3,248,46,141,4,199,252,233,244,247,248,47,141,4,199,141, 82 24,232,251,1,4,252,233,244,3,248,46,141,4,199,252,233,244,247,248,47,141,
83 44,252,234,149,252,233,244,248,248,48,141,4,194,137,197,252,233,244,248,248, 83 4,199,141,44,252,234,149,252,233,244,248,248,48,141,4,194,137,197,252,233,
84 49,141,4,194,248,1,141,44,252,234,248,2,141,12,202,137,108,36,8,139,108,36, 84 244,248,248,49,141,4,194,248,1,141,44,252,234,248,2,141,12,202,137,108,36,
85 48,137,68,36,12,15,182,70,252,252,137,76,36,4,137,68,36,16,137,44,36,137, 85 8,139,108,36,48,137,68,36,12,15,182,70,252,252,137,76,36,4,137,68,36,16,137,
86 149,233,137,116,36,24,232,251,1,5,139,149,233,133,192,15,132,244,40,248,42, 86 44,36,137,149,233,137,116,36,24,232,251,1,5,139,149,233,133,192,15,132,244,
87 137,193,41,208,137,113,252,244,141,176,233,255,184,237,252,233,244,27,248, 87 40,248,42,137,193,41,208,137,113,252,244,141,176,233,255,184,237,252,233,
88 50,139,108,36,48,137,149,233,141,20,194,137,252,233,137,116,36,24,232,251, 88 244,27,248,50,139,108,36,48,137,149,233,141,20,194,137,252,233,137,116,36,
89 1,6,139,149,233,252,233,244,42,248,51,141,76,202,8,248,28,137,76,36,20,137, 89 24,232,251,1,6,139,149,233,252,233,244,42,248,51,141,76,202,8,248,28,137,
90 68,36,16,131,252,233,8,141,4,193,139,108,36,48,137,76,36,4,137,68,36,8,137, 90 76,36,20,137,68,36,16,131,252,233,8,141,4,193,139,108,36,48,137,76,36,4,137,
91 44,36,137,149,233,137,116,36,24,232,251,1,7,139,149,233,139,76,36,20,139, 91 68,36,8,137,44,36,137,149,233,137,116,36,24,232,251,1,7,139,149,233,139,76,
92 68,36,16,139,105,252,248,131,192,1,57,215,15,132,244,52,137,202,137,114,252, 92 36,20,139,68,36,16,139,105,252,248,131,192,1,57,215,15,132,244,52,137,202,
93 252,139,181,233,139,14,15,182,252,233,15,182,205,131,198,4,252,255,36,171, 93 137,114,252,252,139,181,233,139,14,15,182,252,233,15,182,205,131,198,4,252,
94 248,53,139,108,36,48,137,149,233,137,202,137,252,233,137,116,36,24,232,251, 94 255,36,171,248,53,139,108,36,48,137,149,233,137,202,137,252,233,137,116,36,
95 1,8,139,149,233,139,70,252,252,15,182,204,15,182,232,193,232,16,252,255,164, 95 24,232,251,1,8,139,149,233,139,70,252,252,15,182,204,15,182,232,193,232,16,
96 253,171,233,248,54,255,129,252,248,239,15,130,244,55,139,106,4,129,252,253, 96 252,255,164,253,171,233,248,54,255,129,252,248,239,15,130,244,55,139,106,
97 239,15,131,244,55,139,114,252,252,137,68,36,20,137,106,252,252,139,42,137, 97 4,129,252,253,239,15,131,244,55,139,114,252,252,137,68,36,20,137,106,252,
98 106,252,248,131,232,2,15,132,244,248,137,209,248,1,131,193,8,139,105,4,137, 98 252,139,42,137,106,252,248,131,232,2,15,132,244,248,137,209,248,1,131,193,
99 105,252,252,139,41,137,105,252,248,131,232,1,15,133,244,1,248,2,139,68,36, 99 8,139,105,4,137,105,252,252,139,41,137,105,252,248,131,232,1,15,133,244,1,
100 20,252,233,244,56,248,57,129,252,248,239,15,130,244,55,139,106,4,184,237, 100 248,2,139,68,36,20,252,233,244,56,248,57,129,252,248,239,15,130,244,55,139,
101 252,247,213,57,232,255,15,71,197,255,15,134,244,247,137,232,248,1,255,248, 101 106,4,184,237,252,247,213,57,232,255,15,71,197,255,15,134,244,247,137,232,
102 2,139,106,252,248,139,132,253,197,233,139,114,252,252,199,66,252,252,237, 102 248,1,255,248,2,139,106,252,248,139,132,253,197,233,139,114,252,252,199,66,
103 137,66,252,248,252,233,244,58,248,59,129,252,248,239,15,130,244,55,139,106, 103 252,252,237,137,66,252,248,252,233,244,58,248,59,129,252,248,239,15,130,244,
104 4,139,114,252,252,129,252,253,239,15,133,244,252,248,1,139,42,139,173,233, 104 55,139,106,4,139,114,252,252,129,252,253,239,15,133,244,252,248,1,139,42,
105 248,2,133,252,237,199,66,252,252,237,15,132,244,58,139,131,233,199,66,252, 105 139,173,233,248,2,133,252,237,199,66,252,252,237,15,132,244,58,139,131,233,
106 252,237,255,137,106,252,248,139,141,233,35,136,233,105,201,239,3,141,233, 106 199,66,252,252,237,255,137,106,252,248,139,141,233,35,136,233,105,201,239,
107 248,3,129,185,233,239,15,133,244,250,57,129,233,15,132,244,251,248,4,139, 107 3,141,233,248,3,129,185,233,239,15,133,244,250,57,129,233,15,132,244,251,
108 137,233,133,201,15,133,244,3,252,233,244,58,248,5,139,105,4,129,252,253,239, 108 248,4,139,137,233,133,201,15,133,244,3,252,233,244,58,248,5,139,105,4,129,
109 255,15,132,244,58,139,1,137,106,252,252,137,66,252,248,252,233,244,58,248, 109 252,253,239,255,15,132,244,58,139,1,137,106,252,252,137,66,252,248,252,233,
110 6,129,252,253,239,15,132,244,1,129,252,253,239,15,135,244,253,189,237,248, 110 244,58,248,6,129,252,253,239,15,132,244,1,129,252,253,239,15,135,244,253,
111 7,252,247,213,139,172,253,171,233,252,233,244,2,248,60,129,252,248,239,15, 111 189,237,248,7,252,247,213,139,172,253,171,233,252,233,244,2,248,60,129,252,
112 130,244,55,255,129,122,253,4,239,15,133,244,55,139,42,131,189,233,0,15,133, 112 248,239,15,130,244,55,255,129,122,253,4,239,15,133,244,55,139,42,131,189,
113 244,55,129,122,253,12,239,15,133,244,55,139,66,8,137,133,233,139,114,252, 113 233,0,15,133,244,55,129,122,253,12,239,15,133,244,55,139,66,8,137,133,233,
114 252,199,66,252,252,237,137,106,252,248,252,246,133,233,235,15,132,244,247, 114 139,114,252,252,199,66,252,252,237,137,106,252,248,252,246,133,233,235,15,
115 128,165,233,235,139,131,233,137,171,233,137,133,233,248,1,255,252,233,244, 115 132,244,247,128,165,233,235,139,131,233,137,171,233,137,133,233,248,1,255,
116 58,248,61,129,252,248,239,15,130,244,55,129,122,253,4,239,15,133,244,55,139, 116 252,233,244,58,248,61,129,252,248,239,15,130,244,55,129,122,253,4,239,15,
117 2,139,108,36,48,137,68,36,4,137,44,36,137,213,131,194,8,137,84,36,8,232,251, 117 133,244,55,139,2,139,108,36,48,137,68,36,4,137,44,36,137,213,131,194,8,137,
118 1,9,137,252,234,139,40,139,64,4,139,114,252,252,137,106,252,248,137,66,252, 118 84,36,8,232,251,1,9,137,252,234,139,40,139,64,4,139,114,252,252,137,106,252,
119 252,252,233,244,58,248,62,129,252,248,239,15,133,244,55,129,122,253,4,239, 119 248,137,66,252,252,252,233,244,58,248,62,129,252,248,239,15,133,244,55,129,
120 15,135,244,55,255,252,242,15,16,2,252,233,244,63,255,221,2,252,233,244,64, 120 122,253,4,239,15,135,244,55,255,252,242,15,16,2,252,233,244,63,255,221,2,
121 255,248,65,129,252,248,239,15,130,244,55,139,114,252,252,129,122,253,4,239, 121 252,233,244,64,255,248,65,129,252,248,239,15,130,244,55,139,114,252,252,129,
122 15,133,244,249,139,2,248,2,199,66,252,252,237,137,66,252,248,252,233,244, 122 122,253,4,239,15,133,244,249,139,2,248,2,199,66,252,252,237,137,66,252,248,
123 58,248,3,129,122,253,4,239,15,135,244,55,131,187,233,0,15,133,244,55,139, 123 252,233,244,58,248,3,129,122,253,4,239,15,135,244,55,131,187,233,0,15,133,
124 171,233,59,171,233,255,15,130,244,247,232,244,66,248,1,139,108,36,48,137, 124 244,55,139,171,233,59,171,233,255,15,130,244,247,232,244,66,248,1,139,108,
125 149,233,137,116,36,24,137,252,233,232,251,1,10,139,149,233,252,233,244,2, 125 36,48,137,149,233,137,116,36,24,137,252,233,232,251,1,10,139,149,233,252,
126 248,67,129,252,248,239,15,130,244,55,15,132,244,248,248,1,129,122,253,4,239, 126 233,244,2,248,67,129,252,248,239,15,130,244,55,15,132,244,248,248,1,129,122,
127 15,133,244,55,139,108,36,48,137,149,233,255,137,149,233,139,114,252,252,139, 127 253,4,239,15,133,244,55,139,108,36,48,137,149,233,255,137,149,233,139,114,
128 2,137,68,36,4,137,44,36,131,194,8,137,84,36,8,137,116,36,24,232,251,1,11, 128 252,252,139,2,137,68,36,4,137,44,36,131,194,8,137,84,36,8,137,116,36,24,232,
129 139,149,233,133,192,15,132,244,249,139,106,8,139,66,12,137,106,252,248,137, 129 251,1,11,139,149,233,133,192,15,132,244,249,139,106,8,139,66,12,137,106,252,
130 66,252,252,139,106,16,139,66,20,137,42,137,66,4,248,68,184,237,252,233,244, 130 248,137,66,252,252,139,106,16,139,66,20,137,42,137,66,4,248,68,184,237,252,
131 69,248,2,199,66,12,237,252,233,244,1,248,3,199,66,252,252,237,252,233,244, 131 233,244,69,248,2,199,66,12,237,252,233,244,1,248,3,199,66,252,252,237,252,
132 58,248,70,129,252,248,239,15,130,244,55,255,139,106,252,248,129,122,253,4, 132 233,244,58,248,70,129,252,248,239,15,130,244,55,255,139,106,252,248,129,122,
133 239,15,133,244,55,139,133,233,139,114,252,252,199,66,252,252,237,137,66,252, 133 253,4,239,15,133,244,55,139,133,233,139,114,252,252,199,66,252,252,237,137,
134 248,199,66,12,237,184,237,252,233,244,69,248,71,129,252,248,239,15,130,244, 134 66,252,248,199,66,12,237,184,237,252,233,244,69,248,71,129,252,248,239,15,
135 55,129,122,253,4,239,15,133,244,55,129,122,253,12,239,15,135,244,55,139,114, 135 130,244,55,129,122,253,4,239,15,133,244,55,129,122,253,12,239,15,135,244,
136 252,252,255,252,242,15,16,66,8,189,0,0,252,240,63,102,15,110,205,102,15,112, 136 55,139,114,252,252,255,252,242,15,16,66,8,189,0,0,252,240,63,102,15,110,205,
137 201,81,252,242,15,88,193,252,242,15,45,192,252,242,15,17,66,252,248,255,221, 137 102,15,112,201,81,252,242,15,88,193,252,242,15,45,192,252,242,15,17,66,252,
138 66,8,217,232,222,193,219,20,36,221,90,252,248,139,4,36,255,139,42,59,133, 138 248,255,221,66,8,217,232,222,193,219,20,36,221,90,252,248,139,4,36,255,139,
139 233,15,131,244,248,193,224,3,3,133,233,248,1,129,120,253,4,239,15,132,244, 139 42,59,133,233,15,131,244,248,193,224,3,3,133,233,248,1,129,120,253,4,239,
140 72,139,40,139,64,4,137,42,137,66,4,252,233,244,68,248,2,131,189,233,0,15, 140 15,132,244,72,139,40,139,64,4,137,42,137,66,4,252,233,244,68,248,2,131,189,
141 132,244,72,137,252,233,137,213,137,194,232,251,1,12,137,252,234,133,192,15, 141 233,0,15,132,244,72,137,252,233,137,213,137,194,232,251,1,12,137,252,234,
142 133,244,1,248,72,184,237,252,233,244,69,248,73,255,129,252,248,239,15,130, 142 133,192,15,133,244,1,248,72,184,237,252,233,244,69,248,73,255,129,252,248,
143 244,55,139,106,252,248,129,122,253,4,239,15,133,244,55,139,133,233,139,114, 143 239,15,130,244,55,139,106,252,248,129,122,253,4,239,15,133,244,55,139,133,
144 252,252,199,66,252,252,237,137,66,252,248,255,15,87,192,252,242,15,17,66, 144 233,139,114,252,252,199,66,252,252,237,137,66,252,248,255,15,87,192,252,242,
145 8,255,217,252,238,221,90,8,255,184,237,252,233,244,69,248,74,129,252,248, 145 15,17,66,8,255,217,252,238,221,90,8,255,184,237,252,233,244,69,248,74,129,
146 239,15,130,244,55,141,74,8,131,232,1,190,237,248,1,15,182,171,233,193,252, 146 252,248,239,15,130,244,55,141,74,8,131,232,1,190,237,248,1,15,182,171,233,
147 237,235,131,229,1,1,252,238,252,233,244,27,248,75,129,252,248,239,15,130, 147 193,252,237,235,131,229,1,1,252,238,252,233,244,27,248,75,129,252,248,239,
148 244,55,129,122,253,12,239,15,133,244,55,255,139,106,4,137,106,12,199,66,4, 148 15,130,244,55,129,122,253,12,239,15,133,244,55,255,139,106,4,137,106,12,199,
149 237,139,42,139,114,8,137,106,8,137,50,141,74,16,131,232,2,190,237,252,233, 149 66,4,237,139,42,139,114,8,137,106,8,137,50,141,74,16,131,232,2,190,237,252,
150 244,1,248,76,129,252,248,239,15,130,244,55,139,42,139,114,252,252,137,116, 150 233,244,1,248,76,129,252,248,239,15,130,244,55,139,42,139,114,252,252,137,
151 36,24,137,44,36,129,122,253,4,239,15,133,244,55,131,189,233,0,15,133,244, 151 116,36,24,137,44,36,129,122,253,4,239,15,133,244,55,131,189,233,0,15,133,
152 55,128,189,233,235,15,135,244,55,139,141,233,15,132,244,247,255,59,141,233, 152 244,55,128,189,233,235,15,135,244,55,139,141,233,15,132,244,247,255,59,141,
153 15,132,244,55,248,1,141,116,193,252,240,59,181,233,15,135,244,55,137,181, 153 233,15,132,244,55,248,1,141,116,193,252,240,59,181,233,15,135,244,55,137,
154 233,139,108,36,48,137,149,233,131,194,8,137,149,233,141,108,194,232,41,252, 154 181,233,139,108,36,48,137,149,233,131,194,8,137,149,233,141,108,194,232,41,
155 245,57,206,15,132,244,249,248,2,139,68,46,4,137,70,252,252,139,4,46,137,70, 155 252,245,57,206,15,132,244,249,248,2,139,68,46,4,137,70,252,252,139,4,46,137,
156 252,248,131,252,238,8,57,206,15,133,244,2,248,3,137,76,36,4,49,201,137,76, 156 70,252,248,131,252,238,8,57,206,15,133,244,2,248,3,137,76,36,4,49,201,137,
157 36,12,137,76,36,8,232,244,24,199,131,233,237,255,139,108,36,48,139,52,36, 157 76,36,12,137,76,36,8,232,244,24,199,131,233,237,255,139,108,36,48,139,52,
158 139,149,233,129,252,248,239,15,135,244,254,248,4,139,142,233,139,190,233, 158 36,139,149,233,129,252,248,239,15,135,244,254,248,4,139,142,233,139,190,233,
159 137,142,233,137,252,254,41,206,15,132,244,252,141,4,50,193,252,238,3,59,133, 159 137,142,233,137,252,254,41,206,15,132,244,252,141,4,50,193,252,238,3,59,133,
160 233,15,135,244,255,137,213,41,205,248,5,139,1,137,4,41,139,65,4,137,68,41, 160 233,15,135,244,255,137,213,41,205,248,5,139,1,137,4,41,139,65,4,137,68,41,
161 4,131,193,8,57,252,249,15,133,244,5,248,6,141,70,2,199,66,252,252,237,248, 161 4,131,193,8,57,252,249,15,133,244,5,248,6,141,70,2,199,66,252,252,237,248,
@@ -693,61 +693,62 @@ static const unsigned char build_actionlist[15234] = {
693 15,135,244,251,248,4,139,181,233,139,14,15,182,252,233,15,182,205,131,198, 693 15,135,244,251,248,4,139,181,233,139,14,15,182,252,233,15,182,205,131,198,
694 4,252,255,36,171,248,5,255,252,247,198,237,15,133,244,4,15,182,78,252,253, 694 4,252,255,36,171,248,5,255,252,247,198,237,15,133,244,4,15,182,78,252,253,
695 252,247,209,141,12,202,139,121,252,248,139,191,233,139,191,233,252,233,244, 695 252,247,209,141,12,202,139,121,252,248,139,191,233,139,191,233,252,233,244,
696 4,248,7,15,139,244,1,131,230,252,248,41,252,242,137,215,139,114,252,252,252, 696 4,248,7,129,252,238,239,252,247,198,237,15,133,244,254,41,252,242,137,215,
697 233,244,1,255,141,76,202,8,139,105,232,139,65,252,236,137,41,137,65,4,139, 697 139,114,252,252,252,233,244,1,248,8,129,198,239,252,233,244,1,255,141,76,
698 105,252,240,139,65,252,244,137,105,8,137,65,12,139,105,224,139,65,228,137, 698 202,8,139,105,232,139,65,252,236,137,41,137,65,4,139,105,252,240,139,65,252,
699 105,252,248,137,65,252,252,129,252,248,239,184,237,15,133,244,28,137,202, 699 244,137,105,8,137,65,12,139,105,224,139,65,228,137,105,252,248,137,65,252,
700 137,114,252,252,139,181,233,139,14,15,182,252,233,15,182,205,131,198,4,252, 700 252,129,252,248,239,184,237,15,133,244,28,137,202,137,114,252,252,139,181,
701 255,36,171,255,15,182,252,236,139,66,252,248,141,12,202,139,128,233,15,182, 701 233,139,14,15,182,252,233,15,182,205,131,198,4,252,255,36,171,255,15,182,
702 128,233,137,124,36,16,141,188,253,194,233,43,122,252,252,133,252,237,15,132, 702 252,236,139,66,252,248,141,12,202,139,128,233,15,182,128,233,137,124,36,16,
703 244,251,141,108,252,233,252,248,57,215,15,131,244,248,248,1,139,71,252,248, 703 141,188,253,194,233,43,122,252,252,133,252,237,15,132,244,251,141,108,252,
704 137,1,139,71,252,252,131,199,8,137,65,4,131,193,8,57,252,233,15,131,244,249, 704 233,252,248,57,215,15,131,244,248,248,1,139,71,252,248,137,1,139,71,252,252,
705 57,215,15,130,244,1,248,2,199,65,4,237,131,193,8,57,252,233,15,130,244,2, 705 131,199,8,137,65,4,131,193,8,57,252,233,15,131,244,249,57,215,15,130,244,
706 248,3,139,124,36,16,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252, 706 1,248,2,199,65,4,237,131,193,8,57,252,233,15,130,244,2,248,3,139,124,36,16,
707 255,36,171,248,5,199,68,36,20,1,0,0,0,137,208,41,252,248,15,134,244,3,255, 707 139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,5,199,
708 137,197,193,252,237,3,131,197,1,137,108,36,20,139,108,36,48,1,200,59,133, 708 68,36,20,1,0,0,0,137,208,41,252,248,15,134,244,3,255,137,197,193,252,237,
709 233,15,135,244,253,248,6,139,71,252,248,137,1,139,71,252,252,131,199,8,137, 709 3,131,197,1,137,108,36,20,139,108,36,48,1,200,59,133,233,15,135,244,253,248,
710 65,4,131,193,8,57,215,15,130,244,6,252,233,244,3,248,7,137,149,233,137,141, 710 6,139,71,252,248,137,1,139,71,252,252,131,199,8,137,65,4,131,193,8,57,215,
711 233,137,116,36,24,41,215,139,84,36,20,131,252,234,1,137,252,233,232,251,1, 711 15,130,244,6,252,233,244,3,248,7,137,149,233,137,141,233,137,116,36,24,41,
712 0,139,149,233,139,141,233,1,215,252,233,244,6,255,193,225,3,255,248,1,139, 712 215,139,84,36,20,131,252,234,1,137,252,233,232,251,1,0,139,149,233,139,141,
713 114,252,252,137,68,36,20,252,247,198,237,15,133,244,253,255,248,13,137,215, 713 233,1,215,252,233,244,6,255,193,225,3,255,248,1,139,114,252,252,137,68,36,
714 131,232,1,15,132,244,249,248,2,139,44,15,137,111,252,248,139,108,15,4,137, 714 20,252,247,198,237,15,133,244,253,255,248,13,137,215,131,232,1,15,132,244,
715 111,252,252,131,199,8,131,232,1,15,133,244,2,248,3,139,68,36,20,15,182,110, 715 249,248,2,139,44,15,137,111,252,248,139,108,15,4,137,111,252,252,131,199,
716 252,255,248,5,57,197,15,135,244,252,255,139,108,10,4,137,106,252,252,139, 716 8,131,232,1,15,133,244,2,248,3,139,68,36,20,15,182,110,252,255,248,5,57,197,
717 44,10,137,106,252,248,255,248,5,56,70,252,255,15,135,244,252,255,15,182,78, 717 15,135,244,252,255,139,108,10,4,137,106,252,252,139,44,10,137,106,252,248,
718 252,253,252,247,209,141,20,202,139,122,252,248,139,191,233,139,191,233,139, 718 255,248,5,56,70,252,255,15,135,244,252,255,15,182,78,252,253,252,247,209,
719 6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,6,255,199, 719 141,20,202,139,122,252,248,139,191,233,139,191,233,139,6,15,182,204,15,182,
720 71,252,252,237,131,199,8,255,199,68,194,252,244,237,255,131,192,1,252,233, 720 232,131,198,4,193,232,16,252,255,36,171,248,6,255,199,71,252,252,237,131,
721 244,5,248,7,15,139,244,14,131,230,252,248,41,252,242,255,1,252,241,255,137, 721 199,8,255,199,68,194,252,244,237,255,131,192,1,252,233,244,5,248,7,141,174,
722 252,245,209,252,237,129,229,239,102,131,172,253,43,233,1,15,132,244,140,255, 722 233,252,247,197,237,15,133,244,14,41,252,234,255,1,252,233,255,137,252,245,
723 141,12,202,255,129,121,253,4,239,15,135,244,53,129,121,253,12,239,15,135, 723 209,252,237,129,229,239,102,131,172,253,43,233,1,15,132,244,140,255,141,12,
724 244,53,255,139,105,20,255,129,252,253,239,15,135,244,53,255,252,242,15,16, 724 202,255,129,121,253,4,239,15,135,244,53,129,121,253,12,239,15,135,244,53,
725 1,252,242,15,16,73,8,255,252,242,15,88,65,16,252,242,15,17,1,133,252,237, 725 255,139,105,20,255,129,252,253,239,15,135,244,53,255,252,242,15,16,1,252,
726 15,136,244,249,255,15,140,244,249,255,102,15,46,200,248,1,252,242,15,17,65, 726 242,15,16,73,8,255,252,242,15,88,65,16,252,242,15,17,1,133,252,237,15,136,
727 24,255,221,65,8,221,1,255,220,65,16,221,17,221,81,24,133,252,237,15,136,244, 727 244,249,255,15,140,244,249,255,102,15,46,200,248,1,252,242,15,17,65,24,255,
728 247,255,221,81,24,15,140,244,247,255,217,201,248,1,255,15,183,70,252,254, 728 221,65,8,221,1,255,220,65,16,221,17,221,81,24,133,252,237,15,136,244,247,
729 255,15,131,244,248,141,180,253,134,233,255,141,180,253,134,233,15,183,70, 729 255,221,81,24,15,140,244,247,255,217,201,248,1,255,15,183,70,252,254,255,
730 252,254,15,131,245,255,15,130,244,248,141,180,253,134,233,255,248,3,102,15, 730 15,131,244,248,141,180,253,134,233,255,141,180,253,134,233,15,183,70,252,
731 46,193,252,233,244,1,255,141,12,202,139,105,4,129,252,253,239,15,132,244, 731 254,15,131,245,255,15,130,244,248,141,180,253,134,233,255,248,3,102,15,46,
732 247,255,137,105,252,252,139,41,137,105,252,248,252,233,245,255,141,180,253, 732 193,252,233,244,1,255,141,12,202,139,105,4,129,252,253,239,15,132,244,247,
733 134,233,139,1,137,105,252,252,137,65,252,248,255,139,139,233,139,4,129,139, 733 255,137,105,252,252,139,41,137,105,252,248,252,233,245,255,141,180,253,134,
734 128,233,139,108,36,48,137,147,233,137,171,233,252,255,224,255,141,180,253, 734 233,139,1,137,105,252,252,137,65,252,248,255,139,139,233,139,4,129,139,128,
735 134,233,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255, 735 233,139,108,36,48,137,147,233,137,171,233,252,255,224,255,141,180,253,134,
736 137,252,245,209,252,237,129,229,239,102,131,172,253,43,233,1,15,132,244,142, 736 233,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,137,
737 255,139,190,233,139,108,36,48,141,12,202,59,141,233,15,135,244,23,15,182, 737 252,245,209,252,237,129,229,239,102,131,172,253,43,233,1,15,132,244,142,255,
738 142,233,57,200,15,134,244,249,248,2,255,15,183,70,252,254,252,233,245,255, 738 139,190,233,139,108,36,48,141,12,202,59,141,233,15,135,244,23,15,182,142,
739 248,3,199,68,194,252,252,237,131,192,1,57,200,15,134,244,3,252,233,244,2, 739 233,57,200,15,134,244,249,248,2,255,15,183,70,252,254,252,233,245,255,248,
740 255,141,44,197,237,141,4,194,139,122,252,248,137,104,252,252,137,120,252, 740 3,199,68,194,252,252,237,131,192,1,57,200,15,134,244,3,252,233,244,2,255,
741 248,139,108,36,48,141,12,200,59,141,233,15,135,244,22,137,209,137,194,15, 741 141,44,197,237,141,4,194,139,122,252,248,137,104,252,252,137,120,252,248,
742 182,174,233,133,252,237,15,132,244,248,248,1,131,193,8,57,209,15,131,244, 742 139,108,36,48,141,12,200,59,141,233,15,135,244,22,137,209,137,194,15,182,
743 249,139,121,252,248,137,56,139,121,252,252,137,120,4,131,192,8,199,65,252, 743 174,233,133,252,237,15,132,244,248,248,1,131,193,8,57,209,15,131,244,249,
744 252,237,131,252,237,1,15,133,244,1,248,2,255,139,190,233,139,6,15,182,204, 744 139,121,252,248,137,56,139,121,252,252,137,120,4,131,192,8,199,65,252,252,
745 15,182,232,131,198,4,193,232,16,252,255,36,171,255,248,3,199,64,4,237,131, 745 237,131,252,237,1,15,133,244,1,248,2,255,139,190,233,139,6,15,182,204,15,
746 192,8,131,252,237,1,15,133,244,3,252,233,244,2,255,139,106,252,248,139,189, 746 182,232,131,198,4,193,232,16,252,255,36,171,255,248,3,199,64,4,237,131,192,
747 233,139,108,36,48,141,68,194,252,248,137,149,233,141,136,233,59,141,233,137, 747 8,131,252,237,1,15,133,244,3,252,233,244,2,255,139,106,252,248,139,189,233,
748 133,233,255,137,44,36,255,137,124,36,4,137,44,36,255,15,135,244,21,199,131, 748 139,108,36,48,141,68,194,252,248,137,149,233,141,136,233,59,141,233,137,133,
749 233,237,255,252,255,215,255,252,255,147,233,255,199,131,233,237,139,149,233, 749 233,255,137,44,36,255,137,124,36,4,137,44,36,255,15,135,244,21,199,131,233,
750 141,12,194,252,247,217,3,141,233,139,114,252,252,252,233,244,12,255,254,0 750 237,255,252,255,215,255,252,255,147,233,255,199,131,233,237,139,149,233,141,
751 12,194,252,247,217,3,141,233,139,114,252,252,252,233,244,12,255,254,0
751}; 752};
752 753
753enum { 754enum {
@@ -1113,434 +1114,434 @@ static const char *const extnames[] = {
1113static void build_subroutines(BuildCtx *ctx, int cmov, int sse) 1114static void build_subroutines(BuildCtx *ctx, int cmov, int sse)
1114{ 1115{
1115 dasm_put(Dst, 0); 1116 dasm_put(Dst, 0);
1116 dasm_put(Dst, 2, FRAME_P, LJ_TTRUE, FRAME_TYPE, FRAME_C, DISPATCH_GL(vmstate), ~LJ_VMST_C); 1117 dasm_put(Dst, 2, FRAME_P, LJ_TTRUE, FRAME_TYPE, FRAME_C, FRAME_TYPE, DISPATCH_GL(vmstate), ~LJ_VMST_C);
1117 dasm_put(Dst, 110, Dt1(->base), Dt1(->top), Dt1(->cframe), Dt1(->maxstack), LJ_TNIL); 1118 dasm_put(Dst, 114, Dt1(->base), Dt1(->top), Dt1(->cframe), Dt1(->maxstack), LJ_TNIL);
1118 dasm_put(Dst, 196, Dt1(->top), Dt1(->top), Dt1(->glref), Dt2(->vmstate), ~LJ_VMST_C, CFRAME_RAWMASK, 1+1); 1119 dasm_put(Dst, 200, Dt1(->top), Dt1(->top), Dt1(->glref), Dt2(->vmstate), ~LJ_VMST_C, CFRAME_RAWMASK, 1+1);
1119 dasm_put(Dst, 284, Dt1(->base), Dt1(->glref), GG_G2DISP, LJ_TFALSE, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, LUA_MINSTACK, -4+PC2PROTO(framesize), Dt1(->base), Dt1(->top)); 1120 dasm_put(Dst, 288, Dt1(->base), Dt1(->glref), GG_G2DISP, LJ_TFALSE, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, LUA_MINSTACK, -4+PC2PROTO(framesize), Dt1(->base), Dt1(->top));
1120 dasm_put(Dst, 350, Dt1(->base), Dt1(->top), Dt7(->pc), FRAME_CP, CFRAME_RESUME, Dt1(->glref), GG_G2DISP, Dt1(->cframe), Dt1(->status), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->status), Dt1(->base), Dt1(->top), FRAME_TYPE); 1121 dasm_put(Dst, 354, Dt1(->base), Dt1(->top), Dt7(->pc), FRAME_CP, CFRAME_RESUME, Dt1(->glref), GG_G2DISP, Dt1(->cframe), Dt1(->status), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->status), Dt1(->base), Dt1(->top), FRAME_TYPE);
1121 dasm_put(Dst, 497, FRAME_CP, FRAME_C, Dt1(->cframe), Dt1(->cframe), Dt1(->glref), GG_G2DISP, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top)); 1122 dasm_put(Dst, 501, FRAME_CP, FRAME_C, Dt1(->cframe), Dt1(->cframe), Dt1(->glref), GG_G2DISP, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top));
1122 dasm_put(Dst, 588, LJ_TFUNC, Dt7(->pc), Dt1(->stack), Dt1(->top), Dt1(->cframe), Dt1(->cframe), FRAME_CP, LJ_TNIL, Dt7(->pc), PC2PROTO(k)); 1123 dasm_put(Dst, 592, LJ_TFUNC, Dt7(->pc), Dt1(->stack), Dt1(->top), Dt1(->cframe), Dt1(->cframe), FRAME_CP, LJ_TNIL, Dt7(->pc), PC2PROTO(k));
1123 dasm_put(Dst, 760, LJ_TSTR, BC_GGET, DISPATCH_GL(tmptv), LJ_TTAB); 1124 dasm_put(Dst, 764, LJ_TSTR, BC_GGET, DISPATCH_GL(tmptv), LJ_TTAB);
1124 if (sse) { 1125 if (sse) {
1125 dasm_put(Dst, 856); 1126 dasm_put(Dst, 860);
1126 } else { 1127 } else {
1127 dasm_put(Dst, 869); 1128 dasm_put(Dst, 873);
1128 } 1129 }
1129 dasm_put(Dst, 882, Dt1(->base), Dt1(->base), Dt1(->top), FRAME_CONT, 2+1, LJ_TSTR, BC_GSET); 1130 dasm_put(Dst, 886, Dt1(->base), Dt1(->base), Dt1(->top), FRAME_CONT, 2+1, LJ_TSTR, BC_GSET);
1130 dasm_put(Dst, 1034, DISPATCH_GL(tmptv), LJ_TTAB); 1131 dasm_put(Dst, 1038, DISPATCH_GL(tmptv), LJ_TTAB);
1131 if (sse) { 1132 if (sse) {
1132 dasm_put(Dst, 856); 1133 dasm_put(Dst, 860);
1133 } else { 1134 } else {
1134 dasm_put(Dst, 869); 1135 dasm_put(Dst, 873);
1135 } 1136 }
1136 dasm_put(Dst, 1057, Dt1(->base), Dt1(->base), Dt1(->top), FRAME_CONT, 3+1, Dt1(->base), Dt1(->base)); 1137 dasm_put(Dst, 1061, Dt1(->base), Dt1(->base), Dt1(->top), FRAME_CONT, 3+1, Dt1(->base), Dt1(->base));
1137 dasm_put(Dst, 1251, -BCBIAS_J*4, LJ_TISTRUECOND, LJ_TISTRUECOND, Dt1(->base)); 1138 dasm_put(Dst, 1255, -BCBIAS_J*4, LJ_TISTRUECOND, LJ_TISTRUECOND, Dt1(->base));
1138 dasm_put(Dst, 1358, Dt1(->base), Dt1(->base), FRAME_CONT); 1139 dasm_put(Dst, 1362, Dt1(->base), Dt1(->base), FRAME_CONT);
1139 dasm_put(Dst, 1482, 2+1, Dt1(->base), Dt1(->base), Dt1(->base), Dt1(->base), Dt7(->pc), Dt1(->base), Dt1(->base), GG_DISP2STATIC); 1140 dasm_put(Dst, 1486, 2+1, Dt1(->base), Dt1(->base), Dt1(->base), Dt1(->base), Dt7(->pc), Dt1(->base), Dt1(->base), GG_DISP2STATIC);
1140 dasm_put(Dst, 1663, 1+1, LJ_TISTRUECOND, 1+1, ~LJ_TNUMX); 1141 dasm_put(Dst, 1667, 1+1, LJ_TISTRUECOND, 1+1, ~LJ_TNUMX);
1141 if (cmov) { 1142 if (cmov) {
1142 dasm_put(Dst, 1765);
1143 } else {
1144 dasm_put(Dst, 1769); 1143 dasm_put(Dst, 1769);
1144 } else {
1145 dasm_put(Dst, 1773);
1145 } 1146 }
1146 dasm_put(Dst, 1778, ((char *)(&((GCfuncC *)0)->upvalue)), LJ_TSTR, 1+1, LJ_TTAB, Dt6(->metatable), LJ_TNIL, DISPATCH_GL(gcroot)+4*(GCROOT_MMNAME+MM_metatable), LJ_TTAB); 1147 dasm_put(Dst, 1782, ((char *)(&((GCfuncC *)0)->upvalue)), LJ_TSTR, 1+1, LJ_TTAB, Dt6(->metatable), LJ_TNIL, DISPATCH_GL(gcroot)+4*(GCROOT_MMNAME+MM_metatable), LJ_TTAB);
1147 dasm_put(Dst, 1861, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), DtB(->next), LJ_TNIL); 1148 dasm_put(Dst, 1865, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), DtB(->next), LJ_TNIL);
1148 dasm_put(Dst, 1919, LJ_TUDATA, LJ_TISNUM, LJ_TNUMX, DISPATCH_GL(gcroot[GCROOT_BASEMT]), 2+1); 1149 dasm_put(Dst, 1923, LJ_TUDATA, LJ_TISNUM, LJ_TNUMX, DISPATCH_GL(gcroot[GCROOT_BASEMT]), 2+1);
1149 dasm_put(Dst, 1982, LJ_TTAB, Dt6(->metatable), LJ_TTAB, Dt6(->metatable), LJ_TTAB, Dt6(->marked), LJ_GC_BLACK, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); 1150 dasm_put(Dst, 1986, LJ_TTAB, Dt6(->metatable), LJ_TTAB, Dt6(->metatable), LJ_TTAB, Dt6(->marked), LJ_GC_BLACK, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
1150 dasm_put(Dst, 2054, 2+1, LJ_TTAB, 1+1, LJ_TISNUM); 1151 dasm_put(Dst, 2058, 2+1, LJ_TTAB, 1+1, LJ_TISNUM);
1151 if (sse) { 1152 if (sse) {
1152 dasm_put(Dst, 2147); 1153 dasm_put(Dst, 2151);
1153 } else { 1154 } else {
1154 dasm_put(Dst, 2157); 1155 dasm_put(Dst, 2161);
1155 } 1156 }
1156 dasm_put(Dst, 2164, 1+1, LJ_TSTR, LJ_TSTR, LJ_TISNUM, DISPATCH_GL(gcroot[GCROOT_BASEMT_NUM]), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold)); 1157 dasm_put(Dst, 2168, 1+1, LJ_TSTR, LJ_TSTR, LJ_TISNUM, DISPATCH_GL(gcroot[GCROOT_BASEMT_NUM]), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold));
1157 dasm_put(Dst, 2230, Dt1(->base), Dt1(->base), 1+1, LJ_TTAB, Dt1(->base)); 1158 dasm_put(Dst, 2234, Dt1(->base), Dt1(->base), 1+1, LJ_TTAB, Dt1(->base));
1158 dasm_put(Dst, 2297, Dt1(->top), Dt1(->base), 1+2, LJ_TNIL, LJ_TNIL, 1+1); 1159 dasm_put(Dst, 2301, Dt1(->top), Dt1(->base), 1+2, LJ_TNIL, LJ_TNIL, 1+1);
1159 dasm_put(Dst, 2402, LJ_TTAB, Dt8(->upvalue[0]), LJ_TFUNC, LJ_TNIL, 1+3, 1+1, LJ_TTAB, LJ_TISNUM); 1160 dasm_put(Dst, 2406, LJ_TTAB, Dt8(->upvalue[0]), LJ_TFUNC, LJ_TNIL, 1+3, 1+1, LJ_TTAB, LJ_TISNUM);
1160 if (sse) { 1161 if (sse) {
1161 dasm_put(Dst, 2474); 1162 dasm_put(Dst, 2478);
1162 } else { 1163 } else {
1163 dasm_put(Dst, 2513); 1164 dasm_put(Dst, 2517);
1164 } 1165 }
1165 dasm_put(Dst, 2531, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->hmask), 1+0); 1166 dasm_put(Dst, 2535, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->hmask), 1+0);
1166 dasm_put(Dst, 2612, 1+1, LJ_TTAB, Dt8(->upvalue[0]), LJ_TFUNC); 1167 dasm_put(Dst, 2616, 1+1, LJ_TTAB, Dt8(->upvalue[0]), LJ_TFUNC);
1167 if (sse) { 1168 if (sse) {
1168 dasm_put(Dst, 2650); 1169 dasm_put(Dst, 2654);
1169 } else { 1170 } else {
1170 dasm_put(Dst, 2660); 1171 dasm_put(Dst, 2664);
1171 } 1172 }
1172 dasm_put(Dst, 2667, 1+3, 1+1, 8+FRAME_PCALL, DISPATCH_GL(hookmask), HOOK_ACTIVE_SHIFT, 2+1, LJ_TFUNC); 1173 dasm_put(Dst, 2671, 1+3, 1+1, 8+FRAME_PCALL, DISPATCH_GL(hookmask), HOOK_ACTIVE_SHIFT, 2+1, LJ_TFUNC);
1173 dasm_put(Dst, 2731, LJ_TFUNC, 16+FRAME_PCALL, 1+1, LJ_TTHREAD, Dt1(->cframe), Dt1(->status), LUA_YIELD, Dt1(->top)); 1174 dasm_put(Dst, 2735, LJ_TFUNC, 16+FRAME_PCALL, 1+1, LJ_TTHREAD, Dt1(->cframe), Dt1(->status), LUA_YIELD, Dt1(->top));
1174 dasm_put(Dst, 2819, Dt1(->base), Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP); 1175 dasm_put(Dst, 2823, Dt1(->base), Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP);
1175 dasm_put(Dst, 2920, Dt1(->base), LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top), Dt1(->maxstack), LJ_TTRUE, FRAME_TYPE); 1176 dasm_put(Dst, 2924, Dt1(->base), LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top), Dt1(->maxstack), LJ_TTRUE, FRAME_TYPE);
1176 dasm_put(Dst, 3034, LJ_TFALSE, Dt1(->top), Dt1(->top), 1+2, Dt1(->top), Dt1(->base), Dt8(->upvalue[0].gcr), Dt1(->cframe)); 1177 dasm_put(Dst, 3038, LJ_TFALSE, Dt1(->top), Dt1(->top), 1+2, Dt1(->top), Dt1(->base), Dt8(->upvalue[0].gcr), Dt1(->cframe));
1177 dasm_put(Dst, 3129, Dt1(->status), LUA_YIELD, Dt1(->top), Dt1(->base), Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top)); 1178 dasm_put(Dst, 3133, Dt1(->status), LUA_YIELD, Dt1(->top), Dt1(->base), Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top));
1178 dasm_put(Dst, 3195, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top), Dt1(->maxstack)); 1179 dasm_put(Dst, 3199, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top), Dt1(->maxstack));
1179 dasm_put(Dst, 3296, FRAME_TYPE, Dt1(->top), Dt1(->base), Dt1(->cframe), CFRAME_RESUME); 1180 dasm_put(Dst, 3300, FRAME_TYPE, Dt1(->top), Dt1(->base), Dt1(->cframe), CFRAME_RESUME);
1180 dasm_put(Dst, 3406, Dt1(->base), Dt1(->top), Dt1(->cframe), LUA_YIELD, Dt1(->status)); 1181 dasm_put(Dst, 3410, Dt1(->base), Dt1(->top), Dt1(->cframe), LUA_YIELD, Dt1(->status));
1181 if (sse) { 1182 if (sse) {
1182 dasm_put(Dst, 3432, 1+1, LJ_TISNUM); 1183 dasm_put(Dst, 3436, 1+1, LJ_TISNUM);
1183 } else { 1184 } else {
1184 dasm_put(Dst, 3501, 1+1, LJ_TISNUM); 1185 dasm_put(Dst, 3505, 1+1, LJ_TISNUM);
1185 } 1186 }
1186 dasm_put(Dst, 3537, 1+1, FRAME_TYPE, LJ_TNIL); 1187 dasm_put(Dst, 3541, 1+1, FRAME_TYPE, LJ_TNIL);
1187 if (sse) { 1188 if (sse) {
1188 dasm_put(Dst, 3627, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM); 1189 dasm_put(Dst, 3631, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM);
1189 dasm_put(Dst, 3689, 1+1, LJ_TISNUM); 1190 dasm_put(Dst, 3693, 1+1, LJ_TISNUM);
1190 } else { 1191 } else {
1191 dasm_put(Dst, 3719, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM); 1192 dasm_put(Dst, 3723, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM);
1192 dasm_put(Dst, 3778, 1+1, LJ_TISNUM); 1193 dasm_put(Dst, 3782, 1+1, LJ_TISNUM);
1193 } 1194 }
1194 dasm_put(Dst, 3805, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1); 1195 dasm_put(Dst, 3809, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1);
1195 dasm_put(Dst, 3874, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1); 1196 dasm_put(Dst, 3878, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1);
1196 dasm_put(Dst, 3931, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1); 1197 dasm_put(Dst, 3935, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1);
1197 dasm_put(Dst, 3994, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM); 1198 dasm_put(Dst, 3998, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM);
1198 dasm_put(Dst, 4084); 1199 dasm_put(Dst, 4088);
1199 if (sse) { 1200 if (sse) {
1200 dasm_put(Dst, 4096, 1+1, LJ_TISNUM); 1201 dasm_put(Dst, 4100, 1+1, LJ_TISNUM);
1201 } else { 1202 } else {
1202 dasm_put(Dst, 4127, 1+1, LJ_TISNUM); 1203 dasm_put(Dst, 4131, 1+1, LJ_TISNUM);
1203 } 1204 }
1204 dasm_put(Dst, 4152); 1205 dasm_put(Dst, 4156);
1205 if (sse) { 1206 if (sse) {
1206 dasm_put(Dst, 4166, 1+1, LJ_TISNUM); 1207 dasm_put(Dst, 4170, 1+1, LJ_TISNUM);
1207 } else { 1208 } else {
1208 dasm_put(Dst, 4197, 1+1, LJ_TISNUM); 1209 dasm_put(Dst, 4201, 1+1, LJ_TISNUM);
1209 } 1210 }
1210 dasm_put(Dst, 4222); 1211 dasm_put(Dst, 4226);
1211 if (sse) { 1212 if (sse) {
1212 dasm_put(Dst, 4236, 1+1, LJ_TISNUM); 1213 dasm_put(Dst, 4240, 1+1, LJ_TISNUM);
1213 } else { 1214 } else {
1214 dasm_put(Dst, 4267, 1+1, LJ_TISNUM); 1215 dasm_put(Dst, 4271, 1+1, LJ_TISNUM);
1215 } 1216 }
1216 dasm_put(Dst, 4292); 1217 dasm_put(Dst, 4296);
1217 if (sse) { 1218 if (sse) {
1218 dasm_put(Dst, 4308, 1+1, LJ_TISNUM, Dt8(->upvalue[0])); 1219 dasm_put(Dst, 4312, 1+1, LJ_TISNUM, Dt8(->upvalue[0]));
1219 } else { 1220 } else {
1220 dasm_put(Dst, 4347, 1+1, LJ_TISNUM, Dt8(->upvalue[0])); 1221 dasm_put(Dst, 4351, 1+1, LJ_TISNUM, Dt8(->upvalue[0]));
1221 } 1222 }
1222 dasm_put(Dst, 4380, 2+1, LJ_TISNUM, LJ_TISNUM, 2+1, LJ_TISNUM, LJ_TISNUM); 1223 dasm_put(Dst, 4384, 2+1, LJ_TISNUM, LJ_TISNUM, 2+1, LJ_TISNUM, LJ_TISNUM);
1223 dasm_put(Dst, 4445, 1+1, LJ_TISNUM); 1224 dasm_put(Dst, 4449, 1+1, LJ_TISNUM);
1224 if (sse) { 1225 if (sse) {
1225 dasm_put(Dst, 4544); 1226 dasm_put(Dst, 4548);
1226 } else { 1227 } else {
1227 dasm_put(Dst, 4550); 1228 dasm_put(Dst, 4554);
1228 } 1229 }
1229 dasm_put(Dst, 4559); 1230 dasm_put(Dst, 4563);
1230 if (sse) { 1231 if (sse) {
1231 dasm_put(Dst, 4584); 1232 dasm_put(Dst, 4588);
1232 } else { 1233 } else {
1233 dasm_put(Dst, 4590); 1234 dasm_put(Dst, 4594);
1234 } 1235 }
1235 dasm_put(Dst, 4593, 1+2); 1236 dasm_put(Dst, 4597, 1+2);
1236 if (sse) { 1237 if (sse) {
1237 dasm_put(Dst, 4602); 1238 dasm_put(Dst, 4606);
1238 } else { 1239 } else {
1239 dasm_put(Dst, 4610); 1240 dasm_put(Dst, 4614);
1240 } 1241 }
1241 dasm_put(Dst, 4618); 1242 dasm_put(Dst, 4622);
1242 if (sse) { 1243 if (sse) {
1243 dasm_put(Dst, 4621); 1244 dasm_put(Dst, 4625);
1244 } else { 1245 } else {
1245 dasm_put(Dst, 4653); 1246 dasm_put(Dst, 4657);
1246 } 1247 }
1247 dasm_put(Dst, 4672); 1248 dasm_put(Dst, 4676);
1248 if (sse) { 1249 if (sse) {
1249 dasm_put(Dst, 4688, 1+1, LJ_TISNUM); 1250 dasm_put(Dst, 4692, 1+1, LJ_TISNUM);
1250 } else { 1251 } else {
1251 dasm_put(Dst, 4713, 1+1, LJ_TISNUM); 1252 dasm_put(Dst, 4717, 1+1, LJ_TISNUM);
1252 } 1253 }
1253 dasm_put(Dst, 4735); 1254 dasm_put(Dst, 4739);
1254 if (sse) { 1255 if (sse) {
1255 dasm_put(Dst, 4757); 1256 dasm_put(Dst, 4761);
1256 } else { 1257 } else {
1257 dasm_put(Dst, 4783); 1258 dasm_put(Dst, 4787);
1258 } 1259 }
1259 dasm_put(Dst, 4800, 1+2); 1260 dasm_put(Dst, 4804, 1+2);
1260 if (sse) { 1261 if (sse) {
1261 dasm_put(Dst, 4840); 1262 dasm_put(Dst, 4844);
1262 } else { 1263 } else {
1263 dasm_put(Dst, 4848); 1264 dasm_put(Dst, 4852);
1264 } 1265 }
1265 dasm_put(Dst, 4858, 2+1, LJ_TISNUM, LJ_TISNUM); 1266 dasm_put(Dst, 4862, 2+1, LJ_TISNUM, LJ_TISNUM);
1266 if (sse) { 1267 if (sse) {
1267 dasm_put(Dst, 4910, 2+1, LJ_TISNUM, LJ_TISNUM); 1268 dasm_put(Dst, 4914, 2+1, LJ_TISNUM, LJ_TISNUM);
1268 } else { 1269 } else {
1269 dasm_put(Dst, 4957, 2+1, LJ_TISNUM, LJ_TISNUM); 1270 dasm_put(Dst, 4961, 2+1, LJ_TISNUM, LJ_TISNUM);
1270 } 1271 }
1271 if (sse) { 1272 if (sse) {
1272 dasm_put(Dst, 4998, 1+1, LJ_TISNUM, LJ_TISNUM); 1273 dasm_put(Dst, 5002, 1+1, LJ_TISNUM, LJ_TISNUM);
1273 } else { 1274 } else {
1274 dasm_put(Dst, 5069, 1+1, LJ_TISNUM, LJ_TISNUM); 1275 dasm_put(Dst, 5073, 1+1, LJ_TISNUM, LJ_TISNUM);
1275 if (cmov) { 1276 if (cmov) {
1276 dasm_put(Dst, 5122); 1277 dasm_put(Dst, 5126);
1277 } else { 1278 } else {
1278 dasm_put(Dst, 5130); 1279 dasm_put(Dst, 5134);
1279 } 1280 }
1280 dasm_put(Dst, 5061); 1281 dasm_put(Dst, 5065);
1281 } 1282 }
1282 if (sse) { 1283 if (sse) {
1283 dasm_put(Dst, 5151, 1+1, LJ_TISNUM, LJ_TISNUM); 1284 dasm_put(Dst, 5155, 1+1, LJ_TISNUM, LJ_TISNUM);
1284 } else { 1285 } else {
1285 dasm_put(Dst, 5222, 1+1, LJ_TISNUM, LJ_TISNUM); 1286 dasm_put(Dst, 5226, 1+1, LJ_TISNUM, LJ_TISNUM);
1286 if (cmov) { 1287 if (cmov) {
1287 dasm_put(Dst, 5275); 1288 dasm_put(Dst, 5279);
1288 } else { 1289 } else {
1289 dasm_put(Dst, 5283); 1290 dasm_put(Dst, 5287);
1290 } 1291 }
1291 dasm_put(Dst, 5061); 1292 dasm_put(Dst, 5065);
1292 } 1293 }
1293 if (!sse) { 1294 if (!sse) {
1294 dasm_put(Dst, 5304); 1295 dasm_put(Dst, 5308);
1295 } 1296 }
1296 dasm_put(Dst, 5313, 1+1, LJ_TSTR); 1297 dasm_put(Dst, 5317, 1+1, LJ_TSTR);
1297 if (sse) { 1298 if (sse) {
1298 dasm_put(Dst, 5335, Dt5(->len)); 1299 dasm_put(Dst, 5339, Dt5(->len));
1299 } else { 1300 } else {
1300 dasm_put(Dst, 5346, Dt5(->len)); 1301 dasm_put(Dst, 5350, Dt5(->len));
1301 } 1302 }
1302 dasm_put(Dst, 5354, 1+1, LJ_TSTR, Dt5(->len), Dt5([1])); 1303 dasm_put(Dst, 5358, 1+1, LJ_TSTR, Dt5(->len), Dt5([1]));
1303 if (sse) { 1304 if (sse) {
1304 dasm_put(Dst, 5392); 1305 dasm_put(Dst, 5396);
1305 } else { 1306 } else {
1306 dasm_put(Dst, 5402); 1307 dasm_put(Dst, 5406);
1307 } 1308 }
1308 dasm_put(Dst, 5415, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+1, LJ_TISNUM); 1309 dasm_put(Dst, 5419, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+1, LJ_TISNUM);
1309 if (sse) { 1310 if (sse) {
1310 dasm_put(Dst, 5450); 1311 dasm_put(Dst, 5454);
1311 } else { 1312 } else {
1312 dasm_put(Dst, 5472); 1313 dasm_put(Dst, 5476);
1313 } 1314 }
1314 dasm_put(Dst, 5492, Dt1(->base), Dt1(->base), LJ_TSTR, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+2, LJ_TISNUM); 1315 dasm_put(Dst, 5496, Dt1(->base), Dt1(->base), LJ_TSTR, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+2, LJ_TISNUM);
1315 dasm_put(Dst, 2142); 1316 dasm_put(Dst, 2146);
1316 if (sse) { 1317 if (sse) {
1317 dasm_put(Dst, 5595); 1318 dasm_put(Dst, 5599);
1318 } else { 1319 } else {
1319 dasm_put(Dst, 5606); 1320 dasm_put(Dst, 5610);
1320 } 1321 }
1321 dasm_put(Dst, 5614, LJ_TSTR, LJ_TISNUM, Dt5(->len)); 1322 dasm_put(Dst, 5618, LJ_TSTR, LJ_TISNUM, Dt5(->len));
1322 if (sse) { 1323 if (sse) {
1323 dasm_put(Dst, 5644); 1324 dasm_put(Dst, 5648);
1324 } else { 1325 } else {
1325 dasm_put(Dst, 5651); 1326 dasm_put(Dst, 5655);
1326 } 1327 }
1327 dasm_put(Dst, 5663, sizeof(GCstr)-1); 1328 dasm_put(Dst, 5667, sizeof(GCstr)-1);
1328 dasm_put(Dst, 5738, 2+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold)); 1329 dasm_put(Dst, 5742, 2+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold));
1329 dasm_put(Dst, 5797, LJ_TSTR, LJ_TISNUM); 1330 dasm_put(Dst, 5801, LJ_TSTR, LJ_TISNUM);
1330 if (sse) { 1331 if (sse) {
1331 dasm_put(Dst, 5818); 1332 dasm_put(Dst, 5822);
1332 } else { 1333 } else {
1333 dasm_put(Dst, 5825); 1334 dasm_put(Dst, 5829);
1334 } 1335 }
1335 dasm_put(Dst, 5837, Dt5(->len), DISPATCH_GL(tmpbuf.sz), Dt5([1]), DISPATCH_GL(tmpbuf.buf), DISPATCH_GL(tmpbuf.buf), 1+1); 1336 dasm_put(Dst, 5841, Dt5(->len), DISPATCH_GL(tmpbuf.sz), Dt5([1]), DISPATCH_GL(tmpbuf.buf), DISPATCH_GL(tmpbuf.buf), 1+1);
1336 dasm_put(Dst, 5902, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf)); 1337 dasm_put(Dst, 5906, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf));
1337 dasm_put(Dst, 5965, 1+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz)); 1338 dasm_put(Dst, 5969, 1+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz));
1338 dasm_put(Dst, 6036, sizeof(GCstr), DISPATCH_GL(tmpbuf.buf), 1+1); 1339 dasm_put(Dst, 6040, sizeof(GCstr), DISPATCH_GL(tmpbuf.buf), 1+1);
1339 dasm_put(Dst, 6121, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf)); 1340 dasm_put(Dst, 6125, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf));
1340 dasm_put(Dst, 6191, 1+1, LJ_TTAB); 1341 dasm_put(Dst, 6195, 1+1, LJ_TTAB);
1341 if (sse) { 1342 if (sse) {
1342 dasm_put(Dst, 6259); 1343 dasm_put(Dst, 6263);
1343 } else { 1344 } else {
1344 dasm_put(Dst, 6269); 1345 dasm_put(Dst, 6273);
1345 } 1346 }
1346 if (sse) { 1347 if (sse) {
1347 dasm_put(Dst, 6280, 1+1, LJ_TISNUM); 1348 dasm_put(Dst, 6284, 1+1, LJ_TISNUM);
1348 } else { 1349 } else {
1349 dasm_put(Dst, 6337, 1+1, LJ_TISNUM); 1350 dasm_put(Dst, 6341, 1+1, LJ_TISNUM);
1350 } 1351 }
1351 if (sse) { 1352 if (sse) {
1352 dasm_put(Dst, 6381, 1+1, LJ_TISNUM); 1353 dasm_put(Dst, 6385, 1+1, LJ_TISNUM);
1353 } else { 1354 } else {
1354 dasm_put(Dst, 6429, 1+1, LJ_TISNUM); 1355 dasm_put(Dst, 6433, 1+1, LJ_TISNUM);
1355 } 1356 }
1356 dasm_put(Dst, 6469, LJ_TISNUM); 1357 dasm_put(Dst, 6473, LJ_TISNUM);
1357 if (sse) { 1358 if (sse) {
1358 dasm_put(Dst, 6496); 1359 dasm_put(Dst, 6500);
1359 } else { 1360 } else {
1360 dasm_put(Dst, 6513); 1361 dasm_put(Dst, 6517);
1361 } 1362 }
1362 dasm_put(Dst, 6526); 1363 dasm_put(Dst, 6530);
1363 if (sse) { 1364 if (sse) {
1364 dasm_put(Dst, 6534, 1+1, LJ_TISNUM); 1365 dasm_put(Dst, 6538, 1+1, LJ_TISNUM);
1365 } else { 1366 } else {
1366 dasm_put(Dst, 6582, 1+1, LJ_TISNUM); 1367 dasm_put(Dst, 6586, 1+1, LJ_TISNUM);
1367 } 1368 }
1368 dasm_put(Dst, 6469, LJ_TISNUM); 1369 dasm_put(Dst, 6473, LJ_TISNUM);
1369 if (sse) { 1370 if (sse) {
1370 dasm_put(Dst, 6622); 1371 dasm_put(Dst, 6626);
1371 } else { 1372 } else {
1372 dasm_put(Dst, 6639); 1373 dasm_put(Dst, 6643);
1373 } 1374 }
1374 dasm_put(Dst, 6526); 1375 dasm_put(Dst, 6530);
1375 if (sse) { 1376 if (sse) {
1376 dasm_put(Dst, 6652, 1+1, LJ_TISNUM); 1377 dasm_put(Dst, 6656, 1+1, LJ_TISNUM);
1377 } else { 1378 } else {
1378 dasm_put(Dst, 6700, 1+1, LJ_TISNUM); 1379 dasm_put(Dst, 6704, 1+1, LJ_TISNUM);
1379 } 1380 }
1380 dasm_put(Dst, 6469, LJ_TISNUM); 1381 dasm_put(Dst, 6473, LJ_TISNUM);
1381 if (sse) { 1382 if (sse) {
1382 dasm_put(Dst, 6740); 1383 dasm_put(Dst, 6744);
1383 } else { 1384 } else {
1384 dasm_put(Dst, 6757); 1385 dasm_put(Dst, 6761);
1385 } 1386 }
1386 dasm_put(Dst, 6526); 1387 dasm_put(Dst, 6530);
1387 if (sse) { 1388 if (sse) {
1388 dasm_put(Dst, 6770, 1+1, LJ_TISNUM); 1389 dasm_put(Dst, 6774, 1+1, LJ_TISNUM);
1389 } else { 1390 } else {
1390 dasm_put(Dst, 6818, 1+1, LJ_TISNUM); 1391 dasm_put(Dst, 6822, 1+1, LJ_TISNUM);
1391 } 1392 }
1392 dasm_put(Dst, 6858); 1393 dasm_put(Dst, 6862);
1393 if (sse) { 1394 if (sse) {
1394 dasm_put(Dst, 6865, 1+1, LJ_TISNUM); 1395 dasm_put(Dst, 6869, 1+1, LJ_TISNUM);
1395 } else { 1396 } else {
1396 dasm_put(Dst, 6913, 1+1, LJ_TISNUM); 1397 dasm_put(Dst, 6917, 1+1, LJ_TISNUM);
1397 } 1398 }
1398 dasm_put(Dst, 6953); 1399 dasm_put(Dst, 6957);
1399 if (sse) { 1400 if (sse) {
1400 dasm_put(Dst, 6957); 1401 dasm_put(Dst, 6961);
1401 } else { 1402 } else {
1402 dasm_put(Dst, 6969); 1403 dasm_put(Dst, 6973);
1403 } 1404 }
1404 dasm_put(Dst, 6982); 1405 dasm_put(Dst, 6986);
1405 if (sse) { 1406 if (sse) {
1406 dasm_put(Dst, 6993, 2+1, LJ_TISNUM, LJ_TISNUM); 1407 dasm_put(Dst, 6997, 2+1, LJ_TISNUM, LJ_TISNUM);
1407 } else { 1408 } else {
1408 dasm_put(Dst, 7067, 2+1, LJ_TISNUM, LJ_TISNUM); 1409 dasm_put(Dst, 7071, 2+1, LJ_TISNUM, LJ_TISNUM);
1409 } 1410 }
1410 dasm_put(Dst, 7133); 1411 dasm_put(Dst, 7137);
1411 if (sse) { 1412 if (sse) {
1412 dasm_put(Dst, 7142, 2+1, LJ_TISNUM, LJ_TISNUM); 1413 dasm_put(Dst, 7146, 2+1, LJ_TISNUM, LJ_TISNUM);
1413 } else { 1414 } else {
1414 dasm_put(Dst, 7216, 2+1, LJ_TISNUM, LJ_TISNUM); 1415 dasm_put(Dst, 7220, 2+1, LJ_TISNUM, LJ_TISNUM);
1415 } 1416 }
1416 dasm_put(Dst, 7282); 1417 dasm_put(Dst, 7286);
1417 if (sse) { 1418 if (sse) {
1418 dasm_put(Dst, 7292, 2+1, LJ_TISNUM, LJ_TISNUM); 1419 dasm_put(Dst, 7296, 2+1, LJ_TISNUM, LJ_TISNUM);
1419 } else { 1420 } else {
1420 dasm_put(Dst, 7366, 2+1, LJ_TISNUM, LJ_TISNUM); 1421 dasm_put(Dst, 7370, 2+1, LJ_TISNUM, LJ_TISNUM);
1421 } 1422 }
1422 dasm_put(Dst, 7432); 1423 dasm_put(Dst, 7436);
1423 if (sse) { 1424 if (sse) {
1424 dasm_put(Dst, 7442, 2+1, LJ_TISNUM, LJ_TISNUM); 1425 dasm_put(Dst, 7446, 2+1, LJ_TISNUM, LJ_TISNUM);
1425 } else { 1426 } else {
1426 dasm_put(Dst, 7516, 2+1, LJ_TISNUM, LJ_TISNUM); 1427 dasm_put(Dst, 7520, 2+1, LJ_TISNUM, LJ_TISNUM);
1427 } 1428 }
1428 dasm_put(Dst, 7582); 1429 dasm_put(Dst, 7586);
1429 if (sse) { 1430 if (sse) {
1430 dasm_put(Dst, 7591, 2+1, LJ_TISNUM, LJ_TISNUM); 1431 dasm_put(Dst, 7595, 2+1, LJ_TISNUM, LJ_TISNUM);
1431 } else { 1432 } else {
1432 dasm_put(Dst, 7665, 2+1, LJ_TISNUM, LJ_TISNUM); 1433 dasm_put(Dst, 7669, 2+1, LJ_TISNUM, LJ_TISNUM);
1433 } 1434 }
1434 dasm_put(Dst, 7731, 1+2, 1+1, Dt1(->base), 8*LUA_MINSTACK, Dt1(->top), Dt1(->maxstack), Dt8(->f), Dt1(->base)); 1435 dasm_put(Dst, 7735, 1+2, 1+1, Dt1(->base), 8*LUA_MINSTACK, Dt1(->top), Dt1(->maxstack), Dt8(->f), Dt1(->base));
1435 dasm_put(Dst, 7809, Dt1(->top), Dt7(->pc), FRAME_TYPE, LUA_MINSTACK, Dt1(->base), Dt1(->base)); 1436 dasm_put(Dst, 7813, Dt1(->top), Dt7(->pc), FRAME_TYPE, LUA_MINSTACK, Dt1(->base), Dt1(->base));
1436 dasm_put(Dst, 7932, Dt1(->top), Dt1(->base), Dt1(->top)); 1437 dasm_put(Dst, 7936, Dt1(->top), Dt1(->base), Dt1(->top));
1437#if LJ_HASJIT 1438#if LJ_HASJIT
1438 dasm_put(Dst, 7970, DISPATCH_GL(hookmask), HOOK_VMEVENT, HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount)); 1439 dasm_put(Dst, 7974, DISPATCH_GL(hookmask), HOOK_VMEVENT, HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount));
1439#endif 1440#endif
1440 dasm_put(Dst, 8001, DISPATCH_GL(hookmask), HOOK_ACTIVE, DISPATCH_GL(hookmask), HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount), LUA_MASKLINE); 1441 dasm_put(Dst, 8005, DISPATCH_GL(hookmask), HOOK_ACTIVE, DISPATCH_GL(hookmask), HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount), LUA_MASKLINE);
1441 dasm_put(Dst, 8052, Dt1(->base), Dt1(->base), GG_DISP2STATIC); 1442 dasm_put(Dst, 8056, Dt1(->base), Dt1(->base), GG_DISP2STATIC);
1442#if LJ_HASJIT 1443#if LJ_HASJIT
1443 dasm_put(Dst, 8118, Dt7(->pc), PC2PROTO(framesize), Dt1(->base), Dt1(->top), GG_DISP2J, DISPATCH_J(L)); 1444 dasm_put(Dst, 8122, Dt7(->pc), PC2PROTO(framesize), Dt1(->base), Dt1(->top), GG_DISP2J, DISPATCH_J(L));
1444#endif 1445#endif
1445 dasm_put(Dst, 8164); 1446 dasm_put(Dst, 8168);
1446#if LJ_HASJIT 1447#if LJ_HASJIT
1447 dasm_put(Dst, 7996); 1448 dasm_put(Dst, 8000);
1448#endif 1449#endif
1449 dasm_put(Dst, 8171); 1450 dasm_put(Dst, 8175);
1450#if LJ_HASJIT 1451#if LJ_HASJIT
1451 dasm_put(Dst, 8174); 1452 dasm_put(Dst, 8178);
1452#endif 1453#endif
1453 dasm_put(Dst, 8184, Dt1(->base), Dt1(->top)); 1454 dasm_put(Dst, 8188, Dt1(->base), Dt1(->top));
1454#if LJ_HASJIT 1455#if LJ_HASJIT
1455 dasm_put(Dst, 8218); 1456 dasm_put(Dst, 8222);
1456#endif 1457#endif
1457 dasm_put(Dst, 8223, Dt1(->base), Dt1(->top)); 1458 dasm_put(Dst, 8227, Dt1(->base), Dt1(->top));
1458#if LJ_HASJIT 1459#if LJ_HASJIT
1459 dasm_put(Dst, 8252, DISPATCH_GL(vmstate), DISPATCH_GL(vmstate), ~LJ_VMST_EXIT, DISPATCH_J(exitno), DISPATCH_J(parent), 8*8+16, DISPATCH_GL(jit_L), DISPATCH_GL(jit_base), DISPATCH_J(L), DISPATCH_GL(jit_L), Dt1(->base), GG_DISP2J, Dt1(->cframe), CFRAME_RAWMASK, CFRAME_OFS_L, Dt1(->base), CFRAME_OFS_PC); 1460 dasm_put(Dst, 8256, DISPATCH_GL(vmstate), DISPATCH_GL(vmstate), ~LJ_VMST_EXIT, DISPATCH_J(exitno), DISPATCH_J(parent), 8*8+16, DISPATCH_GL(jit_L), DISPATCH_GL(jit_base), DISPATCH_J(L), DISPATCH_GL(jit_L), Dt1(->base), GG_DISP2J, Dt1(->cframe), CFRAME_RAWMASK, CFRAME_OFS_L, Dt1(->base), CFRAME_OFS_PC);
1460#endif 1461#endif
1461 dasm_put(Dst, 8395); 1462 dasm_put(Dst, 8399);
1462#if LJ_HASJIT 1463#if LJ_HASJIT
1463 dasm_put(Dst, 8398, Dt7(->pc), PC2PROTO(k), DISPATCH_GL(jit_L), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, BC_FUNCF); 1464 dasm_put(Dst, 8402, Dt7(->pc), PC2PROTO(k), DISPATCH_GL(jit_L), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, BC_FUNCF);
1464#endif 1465#endif
1465 dasm_put(Dst, 8476); 1466 dasm_put(Dst, 8480);
1466 if (!sse) { 1467 if (!sse) {
1467 dasm_put(Dst, 8479); 1468 dasm_put(Dst, 8483);
1468 } 1469 }
1469 dasm_put(Dst, 8524); 1470 dasm_put(Dst, 8528);
1470 if (!sse) { 1471 if (!sse) {
1471 dasm_put(Dst, 8626); 1472 dasm_put(Dst, 8630);
1472 } 1473 }
1473 dasm_put(Dst, 8671); 1474 dasm_put(Dst, 8675);
1474 if (!sse) { 1475 if (!sse) {
1475 dasm_put(Dst, 8773); 1476 dasm_put(Dst, 8777);
1476 } 1477 }
1477 dasm_put(Dst, 8812); 1478 dasm_put(Dst, 8816);
1478 if (sse) { 1479 if (sse) {
1479 dasm_put(Dst, 8917); 1480 dasm_put(Dst, 8921);
1480 } else { 1481 } else {
1481 dasm_put(Dst, 9047); 1482 dasm_put(Dst, 9051);
1482 } 1483 }
1483 dasm_put(Dst, 9094); 1484 dasm_put(Dst, 9098);
1484 if (!sse) { 1485 if (!sse) {
1485 dasm_put(Dst, 9168); 1486 dasm_put(Dst, 9172);
1486 if (cmov) { 1487 if (cmov) {
1487 dasm_put(Dst, 9179);
1488 } else {
1489 dasm_put(Dst, 9183); 1488 dasm_put(Dst, 9183);
1489 } else {
1490 dasm_put(Dst, 9187);
1490 } 1491 }
1491 dasm_put(Dst, 9190); 1492 dasm_put(Dst, 9194);
1492 dasm_put(Dst, 9264); 1493 dasm_put(Dst, 9268);
1493 dasm_put(Dst, 9364); 1494 dasm_put(Dst, 9368);
1494 if (cmov) { 1495 if (cmov) {
1495 dasm_put(Dst, 9367);
1496 } else {
1497 dasm_put(Dst, 9371); 1496 dasm_put(Dst, 9371);
1497 } else {
1498 dasm_put(Dst, 9375);
1498 } 1499 }
1499 dasm_put(Dst, 9378); 1500 dasm_put(Dst, 9382);
1500 if (cmov) { 1501 if (cmov) {
1501 dasm_put(Dst, 9179);
1502 } else {
1503 dasm_put(Dst, 9183); 1502 dasm_put(Dst, 9183);
1503 } else {
1504 dasm_put(Dst, 9187);
1504 } 1505 }
1505 dasm_put(Dst, 9396); 1506 dasm_put(Dst, 9400);
1506 } else { 1507 } else {
1507 dasm_put(Dst, 9475); 1508 dasm_put(Dst, 9479);
1508 } 1509 }
1509 dasm_put(Dst, 9478); 1510 dasm_put(Dst, 9482);
1510 dasm_put(Dst, 9563); 1511 dasm_put(Dst, 9567);
1511 dasm_put(Dst, 9694); 1512 dasm_put(Dst, 9698);
1512 dasm_put(Dst, 9893); 1513 dasm_put(Dst, 9897);
1513 if (sse) { 1514 if (sse) {
1514 dasm_put(Dst, 9916); 1515 dasm_put(Dst, 9920);
1515 dasm_put(Dst, 9973); 1516 dasm_put(Dst, 9977);
1516 dasm_put(Dst, 10064); 1517 dasm_put(Dst, 10068);
1517 } else { 1518 } else {
1518 dasm_put(Dst, 10106); 1519 dasm_put(Dst, 10110);
1519 dasm_put(Dst, 10198); 1520 dasm_put(Dst, 10202);
1520 } 1521 }
1521 dasm_put(Dst, 10244); 1522 dasm_put(Dst, 10248);
1522 if (sse) { 1523 if (sse) {
1523 dasm_put(Dst, 10250); 1524 dasm_put(Dst, 10254);
1524 dasm_put(Dst, 10355); 1525 dasm_put(Dst, 10359);
1525 dasm_put(Dst, 10438); 1526 dasm_put(Dst, 10442);
1526 } else { 1527 } else {
1527 dasm_put(Dst, 10510); 1528 dasm_put(Dst, 10514);
1528 dasm_put(Dst, 10593); 1529 dasm_put(Dst, 10597);
1529 if (cmov) { 1530 if (cmov) {
1530 dasm_put(Dst, 10648); 1531 dasm_put(Dst, 10652);
1531 } else { 1532 } else {
1532 dasm_put(Dst, 10667); 1533 dasm_put(Dst, 10671);
1533 } 1534 }
1534 dasm_put(Dst, 10506); 1535 dasm_put(Dst, 10510);
1535 } 1536 }
1536 dasm_put(Dst, 10708); 1537 dasm_put(Dst, 10712);
1537} 1538}
1538 1539
1539/* Generate the code for a single instruction. */ 1540/* Generate the code for a single instruction. */
1540static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) 1541static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
1541{ 1542{
1542 int vk = 0; 1543 int vk = 0;
1543 dasm_put(Dst, 10762, defop); 1544 dasm_put(Dst, 10766, defop);
1544 1545
1545 switch (op) { 1546 switch (op) {
1546 1547
@@ -1549,613 +1550,613 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
1549 /* Remember: all ops branch for a true comparison, fall through otherwise. */ 1550 /* Remember: all ops branch for a true comparison, fall through otherwise. */
1550 1551
1551 case BC_ISLT: case BC_ISGE: case BC_ISLE: case BC_ISGT: 1552 case BC_ISLT: case BC_ISGE: case BC_ISLE: case BC_ISGT:
1552 dasm_put(Dst, 10764, LJ_TISNUM, LJ_TISNUM); 1553 dasm_put(Dst, 10768, LJ_TISNUM, LJ_TISNUM);
1553 if (sse) { 1554 if (sse) {
1554 dasm_put(Dst, 10785); 1555 dasm_put(Dst, 10789);
1555 } else { 1556 } else {
1556 dasm_put(Dst, 10800); 1557 dasm_put(Dst, 10804);
1557 if (cmov) { 1558 if (cmov) {
1558 dasm_put(Dst, 10810); 1559 dasm_put(Dst, 10814);
1559 } else { 1560 } else {
1560 dasm_put(Dst, 10816); 1561 dasm_put(Dst, 10820);
1561 } 1562 }
1562 } 1563 }
1563 switch (op) { 1564 switch (op) {
1564 case BC_ISLT: 1565 case BC_ISLT:
1565 dasm_put(Dst, 10823); 1566 dasm_put(Dst, 10827);
1566 break; 1567 break;
1567 case BC_ISGE: 1568 case BC_ISGE:
1568 dasm_put(Dst, 10059); 1569 dasm_put(Dst, 10063);
1569 break; 1570 break;
1570 case BC_ISLE: 1571 case BC_ISLE:
1571 dasm_put(Dst, 6186); 1572 dasm_put(Dst, 6190);
1572 break; 1573 break;
1573 case BC_ISGT: 1574 case BC_ISGT:
1574 dasm_put(Dst, 10828); 1575 dasm_put(Dst, 10832);
1575 break; 1576 break;
1576 default: break; /* Shut up GCC. */ 1577 default: break; /* Shut up GCC. */
1577 } 1578 }
1578 dasm_put(Dst, 10833, -BCBIAS_J*4); 1579 dasm_put(Dst, 10837, -BCBIAS_J*4);
1579 break; 1580 break;
1580 1581
1581 case BC_ISEQV: case BC_ISNEV: 1582 case BC_ISEQV: case BC_ISNEV:
1582 vk = op == BC_ISEQV; 1583 vk = op == BC_ISEQV;
1583 dasm_put(Dst, 10866, LJ_TISNUM, LJ_TISNUM); 1584 dasm_put(Dst, 10870, LJ_TISNUM, LJ_TISNUM);
1584 if (sse) { 1585 if (sse) {
1585 dasm_put(Dst, 10892); 1586 dasm_put(Dst, 10896);
1586 } else { 1587 } else {
1587 dasm_put(Dst, 10904); 1588 dasm_put(Dst, 10908);
1588 if (cmov) { 1589 if (cmov) {
1589 dasm_put(Dst, 10810); 1590 dasm_put(Dst, 10814);
1590 } else { 1591 } else {
1591 dasm_put(Dst, 10816); 1592 dasm_put(Dst, 10820);
1592 } 1593 }
1593 } 1594 }
1594 iseqne_fp: 1595 iseqne_fp:
1595 if (vk) { 1596 if (vk) {
1596 dasm_put(Dst, 10911); 1597 dasm_put(Dst, 10915);
1597 } else { 1598 } else {
1598 dasm_put(Dst, 10920); 1599 dasm_put(Dst, 10924);
1599 } 1600 }
1600 iseqne_end: 1601 iseqne_end:
1601 if (vk) { 1602 if (vk) {
1602 dasm_put(Dst, 10929, -BCBIAS_J*4); 1603 dasm_put(Dst, 10933, -BCBIAS_J*4);
1603 } else { 1604 } else {
1604 dasm_put(Dst, 10944, -BCBIAS_J*4); 1605 dasm_put(Dst, 10948, -BCBIAS_J*4);
1605 } 1606 }
1606 dasm_put(Dst, 10847); 1607 dasm_put(Dst, 10851);
1607 if (op == BC_ISEQV || op == BC_ISNEV) { 1608 if (op == BC_ISEQV || op == BC_ISNEV) {
1608 dasm_put(Dst, 10959, LJ_TISPRI, LJ_TISTABUD, Dt6(->metatable), Dt6(->nomm), 1<<MM_eq); 1609 dasm_put(Dst, 10963, LJ_TISPRI, LJ_TISTABUD, Dt6(->metatable), Dt6(->nomm), 1<<MM_eq);
1609 if (vk) { 1610 if (vk) {
1610 dasm_put(Dst, 11017);
1611 } else {
1612 dasm_put(Dst, 11021); 1611 dasm_put(Dst, 11021);
1612 } else {
1613 dasm_put(Dst, 11025);
1613 } 1614 }
1614 dasm_put(Dst, 11027); 1615 dasm_put(Dst, 11031);
1615 } 1616 }
1616 break; 1617 break;
1617 case BC_ISEQS: case BC_ISNES: 1618 case BC_ISEQS: case BC_ISNES:
1618 vk = op == BC_ISEQS; 1619 vk = op == BC_ISEQS;
1619 dasm_put(Dst, 11032, LJ_TSTR); 1620 dasm_put(Dst, 11036, LJ_TSTR);
1620 iseqne_test: 1621 iseqne_test:
1621 if (vk) { 1622 if (vk) {
1622 dasm_put(Dst, 10915); 1623 dasm_put(Dst, 10919);
1623 } else { 1624 } else {
1624 dasm_put(Dst, 2814); 1625 dasm_put(Dst, 2818);
1625 } 1626 }
1626 goto iseqne_end; 1627 goto iseqne_end;
1627 case BC_ISEQN: case BC_ISNEN: 1628 case BC_ISEQN: case BC_ISNEN:
1628 vk = op == BC_ISEQN; 1629 vk = op == BC_ISEQN;
1629 dasm_put(Dst, 11055, LJ_TISNUM); 1630 dasm_put(Dst, 11059, LJ_TISNUM);
1630 if (sse) { 1631 if (sse) {
1631 dasm_put(Dst, 11069); 1632 dasm_put(Dst, 11073);
1632 } else { 1633 } else {
1633 dasm_put(Dst, 11081); 1634 dasm_put(Dst, 11085);
1634 if (cmov) { 1635 if (cmov) {
1635 dasm_put(Dst, 10810); 1636 dasm_put(Dst, 10814);
1636 } else { 1637 } else {
1637 dasm_put(Dst, 10816); 1638 dasm_put(Dst, 10820);
1638 } 1639 }
1639 } 1640 }
1640 goto iseqne_fp; 1641 goto iseqne_fp;
1641 case BC_ISEQP: case BC_ISNEP: 1642 case BC_ISEQP: case BC_ISNEP:
1642 vk = op == BC_ISEQP; 1643 vk = op == BC_ISEQP;
1643 dasm_put(Dst, 11088); 1644 dasm_put(Dst, 11092);
1644 goto iseqne_test; 1645 goto iseqne_test;
1645 1646
1646 /* -- Unary test and copy ops ------------------------------------------- */ 1647 /* -- Unary test and copy ops ------------------------------------------- */
1647 1648
1648 case BC_ISTC: case BC_ISFC: case BC_IST: case BC_ISF: 1649 case BC_ISTC: case BC_ISFC: case BC_IST: case BC_ISF:
1649 dasm_put(Dst, 11099, LJ_TISTRUECOND); 1650 dasm_put(Dst, 11103, LJ_TISTRUECOND);
1650 if (op == BC_IST || op == BC_ISTC) { 1651 if (op == BC_IST || op == BC_ISTC) {
1651 dasm_put(Dst, 11111); 1652 dasm_put(Dst, 11115);
1652 } else { 1653 } else {
1653 dasm_put(Dst, 11116); 1654 dasm_put(Dst, 11120);
1654 } 1655 }
1655 if (op == BC_ISTC || op == BC_ISFC) { 1656 if (op == BC_ISTC || op == BC_ISFC) {
1656 dasm_put(Dst, 11121); 1657 dasm_put(Dst, 11125);
1657 } 1658 }
1658 dasm_put(Dst, 11132, -BCBIAS_J*4); 1659 dasm_put(Dst, 11136, -BCBIAS_J*4);
1659 break; 1660 break;
1660 1661
1661 /* -- Unary ops --------------------------------------------------------- */ 1662 /* -- Unary ops --------------------------------------------------------- */
1662 1663
1663 case BC_MOV: 1664 case BC_MOV:
1664 dasm_put(Dst, 11163); 1665 dasm_put(Dst, 11167);
1665 break; 1666 break;
1666 case BC_NOT: 1667 case BC_NOT:
1667 dasm_put(Dst, 11196, LJ_TISTRUECOND, LJ_TTRUE); 1668 dasm_put(Dst, 11200, LJ_TISTRUECOND, LJ_TTRUE);
1668 break; 1669 break;
1669 case BC_UNM: 1670 case BC_UNM:
1670 dasm_put(Dst, 11231, LJ_TISNUM); 1671 dasm_put(Dst, 11235, LJ_TISNUM);
1671 if (sse) { 1672 if (sse) {
1672 dasm_put(Dst, 11242); 1673 dasm_put(Dst, 11246);
1673 } else { 1674 } else {
1674 dasm_put(Dst, 11272); 1675 dasm_put(Dst, 11276);
1675 } 1676 }
1676 dasm_put(Dst, 10847); 1677 dasm_put(Dst, 10851);
1677 break; 1678 break;
1678 case BC_LEN: 1679 case BC_LEN:
1679 dasm_put(Dst, 11281, LJ_TSTR); 1680 dasm_put(Dst, 11285, LJ_TSTR);
1680 if (sse) { 1681 if (sse) {
1681 dasm_put(Dst, 11295, Dt5(->len)); 1682 dasm_put(Dst, 11299, Dt5(->len));
1682 } else { 1683 } else {
1683 dasm_put(Dst, 11313, Dt5(->len)); 1684 dasm_put(Dst, 11317, Dt5(->len));
1684 } 1685 }
1685 dasm_put(Dst, 11322, LJ_TTAB); 1686 dasm_put(Dst, 11326, LJ_TTAB);
1686 if (sse) { 1687 if (sse) {
1687 dasm_put(Dst, 11362); 1688 dasm_put(Dst, 11366);
1688 } else { 1689 } else {
1689 dasm_put(Dst, 11371); 1690 dasm_put(Dst, 11375);
1690 } 1691 }
1691 dasm_put(Dst, 11381); 1692 dasm_put(Dst, 11385);
1692 break; 1693 break;
1693 1694
1694 /* -- Binary ops -------------------------------------------------------- */ 1695 /* -- Binary ops -------------------------------------------------------- */
1695 1696
1696 1697
1697 case BC_ADDVN: case BC_ADDNV: case BC_ADDVV: 1698 case BC_ADDVN: case BC_ADDNV: case BC_ADDVV:
1698 dasm_put(Dst, 11391); 1699 dasm_put(Dst, 11395);
1699 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1700 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1700 switch (vk) { 1701 switch (vk) {
1701 case 0: 1702 case 0:
1702 dasm_put(Dst, 11399, LJ_TISNUM); 1703 dasm_put(Dst, 11403, LJ_TISNUM);
1703 if (sse) { 1704 if (sse) {
1704 dasm_put(Dst, 11411); 1705 dasm_put(Dst, 11415);
1705 } else { 1706 } else {
1706 dasm_put(Dst, 11425); 1707 dasm_put(Dst, 11429);
1707 } 1708 }
1708 break; 1709 break;
1709 case 1: 1710 case 1:
1710 dasm_put(Dst, 11433, LJ_TISNUM); 1711 dasm_put(Dst, 11437, LJ_TISNUM);
1711 if (sse) { 1712 if (sse) {
1712 dasm_put(Dst, 11445); 1713 dasm_put(Dst, 11449);
1713 } else { 1714 } else {
1714 dasm_put(Dst, 11459); 1715 dasm_put(Dst, 11463);
1715 } 1716 }
1716 break; 1717 break;
1717 default: 1718 default:
1718 dasm_put(Dst, 11467, LJ_TISNUM, LJ_TISNUM); 1719 dasm_put(Dst, 11471, LJ_TISNUM, LJ_TISNUM);
1719 if (sse) { 1720 if (sse) {
1720 dasm_put(Dst, 11489); 1721 dasm_put(Dst, 11493);
1721 } else { 1722 } else {
1722 dasm_put(Dst, 11503); 1723 dasm_put(Dst, 11507);
1723 } 1724 }
1724 break; 1725 break;
1725 } 1726 }
1726 if (sse) { 1727 if (sse) {
1727 dasm_put(Dst, 11265); 1728 dasm_put(Dst, 11269);
1728 } else { 1729 } else {
1729 dasm_put(Dst, 11277); 1730 dasm_put(Dst, 11281);
1730 } 1731 }
1731 dasm_put(Dst, 10847); 1732 dasm_put(Dst, 10851);
1732 break; 1733 break;
1733 case BC_SUBVN: case BC_SUBNV: case BC_SUBVV: 1734 case BC_SUBVN: case BC_SUBNV: case BC_SUBVV:
1734 dasm_put(Dst, 11391); 1735 dasm_put(Dst, 11395);
1735 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1736 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1736 switch (vk) { 1737 switch (vk) {
1737 case 0: 1738 case 0:
1738 dasm_put(Dst, 11399, LJ_TISNUM); 1739 dasm_put(Dst, 11403, LJ_TISNUM);
1739 if (sse) { 1740 if (sse) {
1740 dasm_put(Dst, 11511); 1741 dasm_put(Dst, 11515);
1741 } else { 1742 } else {
1742 dasm_put(Dst, 11525); 1743 dasm_put(Dst, 11529);
1743 } 1744 }
1744 break; 1745 break;
1745 case 1: 1746 case 1:
1746 dasm_put(Dst, 11433, LJ_TISNUM); 1747 dasm_put(Dst, 11437, LJ_TISNUM);
1747 if (sse) { 1748 if (sse) {
1748 dasm_put(Dst, 11533); 1749 dasm_put(Dst, 11537);
1749 } else { 1750 } else {
1750 dasm_put(Dst, 11547); 1751 dasm_put(Dst, 11551);
1751 } 1752 }
1752 break; 1753 break;
1753 default: 1754 default:
1754 dasm_put(Dst, 11467, LJ_TISNUM, LJ_TISNUM); 1755 dasm_put(Dst, 11471, LJ_TISNUM, LJ_TISNUM);
1755 if (sse) { 1756 if (sse) {
1756 dasm_put(Dst, 11555); 1757 dasm_put(Dst, 11559);
1757 } else { 1758 } else {
1758 dasm_put(Dst, 11569); 1759 dasm_put(Dst, 11573);
1759 } 1760 }
1760 break; 1761 break;
1761 } 1762 }
1762 if (sse) { 1763 if (sse) {
1763 dasm_put(Dst, 11265); 1764 dasm_put(Dst, 11269);
1764 } else { 1765 } else {
1765 dasm_put(Dst, 11277); 1766 dasm_put(Dst, 11281);
1766 } 1767 }
1767 dasm_put(Dst, 10847); 1768 dasm_put(Dst, 10851);
1768 break; 1769 break;
1769 case BC_MULVN: case BC_MULNV: case BC_MULVV: 1770 case BC_MULVN: case BC_MULNV: case BC_MULVV:
1770 dasm_put(Dst, 11391); 1771 dasm_put(Dst, 11395);
1771 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1772 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1772 switch (vk) { 1773 switch (vk) {
1773 case 0: 1774 case 0:
1774 dasm_put(Dst, 11399, LJ_TISNUM); 1775 dasm_put(Dst, 11403, LJ_TISNUM);
1775 if (sse) { 1776 if (sse) {
1776 dasm_put(Dst, 11577); 1777 dasm_put(Dst, 11581);
1777 } else { 1778 } else {
1778 dasm_put(Dst, 11591); 1779 dasm_put(Dst, 11595);
1779 } 1780 }
1780 break; 1781 break;
1781 case 1: 1782 case 1:
1782 dasm_put(Dst, 11433, LJ_TISNUM); 1783 dasm_put(Dst, 11437, LJ_TISNUM);
1783 if (sse) { 1784 if (sse) {
1784 dasm_put(Dst, 11599); 1785 dasm_put(Dst, 11603);
1785 } else { 1786 } else {
1786 dasm_put(Dst, 11613); 1787 dasm_put(Dst, 11617);
1787 } 1788 }
1788 break; 1789 break;
1789 default: 1790 default:
1790 dasm_put(Dst, 11467, LJ_TISNUM, LJ_TISNUM); 1791 dasm_put(Dst, 11471, LJ_TISNUM, LJ_TISNUM);
1791 if (sse) { 1792 if (sse) {
1792 dasm_put(Dst, 11621); 1793 dasm_put(Dst, 11625);
1793 } else { 1794 } else {
1794 dasm_put(Dst, 11635); 1795 dasm_put(Dst, 11639);
1795 } 1796 }
1796 break; 1797 break;
1797 } 1798 }
1798 if (sse) { 1799 if (sse) {
1799 dasm_put(Dst, 11265); 1800 dasm_put(Dst, 11269);
1800 } else { 1801 } else {
1801 dasm_put(Dst, 11277); 1802 dasm_put(Dst, 11281);
1802 } 1803 }
1803 dasm_put(Dst, 10847); 1804 dasm_put(Dst, 10851);
1804 break; 1805 break;
1805 case BC_DIVVN: case BC_DIVNV: case BC_DIVVV: 1806 case BC_DIVVN: case BC_DIVNV: case BC_DIVVV:
1806 dasm_put(Dst, 11391); 1807 dasm_put(Dst, 11395);
1807 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1808 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1808 switch (vk) { 1809 switch (vk) {
1809 case 0: 1810 case 0:
1810 dasm_put(Dst, 11399, LJ_TISNUM); 1811 dasm_put(Dst, 11403, LJ_TISNUM);
1811 if (sse) { 1812 if (sse) {
1812 dasm_put(Dst, 11643); 1813 dasm_put(Dst, 11647);
1813 } else { 1814 } else {
1814 dasm_put(Dst, 11657); 1815 dasm_put(Dst, 11661);
1815 } 1816 }
1816 break; 1817 break;
1817 case 1: 1818 case 1:
1818 dasm_put(Dst, 11433, LJ_TISNUM); 1819 dasm_put(Dst, 11437, LJ_TISNUM);
1819 if (sse) { 1820 if (sse) {
1820 dasm_put(Dst, 11665); 1821 dasm_put(Dst, 11669);
1821 } else { 1822 } else {
1822 dasm_put(Dst, 11679); 1823 dasm_put(Dst, 11683);
1823 } 1824 }
1824 break; 1825 break;
1825 default: 1826 default:
1826 dasm_put(Dst, 11467, LJ_TISNUM, LJ_TISNUM); 1827 dasm_put(Dst, 11471, LJ_TISNUM, LJ_TISNUM);
1827 if (sse) { 1828 if (sse) {
1828 dasm_put(Dst, 11687); 1829 dasm_put(Dst, 11691);
1829 } else { 1830 } else {
1830 dasm_put(Dst, 11701); 1831 dasm_put(Dst, 11705);
1831 } 1832 }
1832 break; 1833 break;
1833 } 1834 }
1834 if (sse) { 1835 if (sse) {
1835 dasm_put(Dst, 11265); 1836 dasm_put(Dst, 11269);
1836 } else { 1837 } else {
1837 dasm_put(Dst, 11277); 1838 dasm_put(Dst, 11281);
1838 } 1839 }
1839 dasm_put(Dst, 10847); 1840 dasm_put(Dst, 10851);
1840 break; 1841 break;
1841 case BC_MODVN: 1842 case BC_MODVN:
1842 dasm_put(Dst, 11391); 1843 dasm_put(Dst, 11395);
1843 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1844 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1844 switch (vk) { 1845 switch (vk) {
1845 case 0: 1846 case 0:
1846 dasm_put(Dst, 11399, LJ_TISNUM); 1847 dasm_put(Dst, 11403, LJ_TISNUM);
1847 if (sse) { 1848 if (sse) {
1848 dasm_put(Dst, 11709); 1849 dasm_put(Dst, 11713);
1849 } else { 1850 } else {
1850 dasm_put(Dst, 11723); 1851 dasm_put(Dst, 11727);
1851 } 1852 }
1852 break; 1853 break;
1853 case 1: 1854 case 1:
1854 dasm_put(Dst, 11433, LJ_TISNUM); 1855 dasm_put(Dst, 11437, LJ_TISNUM);
1855 if (sse) { 1856 if (sse) {
1856 dasm_put(Dst, 11731); 1857 dasm_put(Dst, 11735);
1857 } else { 1858 } else {
1858 dasm_put(Dst, 11745); 1859 dasm_put(Dst, 11749);
1859 } 1860 }
1860 break; 1861 break;
1861 default: 1862 default:
1862 dasm_put(Dst, 11467, LJ_TISNUM, LJ_TISNUM); 1863 dasm_put(Dst, 11471, LJ_TISNUM, LJ_TISNUM);
1863 if (sse) { 1864 if (sse) {
1864 dasm_put(Dst, 11753); 1865 dasm_put(Dst, 11757);
1865 } else { 1866 } else {
1866 dasm_put(Dst, 11767); 1867 dasm_put(Dst, 11771);
1867 } 1868 }
1868 break; 1869 break;
1869 } 1870 }
1870 dasm_put(Dst, 11775); 1871 dasm_put(Dst, 11779);
1871 if (sse) { 1872 if (sse) {
1872 dasm_put(Dst, 11265); 1873 dasm_put(Dst, 11269);
1873 } else { 1874 } else {
1874 dasm_put(Dst, 11277); 1875 dasm_put(Dst, 11281);
1875 } 1876 }
1876 dasm_put(Dst, 10847); 1877 dasm_put(Dst, 10851);
1877 break; 1878 break;
1878 case BC_MODNV: case BC_MODVV: 1879 case BC_MODNV: case BC_MODVV:
1879 dasm_put(Dst, 11391); 1880 dasm_put(Dst, 11395);
1880 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1881 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1881 switch (vk) { 1882 switch (vk) {
1882 case 0: 1883 case 0:
1883 dasm_put(Dst, 11399, LJ_TISNUM); 1884 dasm_put(Dst, 11403, LJ_TISNUM);
1884 if (sse) { 1885 if (sse) {
1885 dasm_put(Dst, 11709); 1886 dasm_put(Dst, 11713);
1886 } else { 1887 } else {
1887 dasm_put(Dst, 11723); 1888 dasm_put(Dst, 11727);
1888 } 1889 }
1889 break; 1890 break;
1890 case 1: 1891 case 1:
1891 dasm_put(Dst, 11433, LJ_TISNUM); 1892 dasm_put(Dst, 11437, LJ_TISNUM);
1892 if (sse) { 1893 if (sse) {
1893 dasm_put(Dst, 11731); 1894 dasm_put(Dst, 11735);
1894 } else { 1895 } else {
1895 dasm_put(Dst, 11745); 1896 dasm_put(Dst, 11749);
1896 } 1897 }
1897 break; 1898 break;
1898 default: 1899 default:
1899 dasm_put(Dst, 11467, LJ_TISNUM, LJ_TISNUM); 1900 dasm_put(Dst, 11471, LJ_TISNUM, LJ_TISNUM);
1900 if (sse) { 1901 if (sse) {
1901 dasm_put(Dst, 11753); 1902 dasm_put(Dst, 11757);
1902 } else { 1903 } else {
1903 dasm_put(Dst, 11767); 1904 dasm_put(Dst, 11771);
1904 } 1905 }
1905 break; 1906 break;
1906 } 1907 }
1907 dasm_put(Dst, 11781); 1908 dasm_put(Dst, 11785);
1908 break; 1909 break;
1909 case BC_POW: 1910 case BC_POW:
1910 dasm_put(Dst, 11391); 1911 dasm_put(Dst, 11395);
1911 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1912 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1912 switch (vk) { 1913 switch (vk) {
1913 case 0: 1914 case 0:
1914 dasm_put(Dst, 11399, LJ_TISNUM); 1915 dasm_put(Dst, 11403, LJ_TISNUM);
1915 if (sse) { 1916 if (sse) {
1916 dasm_put(Dst, 11709); 1917 dasm_put(Dst, 11713);
1917 } else { 1918 } else {
1918 dasm_put(Dst, 11723); 1919 dasm_put(Dst, 11727);
1919 } 1920 }
1920 break; 1921 break;
1921 case 1: 1922 case 1:
1922 dasm_put(Dst, 11433, LJ_TISNUM); 1923 dasm_put(Dst, 11437, LJ_TISNUM);
1923 if (sse) { 1924 if (sse) {
1924 dasm_put(Dst, 11731); 1925 dasm_put(Dst, 11735);
1925 } else { 1926 } else {
1926 dasm_put(Dst, 11745); 1927 dasm_put(Dst, 11749);
1927 } 1928 }
1928 break; 1929 break;
1929 default: 1930 default:
1930 dasm_put(Dst, 11467, LJ_TISNUM, LJ_TISNUM); 1931 dasm_put(Dst, 11471, LJ_TISNUM, LJ_TISNUM);
1931 if (sse) { 1932 if (sse) {
1932 dasm_put(Dst, 11753); 1933 dasm_put(Dst, 11757);
1933 } else { 1934 } else {
1934 dasm_put(Dst, 11767); 1935 dasm_put(Dst, 11771);
1935 } 1936 }
1936 break; 1937 break;
1937 } 1938 }
1938 dasm_put(Dst, 11786); 1939 dasm_put(Dst, 11790);
1939 if (sse) { 1940 if (sse) {
1940 dasm_put(Dst, 11265); 1941 dasm_put(Dst, 11269);
1941 } else { 1942 } else {
1942 dasm_put(Dst, 11277); 1943 dasm_put(Dst, 11281);
1943 } 1944 }
1944 dasm_put(Dst, 10847); 1945 dasm_put(Dst, 10851);
1945 break; 1946 break;
1946 1947
1947 case BC_CAT: 1948 case BC_CAT:
1948 dasm_put(Dst, 11790, Dt1(->base), Dt1(->base)); 1949 dasm_put(Dst, 11794, Dt1(->base), Dt1(->base));
1949 break; 1950 break;
1950 1951
1951 /* -- Constant ops ------------------------------------------------------ */ 1952 /* -- Constant ops ------------------------------------------------------ */
1952 1953
1953 case BC_KSTR: 1954 case BC_KSTR:
1954 dasm_put(Dst, 11884, LJ_TSTR); 1955 dasm_put(Dst, 11888, LJ_TSTR);
1955 break; 1956 break;
1956 case BC_KSHORT: 1957 case BC_KSHORT:
1957 if (sse) { 1958 if (sse) {
1958 dasm_put(Dst, 11917); 1959 dasm_put(Dst, 11921);
1959 } else { 1960 } else {
1960 dasm_put(Dst, 11932); 1961 dasm_put(Dst, 11936);
1961 } 1962 }
1962 dasm_put(Dst, 10847); 1963 dasm_put(Dst, 10851);
1963 break; 1964 break;
1964 case BC_KNUM: 1965 case BC_KNUM:
1965 if (sse) { 1966 if (sse) {
1966 dasm_put(Dst, 11940); 1967 dasm_put(Dst, 11944);
1967 } else { 1968 } else {
1968 dasm_put(Dst, 11953); 1969 dasm_put(Dst, 11957);
1969 } 1970 }
1970 dasm_put(Dst, 10847); 1971 dasm_put(Dst, 10851);
1971 break; 1972 break;
1972 case BC_KPRI: 1973 case BC_KPRI:
1973 dasm_put(Dst, 11960); 1974 dasm_put(Dst, 11964);
1974 break; 1975 break;
1975 case BC_KNIL: 1976 case BC_KNIL:
1976 dasm_put(Dst, 11986, LJ_TNIL); 1977 dasm_put(Dst, 11990, LJ_TNIL);
1977 break; 1978 break;
1978 1979
1979 /* -- Upvalue and function ops ------------------------------------------ */ 1980 /* -- Upvalue and function ops ------------------------------------------ */
1980 1981
1981 case BC_UGET: 1982 case BC_UGET:
1982 dasm_put(Dst, 12032, offsetof(GCfuncL, uvptr), DtA(->v)); 1983 dasm_put(Dst, 12036, offsetof(GCfuncL, uvptr), DtA(->v));
1983 break; 1984 break;
1984 case BC_USETV: 1985 case BC_USETV:
1985#define TV2MARKOFS \ 1986#define TV2MARKOFS \
1986 ((int32_t)offsetof(GCupval, marked)-(int32_t)offsetof(GCupval, tv)) 1987 ((int32_t)offsetof(GCupval, marked)-(int32_t)offsetof(GCupval, tv))
1987 dasm_put(Dst, 12076, offsetof(GCfuncL, uvptr), DtA(->closed), DtA(->v), TV2MARKOFS, LJ_GC_BLACK, LJ_TISGCV, LJ_TISNUM - LJ_TISGCV, Dt4(->gch.marked), LJ_GC_WHITES, GG_DISP2G); 1988 dasm_put(Dst, 12080, offsetof(GCfuncL, uvptr), DtA(->closed), DtA(->v), TV2MARKOFS, LJ_GC_BLACK, LJ_TISGCV, LJ_TISNUM - LJ_TISGCV, Dt4(->gch.marked), LJ_GC_WHITES, GG_DISP2G);
1988 dasm_put(Dst, 12166); 1989 dasm_put(Dst, 12170);
1989 break; 1990 break;
1990#undef TV2MARKOFS 1991#undef TV2MARKOFS
1991 case BC_USETS: 1992 case BC_USETS:
1992 dasm_put(Dst, 12178, offsetof(GCfuncL, uvptr), DtA(->v), LJ_TSTR, DtA(->marked), LJ_GC_BLACK, Dt4(->gch.marked), LJ_GC_WHITES, DtA(->closed), GG_DISP2G); 1993 dasm_put(Dst, 12182, offsetof(GCfuncL, uvptr), DtA(->v), LJ_TSTR, DtA(->marked), LJ_GC_BLACK, Dt4(->gch.marked), LJ_GC_WHITES, DtA(->closed), GG_DISP2G);
1993 break; 1994 break;
1994 case BC_USETN: 1995 case BC_USETN:
1995 dasm_put(Dst, 12269); 1996 dasm_put(Dst, 12273);
1996 if (sse) { 1997 if (sse) {
1997 dasm_put(Dst, 12274); 1998 dasm_put(Dst, 12278);
1998 } else { 1999 } else {
1999 dasm_put(Dst, 11084); 2000 dasm_put(Dst, 11088);
2000 } 2001 }
2001 dasm_put(Dst, 12281, offsetof(GCfuncL, uvptr), DtA(->v)); 2002 dasm_put(Dst, 12285, offsetof(GCfuncL, uvptr), DtA(->v));
2002 if (sse) { 2003 if (sse) {
2003 dasm_put(Dst, 12290); 2004 dasm_put(Dst, 12294);
2004 } else { 2005 } else {
2005 dasm_put(Dst, 12296); 2006 dasm_put(Dst, 12300);
2006 } 2007 }
2007 dasm_put(Dst, 10847); 2008 dasm_put(Dst, 10851);
2008 break; 2009 break;
2009 case BC_USETP: 2010 case BC_USETP:
2010 dasm_put(Dst, 12299, offsetof(GCfuncL, uvptr), DtA(->v)); 2011 dasm_put(Dst, 12303, offsetof(GCfuncL, uvptr), DtA(->v));
2011 break; 2012 break;
2012 case BC_UCLO: 2013 case BC_UCLO:
2013 dasm_put(Dst, 12336, -BCBIAS_J*4, Dt1(->openupval), Dt1(->base), Dt1(->base)); 2014 dasm_put(Dst, 12340, -BCBIAS_J*4, Dt1(->openupval), Dt1(->base), Dt1(->base));
2014 break; 2015 break;
2015 2016
2016 case BC_FNEW: 2017 case BC_FNEW:
2017 dasm_put(Dst, 12390, Dt1(->base), Dt1(->base), LJ_TFUNC); 2018 dasm_put(Dst, 12394, Dt1(->base), Dt1(->base), LJ_TFUNC);
2018 break; 2019 break;
2019 2020
2020 /* -- Table ops --------------------------------------------------------- */ 2021 /* -- Table ops --------------------------------------------------------- */
2021 2022
2022 case BC_TNEW: 2023 case BC_TNEW:
2023 dasm_put(Dst, 12461, Dt1(->base), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), LJ_TTAB); 2024 dasm_put(Dst, 12465, Dt1(->base), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), LJ_TTAB);
2024 break; 2025 break;
2025 case BC_TDUP: 2026 case BC_TDUP:
2026 dasm_put(Dst, 12587, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB); 2027 dasm_put(Dst, 12591, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB);
2027 break; 2028 break;
2028 2029
2029 case BC_GGET: 2030 case BC_GGET:
2030 dasm_put(Dst, 12679, Dt7(->env)); 2031 dasm_put(Dst, 12683, Dt7(->env));
2031 break; 2032 break;
2032 case BC_GSET: 2033 case BC_GSET:
2033 dasm_put(Dst, 12697, Dt7(->env)); 2034 dasm_put(Dst, 12701, Dt7(->env));
2034 break; 2035 break;
2035 2036
2036 case BC_TGETV: 2037 case BC_TGETV:
2037 dasm_put(Dst, 12715, LJ_TTAB, LJ_TISNUM); 2038 dasm_put(Dst, 12719, LJ_TTAB, LJ_TISNUM);
2038 if (sse) { 2039 if (sse) {
2039 dasm_put(Dst, 12748); 2040 dasm_put(Dst, 12752);
2040 } else { 2041 } else {
2041 dasm_put(Dst, 12769); 2042 dasm_put(Dst, 12773);
2042 if (cmov) { 2043 if (cmov) {
2043 dasm_put(Dst, 10810); 2044 dasm_put(Dst, 10814);
2044 } else { 2045 } else {
2045 dasm_put(Dst, 10816); 2046 dasm_put(Dst, 10820);
2046 } 2047 }
2047 dasm_put(Dst, 2527); 2048 dasm_put(Dst, 2531);
2048 } 2049 }
2049 dasm_put(Dst, 12779, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); 2050 dasm_put(Dst, 12783, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
2050 dasm_put(Dst, 12871, LJ_TSTR); 2051 dasm_put(Dst, 12875, LJ_TSTR);
2051 break; 2052 break;
2052 case BC_TGETS: 2053 case BC_TGETS:
2053 dasm_put(Dst, 12889, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); 2054 dasm_put(Dst, 12893, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL);
2054 dasm_put(Dst, 12973, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); 2055 dasm_put(Dst, 12977, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
2055 break; 2056 break;
2056 case BC_TGETB: 2057 case BC_TGETB:
2057 dasm_put(Dst, 13044, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); 2058 dasm_put(Dst, 13048, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
2058 dasm_put(Dst, 11381); 2059 dasm_put(Dst, 11385);
2059 break; 2060 break;
2060 2061
2061 case BC_TSETV: 2062 case BC_TSETV:
2062 dasm_put(Dst, 13143, LJ_TTAB, LJ_TISNUM); 2063 dasm_put(Dst, 13147, LJ_TTAB, LJ_TISNUM);
2063 if (sse) { 2064 if (sse) {
2064 dasm_put(Dst, 12748); 2065 dasm_put(Dst, 12752);
2065 } else { 2066 } else {
2066 dasm_put(Dst, 12769); 2067 dasm_put(Dst, 12773);
2067 if (cmov) { 2068 if (cmov) {
2068 dasm_put(Dst, 10810); 2069 dasm_put(Dst, 10814);
2069 } else { 2070 } else {
2070 dasm_put(Dst, 10816); 2071 dasm_put(Dst, 10820);
2071 } 2072 }
2072 dasm_put(Dst, 2527); 2073 dasm_put(Dst, 2531);
2073 } 2074 }
2074 dasm_put(Dst, 13176, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable)); 2075 dasm_put(Dst, 13180, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable));
2075 dasm_put(Dst, 13259, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); 2076 dasm_put(Dst, 13263, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
2076 break; 2077 break;
2077 case BC_TSETS: 2078 case BC_TSETS:
2078 dasm_put(Dst, 13321, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); 2079 dasm_put(Dst, 13325, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL);
2079 dasm_put(Dst, 13396, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next)); 2080 dasm_put(Dst, 13400, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next));
2080 dasm_put(Dst, 13488, 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)); 2081 dasm_put(Dst, 13492, 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));
2081 break; 2082 break;
2082 case BC_TSETB: 2083 case BC_TSETB:
2083 dasm_put(Dst, 13584, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable)); 2084 dasm_put(Dst, 13588, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable));
2084 dasm_put(Dst, 13682, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); 2085 dasm_put(Dst, 13686, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
2085 break; 2086 break;
2086 2087
2087 case BC_TSETM: 2088 case BC_TSETM:
2088 dasm_put(Dst, 13728); 2089 dasm_put(Dst, 13732);
2089 if (sse) { 2090 if (sse) {
2090 dasm_put(Dst, 13733); 2091 dasm_put(Dst, 13737);
2091 } else { 2092 } else {
2092 dasm_put(Dst, 13740); 2093 dasm_put(Dst, 13744);
2093 } 2094 }
2094 dasm_put(Dst, 13752, Dt6(->marked), LJ_GC_BLACK, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base)); 2095 dasm_put(Dst, 13756, Dt6(->marked), LJ_GC_BLACK, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base));
2095 dasm_put(Dst, 13894, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); 2096 dasm_put(Dst, 13898, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
2096 break; 2097 break;
2097 2098
2098 /* -- Calls and vararg handling ----------------------------------------- */ 2099 /* -- Calls and vararg handling ----------------------------------------- */
2099 2100
2100 case BC_CALL: case BC_CALLM: 2101 case BC_CALL: case BC_CALLM:
2101 dasm_put(Dst, 11395); 2102 dasm_put(Dst, 11399);
2102 if (op == BC_CALLM) { 2103 if (op == BC_CALLM) {
2103 dasm_put(Dst, 13912); 2104 dasm_put(Dst, 13916);
2104 } 2105 }
2105 dasm_put(Dst, 13917, LJ_TFUNC, Dt7(->pc)); 2106 dasm_put(Dst, 13921, LJ_TFUNC, Dt7(->pc));
2106 break; 2107 break;
2107 2108
2108 case BC_CALLMT: 2109 case BC_CALLMT:
2109 dasm_put(Dst, 13912); 2110 dasm_put(Dst, 13916);
2110 break; 2111 break;
2111 case BC_CALLT: 2112 case BC_CALLT:
2112 dasm_put(Dst, 13958, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->pc)); 2113 dasm_put(Dst, 13962, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->pc));
2113 dasm_put(Dst, 14076, FRAME_TYPE, Dt7(->pc), PC2PROTO(k)); 2114 dasm_put(Dst, 14080, FRAME_TYPE, Dt7(->pc), PC2PROTO(k), FRAME_VARG, FRAME_TYPEP, FRAME_VARG);
2114 break; 2115 break;
2115 2116
2116 case BC_ITERC: 2117 case BC_ITERC:
2117 dasm_put(Dst, 14133, LJ_TFUNC, 2+1, Dt7(->pc)); 2118 dasm_put(Dst, 14150, LJ_TFUNC, 2+1, Dt7(->pc));
2118 break; 2119 break;
2119 2120
2120 case BC_VARG: 2121 case BC_VARG:
2121 dasm_put(Dst, 14213, Dt7(->pc), PC2PROTO(numparams), (8+FRAME_VARG), LJ_TNIL); 2122 dasm_put(Dst, 14230, Dt7(->pc), PC2PROTO(numparams), (8+FRAME_VARG), LJ_TNIL);
2122 dasm_put(Dst, 14357, Dt1(->maxstack), Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top)); 2123 dasm_put(Dst, 14374, Dt1(->maxstack), Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top));
2123 break; 2124 break;
2124 2125
2125 /* -- Returns ----------------------------------------------------------- */ 2126 /* -- Returns ----------------------------------------------------------- */
2126 2127
2127 case BC_RETM: 2128 case BC_RETM:
2128 dasm_put(Dst, 13912); 2129 dasm_put(Dst, 13916);
2129 break; 2130 break;
2130 2131
2131 case BC_RET: case BC_RET0: case BC_RET1: 2132 case BC_RET: case BC_RET0: case BC_RET1:
2132 if (op != BC_RET0) { 2133 if (op != BC_RET0) {
2133 dasm_put(Dst, 14456); 2134 dasm_put(Dst, 14473);
2134 } 2135 }
2135 dasm_put(Dst, 14460, FRAME_TYPE); 2136 dasm_put(Dst, 14477, FRAME_TYPE);
2136 switch (op) { 2137 switch (op) {
2137 case BC_RET: 2138 case BC_RET:
2138 dasm_put(Dst, 14479); 2139 dasm_put(Dst, 14496);
2139 break; 2140 break;
2140 case BC_RET1: 2141 case BC_RET1:
2141 dasm_put(Dst, 14537); 2142 dasm_put(Dst, 14554);
2142 /* fallthrough */ 2143 /* fallthrough */
2143 case BC_RET0: 2144 case BC_RET0:
2144 dasm_put(Dst, 14553); 2145 dasm_put(Dst, 14570);
2145 default: 2146 default:
2146 break; 2147 break;
2147 } 2148 }
2148 dasm_put(Dst, 14564, Dt7(->pc), PC2PROTO(k)); 2149 dasm_put(Dst, 14581, Dt7(->pc), PC2PROTO(k));
2149 if (op == BC_RET) { 2150 if (op == BC_RET) {
2150 dasm_put(Dst, 14606, LJ_TNIL); 2151 dasm_put(Dst, 14623, LJ_TNIL);
2151 } else { 2152 } else {
2152 dasm_put(Dst, 14615, LJ_TNIL); 2153 dasm_put(Dst, 14632, LJ_TNIL);
2153 } 2154 }
2154 dasm_put(Dst, 14622); 2155 dasm_put(Dst, 14639, -FRAME_VARG, FRAME_TYPEP);
2155 if (op != BC_RET0) { 2156 if (op != BC_RET0) {
2156 dasm_put(Dst, 14643); 2157 dasm_put(Dst, 14663);
2157 } 2158 }
2158 dasm_put(Dst, 4683); 2159 dasm_put(Dst, 4687);
2159 break; 2160 break;
2160 2161
2161 /* -- Loops and branches ------------------------------------------------ */ 2162 /* -- Loops and branches ------------------------------------------------ */
@@ -2163,7 +2164,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2163 2164
2164 case BC_FORL: 2165 case BC_FORL:
2165#if LJ_HASJIT 2166#if LJ_HASJIT
2166 dasm_put(Dst, 14647, HOTCOUNT_PCMASK, GG_DISP2HOT); 2167 dasm_put(Dst, 14667, HOTCOUNT_PCMASK, GG_DISP2HOT);
2167#endif 2168#endif
2168 break; 2169 break;
2169 2170
@@ -2175,57 +2176,57 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2175 case BC_FORI: 2176 case BC_FORI:
2176 case BC_IFORL: 2177 case BC_IFORL:
2177 vk = (op == BC_IFORL || op == BC_JFORL); 2178 vk = (op == BC_IFORL || op == BC_JFORL);
2178 dasm_put(Dst, 14668); 2179 dasm_put(Dst, 14688);
2179 if (!vk) { 2180 if (!vk) {
2180 dasm_put(Dst, 14672, LJ_TISNUM, LJ_TISNUM); 2181 dasm_put(Dst, 14692, LJ_TISNUM, LJ_TISNUM);
2181 } 2182 }
2182 dasm_put(Dst, 14691); 2183 dasm_put(Dst, 14711);
2183 if (!vk) { 2184 if (!vk) {
2184 dasm_put(Dst, 14695, LJ_TISNUM); 2185 dasm_put(Dst, 14715, LJ_TISNUM);
2185 } 2186 }
2186 if (sse) { 2187 if (sse) {
2187 dasm_put(Dst, 14704); 2188 dasm_put(Dst, 14724);
2188 if (vk) { 2189 if (vk) {
2189 dasm_put(Dst, 14716); 2190 dasm_put(Dst, 14736);
2190 } else { 2191 } else {
2191 dasm_put(Dst, 14735); 2192 dasm_put(Dst, 14755);
2192 } 2193 }
2193 dasm_put(Dst, 14740); 2194 dasm_put(Dst, 14760);
2194 } else { 2195 } else {
2195 dasm_put(Dst, 14753); 2196 dasm_put(Dst, 14773);
2196 if (vk) { 2197 if (vk) {
2197 dasm_put(Dst, 14759); 2198 dasm_put(Dst, 14779);
2198 } else { 2199 } else {
2199 dasm_put(Dst, 14775); 2200 dasm_put(Dst, 14795);
2200 } 2201 }
2201 dasm_put(Dst, 14783); 2202 dasm_put(Dst, 14803);
2202 if (cmov) { 2203 if (cmov) {
2203 dasm_put(Dst, 10810); 2204 dasm_put(Dst, 10814);
2204 } else { 2205 } else {
2205 dasm_put(Dst, 10816); 2206 dasm_put(Dst, 10820);
2206 } 2207 }
2207 if (!cmov) { 2208 if (!cmov) {
2208 dasm_put(Dst, 14788); 2209 dasm_put(Dst, 14808);
2209 } 2210 }
2210 } 2211 }
2211 if (op == BC_FORI) { 2212 if (op == BC_FORI) {
2212 dasm_put(Dst, 14794, -BCBIAS_J*4); 2213 dasm_put(Dst, 14814, -BCBIAS_J*4);
2213 } else if (op == BC_JFORI) { 2214 } else if (op == BC_JFORI) {
2214 dasm_put(Dst, 14804, -BCBIAS_J*4, BC_JLOOP); 2215 dasm_put(Dst, 14824, -BCBIAS_J*4, BC_JLOOP);
2215 } else if (op == BC_IFORL) { 2216 } else if (op == BC_IFORL) {
2216 dasm_put(Dst, 14818, -BCBIAS_J*4); 2217 dasm_put(Dst, 14838, -BCBIAS_J*4);
2217 } else { 2218 } else {
2218 dasm_put(Dst, 14814, BC_JLOOP); 2219 dasm_put(Dst, 14834, BC_JLOOP);
2219 } 2220 }
2220 dasm_put(Dst, 10845); 2221 dasm_put(Dst, 10849);
2221 if (sse) { 2222 if (sse) {
2222 dasm_put(Dst, 14828); 2223 dasm_put(Dst, 14848);
2223 } 2224 }
2224 break; 2225 break;
2225 2226
2226 case BC_ITERL: 2227 case BC_ITERL:
2227#if LJ_HASJIT 2228#if LJ_HASJIT
2228 dasm_put(Dst, 14647, HOTCOUNT_PCMASK, GG_DISP2HOT); 2229 dasm_put(Dst, 14667, HOTCOUNT_PCMASK, GG_DISP2HOT);
2229#endif 2230#endif
2230 break; 2231 break;
2231 2232
@@ -2234,33 +2235,33 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2234 break; 2235 break;
2235#endif 2236#endif
2236 case BC_IITERL: 2237 case BC_IITERL:
2237 dasm_put(Dst, 14839, LJ_TNIL); 2238 dasm_put(Dst, 14859, LJ_TNIL);
2238 if (op == BC_JITERL) { 2239 if (op == BC_JITERL) {
2239 dasm_put(Dst, 14854, BC_JLOOP); 2240 dasm_put(Dst, 14874, BC_JLOOP);
2240 } else { 2241 } else {
2241 dasm_put(Dst, 14868, -BCBIAS_J*4); 2242 dasm_put(Dst, 14888, -BCBIAS_J*4);
2242 } 2243 }
2243 dasm_put(Dst, 11142); 2244 dasm_put(Dst, 11146);
2244 break; 2245 break;
2245 2246
2246 case BC_LOOP: 2247 case BC_LOOP:
2247#if LJ_HASJIT 2248#if LJ_HASJIT
2248 dasm_put(Dst, 14647, HOTCOUNT_PCMASK, GG_DISP2HOT); 2249 dasm_put(Dst, 14667, HOTCOUNT_PCMASK, GG_DISP2HOT);
2249#endif 2250#endif
2250 break; 2251 break;
2251 2252
2252 case BC_ILOOP: 2253 case BC_ILOOP:
2253 dasm_put(Dst, 10847); 2254 dasm_put(Dst, 10851);
2254 break; 2255 break;
2255 2256
2256 case BC_JLOOP: 2257 case BC_JLOOP:
2257#if LJ_HASJIT 2258#if LJ_HASJIT
2258 dasm_put(Dst, 14884, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L)); 2259 dasm_put(Dst, 14904, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L));
2259#endif 2260#endif
2260 break; 2261 break;
2261 2262
2262 case BC_JMP: 2263 case BC_JMP:
2263 dasm_put(Dst, 14907, -BCBIAS_J*4); 2264 dasm_put(Dst, 14927, -BCBIAS_J*4);
2264 break; 2265 break;
2265 2266
2266 /* -- Function headers -------------------------------------------------- */ 2267 /* -- Function headers -------------------------------------------------- */
@@ -2274,7 +2275,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2274 2275
2275 case BC_FUNCF: 2276 case BC_FUNCF:
2276#if LJ_HASJIT 2277#if LJ_HASJIT
2277 dasm_put(Dst, 14931, HOTCOUNT_PCMASK, GG_DISP2HOT); 2278 dasm_put(Dst, 14951, HOTCOUNT_PCMASK, GG_DISP2HOT);
2278#endif 2279#endif
2279 case BC_FUNCV: /* NYI: compiled vararg functions. */ 2280 case BC_FUNCV: /* NYI: compiled vararg functions. */
2280 break; 2281 break;
@@ -2284,47 +2285,47 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2284 break; 2285 break;
2285#endif 2286#endif
2286 case BC_IFUNCF: 2287 case BC_IFUNCF:
2287 dasm_put(Dst, 14952, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams)); 2288 dasm_put(Dst, 14972, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams));
2288 if (op == BC_JFUNCF) { 2289 if (op == BC_JFUNCF) {
2289 dasm_put(Dst, 14982, BC_JLOOP); 2290 dasm_put(Dst, 15002, BC_JLOOP);
2290 } else { 2291 } else {
2291 dasm_put(Dst, 10847); 2292 dasm_put(Dst, 10851);
2292 } 2293 }
2293 dasm_put(Dst, 14991, LJ_TNIL); 2294 dasm_put(Dst, 15011, LJ_TNIL);
2294 break; 2295 break;
2295 2296
2296 case BC_JFUNCV: 2297 case BC_JFUNCV:
2297#if !LJ_HASJIT 2298#if !LJ_HASJIT
2298 break; 2299 break;
2299#endif 2300#endif
2300 dasm_put(Dst, 10508); 2301 dasm_put(Dst, 10512);
2301 break; /* NYI: compiled vararg functions. */ 2302 break; /* NYI: compiled vararg functions. */
2302 2303
2303 case BC_IFUNCV: 2304 case BC_IFUNCV:
2304 dasm_put(Dst, 15013, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL); 2305 dasm_put(Dst, 15033, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL);
2305 if (op == BC_JFUNCV) { 2306 if (op == BC_JFUNCV) {
2306 dasm_put(Dst, 14982, BC_JLOOP); 2307 dasm_put(Dst, 15002, BC_JLOOP);
2307 } else { 2308 } else {
2308 dasm_put(Dst, 15104, -4+PC2PROTO(k)); 2309 dasm_put(Dst, 15124, -4+PC2PROTO(k));
2309 } 2310 }
2310 dasm_put(Dst, 15126, LJ_TNIL); 2311 dasm_put(Dst, 15146, LJ_TNIL);
2311 break; 2312 break;
2312 2313
2313 case BC_FUNCC: 2314 case BC_FUNCC:
2314 case BC_FUNCCW: 2315 case BC_FUNCCW:
2315 dasm_put(Dst, 15148, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top)); 2316 dasm_put(Dst, 15168, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top));
2316 if (op == BC_FUNCC) { 2317 if (op == BC_FUNCC) {
2317 dasm_put(Dst, 15177); 2318 dasm_put(Dst, 15197);
2318 } else { 2319 } else {
2319 dasm_put(Dst, 15181); 2320 dasm_put(Dst, 15201);
2320 } 2321 }
2321 dasm_put(Dst, 15189, DISPATCH_GL(vmstate), ~LJ_VMST_C); 2322 dasm_put(Dst, 15209, DISPATCH_GL(vmstate), ~LJ_VMST_C);
2322 if (op == BC_FUNCC) { 2323 if (op == BC_FUNCC) {
2323 dasm_put(Dst, 15198); 2324 dasm_put(Dst, 15218);
2324 } else { 2325 } else {
2325 dasm_put(Dst, 15202, DISPATCH_GL(wrapf)); 2326 dasm_put(Dst, 15222, DISPATCH_GL(wrapf));
2326 } 2327 }
2327 dasm_put(Dst, 15207, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top)); 2328 dasm_put(Dst, 15227, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top));
2328 break; 2329 break;
2329 2330
2330 /* ---------------------------------------------------------------------- */ 2331 /* ---------------------------------------------------------------------- */
@@ -2352,7 +2353,7 @@ static int build_backend(BuildCtx *ctx)
2352 2353
2353 build_subroutines(ctx, cmov, sse); 2354 build_subroutines(ctx, cmov, sse);
2354 2355
2355 dasm_put(Dst, 15232); 2356 dasm_put(Dst, 15252);
2356 for (op = 0; op < BC__MAX; op++) 2357 for (op = 0; op < BC__MAX; op++)
2357 build_ins(ctx, (BCOp)op, op, cmov, sse); 2358 build_ins(ctx, (BCOp)op, op, cmov, sse);
2358 2359