diff options
Diffstat (limited to '')
-rw-r--r-- | src/buildvm_x64.h | 1084 |
1 files changed, 542 insertions, 542 deletions
diff --git a/src/buildvm_x64.h b/src/buildvm_x64.h index b71d9b53..d98d225d 100644 --- a/src/buildvm_x64.h +++ b/src/buildvm_x64.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #define DASM_SECTION_CODE_OP 0 | 12 | #define DASM_SECTION_CODE_OP 0 |
13 | #define DASM_SECTION_CODE_SUB 1 | 13 | #define DASM_SECTION_CODE_SUB 1 |
14 | #define DASM_MAXSECTION 2 | 14 | #define DASM_MAXSECTION 2 |
15 | static const unsigned char build_actionlist[14077] = { | 15 | static const unsigned char build_actionlist[14080] = { |
16 | 254,1,248,10,252,247,195,237,15,132,244,11,131,227,252,248,41,218,72,141, | 16 | 254,1,248,10,252,247,195,237,15,132,244,11,131,227,252,248,41,218,72,141, |
17 | 76,25,252,248,139,90,252,252,199,68,10,4,237,248,12,131,192,1,137,68,36,4, | 17 | 76,25,252,248,139,90,252,252,199,68,10,4,237,248,12,131,192,1,137,68,36,4, |
18 | 252,247,195,237,15,132,244,13,248,14,252,247,195,237,15,132,244,10,65,199, | 18 | 252,247,195,237,15,132,244,13,248,14,252,247,195,237,15,132,244,10,65,199, |
@@ -126,123 +126,123 @@ static const unsigned char build_actionlist[14077] = { | |||
126 | 55,65,139,174,233,65,59,174,233,255,15,130,244,247,232,244,66,248,1,139,108, | 126 | 55,65,139,174,233,65,59,174,233,255,15,130,244,247,232,244,66,248,1,139,108, |
127 | 36,24,137,149,233,137,92,36,28,137,214,137,252,239,232,251,1,10,139,149,233, | 127 | 36,24,137,149,233,137,92,36,28,137,214,137,252,239,232,251,1,10,139,149,233, |
128 | 252,233,244,2,248,67,129,252,248,239,15,130,244,55,15,132,244,248,248,1,129, | 128 | 252,233,244,2,248,67,129,252,248,239,15,130,244,55,15,132,244,248,248,1,129, |
129 | 122,253,4,239,15,133,244,55,139,108,36,24,137,149,233,255,139,90,252,252, | 129 | 122,253,4,239,15,133,244,55,139,108,36,24,137,149,233,255,137,149,233,139, |
130 | 139,50,141,82,8,137,252,239,137,92,36,28,232,251,1,11,139,149,233,133,192, | 130 | 90,252,252,139,50,141,82,8,137,252,239,137,92,36,28,232,251,1,11,139,149, |
131 | 15,132,244,249,139,106,8,139,66,12,137,106,252,248,137,66,252,252,139,106, | 131 | 233,133,192,15,132,244,249,139,106,8,139,66,12,137,106,252,248,137,66,252, |
132 | 16,139,66,20,137,42,137,66,4,248,68,184,237,252,233,244,69,248,2,199,66,12, | 132 | 252,139,106,16,139,66,20,137,42,137,66,4,248,68,184,237,252,233,244,69,248, |
133 | 237,252,233,244,1,248,3,199,66,252,252,237,252,233,244,58,248,70,129,252, | 133 | 2,199,66,12,237,252,233,244,1,248,3,199,66,252,252,237,252,233,244,58,248, |
134 | 248,239,15,130,244,55,139,106,252,248,129,122,253,4,239,255,15,133,244,55, | 134 | 70,129,252,248,239,15,130,244,55,255,139,106,252,248,129,122,253,4,239,15, |
135 | 139,133,233,139,90,252,252,199,66,252,252,237,137,66,252,248,199,66,12,237, | 135 | 133,244,55,139,133,233,139,90,252,252,199,66,252,252,237,137,66,252,248,199, |
136 | 184,237,252,233,244,69,248,71,129,252,248,239,15,130,244,55,129,122,253,4, | 136 | 66,12,237,184,237,252,233,244,69,248,71,129,252,248,239,15,130,244,55,129, |
137 | 239,15,133,244,55,129,122,253,12,239,15,135,244,55,139,90,252,252,255,252, | 137 | 122,253,4,239,15,133,244,55,129,122,253,12,239,15,135,244,55,139,90,252,252, |
138 | 242,15,16,66,8,72,189,237,237,102,72,15,110,205,252,242,15,88,193,252,242, | 138 | 255,252,242,15,16,66,8,72,189,237,237,102,72,15,110,205,252,242,15,88,193, |
139 | 15,45,192,252,242,15,17,66,252,248,255,139,42,59,133,233,15,131,244,248,193, | 139 | 252,242,15,45,192,252,242,15,17,66,252,248,255,139,42,59,133,233,15,131,244, |
140 | 224,3,3,133,233,248,1,129,120,253,4,239,15,132,244,72,139,40,139,64,4,137, | 140 | 248,193,224,3,3,133,233,248,1,129,120,253,4,239,15,132,244,72,139,40,139, |
141 | 42,137,66,4,252,233,244,68,248,2,131,189,233,0,15,132,244,72,137,252,239, | 141 | 64,4,137,42,137,66,4,252,233,244,68,248,2,131,189,233,0,15,132,244,72,137, |
142 | 137,213,137,198,232,251,1,12,137,252,234,133,192,15,133,244,1,248,72,184, | 142 | 252,239,137,213,137,198,232,251,1,12,137,252,234,133,192,15,133,244,1,248, |
143 | 237,252,233,244,69,248,73,255,129,252,248,239,15,130,244,55,139,106,252,248, | 143 | 72,184,237,252,233,244,69,248,73,255,129,252,248,239,15,130,244,55,139,106, |
144 | 129,122,253,4,239,15,133,244,55,139,133,233,139,90,252,252,199,66,252,252, | 144 | 252,248,129,122,253,4,239,15,133,244,55,139,133,233,139,90,252,252,199,66, |
145 | 237,137,66,252,248,255,15,87,192,252,242,15,17,66,8,255,217,252,238,221,90, | 145 | 252,252,237,137,66,252,248,255,15,87,192,252,242,15,17,66,8,255,217,252,238, |
146 | 8,255,184,237,252,233,244,69,248,74,129,252,248,239,15,130,244,55,141,74, | 146 | 221,90,8,255,184,237,252,233,244,69,248,74,129,252,248,239,15,130,244,55, |
147 | 8,131,232,1,187,237,248,1,65,15,182,174,233,193,252,237,235,131,229,1,1,252, | 147 | 141,74,8,131,232,1,187,237,248,1,65,15,182,174,233,193,252,237,235,131,229, |
148 | 235,252,233,244,27,248,75,129,252,248,239,15,130,244,55,129,122,253,12,239, | 148 | 1,1,252,235,252,233,244,27,248,75,129,252,248,239,15,130,244,55,129,122,253, |
149 | 15,133,244,55,255,139,106,4,137,106,12,199,66,4,237,139,42,139,90,8,137,106, | 149 | 12,239,15,133,244,55,255,139,106,4,137,106,12,199,66,4,237,139,42,139,90, |
150 | 8,137,26,141,74,16,131,232,2,187,237,252,233,244,1,248,76,129,252,248,239, | 150 | 8,137,106,8,137,26,141,74,16,131,232,2,187,237,252,233,244,1,248,76,129,252, |
151 | 15,130,244,55,139,42,139,90,252,252,137,92,36,28,137,44,36,129,122,253,4, | 151 | 248,239,15,130,244,55,139,42,139,90,252,252,137,92,36,28,137,44,36,129,122, |
152 | 239,15,133,244,55,72,131,189,233,0,15,133,244,55,128,189,233,235,15,135,244, | 152 | 253,4,239,15,133,244,55,72,131,189,233,0,15,133,244,55,128,189,233,235,15, |
153 | 55,139,141,233,15,132,244,247,255,59,141,233,15,132,244,55,248,1,141,92,193, | 153 | 135,244,55,139,141,233,15,132,244,247,255,59,141,233,15,132,244,55,248,1, |
154 | 252,240,59,157,233,15,135,244,55,137,157,233,139,108,36,24,137,149,233,131, | 154 | 141,92,193,252,240,59,157,233,15,135,244,55,137,157,233,139,108,36,24,137, |
155 | 194,8,137,149,233,141,108,194,232,72,41,221,57,203,15,132,244,249,248,2,139, | 155 | 149,233,131,194,8,137,149,233,141,108,194,232,72,41,221,57,203,15,132,244, |
156 | 68,43,4,137,67,252,252,139,4,43,137,67,252,248,131,252,235,8,57,203,15,133, | 156 | 249,248,2,139,68,43,4,137,67,252,252,139,4,43,137,67,252,248,131,252,235, |
157 | 244,2,248,3,137,206,139,60,36,232,244,24,65,199,134,233,237,255,139,108,36, | 157 | 8,57,203,15,133,244,2,248,3,137,206,139,60,36,232,244,24,65,199,134,233,237, |
158 | 24,139,28,36,139,149,233,129,252,248,239,15,135,244,254,248,4,139,139,233, | 158 | 255,139,108,36,24,139,28,36,139,149,233,129,252,248,239,15,135,244,254,248, |
159 | 68,139,187,233,137,139,233,68,137,252,251,41,203,15,132,244,252,141,4,26, | 159 | 4,139,139,233,68,139,187,233,137,139,233,68,137,252,251,41,203,15,132,244, |
160 | 193,252,235,3,59,133,233,15,135,244,255,137,213,72,41,205,248,5,139,1,137, | 160 | 252,141,4,26,193,252,235,3,59,133,233,15,135,244,255,137,213,72,41,205,248, |
161 | 4,41,139,65,4,137,68,41,4,131,193,8,68,57,252,249,15,133,244,5,248,6,141, | 161 | 5,139,1,137,4,41,139,65,4,137,68,41,4,131,193,8,68,57,252,249,15,133,244, |
162 | 67,2,199,66,252,252,237,248,7,139,92,36,28,137,68,36,4,72,199,193,252,248, | 162 | 5,248,6,141,67,2,199,66,252,252,237,248,7,139,92,36,28,137,68,36,4,72,199, |
163 | 252,255,252,255,252,255,252,247,195,237,255,15,132,244,13,252,233,244,14, | 163 | 193,252,248,252,255,252,255,252,255,252,247,195,237,255,15,132,244,13,252, |
164 | 248,8,199,66,252,252,237,139,139,233,131,252,233,8,137,139,233,139,1,137, | 164 | 233,244,14,248,8,199,66,252,252,237,139,139,233,131,252,233,8,137,139,233, |
165 | 2,139,65,4,137,66,4,184,237,252,233,244,7,248,9,139,12,36,68,137,185,233, | 165 | 139,1,137,2,139,65,4,137,66,4,184,237,252,233,244,7,248,9,139,12,36,68,137, |
166 | 137,222,137,252,239,232,251,1,0,139,149,233,252,233,244,4,248,77,139,106, | 166 | 185,233,137,222,137,252,239,232,251,1,0,139,149,233,252,233,244,4,248,77, |
167 | 252,248,139,173,233,139,90,252,252,137,92,36,28,137,44,36,72,131,189,233, | 167 | 139,106,252,248,139,173,233,139,90,252,252,137,92,36,28,137,44,36,72,131, |
168 | 0,15,133,244,55,255,128,189,233,235,15,135,244,55,139,141,233,15,132,244, | 168 | 189,233,0,15,133,244,55,255,128,189,233,235,15,135,244,55,139,141,233,15, |
169 | 247,59,141,233,15,132,244,55,248,1,141,92,193,252,248,59,157,233,15,135,244, | 169 | 132,244,247,59,141,233,15,132,244,55,248,1,141,92,193,252,248,59,157,233, |
170 | 55,137,157,233,139,108,36,24,137,149,233,137,149,233,141,108,194,252,240, | 170 | 15,135,244,55,137,157,233,139,108,36,24,137,149,233,137,149,233,141,108,194, |
171 | 72,41,221,57,203,15,132,244,249,248,2,255,139,68,43,4,137,67,252,252,139, | 171 | 252,240,72,41,221,57,203,15,132,244,249,248,2,255,139,68,43,4,137,67,252, |
172 | 4,43,137,67,252,248,131,252,235,8,57,203,15,133,244,2,248,3,137,206,139,60, | 172 | 252,139,4,43,137,67,252,248,131,252,235,8,57,203,15,133,244,2,248,3,137,206, |
173 | 36,232,244,24,65,199,134,233,237,139,108,36,24,139,28,36,139,149,233,129, | 173 | 139,60,36,232,244,24,65,199,134,233,237,139,108,36,24,139,28,36,139,149,233, |
174 | 252,248,239,15,135,244,254,248,4,139,139,233,68,139,187,233,137,139,233,68, | 174 | 129,252,248,239,15,135,244,254,248,4,139,139,233,68,139,187,233,137,139,233, |
175 | 137,252,251,41,203,15,132,244,252,141,4,26,193,252,235,3,59,133,233,15,135, | 175 | 68,137,252,251,41,203,15,132,244,252,141,4,26,193,252,235,3,59,133,233,15, |
176 | 244,255,255,137,213,72,41,205,248,5,139,1,137,4,41,139,65,4,137,68,41,4,131, | 176 | 135,244,255,255,137,213,72,41,205,248,5,139,1,137,4,41,139,65,4,137,68,41, |
177 | 193,8,68,57,252,249,15,133,244,5,248,6,141,67,1,248,7,139,92,36,28,137,68, | 177 | 4,131,193,8,68,57,252,249,15,133,244,5,248,6,141,67,1,248,7,139,92,36,28, |
178 | 36,4,49,201,252,247,195,237,15,132,244,13,252,233,244,14,248,8,137,222,137, | 178 | 137,68,36,4,49,201,252,247,195,237,15,132,244,13,252,233,244,14,248,8,137, |
179 | 252,239,232,251,1,13,248,9,139,12,36,68,137,185,233,137,222,137,252,239,232, | 179 | 222,137,252,239,232,251,1,13,248,9,139,12,36,68,137,185,233,137,222,137,252, |
180 | 251,1,0,139,149,233,252,233,244,4,248,78,139,108,36,24,72,252,247,133,233, | 180 | 239,232,251,1,0,139,149,233,252,233,244,4,248,78,139,108,36,24,72,252,247, |
181 | 237,15,132,244,55,255,137,149,233,141,68,194,252,248,137,133,233,49,192,72, | 181 | 133,233,237,15,132,244,55,255,137,149,233,141,68,194,252,248,137,133,233, |
182 | 137,133,233,176,235,136,133,233,252,233,244,16,255,248,64,139,90,252,252, | 182 | 49,192,72,137,133,233,176,235,136,133,233,252,233,244,16,255,248,64,139,90, |
183 | 221,90,252,248,252,233,244,58,248,79,129,252,248,239,15,130,244,55,129,122, | 183 | 252,252,221,90,252,248,252,233,244,58,248,79,129,252,248,239,15,130,244,55, |
184 | 253,4,239,15,135,244,55,252,242,15,16,2,72,184,237,237,102,72,15,110,200, | 184 | 129,122,253,4,239,15,135,244,55,252,242,15,16,2,72,184,237,237,102,72,15, |
185 | 15,84,193,248,63,139,90,252,252,252,242,15,17,66,252,248,255,248,79,129,252, | 185 | 110,200,15,84,193,248,63,139,90,252,252,252,242,15,17,66,252,248,255,248, |
186 | 248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,221,2,217,225,248,63, | 186 | 79,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,221,2,217, |
187 | 248,64,139,90,252,252,221,90,252,248,255,248,58,184,237,248,69,137,68,36, | 187 | 225,248,63,248,64,139,90,252,252,221,90,252,248,255,248,58,184,237,248,69, |
188 | 4,248,56,252,247,195,237,15,133,244,253,248,5,56,67,252,255,15,135,244,252, | 188 | 137,68,36,4,248,56,252,247,195,237,15,133,244,253,248,5,56,67,252,255,15, |
189 | 15,182,75,252,253,72,252,247,209,141,20,202,139,3,15,182,204,15,182,232,131, | 189 | 135,244,252,15,182,75,252,253,72,252,247,209,141,20,202,139,3,15,182,204, |
190 | 195,4,193,232,16,65,252,255,36,252,238,248,6,199,68,194,252,244,237,131,192, | 190 | 15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,248,6,199,68,194,252, |
191 | 1,252,233,244,5,248,7,72,199,193,252,248,252,255,252,255,252,255,252,233, | 191 | 244,237,131,192,1,252,233,244,5,248,7,72,199,193,252,248,252,255,252,255, |
192 | 244,14,255,248,80,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135, | 192 | 252,255,252,233,244,14,255,248,80,129,252,248,239,15,130,244,55,129,122,253, |
193 | 244,55,252,242,15,81,2,252,233,244,63,248,81,129,252,248,239,15,130,244,55, | 193 | 4,239,15,135,244,55,252,242,15,81,2,252,233,244,63,248,81,129,252,248,239, |
194 | 129,122,253,4,239,15,135,244,55,252,242,15,16,2,232,244,82,252,233,244,63, | 194 | 15,130,244,55,129,122,253,4,239,15,135,244,55,252,242,15,16,2,232,244,82, |
195 | 248,83,255,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55, | 195 | 252,233,244,63,248,83,255,129,252,248,239,15,130,244,55,129,122,253,4,239, |
196 | 252,242,15,16,2,232,244,84,252,233,244,63,255,248,80,129,252,248,239,15,130, | 196 | 15,135,244,55,252,242,15,16,2,232,244,84,252,233,244,63,255,248,80,129,252, |
197 | 244,55,129,122,253,4,239,15,135,244,55,221,2,217,252,250,252,233,244,64,248, | 197 | 248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,221,2,217,252,250,252, |
198 | 81,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,221,2,232, | 198 | 233,244,64,248,81,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135, |
199 | 244,82,252,233,244,64,248,83,255,129,252,248,239,15,130,244,55,129,122,253, | 199 | 244,55,221,2,232,244,82,252,233,244,64,248,83,255,129,252,248,239,15,130, |
200 | 4,239,15,135,244,55,221,2,232,244,84,252,233,244,64,255,248,85,129,252,248, | 200 | 244,55,129,122,253,4,239,15,135,244,55,221,2,232,244,84,252,233,244,64,255, |
201 | 239,15,130,244,55,129,122,253,4,239,15,135,244,55,217,252,237,221,2,217,252, | 201 | 248,85,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,217, |
202 | 241,252,233,244,64,248,86,129,252,248,239,15,130,244,55,129,122,253,4,239, | 202 | 252,237,221,2,217,252,241,252,233,244,64,248,86,129,252,248,239,15,130,244, |
203 | 15,135,244,55,217,252,236,221,2,217,252,241,252,233,244,64,248,87,129,252, | 203 | 55,129,122,253,4,239,15,135,244,55,217,252,236,221,2,217,252,241,252,233, |
204 | 248,239,255,15,130,244,55,129,122,253,4,239,15,135,244,55,221,2,232,244,88, | 204 | 244,64,248,87,129,252,248,239,255,15,130,244,55,129,122,253,4,239,15,135, |
205 | 252,233,244,64,248,89,129,252,248,239,15,130,244,55,129,122,253,4,239,15, | 205 | 244,55,221,2,232,244,88,252,233,244,64,248,89,129,252,248,239,15,130,244, |
206 | 135,244,55,221,2,217,252,254,252,233,244,64,248,90,129,252,248,239,255,15, | 206 | 55,129,122,253,4,239,15,135,244,55,221,2,217,252,254,252,233,244,64,248,90, |
207 | 130,244,55,129,122,253,4,239,15,135,244,55,221,2,217,252,255,252,233,244, | 207 | 129,252,248,239,255,15,130,244,55,129,122,253,4,239,15,135,244,55,221,2,217, |
208 | 64,248,91,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,221, | 208 | 252,255,252,233,244,64,248,91,129,252,248,239,15,130,244,55,129,122,253,4, |
209 | 2,217,252,242,221,216,252,233,244,64,248,92,129,252,248,239,15,130,244,55, | 209 | 239,15,135,244,55,221,2,217,252,242,221,216,252,233,244,64,248,92,129,252, |
210 | 255,129,122,253,4,239,15,135,244,55,221,2,217,192,216,200,217,232,222,225, | 210 | 248,239,15,130,244,55,255,129,122,253,4,239,15,135,244,55,221,2,217,192,216, |
211 | 217,252,250,217,252,243,252,233,244,64,248,93,129,252,248,239,15,130,244, | 211 | 200,217,232,222,225,217,252,250,217,252,243,252,233,244,64,248,93,129,252, |
212 | 55,129,122,253,4,239,15,135,244,55,221,2,217,192,216,200,217,232,222,225, | 212 | 248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,221,2,217,192,216,200, |
213 | 217,252,250,217,201,217,252,243,252,233,244,64,248,94,129,252,248,239,15, | 213 | 217,232,222,225,217,252,250,217,201,217,252,243,252,233,244,64,248,94,129, |
214 | 130,244,55,129,122,253,4,239,15,135,244,55,255,221,2,217,232,217,252,243, | 214 | 252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,255,221,2,217,232, |
215 | 252,233,244,64,255,248,95,129,252,248,239,15,130,244,55,129,122,253,4,239, | 215 | 217,252,243,252,233,244,64,255,248,95,129,252,248,239,15,130,244,55,129,122, |
216 | 15,135,244,55,252,242,15,16,2,255,137,213,232,251,1,14,137,252,234,252,233, | 216 | 253,4,239,15,135,244,55,252,242,15,16,2,255,137,213,232,251,1,14,137,252, |
217 | 244,63,255,248,96,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135, | 217 | 234,252,233,244,63,255,248,96,129,252,248,239,15,130,244,55,129,122,253,4, |
218 | 244,55,252,242,15,16,2,255,137,213,232,251,1,15,137,252,234,252,233,244,63, | 218 | 239,15,135,244,55,252,242,15,16,2,255,137,213,232,251,1,15,137,252,234,252, |
219 | 255,248,97,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55, | 219 | 233,244,63,255,248,97,129,252,248,239,15,130,244,55,129,122,253,4,239,15, |
220 | 252,242,15,16,2,255,137,213,232,251,1,16,137,252,234,252,233,244,63,248,98, | 220 | 135,244,55,252,242,15,16,2,255,137,213,232,251,1,16,137,252,234,252,233,244, |
221 | 255,248,99,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55, | 221 | 63,248,98,255,248,99,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135, |
222 | 252,242,15,16,2,139,106,252,248,252,242,15,89,133,233,252,233,244,63,255, | 222 | 244,55,252,242,15,16,2,139,106,252,248,252,242,15,89,133,233,252,233,244, |
223 | 248,99,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,221, | 223 | 63,255,248,99,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244, |
224 | 2,139,106,252,248,220,141,233,252,233,244,64,255,248,100,129,252,248,239, | 224 | 55,221,2,139,106,252,248,220,141,233,252,233,244,64,255,248,100,129,252,248, |
225 | 15,130,244,55,129,122,253,4,239,15,135,244,55,129,122,253,12,239,15,135,244, | 225 | 239,15,130,244,55,129,122,253,4,239,15,135,244,55,129,122,253,12,239,15,135, |
226 | 55,221,2,221,66,8,217,252,243,252,233,244,64,248,101,129,252,248,239,15,130, | 226 | 244,55,221,2,221,66,8,217,252,243,252,233,244,64,248,101,129,252,248,239, |
227 | 244,55,129,122,253,4,239,15,135,244,55,129,122,253,12,239,255,15,135,244, | 227 | 15,130,244,55,129,122,253,4,239,15,135,244,55,129,122,253,12,239,255,15,135, |
228 | 55,221,66,8,221,2,217,252,253,221,217,252,233,244,64,248,102,129,252,248, | 228 | 244,55,221,66,8,221,2,217,252,253,221,217,252,233,244,64,248,102,129,252, |
229 | 239,15,130,244,55,139,106,4,129,252,253,239,15,135,244,55,139,90,252,252, | 229 | 248,239,15,130,244,55,139,106,4,129,252,253,239,15,135,244,55,139,90,252, |
230 | 139,2,137,106,252,252,137,66,252,248,209,229,129,252,253,0,0,224,252,255, | 230 | 252,139,2,137,106,252,252,137,66,252,248,209,229,129,252,253,0,0,224,252, |
231 | 15,131,244,249,9,232,15,132,244,249,184,252,254,3,0,0,129,252,253,0,0,32, | 231 | 255,15,131,244,249,9,232,15,132,244,249,184,252,254,3,0,0,129,252,253,0,0, |
232 | 0,15,130,244,250,248,1,193,252,237,21,41,197,255,252,242,15,42,197,255,137, | 232 | 32,0,15,130,244,250,248,1,193,252,237,21,41,197,255,252,242,15,42,197,255, |
233 | 44,36,219,4,36,255,139,106,252,252,129,229,252,255,252,255,15,128,129,205, | 233 | 137,44,36,219,4,36,255,139,106,252,252,129,229,252,255,252,255,15,128,129, |
234 | 0,0,224,63,137,106,252,252,248,2,255,252,242,15,17,2,255,221,26,255,184,237, | 234 | 205,0,0,224,63,137,106,252,252,248,2,255,252,242,15,17,2,255,221,26,255,184, |
235 | 252,233,244,69,248,3,255,15,87,192,252,233,244,2,255,217,252,238,252,233, | 235 | 237,252,233,244,69,248,3,255,15,87,192,252,233,244,2,255,217,252,238,252, |
236 | 244,2,255,248,4,255,252,242,15,16,2,72,189,237,237,102,72,15,110,205,252, | 236 | 233,244,2,255,248,4,255,252,242,15,16,2,72,189,237,237,102,72,15,110,205, |
237 | 242,15,89,193,252,242,15,17,66,252,248,255,221,2,199,4,36,0,0,128,90,216, | 237 | 252,242,15,89,193,252,242,15,17,66,252,248,255,221,2,199,4,36,0,0,128,90, |
238 | 12,36,221,90,252,248,255,139,106,252,252,184,52,4,0,0,209,229,252,233,244, | 238 | 216,12,36,221,90,252,248,255,139,106,252,252,184,52,4,0,0,209,229,252,233, |
239 | 1,255,248,103,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244, | 239 | 244,1,255,248,103,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135, |
240 | 55,252,242,15,16,2,255,248,103,129,252,248,239,15,130,244,55,129,122,253, | 240 | 244,55,252,242,15,16,2,255,248,103,129,252,248,239,15,130,244,55,129,122, |
241 | 4,239,15,135,244,55,221,2,255,139,106,4,139,90,252,252,209,229,129,252,253, | 241 | 253,4,239,15,135,244,55,221,2,255,139,106,4,139,90,252,252,209,229,129,252, |
242 | 0,0,224,252,255,15,132,244,250,255,15,40,224,232,244,104,252,242,15,92,224, | 242 | 253,0,0,224,252,255,15,132,244,250,255,15,40,224,232,244,104,252,242,15,92, |
243 | 248,1,252,242,15,17,66,252,248,252,242,15,17,34,255,217,192,232,244,104,220, | 243 | 224,248,1,252,242,15,17,66,252,248,252,242,15,17,34,255,217,192,232,244,104, |
244 | 252,233,248,1,221,90,252,248,221,26,255,139,66,252,252,139,106,4,49,232,15, | 244 | 220,252,233,248,1,221,90,252,248,221,26,255,139,66,252,252,139,106,4,49,232, |
245 | 136,244,249,248,2,184,237,252,233,244,69,248,3,129,252,245,0,0,0,128,137, | 245 | 15,136,244,249,248,2,184,237,252,233,244,69,248,3,129,252,245,0,0,0,128,137, |
246 | 106,4,252,233,244,2,248,4,255,15,87,228,252,233,244,1,255,217,252,238,217, | 246 | 106,4,252,233,244,2,248,4,255,15,87,228,252,233,244,1,255,217,252,238,217, |
247 | 201,252,233,244,1,255,248,105,129,252,248,239,15,130,244,55,129,122,253,4, | 247 | 201,252,233,244,1,255,248,105,129,252,248,239,15,130,244,55,129,122,253,4, |
248 | 239,15,135,244,55,129,122,253,12,239,15,135,244,55,221,66,8,221,2,248,1,217, | 248 | 239,15,135,244,55,129,122,253,12,239,15,135,244,55,221,66,8,221,2,248,1,217, |
@@ -1101,328 +1101,328 @@ static void build_subroutines(BuildCtx *ctx, int cmov, int sse) | |||
1101 | } | 1101 | } |
1102 | dasm_put(Dst, 2211, 1+1, LJ_TSTR, LJ_TSTR, LJ_TISNUM, DISPATCH_GL(gcroot[GCROOT_BASEMT_NUM]), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold)); | 1102 | dasm_put(Dst, 2211, 1+1, LJ_TSTR, LJ_TSTR, LJ_TISNUM, DISPATCH_GL(gcroot[GCROOT_BASEMT_NUM]), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold)); |
1103 | dasm_put(Dst, 2280, Dt1(->base), Dt1(->base), 1+1, LJ_TTAB, Dt1(->base)); | 1103 | dasm_put(Dst, 2280, Dt1(->base), Dt1(->base), 1+1, LJ_TTAB, Dt1(->base)); |
1104 | dasm_put(Dst, 2349, Dt1(->base), 1+2, LJ_TNIL, LJ_TNIL, 1+1, LJ_TTAB); | 1104 | dasm_put(Dst, 2349, Dt1(->top), Dt1(->base), 1+2, LJ_TNIL, LJ_TNIL, 1+1); |
1105 | dasm_put(Dst, 2452, Dt8(->upvalue[0]), LJ_TFUNC, LJ_TNIL, 1+3, 1+1, LJ_TTAB, LJ_TISNUM); | 1105 | dasm_put(Dst, 2446, LJ_TTAB, Dt8(->upvalue[0]), LJ_TFUNC, LJ_TNIL, 1+3, 1+1, LJ_TTAB, LJ_TISNUM); |
1106 | if (sse) { | 1106 | if (sse) { |
1107 | dasm_put(Dst, 2515, (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32)); | 1107 | dasm_put(Dst, 2518, (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32)); |
1108 | } else { | 1108 | } else { |
1109 | } | 1109 | } |
1110 | dasm_put(Dst, 2548, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->hmask), 1+0); | 1110 | dasm_put(Dst, 2551, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->hmask), 1+0); |
1111 | dasm_put(Dst, 2629, 1+1, LJ_TTAB, Dt8(->upvalue[0]), LJ_TFUNC); | 1111 | dasm_put(Dst, 2632, 1+1, LJ_TTAB, Dt8(->upvalue[0]), LJ_TFUNC); |
1112 | if (sse) { | 1112 | if (sse) { |
1113 | dasm_put(Dst, 2667); | 1113 | dasm_put(Dst, 2670); |
1114 | } else { | 1114 | } else { |
1115 | dasm_put(Dst, 2677); | 1115 | dasm_put(Dst, 2680); |
1116 | } | 1116 | } |
1117 | dasm_put(Dst, 2684, 1+3, 1+1, 8+FRAME_PCALL, DISPATCH_GL(hookmask), HOOK_ACTIVE_SHIFT, 2+1, LJ_TFUNC); | 1117 | dasm_put(Dst, 2687, 1+3, 1+1, 8+FRAME_PCALL, DISPATCH_GL(hookmask), HOOK_ACTIVE_SHIFT, 2+1, LJ_TFUNC); |
1118 | dasm_put(Dst, 2749, LJ_TFUNC, 16+FRAME_PCALL, 1+1, LJ_TTHREAD, Dt1(->cframe), Dt1(->status), LUA_YIELD, Dt1(->top)); | 1118 | dasm_put(Dst, 2752, LJ_TFUNC, 16+FRAME_PCALL, 1+1, LJ_TTHREAD, Dt1(->cframe), Dt1(->status), LUA_YIELD, Dt1(->top)); |
1119 | dasm_put(Dst, 2838, Dt1(->base), Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP); | 1119 | dasm_put(Dst, 2841, Dt1(->base), Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP); |
1120 | dasm_put(Dst, 2931, Dt1(->base), LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top), Dt1(->maxstack), LJ_TTRUE, FRAME_TYPE); | 1120 | dasm_put(Dst, 2934, Dt1(->base), LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top), Dt1(->maxstack), LJ_TTRUE, FRAME_TYPE); |
1121 | dasm_put(Dst, 3051, LJ_TFALSE, Dt1(->top), Dt1(->top), 1+2, Dt1(->top), Dt1(->base), Dt8(->upvalue[0].gcr), Dt1(->cframe)); | 1121 | dasm_put(Dst, 3054, LJ_TFALSE, Dt1(->top), Dt1(->top), 1+2, Dt1(->top), Dt1(->base), Dt8(->upvalue[0].gcr), Dt1(->cframe)); |
1122 | dasm_put(Dst, 3147, Dt1(->status), LUA_YIELD, Dt1(->top), Dt1(->base), Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top)); | 1122 | dasm_put(Dst, 3150, Dt1(->status), LUA_YIELD, Dt1(->top), Dt1(->base), Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top)); |
1123 | dasm_put(Dst, 3213, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top), Dt1(->maxstack)); | 1123 | dasm_put(Dst, 3216, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top), Dt1(->maxstack)); |
1124 | dasm_put(Dst, 3308, FRAME_TYPE, Dt1(->top), Dt1(->base), Dt1(->cframe), CFRAME_RESUME); | 1124 | dasm_put(Dst, 3311, FRAME_TYPE, Dt1(->top), Dt1(->base), Dt1(->cframe), CFRAME_RESUME); |
1125 | dasm_put(Dst, 3420, Dt1(->base), Dt1(->top), Dt1(->cframe), LUA_YIELD, Dt1(->status)); | 1125 | dasm_put(Dst, 3423, Dt1(->base), Dt1(->top), Dt1(->cframe), LUA_YIELD, Dt1(->status)); |
1126 | if (sse) { | 1126 | if (sse) { |
1127 | dasm_put(Dst, 3447, 1+1, LJ_TISNUM, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32)); | 1127 | dasm_put(Dst, 3450, 1+1, LJ_TISNUM, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32)); |
1128 | } else { | 1128 | } else { |
1129 | dasm_put(Dst, 3511, 1+1, LJ_TISNUM); | 1129 | dasm_put(Dst, 3514, 1+1, LJ_TISNUM); |
1130 | } | 1130 | } |
1131 | dasm_put(Dst, 3547, 1+1, FRAME_TYPE, LJ_TNIL); | 1131 | dasm_put(Dst, 3550, 1+1, FRAME_TYPE, LJ_TNIL); |
1132 | if (sse) { | 1132 | if (sse) { |
1133 | dasm_put(Dst, 3642, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM); | 1133 | dasm_put(Dst, 3645, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM); |
1134 | dasm_put(Dst, 3704, 1+1, LJ_TISNUM); | 1134 | dasm_put(Dst, 3707, 1+1, LJ_TISNUM); |
1135 | } else { | 1135 | } else { |
1136 | dasm_put(Dst, 3734, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM); | 1136 | dasm_put(Dst, 3737, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM); |
1137 | dasm_put(Dst, 3793, 1+1, LJ_TISNUM); | 1137 | dasm_put(Dst, 3796, 1+1, LJ_TISNUM); |
1138 | } | 1138 | } |
1139 | dasm_put(Dst, 3820, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1); | 1139 | dasm_put(Dst, 3823, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1); |
1140 | dasm_put(Dst, 3889, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1); | 1140 | dasm_put(Dst, 3892, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1); |
1141 | dasm_put(Dst, 3946, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1); | 1141 | dasm_put(Dst, 3949, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1); |
1142 | dasm_put(Dst, 4009, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM); | 1142 | dasm_put(Dst, 4012, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM); |
1143 | dasm_put(Dst, 4099); | 1143 | dasm_put(Dst, 4102); |
1144 | if (sse) { | 1144 | if (sse) { |
1145 | dasm_put(Dst, 4111, 1+1, LJ_TISNUM); | 1145 | dasm_put(Dst, 4114, 1+1, LJ_TISNUM); |
1146 | } else { | 1146 | } else { |
1147 | } | 1147 | } |
1148 | dasm_put(Dst, 4136); | 1148 | dasm_put(Dst, 4139); |
1149 | if (sse) { | 1149 | if (sse) { |
1150 | dasm_put(Dst, 4150, 1+1, LJ_TISNUM); | 1150 | dasm_put(Dst, 4153, 1+1, LJ_TISNUM); |
1151 | } else { | 1151 | } else { |
1152 | } | 1152 | } |
1153 | dasm_put(Dst, 4175); | 1153 | dasm_put(Dst, 4178); |
1154 | if (sse) { | 1154 | if (sse) { |
1155 | dasm_put(Dst, 4189, 1+1, LJ_TISNUM); | 1155 | dasm_put(Dst, 4192, 1+1, LJ_TISNUM); |
1156 | } else { | 1156 | } else { |
1157 | } | 1157 | } |
1158 | dasm_put(Dst, 4214); | 1158 | dasm_put(Dst, 4217); |
1159 | if (sse) { | 1159 | if (sse) { |
1160 | dasm_put(Dst, 4230, 1+1, LJ_TISNUM, Dt8(->upvalue[0])); | 1160 | dasm_put(Dst, 4233, 1+1, LJ_TISNUM, Dt8(->upvalue[0])); |
1161 | } else { | 1161 | } else { |
1162 | dasm_put(Dst, 4269, 1+1, LJ_TISNUM, Dt8(->upvalue[0])); | 1162 | dasm_put(Dst, 4272, 1+1, LJ_TISNUM, Dt8(->upvalue[0])); |
1163 | } | 1163 | } |
1164 | dasm_put(Dst, 4302, 2+1, LJ_TISNUM, LJ_TISNUM, 2+1, LJ_TISNUM, LJ_TISNUM); | 1164 | dasm_put(Dst, 4305, 2+1, LJ_TISNUM, LJ_TISNUM, 2+1, LJ_TISNUM, LJ_TISNUM); |
1165 | dasm_put(Dst, 4367, 1+1, LJ_TISNUM); | 1165 | dasm_put(Dst, 4370, 1+1, LJ_TISNUM); |
1166 | if (sse) { | 1166 | if (sse) { |
1167 | dasm_put(Dst, 4466); | 1167 | dasm_put(Dst, 4469); |
1168 | } else { | 1168 | } else { |
1169 | dasm_put(Dst, 4472); | 1169 | dasm_put(Dst, 4475); |
1170 | } | 1170 | } |
1171 | dasm_put(Dst, 4479); | 1171 | dasm_put(Dst, 4482); |
1172 | if (sse) { | 1172 | if (sse) { |
1173 | dasm_put(Dst, 4504); | 1173 | dasm_put(Dst, 4507); |
1174 | } else { | 1174 | } else { |
1175 | dasm_put(Dst, 4510); | 1175 | dasm_put(Dst, 4513); |
1176 | } | 1176 | } |
1177 | dasm_put(Dst, 4513, 1+2); | 1177 | dasm_put(Dst, 4516, 1+2); |
1178 | if (sse) { | 1178 | if (sse) { |
1179 | dasm_put(Dst, 4522); | 1179 | dasm_put(Dst, 4525); |
1180 | } else { | 1180 | } else { |
1181 | dasm_put(Dst, 4530); | 1181 | dasm_put(Dst, 4533); |
1182 | } | 1182 | } |
1183 | dasm_put(Dst, 4538); | 1183 | dasm_put(Dst, 4541); |
1184 | if (sse) { | 1184 | if (sse) { |
1185 | dasm_put(Dst, 4541, (unsigned int)(U64x(43500000,00000000)), (unsigned int)((U64x(43500000,00000000))>>32)); | 1185 | dasm_put(Dst, 4544, (unsigned int)(U64x(43500000,00000000)), (unsigned int)((U64x(43500000,00000000))>>32)); |
1186 | } else { | 1186 | } else { |
1187 | dasm_put(Dst, 4568); | 1187 | dasm_put(Dst, 4571); |
1188 | } | 1188 | } |
1189 | dasm_put(Dst, 4585); | 1189 | dasm_put(Dst, 4588); |
1190 | if (sse) { | 1190 | if (sse) { |
1191 | dasm_put(Dst, 4601, 1+1, LJ_TISNUM); | 1191 | dasm_put(Dst, 4604, 1+1, LJ_TISNUM); |
1192 | } else { | 1192 | } else { |
1193 | dasm_put(Dst, 4626, 1+1, LJ_TISNUM); | 1193 | dasm_put(Dst, 4629, 1+1, LJ_TISNUM); |
1194 | } | 1194 | } |
1195 | dasm_put(Dst, 4648); | 1195 | dasm_put(Dst, 4651); |
1196 | if (sse) { | 1196 | if (sse) { |
1197 | dasm_put(Dst, 4670); | 1197 | dasm_put(Dst, 4673); |
1198 | } else { | 1198 | } else { |
1199 | dasm_put(Dst, 4696); | 1199 | dasm_put(Dst, 4699); |
1200 | } | 1200 | } |
1201 | dasm_put(Dst, 4713, 1+2); | 1201 | dasm_put(Dst, 4716, 1+2); |
1202 | if (sse) { | 1202 | if (sse) { |
1203 | dasm_put(Dst, 4753); | 1203 | dasm_put(Dst, 4756); |
1204 | } else { | 1204 | } else { |
1205 | dasm_put(Dst, 4761); | 1205 | dasm_put(Dst, 4764); |
1206 | } | 1206 | } |
1207 | dasm_put(Dst, 4771, 2+1, LJ_TISNUM, LJ_TISNUM); | 1207 | dasm_put(Dst, 4774, 2+1, LJ_TISNUM, LJ_TISNUM); |
1208 | if (sse) { | 1208 | if (sse) { |
1209 | dasm_put(Dst, 4823, 1+1, LJ_TISNUM, LJ_TISNUM); | 1209 | dasm_put(Dst, 4826, 1+1, LJ_TISNUM, LJ_TISNUM); |
1210 | } else { | 1210 | } else { |
1211 | dasm_put(Dst, 4870, 2+1, LJ_TISNUM, LJ_TISNUM); | 1211 | dasm_put(Dst, 4873, 2+1, LJ_TISNUM, LJ_TISNUM); |
1212 | } | 1212 | } |
1213 | if (sse) { | 1213 | if (sse) { |
1214 | dasm_put(Dst, 4911, 1+1, LJ_TISNUM, LJ_TISNUM); | 1214 | dasm_put(Dst, 4914, 1+1, LJ_TISNUM, LJ_TISNUM); |
1215 | } else { | 1215 | } else { |
1216 | } | 1216 | } |
1217 | if (sse) { | 1217 | if (sse) { |
1218 | dasm_put(Dst, 4982, 1+1, LJ_TISNUM, LJ_TISNUM); | 1218 | dasm_put(Dst, 4985, 1+1, LJ_TISNUM, LJ_TISNUM); |
1219 | } else { | 1219 | } else { |
1220 | } | 1220 | } |
1221 | if (!sse) { | 1221 | if (!sse) { |
1222 | dasm_put(Dst, 5053); | 1222 | dasm_put(Dst, 5056); |
1223 | } | 1223 | } |
1224 | dasm_put(Dst, 5062, 1+1, LJ_TSTR); | 1224 | dasm_put(Dst, 5065, 1+1, LJ_TSTR); |
1225 | if (sse) { | 1225 | if (sse) { |
1226 | dasm_put(Dst, 5084, Dt5(->len)); | 1226 | dasm_put(Dst, 5087, Dt5(->len)); |
1227 | } else { | 1227 | } else { |
1228 | dasm_put(Dst, 5095, Dt5(->len)); | 1228 | dasm_put(Dst, 5098, Dt5(->len)); |
1229 | } | 1229 | } |
1230 | dasm_put(Dst, 5103, 1+1, LJ_TSTR, Dt5(->len), Dt5([1])); | 1230 | dasm_put(Dst, 5106, 1+1, LJ_TSTR, Dt5(->len), Dt5([1])); |
1231 | if (sse) { | 1231 | if (sse) { |
1232 | dasm_put(Dst, 5141); | 1232 | dasm_put(Dst, 5144); |
1233 | } else { | 1233 | } else { |
1234 | dasm_put(Dst, 5151); | 1234 | dasm_put(Dst, 5154); |
1235 | } | 1235 | } |
1236 | dasm_put(Dst, 5162, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+1, LJ_TISNUM); | 1236 | dasm_put(Dst, 5165, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+1, LJ_TISNUM); |
1237 | if (sse) { | 1237 | if (sse) { |
1238 | dasm_put(Dst, 5199); | 1238 | dasm_put(Dst, 5202); |
1239 | } else { | 1239 | } else { |
1240 | dasm_put(Dst, 5221); | 1240 | dasm_put(Dst, 5224); |
1241 | } | 1241 | } |
1242 | dasm_put(Dst, 5241, Dt1(->base), Dt1(->base), LJ_TSTR, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+2, LJ_TISNUM); | 1242 | dasm_put(Dst, 5244, Dt1(->base), Dt1(->base), LJ_TSTR, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+2, LJ_TISNUM); |
1243 | dasm_put(Dst, 2189); | 1243 | dasm_put(Dst, 2189); |
1244 | if (sse) { | 1244 | if (sse) { |
1245 | dasm_put(Dst, 5350); | 1245 | dasm_put(Dst, 5353); |
1246 | } else { | 1246 | } else { |
1247 | dasm_put(Dst, 5361); | 1247 | dasm_put(Dst, 5364); |
1248 | } | 1248 | } |
1249 | dasm_put(Dst, 5369, LJ_TSTR, LJ_TISNUM, Dt5(->len)); | 1249 | dasm_put(Dst, 5372, LJ_TSTR, LJ_TISNUM, Dt5(->len)); |
1250 | if (sse) { | 1250 | if (sse) { |
1251 | dasm_put(Dst, 5399); | 1251 | dasm_put(Dst, 5402); |
1252 | } else { | 1252 | } else { |
1253 | } | 1253 | } |
1254 | dasm_put(Dst, 5406, sizeof(GCstr)-1); | 1254 | dasm_put(Dst, 5409, sizeof(GCstr)-1); |
1255 | dasm_put(Dst, 5481, 2+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold)); | 1255 | dasm_put(Dst, 5484, 2+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold)); |
1256 | dasm_put(Dst, 5542, LJ_TSTR, LJ_TISNUM); | 1256 | dasm_put(Dst, 5545, LJ_TSTR, LJ_TISNUM); |
1257 | if (sse) { | 1257 | if (sse) { |
1258 | dasm_put(Dst, 5563); | 1258 | dasm_put(Dst, 5566); |
1259 | } else { | 1259 | } else { |
1260 | dasm_put(Dst, 5570); | 1260 | dasm_put(Dst, 5573); |
1261 | } | 1261 | } |
1262 | dasm_put(Dst, 5582, Dt5(->len), DISPATCH_GL(tmpbuf.sz), Dt5([1]), DISPATCH_GL(tmpbuf.buf), DISPATCH_GL(tmpbuf.buf), 1+1); | 1262 | dasm_put(Dst, 5585, Dt5(->len), DISPATCH_GL(tmpbuf.sz), Dt5([1]), DISPATCH_GL(tmpbuf.buf), DISPATCH_GL(tmpbuf.buf), 1+1); |
1263 | dasm_put(Dst, 5650, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf)); | 1263 | dasm_put(Dst, 5653, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf)); |
1264 | dasm_put(Dst, 5717, 1+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz)); | 1264 | dasm_put(Dst, 5720, 1+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz)); |
1265 | dasm_put(Dst, 5790, sizeof(GCstr), DISPATCH_GL(tmpbuf.buf), 1+1); | 1265 | dasm_put(Dst, 5793, sizeof(GCstr), DISPATCH_GL(tmpbuf.buf), 1+1); |
1266 | dasm_put(Dst, 5875, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf)); | 1266 | dasm_put(Dst, 5878, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf)); |
1267 | dasm_put(Dst, 5949, 1+1, LJ_TTAB); | 1267 | dasm_put(Dst, 5952, 1+1, LJ_TTAB); |
1268 | if (sse) { | 1268 | if (sse) { |
1269 | dasm_put(Dst, 6016); | 1269 | dasm_put(Dst, 6019); |
1270 | } else { | 1270 | } else { |
1271 | } | 1271 | } |
1272 | if (sse) { | 1272 | if (sse) { |
1273 | dasm_put(Dst, 6026, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); | 1273 | dasm_put(Dst, 6029, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); |
1274 | } else { | 1274 | } else { |
1275 | } | 1275 | } |
1276 | if (sse) { | 1276 | if (sse) { |
1277 | dasm_put(Dst, 6078, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); | 1277 | dasm_put(Dst, 6081, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); |
1278 | } else { | 1278 | } else { |
1279 | } | 1279 | } |
1280 | dasm_put(Dst, 6121, LJ_TISNUM); | 1280 | dasm_put(Dst, 6124, LJ_TISNUM); |
1281 | if (sse) { | 1281 | if (sse) { |
1282 | dasm_put(Dst, 6148); | 1282 | dasm_put(Dst, 6151); |
1283 | } else { | 1283 | } else { |
1284 | } | 1284 | } |
1285 | dasm_put(Dst, 6165); | 1285 | dasm_put(Dst, 6168); |
1286 | if (sse) { | 1286 | if (sse) { |
1287 | dasm_put(Dst, 6173, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); | 1287 | dasm_put(Dst, 6176, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); |
1288 | } else { | 1288 | } else { |
1289 | } | 1289 | } |
1290 | dasm_put(Dst, 6121, LJ_TISNUM); | 1290 | dasm_put(Dst, 6124, LJ_TISNUM); |
1291 | if (sse) { | 1291 | if (sse) { |
1292 | dasm_put(Dst, 6216); | 1292 | dasm_put(Dst, 6219); |
1293 | } else { | 1293 | } else { |
1294 | } | 1294 | } |
1295 | dasm_put(Dst, 6165); | 1295 | dasm_put(Dst, 6168); |
1296 | if (sse) { | 1296 | if (sse) { |
1297 | dasm_put(Dst, 6233, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); | 1297 | dasm_put(Dst, 6236, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); |
1298 | } else { | 1298 | } else { |
1299 | } | 1299 | } |
1300 | dasm_put(Dst, 6121, LJ_TISNUM); | 1300 | dasm_put(Dst, 6124, LJ_TISNUM); |
1301 | if (sse) { | 1301 | if (sse) { |
1302 | dasm_put(Dst, 6276); | 1302 | dasm_put(Dst, 6279); |
1303 | } else { | 1303 | } else { |
1304 | } | 1304 | } |
1305 | dasm_put(Dst, 6165); | 1305 | dasm_put(Dst, 6168); |
1306 | if (sse) { | 1306 | if (sse) { |
1307 | dasm_put(Dst, 6293, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); | 1307 | dasm_put(Dst, 6296, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); |
1308 | } else { | 1308 | } else { |
1309 | } | 1309 | } |
1310 | dasm_put(Dst, 6336); | 1310 | dasm_put(Dst, 6339); |
1311 | if (sse) { | 1311 | if (sse) { |
1312 | dasm_put(Dst, 6343, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); | 1312 | dasm_put(Dst, 6346, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); |
1313 | } else { | 1313 | } else { |
1314 | } | 1314 | } |
1315 | dasm_put(Dst, 6386); | 1315 | dasm_put(Dst, 6389); |
1316 | if (sse) { | 1316 | if (sse) { |
1317 | dasm_put(Dst, 6390); | 1317 | dasm_put(Dst, 6393); |
1318 | } else { | 1318 | } else { |
1319 | } | 1319 | } |
1320 | dasm_put(Dst, 6402); | 1320 | dasm_put(Dst, 6405); |
1321 | if (sse) { | 1321 | if (sse) { |
1322 | dasm_put(Dst, 6413, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); | 1322 | dasm_put(Dst, 6416, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); |
1323 | } else { | 1323 | } else { |
1324 | } | 1324 | } |
1325 | dasm_put(Dst, 6482); | 1325 | dasm_put(Dst, 6485); |
1326 | if (sse) { | 1326 | if (sse) { |
1327 | dasm_put(Dst, 6491, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); | 1327 | dasm_put(Dst, 6494, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); |
1328 | } else { | 1328 | } else { |
1329 | } | 1329 | } |
1330 | dasm_put(Dst, 6560); | 1330 | dasm_put(Dst, 6563); |
1331 | if (sse) { | 1331 | if (sse) { |
1332 | dasm_put(Dst, 6570, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); | 1332 | dasm_put(Dst, 6573, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); |
1333 | } else { | 1333 | } else { |
1334 | } | 1334 | } |
1335 | dasm_put(Dst, 6639); | 1335 | dasm_put(Dst, 6642); |
1336 | if (sse) { | 1336 | if (sse) { |
1337 | dasm_put(Dst, 6649, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); | 1337 | dasm_put(Dst, 6652, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); |
1338 | } else { | 1338 | } else { |
1339 | } | 1339 | } |
1340 | dasm_put(Dst, 6718); | 1340 | dasm_put(Dst, 6721); |
1341 | if (sse) { | 1341 | if (sse) { |
1342 | dasm_put(Dst, 6727, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); | 1342 | dasm_put(Dst, 6730, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32)); |
1343 | } else { | 1343 | } else { |
1344 | } | 1344 | } |
1345 | dasm_put(Dst, 6796, 1+2, 1+1, Dt1(->base), 8*LUA_MINSTACK, Dt1(->top), Dt1(->maxstack), Dt8(->f), Dt1(->base)); | 1345 | dasm_put(Dst, 6799, 1+2, 1+1, Dt1(->base), 8*LUA_MINSTACK, Dt1(->top), Dt1(->maxstack), Dt8(->f), Dt1(->base)); |
1346 | dasm_put(Dst, 6874, Dt1(->top), Dt7(->pc), FRAME_TYPE, LUA_MINSTACK, Dt1(->base), Dt1(->base)); | 1346 | dasm_put(Dst, 6877, Dt1(->top), Dt7(->pc), FRAME_TYPE, LUA_MINSTACK, Dt1(->base), Dt1(->base)); |
1347 | dasm_put(Dst, 7000, Dt1(->top), Dt1(->base), Dt1(->top)); | 1347 | dasm_put(Dst, 7003, Dt1(->top), Dt1(->base), Dt1(->top)); |
1348 | #if LJ_HASJIT | 1348 | #if LJ_HASJIT |
1349 | dasm_put(Dst, 7039, DISPATCH_GL(hookmask), HOOK_VMEVENT, HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount)); | 1349 | dasm_put(Dst, 7042, DISPATCH_GL(hookmask), HOOK_VMEVENT, HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount)); |
1350 | #endif | 1350 | #endif |
1351 | dasm_put(Dst, 7072, DISPATCH_GL(hookmask), HOOK_ACTIVE, DISPATCH_GL(hookmask), HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount), LUA_MASKLINE); | 1351 | dasm_put(Dst, 7075, DISPATCH_GL(hookmask), HOOK_ACTIVE, DISPATCH_GL(hookmask), HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount), LUA_MASKLINE); |
1352 | dasm_put(Dst, 7126, Dt1(->base), Dt1(->base), GG_DISP2STATIC); | 1352 | dasm_put(Dst, 7129, Dt1(->base), Dt1(->base), GG_DISP2STATIC); |
1353 | #if LJ_HASJIT | 1353 | #if LJ_HASJIT |
1354 | dasm_put(Dst, 7193, Dt7(->pc), PC2PROTO(framesize), Dt1(->base), Dt1(->top), GG_DISP2J, DISPATCH_J(L)); | 1354 | dasm_put(Dst, 7196, Dt7(->pc), PC2PROTO(framesize), Dt1(->base), Dt1(->top), GG_DISP2J, DISPATCH_J(L)); |
1355 | #endif | 1355 | #endif |
1356 | dasm_put(Dst, 7240); | 1356 | dasm_put(Dst, 7243); |
1357 | #if LJ_HASJIT | 1357 | #if LJ_HASJIT |
1358 | dasm_put(Dst, 7067); | 1358 | dasm_put(Dst, 7070); |
1359 | #endif | 1359 | #endif |
1360 | dasm_put(Dst, 7247); | ||
1361 | #if LJ_HASJIT | ||
1362 | dasm_put(Dst, 7250); | 1360 | dasm_put(Dst, 7250); |
1361 | #if LJ_HASJIT | ||
1362 | dasm_put(Dst, 7253); | ||
1363 | #endif | 1363 | #endif |
1364 | dasm_put(Dst, 7260, Dt1(->base), Dt1(->top)); | 1364 | dasm_put(Dst, 7263, Dt1(->base), Dt1(->top)); |
1365 | #if LJ_HASJIT | 1365 | #if LJ_HASJIT |
1366 | dasm_put(Dst, 7293); | 1366 | dasm_put(Dst, 7296); |
1367 | #endif | 1367 | #endif |
1368 | dasm_put(Dst, 7298, Dt1(->base), Dt1(->top)); | 1368 | dasm_put(Dst, 7301, Dt1(->base), Dt1(->top)); |
1369 | #if LJ_HASJIT | 1369 | #if LJ_HASJIT |
1370 | dasm_put(Dst, 7329, DISPATCH_GL(vmstate), DISPATCH_GL(vmstate), ~LJ_VMST_EXIT, DISPATCH_J(exitno), DISPATCH_J(parent), 16*8, 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); | 1370 | dasm_put(Dst, 7332, DISPATCH_GL(vmstate), DISPATCH_GL(vmstate), ~LJ_VMST_EXIT, DISPATCH_J(exitno), DISPATCH_J(parent), 16*8, 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); |
1371 | #endif | 1371 | #endif |
1372 | dasm_put(Dst, 7568); | 1372 | dasm_put(Dst, 7571); |
1373 | #if LJ_HASJIT | 1373 | #if LJ_HASJIT |
1374 | dasm_put(Dst, 7571, Dt7(->pc), PC2PROTO(k), DISPATCH_GL(jit_L), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, BC_FUNCF); | 1374 | dasm_put(Dst, 7574, Dt7(->pc), PC2PROTO(k), DISPATCH_GL(jit_L), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, BC_FUNCF); |
1375 | #endif | 1375 | #endif |
1376 | dasm_put(Dst, 7671); | ||
1377 | if (!sse) { | ||
1378 | dasm_put(Dst, 7674); | 1376 | dasm_put(Dst, 7674); |
1377 | if (!sse) { | ||
1378 | dasm_put(Dst, 7677); | ||
1379 | } | 1379 | } |
1380 | dasm_put(Dst, 7719, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32), (unsigned int)(U64x(43300000,00000000)), (unsigned int)((U64x(43300000,00000000))>>32), (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32)); | 1380 | dasm_put(Dst, 7722, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32), (unsigned int)(U64x(43300000,00000000)), (unsigned int)((U64x(43300000,00000000))>>32), (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32)); |
1381 | if (!sse) { | 1381 | if (!sse) { |
1382 | dasm_put(Dst, 7805); | 1382 | dasm_put(Dst, 7808); |
1383 | } | 1383 | } |
1384 | dasm_put(Dst, 7850, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32), (unsigned int)(U64x(43300000,00000000)), (unsigned int)((U64x(43300000,00000000))>>32), (unsigned int)(U64x(bff00000,00000000)), (unsigned int)((U64x(bff00000,00000000))>>32)); | 1384 | dasm_put(Dst, 7853, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32), (unsigned int)(U64x(43300000,00000000)), (unsigned int)((U64x(43300000,00000000))>>32), (unsigned int)(U64x(bff00000,00000000)), (unsigned int)((U64x(bff00000,00000000))>>32)); |
1385 | if (!sse) { | 1385 | if (!sse) { |
1386 | dasm_put(Dst, 7936); | 1386 | dasm_put(Dst, 7939); |
1387 | } | 1387 | } |
1388 | dasm_put(Dst, 7975, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32), (unsigned int)(U64x(43300000,00000000)), (unsigned int)((U64x(43300000,00000000))>>32), (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32)); | 1388 | dasm_put(Dst, 7978, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32), (unsigned int)(U64x(43300000,00000000)), (unsigned int)((U64x(43300000,00000000))>>32), (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32)); |
1389 | if (sse) { | 1389 | if (sse) { |
1390 | dasm_put(Dst, 8064, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32), (unsigned int)(U64x(43300000,00000000)), (unsigned int)((U64x(43300000,00000000))>>32), (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32)); | 1390 | dasm_put(Dst, 8067, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32), (unsigned int)(U64x(43300000,00000000)), (unsigned int)((U64x(43300000,00000000))>>32), (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32)); |
1391 | } else { | 1391 | } else { |
1392 | dasm_put(Dst, 8178); | 1392 | dasm_put(Dst, 8181); |
1393 | } | 1393 | } |
1394 | dasm_put(Dst, 8225); | 1394 | dasm_put(Dst, 8228); |
1395 | if (!sse) { | 1395 | if (!sse) { |
1396 | } else { | 1396 | } else { |
1397 | dasm_put(Dst, 8302); | 1397 | dasm_put(Dst, 8305); |
1398 | } | 1398 | } |
1399 | dasm_put(Dst, 8305); | 1399 | dasm_put(Dst, 8308); |
1400 | dasm_put(Dst, 8390, (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32), (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32)); | 1400 | dasm_put(Dst, 8393, (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32), (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32)); |
1401 | dasm_put(Dst, 8491, (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32), (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32), (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32), (unsigned int)(U64x(7ff00000,00000000)), (unsigned int)((U64x(7ff00000,00000000))>>32)); | 1401 | dasm_put(Dst, 8494, (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32), (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32), (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32), (unsigned int)(U64x(7ff00000,00000000)), (unsigned int)((U64x(7ff00000,00000000))>>32)); |
1402 | dasm_put(Dst, 8665); | 1402 | dasm_put(Dst, 8668); |
1403 | if (sse) { | 1403 | if (sse) { |
1404 | dasm_put(Dst, 8706); | 1404 | dasm_put(Dst, 8709); |
1405 | dasm_put(Dst, 8776); | 1405 | dasm_put(Dst, 8779); |
1406 | dasm_put(Dst, 8848); | 1406 | dasm_put(Dst, 8851); |
1407 | } else { | 1407 | } else { |
1408 | dasm_put(Dst, 8900); | 1408 | dasm_put(Dst, 8903); |
1409 | dasm_put(Dst, 8992); | 1409 | dasm_put(Dst, 8995); |
1410 | } | 1410 | } |
1411 | dasm_put(Dst, 9038); | 1411 | dasm_put(Dst, 9041); |
1412 | if (sse) { | 1412 | if (sse) { |
1413 | dasm_put(Dst, 9044, (unsigned int)(U64x(80000000,00000000)), (unsigned int)((U64x(80000000,00000000))>>32)); | 1413 | dasm_put(Dst, 9047, (unsigned int)(U64x(80000000,00000000)), (unsigned int)((U64x(80000000,00000000))>>32)); |
1414 | dasm_put(Dst, 9129, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32)); | 1414 | dasm_put(Dst, 9132, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32)); |
1415 | } else { | 1415 | } else { |
1416 | dasm_put(Dst, 9257); | 1416 | dasm_put(Dst, 9260); |
1417 | dasm_put(Dst, 9340); | 1417 | dasm_put(Dst, 9343); |
1418 | if (cmov) { | 1418 | if (cmov) { |
1419 | dasm_put(Dst, 9395); | 1419 | dasm_put(Dst, 9398); |
1420 | } else { | 1420 | } else { |
1421 | dasm_put(Dst, 9414); | 1421 | dasm_put(Dst, 9417); |
1422 | } | 1422 | } |
1423 | dasm_put(Dst, 9253); | 1423 | dasm_put(Dst, 9256); |
1424 | } | 1424 | } |
1425 | dasm_put(Dst, 9455); | 1425 | dasm_put(Dst, 9458); |
1426 | } | 1426 | } |
1427 | 1427 | ||
1428 | /* Generate the code for a single instruction. */ | 1428 | /* Generate the code for a single instruction. */ |
@@ -1438,597 +1438,597 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
1438 | /* Remember: all ops branch for a true comparison, fall through otherwise. */ | 1438 | /* Remember: all ops branch for a true comparison, fall through otherwise. */ |
1439 | 1439 | ||
1440 | case BC_ISLT: case BC_ISGE: case BC_ISLE: case BC_ISGT: | 1440 | case BC_ISLT: case BC_ISGE: case BC_ISLE: case BC_ISGT: |
1441 | dasm_put(Dst, 9477, LJ_TISNUM, LJ_TISNUM); | 1441 | dasm_put(Dst, 9480, LJ_TISNUM, LJ_TISNUM); |
1442 | if (sse) { | 1442 | if (sse) { |
1443 | dasm_put(Dst, 9498); | 1443 | dasm_put(Dst, 9501); |
1444 | } else { | 1444 | } else { |
1445 | dasm_put(Dst, 9513); | 1445 | dasm_put(Dst, 9516); |
1446 | if (cmov) { | 1446 | if (cmov) { |
1447 | dasm_put(Dst, 9523); | 1447 | dasm_put(Dst, 9526); |
1448 | } else { | 1448 | } else { |
1449 | dasm_put(Dst, 9529); | 1449 | dasm_put(Dst, 9532); |
1450 | } | 1450 | } |
1451 | } | 1451 | } |
1452 | switch (op) { | 1452 | switch (op) { |
1453 | case BC_ISLT: | 1453 | case BC_ISLT: |
1454 | dasm_put(Dst, 9536); | 1454 | dasm_put(Dst, 9539); |
1455 | break; | 1455 | break; |
1456 | case BC_ISGE: | 1456 | case BC_ISGE: |
1457 | dasm_put(Dst, 9335); | 1457 | dasm_put(Dst, 9338); |
1458 | break; | 1458 | break; |
1459 | case BC_ISLE: | 1459 | case BC_ISLE: |
1460 | dasm_put(Dst, 5944); | 1460 | dasm_put(Dst, 5947); |
1461 | break; | 1461 | break; |
1462 | case BC_ISGT: | 1462 | case BC_ISGT: |
1463 | dasm_put(Dst, 9541); | 1463 | dasm_put(Dst, 9544); |
1464 | break; | 1464 | break; |
1465 | default: break; /* Shut up GCC. */ | 1465 | default: break; /* Shut up GCC. */ |
1466 | } | 1466 | } |
1467 | dasm_put(Dst, 9546, -BCBIAS_J*4); | 1467 | dasm_put(Dst, 9549, -BCBIAS_J*4); |
1468 | break; | 1468 | break; |
1469 | 1469 | ||
1470 | case BC_ISEQV: case BC_ISNEV: | 1470 | case BC_ISEQV: case BC_ISNEV: |
1471 | vk = op == BC_ISEQV; | 1471 | vk = op == BC_ISEQV; |
1472 | dasm_put(Dst, 9581, LJ_TISNUM, LJ_TISNUM); | 1472 | dasm_put(Dst, 9584, LJ_TISNUM, LJ_TISNUM); |
1473 | if (sse) { | 1473 | if (sse) { |
1474 | dasm_put(Dst, 9607); | 1474 | dasm_put(Dst, 9610); |
1475 | } else { | 1475 | } else { |
1476 | dasm_put(Dst, 9619); | 1476 | dasm_put(Dst, 9622); |
1477 | if (cmov) { | 1477 | if (cmov) { |
1478 | dasm_put(Dst, 9523); | 1478 | dasm_put(Dst, 9526); |
1479 | } else { | 1479 | } else { |
1480 | dasm_put(Dst, 9529); | 1480 | dasm_put(Dst, 9532); |
1481 | } | 1481 | } |
1482 | } | 1482 | } |
1483 | iseqne_fp: | 1483 | iseqne_fp: |
1484 | if (vk) { | 1484 | if (vk) { |
1485 | dasm_put(Dst, 9626); | 1485 | dasm_put(Dst, 9629); |
1486 | } else { | 1486 | } else { |
1487 | dasm_put(Dst, 9635); | 1487 | dasm_put(Dst, 9638); |
1488 | } | 1488 | } |
1489 | iseqne_end: | 1489 | iseqne_end: |
1490 | if (vk) { | 1490 | if (vk) { |
1491 | dasm_put(Dst, 9644, -BCBIAS_J*4); | 1491 | dasm_put(Dst, 9647, -BCBIAS_J*4); |
1492 | } else { | 1492 | } else { |
1493 | dasm_put(Dst, 9659, -BCBIAS_J*4); | 1493 | dasm_put(Dst, 9662, -BCBIAS_J*4); |
1494 | } | 1494 | } |
1495 | dasm_put(Dst, 9560); | 1495 | dasm_put(Dst, 9563); |
1496 | if (op == BC_ISEQV || op == BC_ISNEV) { | 1496 | if (op == BC_ISEQV || op == BC_ISNEV) { |
1497 | dasm_put(Dst, 9674, LJ_TISPRI, LJ_TISTABUD, Dt6(->metatable), Dt6(->nomm), 1<<MM_eq); | 1497 | dasm_put(Dst, 9677, LJ_TISPRI, LJ_TISTABUD, Dt6(->metatable), Dt6(->nomm), 1<<MM_eq); |
1498 | if (vk) { | 1498 | if (vk) { |
1499 | dasm_put(Dst, 9732); | 1499 | dasm_put(Dst, 9735); |
1500 | } else { | 1500 | } else { |
1501 | dasm_put(Dst, 9736); | 1501 | dasm_put(Dst, 9739); |
1502 | } | 1502 | } |
1503 | dasm_put(Dst, 9742); | 1503 | dasm_put(Dst, 9745); |
1504 | } | 1504 | } |
1505 | break; | 1505 | break; |
1506 | case BC_ISEQS: case BC_ISNES: | 1506 | case BC_ISEQS: case BC_ISNES: |
1507 | vk = op == BC_ISEQS; | 1507 | vk = op == BC_ISEQS; |
1508 | dasm_put(Dst, 9747, LJ_TSTR); | 1508 | dasm_put(Dst, 9750, LJ_TSTR); |
1509 | iseqne_test: | 1509 | iseqne_test: |
1510 | if (vk) { | 1510 | if (vk) { |
1511 | dasm_put(Dst, 9630); | 1511 | dasm_put(Dst, 9633); |
1512 | } else { | 1512 | } else { |
1513 | dasm_put(Dst, 2833); | 1513 | dasm_put(Dst, 2836); |
1514 | } | 1514 | } |
1515 | goto iseqne_end; | 1515 | goto iseqne_end; |
1516 | case BC_ISEQN: case BC_ISNEN: | 1516 | case BC_ISEQN: case BC_ISNEN: |
1517 | vk = op == BC_ISEQN; | 1517 | vk = op == BC_ISEQN; |
1518 | dasm_put(Dst, 9772, LJ_TISNUM); | 1518 | dasm_put(Dst, 9775, LJ_TISNUM); |
1519 | if (sse) { | 1519 | if (sse) { |
1520 | dasm_put(Dst, 9786); | 1520 | dasm_put(Dst, 9789); |
1521 | } else { | 1521 | } else { |
1522 | dasm_put(Dst, 9799); | 1522 | dasm_put(Dst, 9802); |
1523 | if (cmov) { | 1523 | if (cmov) { |
1524 | dasm_put(Dst, 9523); | 1524 | dasm_put(Dst, 9526); |
1525 | } else { | 1525 | } else { |
1526 | dasm_put(Dst, 9529); | 1526 | dasm_put(Dst, 9532); |
1527 | } | 1527 | } |
1528 | } | 1528 | } |
1529 | goto iseqne_fp; | 1529 | goto iseqne_fp; |
1530 | case BC_ISEQP: case BC_ISNEP: | 1530 | case BC_ISEQP: case BC_ISNEP: |
1531 | vk = op == BC_ISEQP; | 1531 | vk = op == BC_ISEQP; |
1532 | dasm_put(Dst, 9807); | 1532 | dasm_put(Dst, 9810); |
1533 | goto iseqne_test; | 1533 | goto iseqne_test; |
1534 | 1534 | ||
1535 | /* -- Unary test and copy ops ------------------------------------------- */ | 1535 | /* -- Unary test and copy ops ------------------------------------------- */ |
1536 | 1536 | ||
1537 | case BC_ISTC: case BC_ISFC: case BC_IST: case BC_ISF: | 1537 | case BC_ISTC: case BC_ISFC: case BC_IST: case BC_ISF: |
1538 | dasm_put(Dst, 9819, LJ_TISTRUECOND); | 1538 | dasm_put(Dst, 9822, LJ_TISTRUECOND); |
1539 | if (op == BC_IST || op == BC_ISTC) { | 1539 | if (op == BC_IST || op == BC_ISTC) { |
1540 | dasm_put(Dst, 9831); | 1540 | dasm_put(Dst, 9834); |
1541 | } else { | 1541 | } else { |
1542 | dasm_put(Dst, 9836); | 1542 | dasm_put(Dst, 9839); |
1543 | } | 1543 | } |
1544 | if (op == BC_ISTC || op == BC_ISFC) { | 1544 | if (op == BC_ISTC || op == BC_ISFC) { |
1545 | dasm_put(Dst, 9841); | 1545 | dasm_put(Dst, 9844); |
1546 | } | 1546 | } |
1547 | dasm_put(Dst, 9852, -BCBIAS_J*4); | 1547 | dasm_put(Dst, 9855, -BCBIAS_J*4); |
1548 | break; | 1548 | break; |
1549 | 1549 | ||
1550 | /* -- Unary ops --------------------------------------------------------- */ | 1550 | /* -- Unary ops --------------------------------------------------------- */ |
1551 | 1551 | ||
1552 | case BC_MOV: | 1552 | case BC_MOV: |
1553 | dasm_put(Dst, 9885); | 1553 | dasm_put(Dst, 9888); |
1554 | break; | 1554 | break; |
1555 | case BC_NOT: | 1555 | case BC_NOT: |
1556 | dasm_put(Dst, 9920, LJ_TISTRUECOND, LJ_TTRUE); | 1556 | dasm_put(Dst, 9923, LJ_TISTRUECOND, LJ_TTRUE); |
1557 | break; | 1557 | break; |
1558 | case BC_UNM: | 1558 | case BC_UNM: |
1559 | dasm_put(Dst, 9957, LJ_TISNUM); | 1559 | dasm_put(Dst, 9960, LJ_TISNUM); |
1560 | if (sse) { | 1560 | if (sse) { |
1561 | dasm_put(Dst, 9968, (unsigned int)(U64x(80000000,00000000)), (unsigned int)((U64x(80000000,00000000))>>32)); | 1561 | dasm_put(Dst, 9971, (unsigned int)(U64x(80000000,00000000)), (unsigned int)((U64x(80000000,00000000))>>32)); |
1562 | } else { | 1562 | } else { |
1563 | dasm_put(Dst, 9993); | 1563 | dasm_put(Dst, 9996); |
1564 | } | 1564 | } |
1565 | dasm_put(Dst, 9560); | 1565 | dasm_put(Dst, 9563); |
1566 | break; | 1566 | break; |
1567 | case BC_LEN: | 1567 | case BC_LEN: |
1568 | dasm_put(Dst, 10002, LJ_TSTR); | 1568 | dasm_put(Dst, 10005, LJ_TSTR); |
1569 | if (sse) { | 1569 | if (sse) { |
1570 | dasm_put(Dst, 10016, Dt5(->len)); | 1570 | dasm_put(Dst, 10019, Dt5(->len)); |
1571 | } else { | 1571 | } else { |
1572 | dasm_put(Dst, 10034, Dt5(->len)); | 1572 | dasm_put(Dst, 10037, Dt5(->len)); |
1573 | } | 1573 | } |
1574 | dasm_put(Dst, 10043, LJ_TTAB); | 1574 | dasm_put(Dst, 10046, LJ_TTAB); |
1575 | if (sse) { | 1575 | if (sse) { |
1576 | dasm_put(Dst, 10085); | 1576 | dasm_put(Dst, 10088); |
1577 | } else { | 1577 | } else { |
1578 | } | 1578 | } |
1579 | dasm_put(Dst, 10094); | 1579 | dasm_put(Dst, 10097); |
1580 | break; | 1580 | break; |
1581 | 1581 | ||
1582 | /* -- Binary ops -------------------------------------------------------- */ | 1582 | /* -- Binary ops -------------------------------------------------------- */ |
1583 | 1583 | ||
1584 | 1584 | ||
1585 | case BC_ADDVN: case BC_ADDNV: case BC_ADDVV: | 1585 | case BC_ADDVN: case BC_ADDNV: case BC_ADDVV: |
1586 | dasm_put(Dst, 10104); | 1586 | dasm_put(Dst, 10107); |
1587 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); | 1587 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); |
1588 | switch (vk) { | 1588 | switch (vk) { |
1589 | case 0: | 1589 | case 0: |
1590 | dasm_put(Dst, 10112, LJ_TISNUM); | 1590 | dasm_put(Dst, 10115, LJ_TISNUM); |
1591 | if (sse) { | 1591 | if (sse) { |
1592 | dasm_put(Dst, 10124); | 1592 | dasm_put(Dst, 10127); |
1593 | } else { | 1593 | } else { |
1594 | dasm_put(Dst, 10139); | 1594 | dasm_put(Dst, 10142); |
1595 | } | 1595 | } |
1596 | break; | 1596 | break; |
1597 | case 1: | 1597 | case 1: |
1598 | dasm_put(Dst, 10148, LJ_TISNUM); | 1598 | dasm_put(Dst, 10151, LJ_TISNUM); |
1599 | if (sse) { | 1599 | if (sse) { |
1600 | dasm_put(Dst, 10160); | 1600 | dasm_put(Dst, 10163); |
1601 | } else { | 1601 | } else { |
1602 | dasm_put(Dst, 10175); | 1602 | dasm_put(Dst, 10178); |
1603 | } | 1603 | } |
1604 | break; | 1604 | break; |
1605 | default: | 1605 | default: |
1606 | dasm_put(Dst, 10184, LJ_TISNUM, LJ_TISNUM); | 1606 | dasm_put(Dst, 10187, LJ_TISNUM, LJ_TISNUM); |
1607 | if (sse) { | 1607 | if (sse) { |
1608 | dasm_put(Dst, 10206); | 1608 | dasm_put(Dst, 10209); |
1609 | } else { | 1609 | } else { |
1610 | dasm_put(Dst, 10220); | 1610 | dasm_put(Dst, 10223); |
1611 | } | 1611 | } |
1612 | break; | 1612 | break; |
1613 | } | 1613 | } |
1614 | if (sse) { | 1614 | if (sse) { |
1615 | dasm_put(Dst, 9986); | 1615 | dasm_put(Dst, 9989); |
1616 | } else { | 1616 | } else { |
1617 | dasm_put(Dst, 9998); | 1617 | dasm_put(Dst, 10001); |
1618 | } | 1618 | } |
1619 | dasm_put(Dst, 9560); | 1619 | dasm_put(Dst, 9563); |
1620 | break; | 1620 | break; |
1621 | case BC_SUBVN: case BC_SUBNV: case BC_SUBVV: | 1621 | case BC_SUBVN: case BC_SUBNV: case BC_SUBVV: |
1622 | dasm_put(Dst, 10104); | 1622 | dasm_put(Dst, 10107); |
1623 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); | 1623 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); |
1624 | switch (vk) { | 1624 | switch (vk) { |
1625 | case 0: | 1625 | case 0: |
1626 | dasm_put(Dst, 10112, LJ_TISNUM); | 1626 | dasm_put(Dst, 10115, LJ_TISNUM); |
1627 | if (sse) { | 1627 | if (sse) { |
1628 | dasm_put(Dst, 10228); | 1628 | dasm_put(Dst, 10231); |
1629 | } else { | 1629 | } else { |
1630 | dasm_put(Dst, 10243); | 1630 | dasm_put(Dst, 10246); |
1631 | } | 1631 | } |
1632 | break; | 1632 | break; |
1633 | case 1: | 1633 | case 1: |
1634 | dasm_put(Dst, 10148, LJ_TISNUM); | 1634 | dasm_put(Dst, 10151, LJ_TISNUM); |
1635 | if (sse) { | 1635 | if (sse) { |
1636 | dasm_put(Dst, 10252); | 1636 | dasm_put(Dst, 10255); |
1637 | } else { | 1637 | } else { |
1638 | dasm_put(Dst, 10267); | 1638 | dasm_put(Dst, 10270); |
1639 | } | 1639 | } |
1640 | break; | 1640 | break; |
1641 | default: | 1641 | default: |
1642 | dasm_put(Dst, 10184, LJ_TISNUM, LJ_TISNUM); | 1642 | dasm_put(Dst, 10187, LJ_TISNUM, LJ_TISNUM); |
1643 | if (sse) { | 1643 | if (sse) { |
1644 | dasm_put(Dst, 10276); | 1644 | dasm_put(Dst, 10279); |
1645 | } else { | 1645 | } else { |
1646 | dasm_put(Dst, 10290); | 1646 | dasm_put(Dst, 10293); |
1647 | } | 1647 | } |
1648 | break; | 1648 | break; |
1649 | } | 1649 | } |
1650 | if (sse) { | 1650 | if (sse) { |
1651 | dasm_put(Dst, 9986); | 1651 | dasm_put(Dst, 9989); |
1652 | } else { | 1652 | } else { |
1653 | dasm_put(Dst, 9998); | 1653 | dasm_put(Dst, 10001); |
1654 | } | 1654 | } |
1655 | dasm_put(Dst, 9560); | 1655 | dasm_put(Dst, 9563); |
1656 | break; | 1656 | break; |
1657 | case BC_MULVN: case BC_MULNV: case BC_MULVV: | 1657 | case BC_MULVN: case BC_MULNV: case BC_MULVV: |
1658 | dasm_put(Dst, 10104); | 1658 | dasm_put(Dst, 10107); |
1659 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); | 1659 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); |
1660 | switch (vk) { | 1660 | switch (vk) { |
1661 | case 0: | 1661 | case 0: |
1662 | dasm_put(Dst, 10112, LJ_TISNUM); | 1662 | dasm_put(Dst, 10115, LJ_TISNUM); |
1663 | if (sse) { | 1663 | if (sse) { |
1664 | dasm_put(Dst, 10298); | 1664 | dasm_put(Dst, 10301); |
1665 | } else { | 1665 | } else { |
1666 | dasm_put(Dst, 10313); | 1666 | dasm_put(Dst, 10316); |
1667 | } | 1667 | } |
1668 | break; | 1668 | break; |
1669 | case 1: | 1669 | case 1: |
1670 | dasm_put(Dst, 10148, LJ_TISNUM); | 1670 | dasm_put(Dst, 10151, LJ_TISNUM); |
1671 | if (sse) { | 1671 | if (sse) { |
1672 | dasm_put(Dst, 10322); | 1672 | dasm_put(Dst, 10325); |
1673 | } else { | 1673 | } else { |
1674 | dasm_put(Dst, 10337); | 1674 | dasm_put(Dst, 10340); |
1675 | } | 1675 | } |
1676 | break; | 1676 | break; |
1677 | default: | 1677 | default: |
1678 | dasm_put(Dst, 10184, LJ_TISNUM, LJ_TISNUM); | 1678 | dasm_put(Dst, 10187, LJ_TISNUM, LJ_TISNUM); |
1679 | if (sse) { | 1679 | if (sse) { |
1680 | dasm_put(Dst, 10346); | 1680 | dasm_put(Dst, 10349); |
1681 | } else { | 1681 | } else { |
1682 | dasm_put(Dst, 10360); | 1682 | dasm_put(Dst, 10363); |
1683 | } | 1683 | } |
1684 | break; | 1684 | break; |
1685 | } | 1685 | } |
1686 | if (sse) { | 1686 | if (sse) { |
1687 | dasm_put(Dst, 9986); | 1687 | dasm_put(Dst, 9989); |
1688 | } else { | 1688 | } else { |
1689 | dasm_put(Dst, 9998); | 1689 | dasm_put(Dst, 10001); |
1690 | } | 1690 | } |
1691 | dasm_put(Dst, 9560); | 1691 | dasm_put(Dst, 9563); |
1692 | break; | 1692 | break; |
1693 | case BC_DIVVN: case BC_DIVNV: case BC_DIVVV: | 1693 | case BC_DIVVN: case BC_DIVNV: case BC_DIVVV: |
1694 | dasm_put(Dst, 10104); | 1694 | dasm_put(Dst, 10107); |
1695 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); | 1695 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); |
1696 | switch (vk) { | 1696 | switch (vk) { |
1697 | case 0: | 1697 | case 0: |
1698 | dasm_put(Dst, 10112, LJ_TISNUM); | 1698 | dasm_put(Dst, 10115, LJ_TISNUM); |
1699 | if (sse) { | 1699 | if (sse) { |
1700 | dasm_put(Dst, 10368); | 1700 | dasm_put(Dst, 10371); |
1701 | } else { | 1701 | } else { |
1702 | dasm_put(Dst, 10383); | 1702 | dasm_put(Dst, 10386); |
1703 | } | 1703 | } |
1704 | break; | 1704 | break; |
1705 | case 1: | 1705 | case 1: |
1706 | dasm_put(Dst, 10148, LJ_TISNUM); | 1706 | dasm_put(Dst, 10151, LJ_TISNUM); |
1707 | if (sse) { | 1707 | if (sse) { |
1708 | dasm_put(Dst, 10392); | 1708 | dasm_put(Dst, 10395); |
1709 | } else { | 1709 | } else { |
1710 | dasm_put(Dst, 10407); | 1710 | dasm_put(Dst, 10410); |
1711 | } | 1711 | } |
1712 | break; | 1712 | break; |
1713 | default: | 1713 | default: |
1714 | dasm_put(Dst, 10184, LJ_TISNUM, LJ_TISNUM); | 1714 | dasm_put(Dst, 10187, LJ_TISNUM, LJ_TISNUM); |
1715 | if (sse) { | 1715 | if (sse) { |
1716 | dasm_put(Dst, 10416); | 1716 | dasm_put(Dst, 10419); |
1717 | } else { | 1717 | } else { |
1718 | dasm_put(Dst, 10430); | 1718 | dasm_put(Dst, 10433); |
1719 | } | 1719 | } |
1720 | break; | 1720 | break; |
1721 | } | 1721 | } |
1722 | if (sse) { | 1722 | if (sse) { |
1723 | dasm_put(Dst, 9986); | 1723 | dasm_put(Dst, 9989); |
1724 | } else { | 1724 | } else { |
1725 | dasm_put(Dst, 9998); | 1725 | dasm_put(Dst, 10001); |
1726 | } | 1726 | } |
1727 | dasm_put(Dst, 9560); | 1727 | dasm_put(Dst, 9563); |
1728 | break; | 1728 | break; |
1729 | case BC_MODVN: | 1729 | case BC_MODVN: |
1730 | dasm_put(Dst, 10104); | 1730 | dasm_put(Dst, 10107); |
1731 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); | 1731 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); |
1732 | switch (vk) { | 1732 | switch (vk) { |
1733 | case 0: | 1733 | case 0: |
1734 | dasm_put(Dst, 10112, LJ_TISNUM); | 1734 | dasm_put(Dst, 10115, LJ_TISNUM); |
1735 | if (sse) { | 1735 | if (sse) { |
1736 | dasm_put(Dst, 10438); | 1736 | dasm_put(Dst, 10441); |
1737 | } else { | 1737 | } else { |
1738 | dasm_put(Dst, 10453); | 1738 | dasm_put(Dst, 10456); |
1739 | } | 1739 | } |
1740 | break; | 1740 | break; |
1741 | case 1: | 1741 | case 1: |
1742 | dasm_put(Dst, 10148, LJ_TISNUM); | 1742 | dasm_put(Dst, 10151, LJ_TISNUM); |
1743 | if (sse) { | 1743 | if (sse) { |
1744 | dasm_put(Dst, 10462); | 1744 | dasm_put(Dst, 10465); |
1745 | } else { | 1745 | } else { |
1746 | dasm_put(Dst, 10477); | 1746 | dasm_put(Dst, 10480); |
1747 | } | 1747 | } |
1748 | break; | 1748 | break; |
1749 | default: | 1749 | default: |
1750 | dasm_put(Dst, 10184, LJ_TISNUM, LJ_TISNUM); | 1750 | dasm_put(Dst, 10187, LJ_TISNUM, LJ_TISNUM); |
1751 | if (sse) { | 1751 | if (sse) { |
1752 | dasm_put(Dst, 10486); | 1752 | dasm_put(Dst, 10489); |
1753 | } else { | 1753 | } else { |
1754 | dasm_put(Dst, 10500); | 1754 | dasm_put(Dst, 10503); |
1755 | } | 1755 | } |
1756 | break; | 1756 | break; |
1757 | } | 1757 | } |
1758 | dasm_put(Dst, 10508); | 1758 | dasm_put(Dst, 10511); |
1759 | if (sse) { | 1759 | if (sse) { |
1760 | dasm_put(Dst, 9986); | 1760 | dasm_put(Dst, 9989); |
1761 | } else { | 1761 | } else { |
1762 | dasm_put(Dst, 9998); | 1762 | dasm_put(Dst, 10001); |
1763 | } | 1763 | } |
1764 | dasm_put(Dst, 9560); | 1764 | dasm_put(Dst, 9563); |
1765 | break; | 1765 | break; |
1766 | case BC_MODNV: case BC_MODVV: | 1766 | case BC_MODNV: case BC_MODVV: |
1767 | dasm_put(Dst, 10104); | 1767 | dasm_put(Dst, 10107); |
1768 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); | 1768 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); |
1769 | switch (vk) { | 1769 | switch (vk) { |
1770 | case 0: | 1770 | case 0: |
1771 | dasm_put(Dst, 10112, LJ_TISNUM); | 1771 | dasm_put(Dst, 10115, LJ_TISNUM); |
1772 | if (sse) { | 1772 | if (sse) { |
1773 | dasm_put(Dst, 10438); | 1773 | dasm_put(Dst, 10441); |
1774 | } else { | 1774 | } else { |
1775 | dasm_put(Dst, 10453); | 1775 | dasm_put(Dst, 10456); |
1776 | } | 1776 | } |
1777 | break; | 1777 | break; |
1778 | case 1: | 1778 | case 1: |
1779 | dasm_put(Dst, 10148, LJ_TISNUM); | 1779 | dasm_put(Dst, 10151, LJ_TISNUM); |
1780 | if (sse) { | 1780 | if (sse) { |
1781 | dasm_put(Dst, 10462); | 1781 | dasm_put(Dst, 10465); |
1782 | } else { | 1782 | } else { |
1783 | dasm_put(Dst, 10477); | 1783 | dasm_put(Dst, 10480); |
1784 | } | 1784 | } |
1785 | break; | 1785 | break; |
1786 | default: | 1786 | default: |
1787 | dasm_put(Dst, 10184, LJ_TISNUM, LJ_TISNUM); | 1787 | dasm_put(Dst, 10187, LJ_TISNUM, LJ_TISNUM); |
1788 | if (sse) { | 1788 | if (sse) { |
1789 | dasm_put(Dst, 10486); | 1789 | dasm_put(Dst, 10489); |
1790 | } else { | 1790 | } else { |
1791 | dasm_put(Dst, 10500); | 1791 | dasm_put(Dst, 10503); |
1792 | } | 1792 | } |
1793 | break; | 1793 | break; |
1794 | } | 1794 | } |
1795 | dasm_put(Dst, 10514); | 1795 | dasm_put(Dst, 10517); |
1796 | break; | 1796 | break; |
1797 | case BC_POW: | 1797 | case BC_POW: |
1798 | dasm_put(Dst, 10104); | 1798 | dasm_put(Dst, 10107); |
1799 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); | 1799 | vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); |
1800 | switch (vk) { | 1800 | switch (vk) { |
1801 | case 0: | 1801 | case 0: |
1802 | dasm_put(Dst, 10112, LJ_TISNUM); | 1802 | dasm_put(Dst, 10115, LJ_TISNUM); |
1803 | if (sse) { | 1803 | if (sse) { |
1804 | dasm_put(Dst, 10438); | 1804 | dasm_put(Dst, 10441); |
1805 | } else { | 1805 | } else { |
1806 | dasm_put(Dst, 10453); | 1806 | dasm_put(Dst, 10456); |
1807 | } | 1807 | } |
1808 | break; | 1808 | break; |
1809 | case 1: | 1809 | case 1: |
1810 | dasm_put(Dst, 10148, LJ_TISNUM); | 1810 | dasm_put(Dst, 10151, LJ_TISNUM); |
1811 | if (sse) { | 1811 | if (sse) { |
1812 | dasm_put(Dst, 10462); | 1812 | dasm_put(Dst, 10465); |
1813 | } else { | 1813 | } else { |
1814 | dasm_put(Dst, 10477); | 1814 | dasm_put(Dst, 10480); |
1815 | } | 1815 | } |
1816 | break; | 1816 | break; |
1817 | default: | 1817 | default: |
1818 | dasm_put(Dst, 10184, LJ_TISNUM, LJ_TISNUM); | 1818 | dasm_put(Dst, 10187, LJ_TISNUM, LJ_TISNUM); |
1819 | if (sse) { | 1819 | if (sse) { |
1820 | dasm_put(Dst, 10486); | 1820 | dasm_put(Dst, 10489); |
1821 | } else { | 1821 | } else { |
1822 | dasm_put(Dst, 10500); | 1822 | dasm_put(Dst, 10503); |
1823 | } | 1823 | } |
1824 | break; | 1824 | break; |
1825 | } | 1825 | } |
1826 | dasm_put(Dst, 10519); | 1826 | dasm_put(Dst, 10522); |
1827 | if (sse) { | 1827 | if (sse) { |
1828 | dasm_put(Dst, 9986); | 1828 | dasm_put(Dst, 9989); |
1829 | } else { | 1829 | } else { |
1830 | dasm_put(Dst, 9998); | 1830 | dasm_put(Dst, 10001); |
1831 | } | 1831 | } |
1832 | dasm_put(Dst, 9560); | 1832 | dasm_put(Dst, 9563); |
1833 | break; | 1833 | break; |
1834 | 1834 | ||
1835 | case BC_CAT: | 1835 | case BC_CAT: |
1836 | dasm_put(Dst, 10523, Dt1(->base), Dt1(->base)); | 1836 | dasm_put(Dst, 10526, Dt1(->base), Dt1(->base)); |
1837 | break; | 1837 | break; |
1838 | 1838 | ||
1839 | /* -- Constant ops ------------------------------------------------------ */ | 1839 | /* -- Constant ops ------------------------------------------------------ */ |
1840 | 1840 | ||
1841 | case BC_KSTR: | 1841 | case BC_KSTR: |
1842 | dasm_put(Dst, 10614, LJ_TSTR); | 1842 | dasm_put(Dst, 10617, LJ_TSTR); |
1843 | break; | 1843 | break; |
1844 | case BC_KSHORT: | 1844 | case BC_KSHORT: |
1845 | if (sse) { | 1845 | if (sse) { |
1846 | dasm_put(Dst, 10651); | 1846 | dasm_put(Dst, 10654); |
1847 | } else { | 1847 | } else { |
1848 | dasm_put(Dst, 10666); | 1848 | dasm_put(Dst, 10669); |
1849 | } | 1849 | } |
1850 | dasm_put(Dst, 9560); | 1850 | dasm_put(Dst, 9563); |
1851 | break; | 1851 | break; |
1852 | case BC_KNUM: | 1852 | case BC_KNUM: |
1853 | if (sse) { | 1853 | if (sse) { |
1854 | dasm_put(Dst, 10674); | 1854 | dasm_put(Dst, 10677); |
1855 | } else { | 1855 | } else { |
1856 | dasm_put(Dst, 10688); | 1856 | dasm_put(Dst, 10691); |
1857 | } | 1857 | } |
1858 | dasm_put(Dst, 9560); | 1858 | dasm_put(Dst, 9563); |
1859 | break; | 1859 | break; |
1860 | case BC_KPRI: | 1860 | case BC_KPRI: |
1861 | dasm_put(Dst, 10696); | 1861 | dasm_put(Dst, 10699); |
1862 | break; | 1862 | break; |
1863 | case BC_KNIL: | 1863 | case BC_KNIL: |
1864 | dasm_put(Dst, 10725, LJ_TNIL); | 1864 | dasm_put(Dst, 10728, LJ_TNIL); |
1865 | break; | 1865 | break; |
1866 | 1866 | ||
1867 | /* -- Upvalue and function ops ------------------------------------------ */ | 1867 | /* -- Upvalue and function ops ------------------------------------------ */ |
1868 | 1868 | ||
1869 | case BC_UGET: | 1869 | case BC_UGET: |
1870 | dasm_put(Dst, 10773, offsetof(GCfuncL, uvptr), DtA(->v)); | 1870 | dasm_put(Dst, 10776, offsetof(GCfuncL, uvptr), DtA(->v)); |
1871 | break; | 1871 | break; |
1872 | case BC_USETV: | 1872 | case BC_USETV: |
1873 | #define TV2MARKOFS \ | 1873 | #define TV2MARKOFS \ |
1874 | ((int32_t)offsetof(GCupval, marked)-(int32_t)offsetof(GCupval, tv)) | 1874 | ((int32_t)offsetof(GCupval, marked)-(int32_t)offsetof(GCupval, tv)) |
1875 | dasm_put(Dst, 10819, 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); | 1875 | dasm_put(Dst, 10822, 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); |
1876 | dasm_put(Dst, 10915); | 1876 | dasm_put(Dst, 10918); |
1877 | break; | 1877 | break; |
1878 | #undef TV2MARKOFS | 1878 | #undef TV2MARKOFS |
1879 | case BC_USETS: | 1879 | case BC_USETS: |
1880 | dasm_put(Dst, 10927, offsetof(GCfuncL, uvptr), DtA(->v), LJ_TSTR, DtA(->marked), LJ_GC_BLACK, Dt4(->gch.marked), LJ_GC_WHITES, DtA(->closed), GG_DISP2G); | 1880 | dasm_put(Dst, 10930, offsetof(GCfuncL, uvptr), DtA(->v), LJ_TSTR, DtA(->marked), LJ_GC_BLACK, Dt4(->gch.marked), LJ_GC_WHITES, DtA(->closed), GG_DISP2G); |
1881 | break; | 1881 | break; |
1882 | case BC_USETN: | 1882 | case BC_USETN: |
1883 | dasm_put(Dst, 11023); | 1883 | dasm_put(Dst, 11026); |
1884 | if (sse) { | 1884 | if (sse) { |
1885 | dasm_put(Dst, 11028); | 1885 | dasm_put(Dst, 11031); |
1886 | } else { | 1886 | } else { |
1887 | dasm_put(Dst, 9802); | 1887 | dasm_put(Dst, 9805); |
1888 | } | 1888 | } |
1889 | dasm_put(Dst, 11036, offsetof(GCfuncL, uvptr), DtA(->v)); | 1889 | dasm_put(Dst, 11039, offsetof(GCfuncL, uvptr), DtA(->v)); |
1890 | if (sse) { | 1890 | if (sse) { |
1891 | dasm_put(Dst, 11045); | 1891 | dasm_put(Dst, 11048); |
1892 | } else { | 1892 | } else { |
1893 | dasm_put(Dst, 11051); | 1893 | dasm_put(Dst, 11054); |
1894 | } | 1894 | } |
1895 | dasm_put(Dst, 9560); | 1895 | dasm_put(Dst, 9563); |
1896 | break; | 1896 | break; |
1897 | case BC_USETP: | 1897 | case BC_USETP: |
1898 | dasm_put(Dst, 11054, offsetof(GCfuncL, uvptr), DtA(->v)); | 1898 | dasm_put(Dst, 11057, offsetof(GCfuncL, uvptr), DtA(->v)); |
1899 | break; | 1899 | break; |
1900 | case BC_UCLO: | 1900 | case BC_UCLO: |
1901 | dasm_put(Dst, 11094, -BCBIAS_J*4, Dt1(->openupval), Dt1(->base), Dt1(->base)); | 1901 | dasm_put(Dst, 11097, -BCBIAS_J*4, Dt1(->openupval), Dt1(->base), Dt1(->base)); |
1902 | break; | 1902 | break; |
1903 | 1903 | ||
1904 | case BC_FNEW: | 1904 | case BC_FNEW: |
1905 | dasm_put(Dst, 11150, Dt1(->base), Dt1(->base), LJ_TFUNC); | 1905 | dasm_put(Dst, 11153, Dt1(->base), Dt1(->base), LJ_TFUNC); |
1906 | break; | 1906 | break; |
1907 | 1907 | ||
1908 | /* -- Table ops --------------------------------------------------------- */ | 1908 | /* -- Table ops --------------------------------------------------------- */ |
1909 | 1909 | ||
1910 | case BC_TNEW: | 1910 | case BC_TNEW: |
1911 | dasm_put(Dst, 11217, Dt1(->base), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), LJ_TTAB); | 1911 | dasm_put(Dst, 11220, Dt1(->base), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), LJ_TTAB); |
1912 | break; | 1912 | break; |
1913 | case BC_TDUP: | 1913 | case BC_TDUP: |
1914 | dasm_put(Dst, 11341, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB); | 1914 | dasm_put(Dst, 11344, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB); |
1915 | break; | 1915 | break; |
1916 | 1916 | ||
1917 | case BC_GGET: | 1917 | case BC_GGET: |
1918 | dasm_put(Dst, 11440, Dt7(->env)); | 1918 | dasm_put(Dst, 11443, Dt7(->env)); |
1919 | break; | 1919 | break; |
1920 | case BC_GSET: | 1920 | case BC_GSET: |
1921 | dasm_put(Dst, 11460, Dt7(->env)); | 1921 | dasm_put(Dst, 11463, Dt7(->env)); |
1922 | break; | 1922 | break; |
1923 | 1923 | ||
1924 | case BC_TGETV: | 1924 | case BC_TGETV: |
1925 | dasm_put(Dst, 11480, LJ_TTAB, LJ_TISNUM); | 1925 | dasm_put(Dst, 11483, LJ_TTAB, LJ_TISNUM); |
1926 | if (sse) { | 1926 | if (sse) { |
1927 | dasm_put(Dst, 11513); | 1927 | dasm_put(Dst, 11516); |
1928 | } else { | 1928 | } else { |
1929 | } | 1929 | } |
1930 | dasm_put(Dst, 11534, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); | 1930 | dasm_put(Dst, 11537, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); |
1931 | dasm_put(Dst, 11628, LJ_TSTR); | 1931 | dasm_put(Dst, 11631, LJ_TSTR); |
1932 | break; | 1932 | break; |
1933 | case BC_TGETS: | 1933 | case BC_TGETS: |
1934 | dasm_put(Dst, 11646, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); | 1934 | dasm_put(Dst, 11649, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); |
1935 | dasm_put(Dst, 11732, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); | 1935 | dasm_put(Dst, 11735, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); |
1936 | break; | 1936 | break; |
1937 | case BC_TGETB: | 1937 | case BC_TGETB: |
1938 | dasm_put(Dst, 11805, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); | 1938 | dasm_put(Dst, 11808, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); |
1939 | dasm_put(Dst, 10094); | 1939 | dasm_put(Dst, 10097); |
1940 | break; | 1940 | break; |
1941 | 1941 | ||
1942 | case BC_TSETV: | 1942 | case BC_TSETV: |
1943 | dasm_put(Dst, 11906, LJ_TTAB, LJ_TISNUM); | 1943 | dasm_put(Dst, 11909, LJ_TTAB, LJ_TISNUM); |
1944 | if (sse) { | 1944 | if (sse) { |
1945 | dasm_put(Dst, 11513); | 1945 | dasm_put(Dst, 11516); |
1946 | } else { | 1946 | } else { |
1947 | } | 1947 | } |
1948 | dasm_put(Dst, 11939, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable)); | 1948 | dasm_put(Dst, 11942, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable)); |
1949 | dasm_put(Dst, 12024, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); | 1949 | dasm_put(Dst, 12027, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); |
1950 | break; | 1950 | break; |
1951 | case BC_TSETS: | 1951 | case BC_TSETS: |
1952 | dasm_put(Dst, 12088, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); | 1952 | dasm_put(Dst, 12091, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); |
1953 | dasm_put(Dst, 12165, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next)); | 1953 | dasm_put(Dst, 12168, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next)); |
1954 | dasm_put(Dst, 12257, 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)); | 1954 | dasm_put(Dst, 12260, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt1(->base), Dt1(->base), Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); |
1955 | break; | 1955 | break; |
1956 | case BC_TSETB: | 1956 | case BC_TSETB: |
1957 | dasm_put(Dst, 12349, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable)); | 1957 | dasm_put(Dst, 12352, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable)); |
1958 | dasm_put(Dst, 12449, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); | 1958 | dasm_put(Dst, 12452, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); |
1959 | break; | 1959 | break; |
1960 | 1960 | ||
1961 | case BC_TSETM: | 1961 | case BC_TSETM: |
1962 | dasm_put(Dst, 12497); | 1962 | dasm_put(Dst, 12500); |
1963 | if (sse) { | 1963 | if (sse) { |
1964 | dasm_put(Dst, 12502); | 1964 | dasm_put(Dst, 12505); |
1965 | } else { | 1965 | } else { |
1966 | } | 1966 | } |
1967 | dasm_put(Dst, 12510, Dt6(->marked), LJ_GC_BLACK, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base)); | 1967 | dasm_put(Dst, 12513, Dt6(->marked), LJ_GC_BLACK, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base)); |
1968 | dasm_put(Dst, 12658, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); | 1968 | dasm_put(Dst, 12661, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); |
1969 | break; | 1969 | break; |
1970 | 1970 | ||
1971 | /* -- Calls and vararg handling ----------------------------------------- */ | 1971 | /* -- Calls and vararg handling ----------------------------------------- */ |
1972 | 1972 | ||
1973 | case BC_CALL: case BC_CALLM: | 1973 | case BC_CALL: case BC_CALLM: |
1974 | dasm_put(Dst, 10108); | 1974 | dasm_put(Dst, 10111); |
1975 | if (op == BC_CALLM) { | 1975 | if (op == BC_CALLM) { |
1976 | dasm_put(Dst, 12678); | 1976 | dasm_put(Dst, 12681); |
1977 | } | 1977 | } |
1978 | dasm_put(Dst, 12683, LJ_TFUNC, Dt7(->pc)); | 1978 | dasm_put(Dst, 12686, LJ_TFUNC, Dt7(->pc)); |
1979 | break; | 1979 | break; |
1980 | 1980 | ||
1981 | case BC_CALLMT: | 1981 | case BC_CALLMT: |
1982 | dasm_put(Dst, 12678); | 1982 | dasm_put(Dst, 12681); |
1983 | break; | 1983 | break; |
1984 | case BC_CALLT: | 1984 | case BC_CALLT: |
1985 | dasm_put(Dst, 12726, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->pc)); | 1985 | dasm_put(Dst, 12729, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->pc)); |
1986 | dasm_put(Dst, 12850, FRAME_TYPE, Dt7(->pc), PC2PROTO(k)); | 1986 | dasm_put(Dst, 12853, FRAME_TYPE, Dt7(->pc), PC2PROTO(k)); |
1987 | break; | 1987 | break; |
1988 | 1988 | ||
1989 | case BC_ITERC: | 1989 | case BC_ITERC: |
1990 | dasm_put(Dst, 12911, LJ_TFUNC, 2+1, Dt7(->pc)); | 1990 | dasm_put(Dst, 12914, LJ_TFUNC, 2+1, Dt7(->pc)); |
1991 | break; | 1991 | break; |
1992 | 1992 | ||
1993 | case BC_VARG: | 1993 | case BC_VARG: |
1994 | dasm_put(Dst, 12993, Dt7(->pc), PC2PROTO(numparams), (8+FRAME_VARG), LJ_TNIL); | 1994 | dasm_put(Dst, 12996, Dt7(->pc), PC2PROTO(numparams), (8+FRAME_VARG), LJ_TNIL); |
1995 | dasm_put(Dst, 13147, Dt1(->maxstack), Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top)); | 1995 | dasm_put(Dst, 13150, Dt1(->maxstack), Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top)); |
1996 | break; | 1996 | break; |
1997 | 1997 | ||
1998 | /* -- Returns ----------------------------------------------------------- */ | 1998 | /* -- Returns ----------------------------------------------------------- */ |
1999 | 1999 | ||
2000 | case BC_RETM: | 2000 | case BC_RETM: |
2001 | dasm_put(Dst, 12678); | 2001 | dasm_put(Dst, 12681); |
2002 | break; | 2002 | break; |
2003 | 2003 | ||
2004 | case BC_RET: case BC_RET0: case BC_RET1: | 2004 | case BC_RET: case BC_RET0: case BC_RET1: |
2005 | if (op != BC_RET0) { | 2005 | if (op != BC_RET0) { |
2006 | dasm_put(Dst, 13252); | 2006 | dasm_put(Dst, 13255); |
2007 | } | 2007 | } |
2008 | dasm_put(Dst, 13256, FRAME_TYPE); | 2008 | dasm_put(Dst, 13259, FRAME_TYPE); |
2009 | switch (op) { | 2009 | switch (op) { |
2010 | case BC_RET: | 2010 | case BC_RET: |
2011 | dasm_put(Dst, 13275); | 2011 | dasm_put(Dst, 13278); |
2012 | break; | 2012 | break; |
2013 | case BC_RET1: | 2013 | case BC_RET1: |
2014 | dasm_put(Dst, 13339); | 2014 | dasm_put(Dst, 13342); |
2015 | /* fallthrough */ | 2015 | /* fallthrough */ |
2016 | case BC_RET0: | 2016 | case BC_RET0: |
2017 | dasm_put(Dst, 13355); | 2017 | dasm_put(Dst, 13358); |
2018 | default: | 2018 | default: |
2019 | break; | 2019 | break; |
2020 | } | 2020 | } |
2021 | dasm_put(Dst, 13366, Dt7(->pc), PC2PROTO(k)); | 2021 | dasm_put(Dst, 13369, Dt7(->pc), PC2PROTO(k)); |
2022 | if (op == BC_RET) { | 2022 | if (op == BC_RET) { |
2023 | dasm_put(Dst, 13414, LJ_TNIL); | 2023 | dasm_put(Dst, 13417, LJ_TNIL); |
2024 | } else { | 2024 | } else { |
2025 | dasm_put(Dst, 13425, LJ_TNIL); | 2025 | dasm_put(Dst, 13428, LJ_TNIL); |
2026 | } | 2026 | } |
2027 | dasm_put(Dst, 13432); | 2027 | dasm_put(Dst, 13435); |
2028 | if (op != BC_RET0) { | 2028 | if (op != BC_RET0) { |
2029 | dasm_put(Dst, 13452); | 2029 | dasm_put(Dst, 13455); |
2030 | } | 2030 | } |
2031 | dasm_put(Dst, 4596); | 2031 | dasm_put(Dst, 4599); |
2032 | break; | 2032 | break; |
2033 | 2033 | ||
2034 | /* -- Loops and branches ------------------------------------------------ */ | 2034 | /* -- Loops and branches ------------------------------------------------ */ |
@@ -2036,7 +2036,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2036 | 2036 | ||
2037 | case BC_FORL: | 2037 | case BC_FORL: |
2038 | #if LJ_HASJIT | 2038 | #if LJ_HASJIT |
2039 | dasm_put(Dst, 13455, HOTCOUNT_PCMASK, GG_DISP2HOT); | 2039 | dasm_put(Dst, 13458, HOTCOUNT_PCMASK, GG_DISP2HOT); |
2040 | #endif | 2040 | #endif |
2041 | break; | 2041 | break; |
2042 | 2042 | ||
@@ -2048,57 +2048,57 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2048 | case BC_FORI: | 2048 | case BC_FORI: |
2049 | case BC_IFORL: | 2049 | case BC_IFORL: |
2050 | vk = (op == BC_IFORL || op == BC_JFORL); | 2050 | vk = (op == BC_IFORL || op == BC_JFORL); |
2051 | dasm_put(Dst, 13476); | 2051 | dasm_put(Dst, 13479); |
2052 | if (!vk) { | 2052 | if (!vk) { |
2053 | dasm_put(Dst, 13480, LJ_TISNUM, LJ_TISNUM); | 2053 | dasm_put(Dst, 13483, LJ_TISNUM, LJ_TISNUM); |
2054 | } | 2054 | } |
2055 | dasm_put(Dst, 13499); | 2055 | dasm_put(Dst, 13502); |
2056 | if (!vk) { | 2056 | if (!vk) { |
2057 | dasm_put(Dst, 13503, LJ_TISNUM); | 2057 | dasm_put(Dst, 13506, LJ_TISNUM); |
2058 | } | 2058 | } |
2059 | if (sse) { | 2059 | if (sse) { |
2060 | dasm_put(Dst, 13512); | 2060 | dasm_put(Dst, 13515); |
2061 | if (vk) { | 2061 | if (vk) { |
2062 | dasm_put(Dst, 13524); | 2062 | dasm_put(Dst, 13527); |
2063 | } else { | 2063 | } else { |
2064 | dasm_put(Dst, 13543); | 2064 | dasm_put(Dst, 13546); |
2065 | } | 2065 | } |
2066 | dasm_put(Dst, 13548); | 2066 | dasm_put(Dst, 13551); |
2067 | } else { | 2067 | } else { |
2068 | dasm_put(Dst, 13561); | 2068 | dasm_put(Dst, 13564); |
2069 | if (vk) { | 2069 | if (vk) { |
2070 | dasm_put(Dst, 13567); | 2070 | dasm_put(Dst, 13570); |
2071 | } else { | 2071 | } else { |
2072 | dasm_put(Dst, 13583); | 2072 | dasm_put(Dst, 13586); |
2073 | } | 2073 | } |
2074 | dasm_put(Dst, 13591); | 2074 | dasm_put(Dst, 13594); |
2075 | if (cmov) { | 2075 | if (cmov) { |
2076 | dasm_put(Dst, 9523); | 2076 | dasm_put(Dst, 9526); |
2077 | } else { | 2077 | } else { |
2078 | dasm_put(Dst, 9529); | 2078 | dasm_put(Dst, 9532); |
2079 | } | 2079 | } |
2080 | if (!cmov) { | 2080 | if (!cmov) { |
2081 | dasm_put(Dst, 13596); | 2081 | dasm_put(Dst, 13599); |
2082 | } | 2082 | } |
2083 | } | 2083 | } |
2084 | if (op == BC_FORI) { | 2084 | if (op == BC_FORI) { |
2085 | dasm_put(Dst, 13602, -BCBIAS_J*4); | 2085 | dasm_put(Dst, 13605, -BCBIAS_J*4); |
2086 | } else if (op == BC_JFORI) { | 2086 | } else if (op == BC_JFORI) { |
2087 | dasm_put(Dst, 13612, -BCBIAS_J*4, BC_JLOOP); | 2087 | dasm_put(Dst, 13615, -BCBIAS_J*4, BC_JLOOP); |
2088 | } else if (op == BC_IFORL) { | 2088 | } else if (op == BC_IFORL) { |
2089 | dasm_put(Dst, 13626, -BCBIAS_J*4); | 2089 | dasm_put(Dst, 13629, -BCBIAS_J*4); |
2090 | } else { | 2090 | } else { |
2091 | dasm_put(Dst, 13622, BC_JLOOP); | 2091 | dasm_put(Dst, 13625, BC_JLOOP); |
2092 | } | 2092 | } |
2093 | dasm_put(Dst, 9558); | 2093 | dasm_put(Dst, 9561); |
2094 | if (sse) { | 2094 | if (sse) { |
2095 | dasm_put(Dst, 13636); | 2095 | dasm_put(Dst, 13639); |
2096 | } | 2096 | } |
2097 | break; | 2097 | break; |
2098 | 2098 | ||
2099 | case BC_ITERL: | 2099 | case BC_ITERL: |
2100 | #if LJ_HASJIT | 2100 | #if LJ_HASJIT |
2101 | dasm_put(Dst, 13455, HOTCOUNT_PCMASK, GG_DISP2HOT); | 2101 | dasm_put(Dst, 13458, HOTCOUNT_PCMASK, GG_DISP2HOT); |
2102 | #endif | 2102 | #endif |
2103 | break; | 2103 | break; |
2104 | 2104 | ||
@@ -2107,33 +2107,33 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2107 | break; | 2107 | break; |
2108 | #endif | 2108 | #endif |
2109 | case BC_IITERL: | 2109 | case BC_IITERL: |
2110 | dasm_put(Dst, 13647, LJ_TNIL); | 2110 | dasm_put(Dst, 13650, LJ_TNIL); |
2111 | if (op == BC_JITERL) { | 2111 | if (op == BC_JITERL) { |
2112 | dasm_put(Dst, 13662, BC_JLOOP); | 2112 | dasm_put(Dst, 13665, BC_JLOOP); |
2113 | } else { | 2113 | } else { |
2114 | dasm_put(Dst, 13676, -BCBIAS_J*4); | 2114 | dasm_put(Dst, 13679, -BCBIAS_J*4); |
2115 | } | 2115 | } |
2116 | dasm_put(Dst, 9862); | 2116 | dasm_put(Dst, 9865); |
2117 | break; | 2117 | break; |
2118 | 2118 | ||
2119 | case BC_LOOP: | 2119 | case BC_LOOP: |
2120 | #if LJ_HASJIT | 2120 | #if LJ_HASJIT |
2121 | dasm_put(Dst, 13455, HOTCOUNT_PCMASK, GG_DISP2HOT); | 2121 | dasm_put(Dst, 13458, HOTCOUNT_PCMASK, GG_DISP2HOT); |
2122 | #endif | 2122 | #endif |
2123 | break; | 2123 | break; |
2124 | 2124 | ||
2125 | case BC_ILOOP: | 2125 | case BC_ILOOP: |
2126 | dasm_put(Dst, 9560); | 2126 | dasm_put(Dst, 9563); |
2127 | break; | 2127 | break; |
2128 | 2128 | ||
2129 | case BC_JLOOP: | 2129 | case BC_JLOOP: |
2130 | #if LJ_HASJIT | 2130 | #if LJ_HASJIT |
2131 | dasm_put(Dst, 13692, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L)); | 2131 | dasm_put(Dst, 13695, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L)); |
2132 | #endif | 2132 | #endif |
2133 | break; | 2133 | break; |
2134 | 2134 | ||
2135 | case BC_JMP: | 2135 | case BC_JMP: |
2136 | dasm_put(Dst, 13733, -BCBIAS_J*4); | 2136 | dasm_put(Dst, 13736, -BCBIAS_J*4); |
2137 | break; | 2137 | break; |
2138 | 2138 | ||
2139 | /* -- Function headers -------------------------------------------------- */ | 2139 | /* -- Function headers -------------------------------------------------- */ |
@@ -2147,7 +2147,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2147 | 2147 | ||
2148 | case BC_FUNCF: | 2148 | case BC_FUNCF: |
2149 | #if LJ_HASJIT | 2149 | #if LJ_HASJIT |
2150 | dasm_put(Dst, 13759, HOTCOUNT_PCMASK, GG_DISP2HOT); | 2150 | dasm_put(Dst, 13762, HOTCOUNT_PCMASK, GG_DISP2HOT); |
2151 | #endif | 2151 | #endif |
2152 | case BC_FUNCV: /* NYI: compiled vararg functions. */ | 2152 | case BC_FUNCV: /* NYI: compiled vararg functions. */ |
2153 | break; | 2153 | break; |
@@ -2157,47 +2157,47 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) | |||
2157 | break; | 2157 | break; |
2158 | #endif | 2158 | #endif |
2159 | case BC_IFUNCF: | 2159 | case BC_IFUNCF: |
2160 | dasm_put(Dst, 13780, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams)); | 2160 | dasm_put(Dst, 13783, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams)); |
2161 | if (op == BC_JFUNCF) { | 2161 | if (op == BC_JFUNCF) { |
2162 | dasm_put(Dst, 13811, BC_JLOOP); | 2162 | dasm_put(Dst, 13814, BC_JLOOP); |
2163 | } else { | 2163 | } else { |
2164 | dasm_put(Dst, 9560); | 2164 | dasm_put(Dst, 9563); |
2165 | } | 2165 | } |
2166 | dasm_put(Dst, 13820, LJ_TNIL); | 2166 | dasm_put(Dst, 13823, LJ_TNIL); |
2167 | break; | 2167 | break; |
2168 | 2168 | ||
2169 | case BC_JFUNCV: | 2169 | case BC_JFUNCV: |
2170 | #if !LJ_HASJIT | 2170 | #if !LJ_HASJIT |
2171 | break; | 2171 | break; |
2172 | #endif | 2172 | #endif |
2173 | dasm_put(Dst, 9255); | 2173 | dasm_put(Dst, 9258); |
2174 | break; /* NYI: compiled vararg functions. */ | 2174 | break; /* NYI: compiled vararg functions. */ |
2175 | 2175 | ||
2176 | case BC_IFUNCV: | 2176 | case BC_IFUNCV: |
2177 | dasm_put(Dst, 13842, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL); | 2177 | dasm_put(Dst, 13845, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL); |
2178 | if (op == BC_JFUNCV) { | 2178 | if (op == BC_JFUNCV) { |
2179 | dasm_put(Dst, 13811, BC_JLOOP); | 2179 | dasm_put(Dst, 13814, BC_JLOOP); |
2180 | } else { | 2180 | } else { |
2181 | dasm_put(Dst, 13939, -4+PC2PROTO(k)); | 2181 | dasm_put(Dst, 13942, -4+PC2PROTO(k)); |
2182 | } | 2182 | } |
2183 | dasm_put(Dst, 13964, LJ_TNIL); | 2183 | dasm_put(Dst, 13967, LJ_TNIL); |
2184 | break; | 2184 | break; |
2185 | 2185 | ||
2186 | case BC_FUNCC: | 2186 | case BC_FUNCC: |
2187 | case BC_FUNCCW: | 2187 | case BC_FUNCCW: |
2188 | dasm_put(Dst, 13986, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top)); | 2188 | dasm_put(Dst, 13989, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top)); |
2189 | if (op == BC_FUNCC) { | 2189 | if (op == BC_FUNCC) { |
2190 | dasm_put(Dst, 14016); | 2190 | dasm_put(Dst, 14019); |
2191 | } else { | 2191 | } else { |
2192 | dasm_put(Dst, 14020); | 2192 | dasm_put(Dst, 14023); |
2193 | } | 2193 | } |
2194 | dasm_put(Dst, 14028, DISPATCH_GL(vmstate), ~LJ_VMST_C); | 2194 | dasm_put(Dst, 14031, DISPATCH_GL(vmstate), ~LJ_VMST_C); |
2195 | if (op == BC_FUNCC) { | 2195 | if (op == BC_FUNCC) { |
2196 | dasm_put(Dst, 14038); | 2196 | dasm_put(Dst, 14041); |
2197 | } else { | 2197 | } else { |
2198 | dasm_put(Dst, 14043, DISPATCH_GL(wrapf)); | 2198 | dasm_put(Dst, 14046, DISPATCH_GL(wrapf)); |
2199 | } | 2199 | } |
2200 | dasm_put(Dst, 14049, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top)); | 2200 | dasm_put(Dst, 14052, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top)); |
2201 | break; | 2201 | break; |
2202 | 2202 | ||
2203 | /* ---------------------------------------------------------------------- */ | 2203 | /* ---------------------------------------------------------------------- */ |
@@ -2225,7 +2225,7 @@ static int build_backend(BuildCtx *ctx) | |||
2225 | 2225 | ||
2226 | build_subroutines(ctx, cmov, sse); | 2226 | build_subroutines(ctx, cmov, sse); |
2227 | 2227 | ||
2228 | dasm_put(Dst, 14075); | 2228 | dasm_put(Dst, 14078); |
2229 | for (op = 0; op < BC__MAX; op++) | 2229 | for (op = 0; op < BC__MAX; op++) |
2230 | build_ins(ctx, (BCOp)op, op, cmov, sse); | 2230 | build_ins(ctx, (BCOp)op, op, cmov, sse); |
2231 | 2231 | ||