Use a different marker for hot calls.
[luajit-2.0/celess22.git] / src / buildvm_x64.h
blob7632f70b393d564dc42fa673bf82e6f1ce97a0c6
1 /*
2 ** This file has been pre-processed with DynASM.
3 ** http://luajit.org/dynasm.html
4 ** DynASM version 1.2.1, DynASM x64 version 1.2.1
5 ** DO NOT EDIT! The original file is in "buildvm_x86.dasc".
6 */
8 #if DASM_VERSION != 10201
9 #error "Version mismatch between DynASM and included encoding engine"
10 #endif
12 #define DASM_SECTION_CODE_OP 0
13 #define DASM_SECTION_CODE_SUB 1
14 #define DASM_MAXSECTION 2
15 static const unsigned char build_actionlist[13678] = {
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,
18 252,247,195,237,15,132,244,13,248,14,252,247,195,237,15,132,244,10,65,199,
19 134,233,237,131,227,252,248,41,211,252,247,219,131,232,1,15,132,244,248,248,
20 1,139,44,10,137,106,252,248,139,108,10,4,137,106,252,252,131,194,8,131,232,
21 1,15,133,244,1,248,2,255,139,108,36,16,137,157,233,248,3,139,68,36,4,139,
22 76,36,8,248,4,57,193,15,133,244,252,248,5,131,252,234,8,137,149,233,248,15,
23 72,139,76,36,32,72,137,141,233,49,192,248,16,72,131,196,40,65,94,65,95,91,
24 93,195,248,6,15,130,244,253,59,149,233,15,135,244,254,199,66,252,252,237,
25 131,194,8,131,192,1,252,233,244,4,248,7,255,133,201,15,132,244,5,41,193,141,
26 20,202,252,233,244,5,248,8,137,149,233,137,68,36,4,137,206,137,252,239,232,
27 251,1,0,139,149,233,252,233,244,3,248,17,137,252,240,72,137,252,252,248,18,
28 139,108,36,16,139,173,233,199,133,233,237,252,233,244,16,248,19,72,129,231,
29 239,72,137,252,252,248,20,139,108,36,16,72,199,193,252,248,252,255,252,255,
30 252,255,184,237,255,139,149,233,68,139,181,233,65,129,198,239,139,90,252,
31 252,199,66,252,252,237,65,199,134,233,237,252,233,244,12,248,21,190,237,252,
32 233,244,248,248,22,131,232,8,252,233,244,247,248,23,141,68,194,252,248,248,
33 1,15,182,139,233,131,195,4,137,149,233,137,133,233,255,137,92,36,20,137,206,
34 248,2,137,252,239,232,251,1,0,139,149,233,139,133,233,139,106,252,248,139,
35 90,252,252,41,208,193,232,3,131,192,1,139,157,233,139,11,15,182,252,233,15,
36 182,205,131,195,4,65,252,255,36,252,238,248,24,85,83,65,87,65,86,72,131,252,
37 236,40,137,252,253,137,124,36,16,137,252,241,187,237,49,192,76,141,188,253,
38 36,233,68,139,181,233,65,129,198,239,76,137,189,233,137,68,36,20,72,137,68,
39 36,32,137,68,36,8,137,68,36,12,56,133,233,15,132,244,249,65,199,134,233,237,
40 136,133,233,139,149,233,139,133,233,41,200,193,232,3,131,192,1,41,209,139,
41 90,252,252,137,68,36,4,252,247,195,237,15,132,244,13,255,252,233,244,14,248,
42 25,85,83,65,87,65,86,72,131,252,236,40,187,237,137,76,36,12,252,233,244,247,
43 248,26,85,83,65,87,65,86,72,131,252,236,40,187,237,248,1,137,84,36,8,137,
44 252,253,137,124,36,16,137,252,241,248,2,76,139,189,233,76,137,124,36,32,137,
45 108,36,20,72,137,165,233,68,139,181,233,65,129,198,239,248,3,65,199,134,233,
46 237,139,149,233,1,203,41,211,139,133,233,41,200,193,232,3,131,192,1,248,27,
47 255,139,105,252,248,129,121,253,252,252,239,15,133,244,28,248,29,137,202,
48 137,90,252,252,139,157,233,139,11,15,182,252,233,15,182,205,131,195,4,65,
49 252,255,36,252,238,248,30,85,83,65,87,65,86,72,131,252,236,40,137,252,253,
50 137,124,36,16,137,108,36,20,68,139,189,233,68,43,189,233,199,68,36,12,0,0,
51 0,0,68,137,124,36,8,76,139,189,233,76,137,124,36,32,72,137,165,233,252,255,
52 209,133,192,15,132,244,15,137,193,187,237,252,233,244,2,248,11,1,209,131,
53 227,252,248,137,213,41,218,199,68,193,252,252,237,137,200,139,93,252,244,
54 72,99,77,252,240,76,141,61,245,76,1,252,249,68,139,122,252,248,69,139,191,
55 233,255,69,139,191,233,252,255,225,248,31,15,182,75,252,255,131,252,237,16,
56 141,12,202,41,252,233,15,132,244,32,252,247,217,193,252,233,3,139,124,36,
57 16,137,151,233,137,202,139,72,4,139,0,137,77,4,137,69,0,137,252,238,252,233,
58 244,33,248,34,137,4,36,199,68,36,4,237,72,141,4,36,128,123,252,252,235,15,
59 133,244,247,65,141,142,233,137,41,199,65,4,237,137,205,252,233,244,248,248,
60 35,15,182,67,252,254,255,252,242,15,42,192,252,242,15,17,4,36,255,72,141,
61 4,36,252,233,244,247,248,36,15,182,67,252,254,141,4,194,248,1,15,182,107,
62 252,255,141,44,252,234,248,2,139,124,36,16,137,151,233,137,252,238,72,137,
63 194,137,252,253,137,92,36,20,232,251,1,1,139,149,233,133,192,15,132,244,249,
64 248,32,15,182,75,252,253,139,104,4,139,0,137,108,202,4,137,4,202,139,3,15,
65 182,204,15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,248,3,139,141,
66 233,137,89,252,244,141,153,233,41,211,139,105,252,248,184,237,252,233,244,
67 29,248,37,137,4,36,199,68,36,4,237,72,141,4,36,128,123,252,252,235,15,133,
68 244,247,255,65,141,142,233,137,41,199,65,4,237,137,205,252,233,244,248,248,
69 38,15,182,67,252,254,255,72,141,4,36,252,233,244,247,248,39,15,182,67,252,
70 254,141,4,194,248,1,15,182,107,252,255,141,44,252,234,248,2,139,124,36,16,
71 137,151,233,137,252,238,72,137,194,137,252,253,137,92,36,20,232,251,1,2,139,
72 149,233,133,192,15,132,244,249,15,182,75,252,253,139,108,202,4,139,12,202,
73 137,104,4,137,8,248,40,139,3,15,182,204,15,182,232,131,195,4,193,232,16,65,
74 252,255,36,252,238,248,3,139,141,233,137,89,252,244,15,182,67,252,253,139,
75 108,194,4,139,4,194,137,105,20,137,65,16,141,153,233,41,211,139,105,252,248,
76 184,237,252,233,244,29,248,41,139,108,36,16,137,149,233,141,52,202,141,20,
77 194,137,252,239,15,182,75,252,252,137,92,36,20,232,251,1,3,248,3,139,149,
78 233,255,131,252,248,1,15,135,244,42,248,4,141,91,4,15,130,244,252,248,5,15,
79 183,67,252,254,141,156,253,131,233,248,6,139,3,15,182,204,15,182,232,131,
80 195,4,193,232,16,65,252,255,36,252,238,248,43,131,195,4,129,120,253,4,239,
81 15,130,244,5,252,233,244,6,248,44,129,120,253,4,239,252,233,244,4,248,45,
82 131,252,235,4,137,206,137,252,233,139,108,36,16,137,149,233,255,137,194,137,
83 252,239,137,92,36,20,232,251,1,4,252,233,244,3,248,46,65,141,4,199,252,233,
84 244,247,248,47,65,141,4,199,141,44,252,234,149,252,233,244,248,248,48,141,
85 4,194,137,197,252,233,244,248,248,49,141,4,194,248,1,141,44,252,234,248,2,
86 141,12,202,68,15,182,67,252,252,137,206,137,193,139,124,36,16,137,151,233,
87 137,252,234,137,252,253,137,92,36,20,232,251,1,5,139,149,233,133,192,15,132,
88 244,40,248,42,137,193,41,208,137,89,252,244,141,152,233,255,184,237,252,233,
89 244,27,248,50,139,108,36,16,137,149,233,141,52,194,137,252,239,137,92,36,
90 20,232,251,1,6,139,149,233,252,233,244,42,248,51,141,76,202,8,248,28,137,
91 76,36,4,137,4,36,131,252,233,8,139,108,36,16,137,149,233,137,206,141,20,193,
92 137,252,239,137,92,36,20,232,251,1,7,139,149,233,139,76,36,4,139,4,36,139,
93 105,252,248,131,192,1,65,57,215,15,132,244,52,137,202,137,90,252,252,139,
94 157,233,139,11,15,182,252,233,15,182,205,131,195,4,65,252,255,36,252,238,
95 248,53,139,108,36,16,137,149,233,137,206,137,252,239,137,92,36,20,232,251,
96 1,8,139,149,233,139,67,252,252,15,182,204,15,182,232,193,232,16,65,252,255,
97 164,253,252,238,233,248,54,255,129,252,248,239,15,130,244,55,139,106,4,129,
98 252,253,239,15,131,244,55,139,90,252,252,137,68,36,4,137,106,252,252,139,
99 42,137,106,252,248,131,232,2,15,132,244,248,137,209,248,1,131,193,8,139,105,
100 4,137,105,252,252,139,41,137,105,252,248,131,232,1,15,133,244,1,248,2,139,
101 68,36,4,252,233,244,56,248,57,129,252,248,239,15,130,244,55,139,106,4,184,
102 237,252,247,213,57,232,255,15,71,197,255,15,134,244,247,137,232,248,1,255,
103 139,106,252,248,139,132,253,197,233,139,90,252,252,199,66,252,252,237,137,
104 66,252,248,252,233,244,58,248,59,129,252,248,239,15,130,244,55,139,106,4,
105 139,90,252,252,129,252,253,239,15,133,244,252,248,1,139,42,139,173,233,248,
106 2,133,252,237,199,66,252,252,237,15,132,244,58,65,139,134,233,199,66,252,
107 252,237,137,106,252,248,139,141,233,255,35,136,233,105,201,239,3,141,233,
108 248,3,129,185,233,239,15,133,244,250,57,129,233,15,132,244,251,248,4,139,
109 137,233,133,201,15,133,244,3,252,233,244,58,248,5,139,105,4,129,252,253,239,
110 15,132,244,58,255,139,1,137,106,252,252,137,66,252,248,252,233,244,58,248,
111 6,129,252,253,239,15,132,244,1,129,252,253,239,15,135,244,253,189,237,248,
112 7,252,247,213,65,139,172,253,174,233,252,233,244,2,248,60,129,252,248,239,
113 15,130,244,55,129,122,253,4,239,15,133,244,55,255,139,42,131,189,233,0,15,
114 133,244,55,129,122,253,12,239,15,133,244,55,139,66,8,137,133,233,139,90,252,
115 252,199,66,252,252,237,137,106,252,248,252,246,133,233,235,15,132,244,247,
116 128,165,233,235,65,139,134,233,65,137,174,233,137,133,233,248,1,252,233,244,
117 58,248,61,255,129,252,248,239,15,130,244,55,129,122,253,4,239,15,133,244,
118 55,137,213,139,50,141,82,8,139,124,36,16,232,251,1,9,137,252,234,139,40,139,
119 64,4,139,90,252,252,137,106,252,248,137,66,252,252,252,233,244,58,248,62,
120 129,252,248,239,15,133,244,55,129,122,253,4,239,15,135,244,55,255,252,242,
121 15,16,2,252,233,244,63,255,221,2,252,233,244,64,255,248,65,129,252,248,239,
122 15,130,244,55,139,90,252,252,129,122,253,4,239,15,133,244,249,139,2,248,2,
123 199,66,252,252,237,137,66,252,248,252,233,244,58,248,3,129,122,253,4,239,
124 15,135,244,55,65,131,190,233,0,15,133,244,55,65,139,174,233,65,59,174,233,
125 255,15,130,244,247,232,244,66,248,1,139,108,36,16,137,149,233,137,92,36,20,
126 137,214,137,252,239,232,251,1,10,139,149,233,252,233,244,2,248,67,129,252,
127 248,239,15,130,244,55,15,132,244,248,248,1,129,122,253,4,239,15,133,244,55,
128 139,108,36,16,137,149,233,255,139,90,252,252,139,50,141,82,8,137,252,239,
129 137,92,36,20,232,251,1,11,139,149,233,133,192,15,132,244,249,139,106,8,139,
130 66,12,137,106,252,248,137,66,252,252,139,106,16,139,66,20,137,42,137,66,4,
131 248,68,184,237,252,233,244,69,248,2,199,66,12,237,252,233,244,1,248,3,199,
132 66,252,252,237,252,233,244,58,248,70,129,252,248,239,15,130,244,55,139,106,
133 252,248,129,122,253,4,239,255,15,133,244,55,139,133,233,139,90,252,252,199,
134 66,252,252,237,137,66,252,248,199,66,12,237,184,237,252,233,244,69,248,71,
135 129,252,248,239,15,130,244,55,129,122,253,4,239,15,133,244,55,129,122,253,
136 12,239,15,135,244,55,139,90,252,252,255,252,242,15,16,66,8,72,189,237,237,
137 102,72,15,110,205,252,242,15,88,193,252,242,15,45,192,252,242,15,17,66,252,
138 248,255,139,42,59,133,233,15,131,244,248,193,224,3,3,133,233,248,1,129,120,
139 253,4,239,15,132,244,72,139,40,139,64,4,137,42,137,66,4,252,233,244,68,248,
140 2,131,189,233,0,15,132,244,72,137,252,239,137,213,137,198,232,251,1,12,137,
141 252,234,133,192,15,133,244,1,248,72,184,237,252,233,244,69,248,73,255,129,
142 252,248,239,15,130,244,55,139,106,252,248,129,122,253,4,239,15,133,244,55,
143 139,133,233,139,90,252,252,199,66,252,252,237,137,66,252,248,255,15,87,192,
144 252,242,15,17,66,8,255,217,252,238,221,90,8,255,184,237,252,233,244,69,248,
145 74,129,252,248,239,15,130,244,55,141,74,8,131,232,1,187,237,248,1,65,15,182,
146 174,233,193,252,237,235,131,229,1,1,252,235,252,233,244,27,248,75,129,252,
147 248,239,15,130,244,55,129,122,253,12,239,15,133,244,55,255,139,106,4,137,
148 106,12,199,66,4,237,139,42,139,90,8,137,106,8,137,26,141,74,16,131,232,2,
149 187,237,252,233,244,1,248,76,129,252,248,239,15,130,244,55,139,42,139,90,
150 252,252,137,92,36,20,137,44,36,129,122,253,4,239,15,133,244,55,72,131,189,
151 233,0,15,133,244,55,128,189,233,235,15,135,244,55,139,141,233,15,132,244,
152 247,255,59,141,233,15,132,244,55,248,1,141,92,193,252,240,59,157,233,15,135,
153 244,55,137,157,233,139,108,36,16,137,149,233,131,194,8,137,149,233,141,108,
154 194,232,72,41,221,57,203,15,132,244,249,248,2,139,68,43,4,137,67,252,252,
155 139,4,43,137,67,252,248,131,252,235,8,57,203,15,133,244,2,248,3,137,206,139,
156 60,36,232,244,24,65,199,134,233,237,255,139,108,36,16,139,28,36,139,149,233,
157 129,252,248,239,15,135,244,254,248,4,139,139,233,68,139,187,233,137,139,233,
158 68,137,252,251,41,203,15,132,244,252,141,4,26,193,252,235,3,59,133,233,15,
159 135,244,255,137,213,72,41,205,248,5,139,1,137,4,41,139,65,4,137,68,41,4,131,
160 193,8,68,57,252,249,15,133,244,5,248,6,141,67,2,199,66,252,252,237,248,7,
161 139,92,36,20,137,68,36,4,72,199,193,252,248,252,255,252,255,252,255,252,247,
162 195,237,255,15,132,244,13,252,233,244,14,248,8,199,66,252,252,237,139,139,
163 233,131,252,233,8,137,139,233,139,1,137,2,139,65,4,137,66,4,184,237,252,233,
164 244,7,248,9,139,12,36,68,137,185,233,137,222,137,252,239,232,251,1,0,139,
165 149,233,252,233,244,4,248,77,139,106,252,248,139,173,233,139,90,252,252,137,
166 92,36,20,137,44,36,72,131,189,233,0,15,133,244,55,255,128,189,233,235,15,
167 135,244,55,139,141,233,15,132,244,247,59,141,233,15,132,244,55,248,1,141,
168 92,193,252,248,59,157,233,15,135,244,55,137,157,233,139,108,36,16,137,149,
169 233,137,149,233,141,108,194,252,240,72,41,221,57,203,15,132,244,249,248,2,
170 255,139,68,43,4,137,67,252,252,139,4,43,137,67,252,248,131,252,235,8,57,203,
171 15,133,244,2,248,3,137,206,139,60,36,232,244,24,65,199,134,233,237,139,108,
172 36,16,139,28,36,139,149,233,129,252,248,239,15,135,244,254,248,4,139,139,
173 233,68,139,187,233,137,139,233,68,137,252,251,41,203,15,132,244,252,141,4,
174 26,193,252,235,3,59,133,233,15,135,244,255,255,137,213,72,41,205,248,5,139,
175 1,137,4,41,139,65,4,137,68,41,4,131,193,8,68,57,252,249,15,133,244,5,248,
176 6,141,67,1,248,7,139,92,36,20,137,68,36,4,49,201,252,247,195,237,15,132,244,
177 13,252,233,244,14,248,8,137,222,137,252,239,232,251,1,13,248,9,139,12,36,
178 68,137,185,233,137,222,137,252,239,232,251,1,0,139,149,233,252,233,244,4,
179 248,78,139,108,36,16,72,252,247,133,233,237,15,132,244,55,255,137,149,233,
180 141,68,194,252,248,137,133,233,49,192,72,137,133,233,176,235,136,133,233,
181 252,233,244,16,255,248,64,139,90,252,252,221,90,252,248,252,233,244,58,248,
182 79,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,252,242,
183 15,16,2,72,184,237,237,102,72,15,110,200,15,84,193,248,63,139,90,252,252,
184 252,242,15,17,66,252,248,255,248,79,129,252,248,239,15,130,244,55,129,122,
185 253,4,239,15,135,244,55,221,2,217,225,248,63,248,64,139,90,252,252,221,90,
186 252,248,255,248,58,184,237,248,69,137,68,36,4,248,56,252,247,195,237,15,133,
187 244,253,248,5,56,67,252,255,15,135,244,252,15,182,75,252,253,72,252,247,209,
188 141,20,202,139,3,15,182,204,15,182,232,131,195,4,193,232,16,65,252,255,36,
189 252,238,248,6,199,68,194,252,244,237,131,192,1,252,233,244,5,248,7,72,199,
190 193,252,248,252,255,252,255,252,255,252,233,244,14,255,248,80,129,252,248,
191 239,15,130,244,55,129,122,253,4,239,15,135,244,55,252,242,15,81,2,252,233,
192 244,63,248,81,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,
193 55,252,242,15,16,2,232,244,82,252,233,244,63,248,83,255,129,252,248,239,15,
194 130,244,55,129,122,253,4,239,15,135,244,55,252,242,15,16,2,232,244,84,252,
195 233,244,63,255,248,80,129,252,248,239,15,130,244,55,129,122,253,4,239,15,
196 135,244,55,221,2,217,252,250,252,233,244,64,248,81,129,252,248,239,15,130,
197 244,55,129,122,253,4,239,15,135,244,55,221,2,232,244,82,252,233,244,64,248,
198 83,255,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,221,
199 2,232,244,84,252,233,244,64,255,248,85,129,252,248,239,15,130,244,55,129,
200 122,253,4,239,15,135,244,55,217,252,237,221,2,217,252,241,252,233,244,64,
201 248,86,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,217,
202 252,236,221,2,217,252,241,252,233,244,64,248,87,129,252,248,239,255,15,130,
203 244,55,129,122,253,4,239,15,135,244,55,221,2,232,244,88,252,233,244,64,248,
204 89,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,221,2,217,
205 252,254,252,233,244,64,248,90,129,252,248,239,255,15,130,244,55,129,122,253,
206 4,239,15,135,244,55,221,2,217,252,255,252,233,244,64,248,91,129,252,248,239,
207 15,130,244,55,129,122,253,4,239,15,135,244,55,221,2,217,252,242,221,216,252,
208 233,244,64,248,92,129,252,248,239,15,130,244,55,255,129,122,253,4,239,15,
209 135,244,55,221,2,217,192,216,200,217,232,222,225,217,252,250,217,252,243,
210 252,233,244,64,248,93,129,252,248,239,15,130,244,55,129,122,253,4,239,15,
211 135,244,55,221,2,217,192,216,200,217,232,222,225,217,252,250,217,201,217,
212 252,243,252,233,244,64,248,94,129,252,248,239,15,130,244,55,129,122,253,4,
213 239,15,135,244,55,255,221,2,217,232,217,252,243,252,233,244,64,255,248,95,
214 129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,252,242,15,
215 16,2,255,137,213,232,251,1,14,137,252,234,252,233,244,63,255,248,96,129,252,
216 248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,252,242,15,16,2,255,
217 137,213,232,251,1,15,137,252,234,252,233,244,63,255,248,97,129,252,248,239,
218 15,130,244,55,129,122,253,4,239,15,135,244,55,252,242,15,16,2,255,137,213,
219 232,251,1,16,137,252,234,252,233,244,63,248,98,255,248,99,129,252,248,239,
220 15,130,244,55,129,122,253,4,239,15,135,244,55,252,242,15,16,2,139,106,252,
221 248,252,242,15,89,133,233,252,233,244,63,255,248,99,129,252,248,239,15,130,
222 244,55,129,122,253,4,239,15,135,244,55,221,2,139,106,252,248,220,141,233,
223 252,233,244,64,255,248,100,129,252,248,239,15,130,244,55,129,122,253,4,239,
224 15,135,244,55,129,122,253,12,239,15,135,244,55,221,2,221,66,8,217,252,243,
225 252,233,244,64,248,101,129,252,248,239,15,130,244,55,129,122,253,4,239,15,
226 135,244,55,129,122,253,12,239,255,15,135,244,55,221,66,8,221,2,217,252,253,
227 221,217,252,233,244,64,248,102,129,252,248,239,15,130,244,55,139,106,4,129,
228 252,253,239,15,135,244,55,139,90,252,252,139,2,137,106,252,252,137,66,252,
229 248,209,229,129,252,253,0,0,224,252,255,15,131,244,249,9,232,15,132,244,249,
230 184,252,254,3,0,0,129,252,253,0,0,32,0,15,130,244,250,248,1,193,252,237,21,
231 41,197,255,252,242,15,42,197,255,137,44,36,219,4,36,255,139,106,252,252,129,
232 229,252,255,252,255,15,128,129,205,0,0,224,63,137,106,252,252,248,2,255,252,
233 242,15,17,2,255,221,26,255,184,237,252,233,244,69,248,3,255,15,87,192,252,
234 233,244,2,255,217,252,238,252,233,244,2,255,248,4,255,252,242,15,16,2,72,
235 189,237,237,102,72,15,110,205,252,242,15,89,193,252,242,15,17,66,252,248,
236 255,221,2,199,4,36,0,0,128,90,216,12,36,221,90,252,248,255,139,106,252,252,
237 184,52,4,0,0,209,229,252,233,244,1,255,248,103,129,252,248,239,15,130,244,
238 55,129,122,253,4,239,15,135,244,55,252,242,15,16,2,255,248,103,129,252,248,
239 239,15,130,244,55,129,122,253,4,239,15,135,244,55,221,2,255,139,106,4,139,
240 90,252,252,209,229,129,252,253,0,0,224,252,255,15,132,244,250,255,15,40,224,
241 232,244,104,252,242,15,92,224,248,1,252,242,15,17,66,252,248,252,242,15,17,
242 34,255,217,192,232,244,104,220,252,233,248,1,221,90,252,248,221,26,255,139,
243 66,252,252,139,106,4,49,232,15,136,244,249,248,2,184,237,252,233,244,69,248,
244 3,129,252,245,0,0,0,128,137,106,4,252,233,244,2,248,4,255,15,87,228,252,233,
245 244,1,255,217,252,238,217,201,252,233,244,1,255,248,105,129,252,248,239,15,
246 130,244,55,129,122,253,4,239,15,135,244,55,129,122,253,12,239,15,135,244,
247 55,221,66,8,221,2,248,1,217,252,248,223,224,158,15,138,244,1,221,217,252,
248 233,244,64,255,248,106,129,252,248,239,15,130,244,55,129,122,253,4,239,15,
249 135,244,55,129,122,253,12,239,15,135,244,55,252,242,15,16,2,252,242,15,16,
250 74,8,232,244,107,252,233,244,63,255,248,106,129,252,248,239,15,130,244,55,
251 129,122,253,4,239,15,135,244,55,129,122,253,12,239,15,135,244,55,221,2,221,
252 66,8,232,244,107,252,233,244,64,255,248,108,129,252,248,239,15,130,244,55,
253 129,122,253,4,239,15,135,244,55,252,242,15,16,2,189,2,0,0,0,248,1,57,197,
254 15,131,244,63,129,124,253,252,234,252,252,239,15,135,244,55,252,242,15,16,
255 76,252,234,252,248,252,242,15,93,193,131,197,1,252,233,244,1,255,248,109,
256 129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,252,242,15,
257 16,2,189,2,0,0,0,248,1,57,197,15,131,244,63,129,124,253,252,234,252,252,239,
258 15,135,244,55,252,242,15,16,76,252,234,252,248,252,242,15,95,193,131,197,
259 1,252,233,244,1,255,248,5,221,216,252,233,244,55,255,248,110,129,252,248,
260 239,15,130,244,55,129,122,253,4,239,15,133,244,55,139,42,255,252,242,15,42,
261 133,233,252,233,244,63,255,219,133,233,252,233,244,64,255,248,111,129,252,
262 248,239,15,133,244,55,129,122,253,4,239,15,133,244,55,139,42,139,90,252,252,
263 131,189,233,1,15,130,244,72,15,182,173,233,255,252,242,15,42,197,252,233,
264 244,63,255,137,44,36,219,4,36,252,233,244,64,255,248,112,65,139,174,233,65,
265 59,174,233,15,130,244,247,232,244,66,248,1,129,252,248,239,15,133,244,55,
266 129,122,253,4,239,15,135,244,55,255,252,242,15,45,2,61,252,255,0,0,0,15,135,
267 244,55,137,68,36,4,255,221,2,219,92,36,4,129,124,36,4,252,255,0,0,0,15,135,
268 244,55,255,199,68,36,24,1,0,0,0,72,141,68,36,4,248,113,139,108,36,16,137,
269 149,233,139,84,36,24,72,137,198,137,252,239,137,92,36,20,232,251,1,17,139,
270 149,233,139,90,252,252,199,66,252,252,237,137,66,252,248,252,233,244,58,248,
271 114,65,139,174,233,65,59,174,233,15,130,244,247,232,244,66,248,1,199,68,36,
272 4,252,255,252,255,252,255,252,255,129,252,248,239,15,130,244,55,15,134,244,
273 247,129,122,253,20,239,255,252,242,15,45,106,16,137,108,36,4,255,221,66,16,
274 219,92,36,4,255,248,1,129,122,253,4,239,15,133,244,55,129,122,253,12,239,
275 15,135,244,55,139,42,137,108,36,24,139,173,233,255,252,242,15,45,74,8,255,
276 139,68,36,4,57,197,15,130,244,251,248,2,133,201,15,142,244,253,248,3,139,
277 108,36,24,41,200,15,140,244,115,141,172,253,13,233,131,192,1,248,4,137,68,
278 36,24,137,232,252,233,244,113,248,5,15,140,244,252,141,68,40,1,252,233,244,
279 2,248,6,137,232,252,233,244,2,248,7,255,15,132,244,254,1,252,233,131,193,
280 1,15,143,244,3,248,8,185,1,0,0,0,252,233,244,3,248,115,49,192,252,233,244,
281 4,248,116,129,252,248,239,15,130,244,55,65,139,174,233,65,59,174,233,15,130,
282 244,247,232,244,66,248,1,255,129,122,253,4,239,15,133,244,55,129,122,253,
283 12,239,15,135,244,55,139,42,255,252,242,15,45,66,8,255,221,66,8,219,92,36,
284 4,139,68,36,4,255,133,192,15,142,244,115,131,189,233,1,15,130,244,115,15,
285 133,244,117,65,57,134,233,15,130,244,117,15,182,141,233,65,139,174,233,137,
286 68,36,24,248,1,136,77,0,131,197,1,131,232,1,15,133,244,1,65,139,134,233,252,
287 233,244,113,248,118,129,252,248,239,255,15,130,244,55,65,139,174,233,65,59,
288 174,233,15,130,244,247,232,244,66,248,1,129,122,253,4,239,15,133,244,55,139,
289 42,139,133,233,133,192,15,132,244,115,65,57,134,233,15,130,244,119,129,197,
290 239,137,92,36,4,137,68,36,24,65,139,158,233,248,1,255,15,182,77,0,131,197,
291 1,131,232,1,136,12,3,15,133,244,1,137,216,139,92,36,4,252,233,244,113,248,
292 120,129,252,248,239,15,130,244,55,65,139,174,233,65,59,174,233,15,130,244,
293 247,232,244,66,248,1,129,122,253,4,239,15,133,244,55,139,42,139,133,233,65,
294 57,134,233,255,15,130,244,119,129,197,239,137,92,36,4,137,68,36,24,65,139,
295 158,233,252,233,244,249,248,1,15,182,76,5,0,131,252,249,65,15,130,244,248,
296 131,252,249,90,15,135,244,248,131,252,241,32,248,2,136,12,3,248,3,131,232,
297 1,15,137,244,1,137,216,139,92,36,4,252,233,244,113,248,121,129,252,248,239,
298 15,130,244,55,255,65,139,174,233,65,59,174,233,15,130,244,247,232,244,66,
299 248,1,129,122,253,4,239,15,133,244,55,139,42,139,133,233,65,57,134,233,15,
300 130,244,119,129,197,239,137,92,36,4,137,68,36,24,65,139,158,233,252,233,244,
301 249,248,1,15,182,76,5,0,131,252,249,97,15,130,244,248,255,131,252,249,122,
302 15,135,244,248,131,252,241,32,248,2,136,12,3,248,3,131,232,1,15,137,244,1,
303 137,216,139,92,36,4,252,233,244,113,248,122,129,252,248,239,15,130,244,55,
304 129,122,253,4,239,15,133,244,55,137,213,139,58,232,251,1,18,137,252,234,255,
305 252,242,15,42,192,252,233,244,63,255,248,123,129,252,248,239,15,130,244,55,
306 129,122,253,4,239,15,135,244,55,252,242,15,16,2,72,189,237,237,102,72,15,
307 110,205,252,242,15,88,193,102,15,126,197,252,242,15,42,197,252,233,244,63,
308 255,248,124,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,
309 252,242,15,16,2,72,189,237,237,102,72,15,110,205,252,242,15,88,193,102,15,
310 126,197,255,137,68,36,4,141,68,194,252,240,248,1,57,208,15,134,244,125,129,
311 120,253,4,239,15,135,244,126,255,252,242,15,16,0,252,242,15,88,193,102,15,
312 126,193,33,205,255,131,232,8,252,233,244,1,255,248,127,129,252,248,239,15,
313 130,244,55,129,122,253,4,239,15,135,244,55,252,242,15,16,2,72,189,237,237,
314 102,72,15,110,205,252,242,15,88,193,102,15,126,197,255,252,242,15,16,0,252,
315 242,15,88,193,102,15,126,193,9,205,255,248,128,129,252,248,239,15,130,244,
316 55,129,122,253,4,239,15,135,244,55,252,242,15,16,2,72,189,237,237,102,72,
317 15,110,205,252,242,15,88,193,102,15,126,197,255,252,242,15,16,0,252,242,15,
318 88,193,102,15,126,193,49,205,255,248,129,129,252,248,239,15,130,244,55,129,
319 122,253,4,239,15,135,244,55,252,242,15,16,2,72,189,237,237,102,72,15,110,
320 205,252,242,15,88,193,102,15,126,197,255,15,205,252,233,244,125,255,248,130,
321 129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,252,242,15,
322 16,2,72,189,237,237,102,72,15,110,205,252,242,15,88,193,102,15,126,197,255,
323 252,247,213,255,248,125,252,242,15,42,197,252,233,244,63,255,248,126,139,
324 68,36,4,252,233,244,55,255,248,131,129,252,248,239,15,130,244,55,129,122,
325 253,4,239,15,135,244,55,129,122,253,12,239,15,135,244,55,252,242,15,16,2,
326 252,242,15,16,74,8,72,189,237,237,102,72,15,110,213,252,242,15,88,194,252,
327 242,15,88,202,137,200,102,15,126,197,102,15,126,201,255,211,229,137,193,252,
328 233,244,125,255,248,132,129,252,248,239,15,130,244,55,129,122,253,4,239,15,
329 135,244,55,129,122,253,12,239,15,135,244,55,252,242,15,16,2,252,242,15,16,
330 74,8,72,189,237,237,102,72,15,110,213,252,242,15,88,194,252,242,15,88,202,
331 137,200,102,15,126,197,102,15,126,201,255,211,252,237,137,193,252,233,244,
332 125,255,248,133,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,
333 55,129,122,253,12,239,15,135,244,55,252,242,15,16,2,252,242,15,16,74,8,72,
334 189,237,237,102,72,15,110,213,252,242,15,88,194,252,242,15,88,202,137,200,
335 102,15,126,197,102,15,126,201,255,211,252,253,137,193,252,233,244,125,255,
336 248,134,129,252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,129,
337 122,253,12,239,15,135,244,55,252,242,15,16,2,252,242,15,16,74,8,72,189,237,
338 237,102,72,15,110,213,252,242,15,88,194,252,242,15,88,202,137,200,102,15,
339 126,197,102,15,126,201,255,211,197,137,193,252,233,244,125,255,248,135,129,
340 252,248,239,15,130,244,55,129,122,253,4,239,15,135,244,55,129,122,253,12,
341 239,15,135,244,55,252,242,15,16,2,252,242,15,16,74,8,72,189,237,237,102,72,
342 15,110,213,252,242,15,88,194,252,242,15,88,202,137,200,102,15,126,197,102,
343 15,126,201,255,211,205,137,193,252,233,244,125,248,117,184,237,252,233,244,
344 55,248,119,184,237,248,55,139,108,36,16,139,90,252,252,137,92,36,20,137,149,
345 233,141,68,194,252,248,141,136,233,137,133,233,139,66,252,248,59,141,233,
346 15,135,244,251,137,252,239,252,255,144,233,139,149,233,133,192,15,133,244,
347 69,248,1,255,139,133,233,41,208,193,232,3,131,192,1,139,106,252,248,57,90,
348 252,252,15,133,244,248,139,157,233,139,11,15,182,252,233,15,182,205,131,195,
349 4,65,252,255,36,252,238,248,2,137,209,252,247,195,237,15,133,244,249,15,182,
350 107,252,253,72,252,247,213,141,20,252,234,252,233,244,27,248,3,137,221,131,
351 229,252,248,41,252,234,252,233,244,27,248,5,190,237,137,252,239,232,251,1,
352 0,139,149,233,252,233,244,1,248,66,93,72,137,108,36,24,139,108,36,16,137,
353 92,36,20,137,149,233,255,141,68,194,252,248,137,252,239,137,133,233,232,251,
354 1,19,139,149,233,139,133,233,41,208,193,232,3,131,192,1,72,139,108,36,24,
355 85,195,248,136,255,65,15,182,134,233,168,235,15,133,244,251,168,235,15,133,
356 244,247,168,235,15,132,244,247,65,252,255,142,233,252,233,244,247,255,248,
357 137,65,15,182,134,233,168,235,15,133,244,251,252,233,244,247,248,138,65,15,
358 182,134,233,168,235,15,133,244,251,168,235,15,132,244,251,65,252,255,142,
359 233,15,132,244,247,168,235,15,132,244,251,248,1,255,139,108,36,16,137,149,
360 233,137,222,137,252,239,232,251,1,20,248,3,139,149,233,248,4,15,182,75,252,
361 253,248,5,15,182,107,252,252,15,183,67,252,254,65,252,255,164,253,252,238,
362 233,248,139,131,195,4,139,77,232,137,76,36,4,252,233,244,4,248,140,255,204,
363 255,248,141,137,92,36,20,255,248,142,255,137,92,36,20,131,203,1,248,1,255,
364 141,68,194,252,248,139,108,36,16,137,149,233,137,133,233,137,222,137,252,
365 239,232,251,1,21,199,68,36,20,0,0,0,0,255,131,227,252,254,255,139,149,233,
366 72,137,193,139,133,233,41,208,72,137,205,15,182,75,252,253,193,232,3,131,
367 192,1,252,255,229,248,143,255,248,144,255,68,139,122,252,248,69,139,191,233,
368 69,139,191,233,65,199,134,233,0,0,0,0,65,199,134,233,237,139,3,15,182,204,
369 15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,255,248,82,255,217,
370 124,36,4,137,68,36,8,102,184,0,4,102,11,68,36,4,102,37,252,255,252,247,102,
371 137,68,36,6,217,108,36,6,217,252,252,217,108,36,4,139,68,36,8,195,255,248,
372 145,72,184,237,237,102,72,15,110,208,72,184,237,237,102,72,15,110,216,15,
373 40,200,102,15,84,202,102,15,46,217,15,134,244,247,102,15,85,208,252,242,15,
374 88,203,252,242,15,92,203,102,15,86,202,72,184,237,237,102,72,15,110,208,252,
375 242,15,194,193,1,102,15,84,194,252,242,15,92,200,15,40,193,248,1,195,248,
376 84,255,217,124,36,4,137,68,36,8,102,184,0,8,102,11,68,36,4,102,37,252,255,
377 252,251,102,137,68,36,6,217,108,36,6,217,252,252,217,108,36,4,139,68,36,8,
378 195,255,248,146,72,184,237,237,102,72,15,110,208,72,184,237,237,102,72,15,
379 110,216,15,40,200,102,15,84,202,102,15,46,217,15,134,244,247,102,15,85,208,
380 252,242,15,88,203,252,242,15,92,203,102,15,86,202,72,184,237,237,102,72,15,
381 110,208,252,242,15,194,193,6,102,15,84,194,252,242,15,92,200,15,40,193,248,
382 1,195,248,104,255,217,124,36,4,137,68,36,8,102,184,0,12,102,11,68,36,4,102,
383 137,68,36,6,217,108,36,6,217,252,252,217,108,36,4,139,68,36,8,195,255,248,
384 147,72,184,237,237,102,72,15,110,208,72,184,237,237,102,72,15,110,216,15,
385 40,200,102,15,84,202,102,15,46,217,15,134,244,247,102,15,85,208,15,40,193,
386 252,242,15,88,203,252,242,15,92,203,72,184,237,237,102,72,15,110,216,252,
387 242,15,194,193,1,102,15,84,195,252,242,15,92,200,102,15,86,202,15,40,193,
388 248,1,195,248,148,255,15,40,232,252,242,15,94,193,72,184,237,237,102,72,15,
389 110,208,72,184,237,237,102,72,15,110,216,15,40,224,102,15,84,226,102,15,46,
390 220,15,134,244,247,102,15,85,208,252,242,15,88,227,252,242,15,92,227,102,
391 15,86,226,72,184,237,237,102,72,15,110,208,252,242,15,194,196,1,102,15,84,
392 194,252,242,15,92,224,15,40,197,252,242,15,89,204,252,242,15,92,193,195,248,
393 1,252,242,15,89,200,15,40,197,252,242,15,92,193,195,255,217,193,216,252,241,
394 217,124,36,4,102,184,0,4,102,11,68,36,4,102,37,252,255,252,247,102,137,68,
395 36,6,217,108,36,6,217,252,252,217,108,36,4,222,201,222,252,233,195,255,248,
396 88,217,252,234,222,201,248,149,217,84,36,252,248,129,124,36,252,248,0,0,128,
397 127,15,132,244,247,129,124,36,252,248,0,0,128,252,255,15,132,244,248,248,
398 150,217,192,217,252,252,220,252,233,217,201,217,252,240,217,232,222,193,217,
399 252,253,221,217,248,1,195,248,2,221,216,217,252,238,195,255,248,107,255,248,
400 151,252,242,15,45,193,252,242,15,42,208,102,15,46,202,15,133,244,254,15,138,
401 244,255,248,152,131,252,248,1,15,142,244,252,248,1,169,1,0,0,0,15,133,244,
402 248,252,242,15,89,192,209,232,252,233,244,1,248,2,209,232,15,132,244,251,
403 15,40,200,248,3,252,242,15,89,192,209,232,15,132,244,250,15,131,244,3,255,
404 252,242,15,89,200,252,233,244,3,248,4,252,242,15,89,193,248,5,195,248,6,15,
405 132,244,5,15,130,244,253,80,72,184,237,237,102,72,15,110,200,252,242,15,94,
406 200,88,15,40,193,252,247,216,131,252,248,1,15,132,244,5,252,233,244,1,248,
407 7,72,184,237,237,102,72,15,110,192,195,248,8,102,72,15,126,200,72,209,224,
408 72,193,192,12,72,61,252,254,15,0,0,15,132,244,248,255,102,72,15,126,192,72,
409 209,224,15,132,244,250,72,193,192,12,72,61,252,254,15,0,0,15,132,244,251,
410 252,242,15,17,76,36,252,240,252,242,15,17,68,36,252,248,221,68,36,252,240,
411 221,68,36,252,248,217,252,241,217,192,217,252,252,220,252,233,217,201,217,
412 252,240,217,232,222,193,217,252,253,221,217,221,92,36,252,248,252,242,15,
413 16,68,36,252,248,195,248,9,72,184,237,237,102,72,15,110,208,102,15,46,194,
414 15,132,244,247,15,40,193,248,1,195,248,2,72,184,237,237,102,72,15,110,208,
415 102,15,84,194,72,184,237,237,102,72,15,110,208,102,15,46,194,15,132,244,1,
416 102,15,80,193,15,87,192,136,196,15,146,208,48,224,15,133,244,1,248,3,72,184,
417 237,237,255,102,72,15,110,192,195,248,4,102,15,80,193,133,192,15,133,244,
418 3,15,87,192,195,248,5,102,15,80,193,133,192,15,132,244,3,15,87,192,195,248,
419 153,255,131,252,255,1,15,130,244,82,15,132,244,84,131,252,255,3,15,130,244,
420 104,15,135,244,248,252,242,15,81,192,195,248,2,252,242,15,17,68,36,252,248,
421 221,68,36,252,248,131,252,255,5,15,135,244,248,15,132,244,247,232,244,88,
422 252,233,244,253,248,1,232,244,149,255,252,233,244,253,248,2,131,252,255,7,
423 15,132,244,247,15,135,244,248,217,252,237,217,201,217,252,241,252,233,244,
424 253,248,1,217,232,217,201,217,252,241,252,233,244,253,248,2,131,252,255,9,
425 15,132,244,247,15,135,244,248,217,252,236,217,201,217,252,241,252,233,244,
426 253,248,1,255,217,252,254,252,233,244,253,248,2,131,252,255,11,15,132,244,
427 247,15,135,244,255,217,252,255,252,233,244,253,248,1,217,252,242,221,216,
428 248,7,221,92,36,252,248,252,242,15,16,68,36,252,248,195,255,139,124,36,12,
429 221,68,36,4,131,252,255,1,15,130,244,82,15,132,244,84,131,252,255,3,15,130,
430 244,104,15,135,244,248,217,252,250,195,248,2,131,252,255,5,15,130,244,88,
431 15,132,244,149,131,252,255,7,15,132,244,247,15,135,244,248,217,252,237,217,
432 201,217,252,241,195,248,1,217,232,217,201,217,252,241,195,248,2,131,252,255,
433 9,15,132,244,247,255,15,135,244,248,217,252,236,217,201,217,252,241,195,248,
434 1,217,252,254,195,248,2,131,252,255,11,15,132,244,247,15,135,244,255,217,
435 252,255,195,248,1,217,252,242,221,216,195,255,248,9,204,248,154,255,131,252,
436 255,1,15,132,244,247,15,135,244,248,252,242,15,88,193,195,248,1,252,242,15,
437 92,193,195,248,2,131,252,255,3,15,132,244,247,15,135,244,248,252,242,15,89,
438 193,195,248,1,252,242,15,94,193,195,248,2,131,252,255,5,15,130,244,148,15,
439 132,244,107,131,252,255,7,15,132,244,247,15,135,244,248,72,184,237,237,255,
440 102,72,15,110,200,15,87,193,195,248,1,72,184,237,237,102,72,15,110,200,15,
441 84,193,195,248,2,131,252,255,9,15,135,244,248,252,242,15,17,68,36,252,248,
442 252,242,15,17,76,36,252,240,221,68,36,252,248,221,68,36,252,240,15,132,244,
443 247,217,252,243,248,7,221,92,36,252,248,252,242,15,16,68,36,252,248,195,248,
444 1,217,201,217,252,253,221,217,252,233,244,7,248,2,131,252,255,11,15,132,244,
445 247,15,135,244,255,252,242,15,93,193,195,248,1,252,242,15,95,193,195,248,
446 9,204,255,139,68,36,20,221,68,36,4,221,68,36,12,131,252,248,1,15,132,244,
447 247,15,135,244,248,222,193,195,248,1,222,252,233,195,248,2,131,252,248,3,
448 15,132,244,247,15,135,244,248,222,201,195,248,1,222,252,249,195,248,2,131,
449 252,248,5,15,130,244,148,15,132,244,107,131,252,248,7,15,132,244,247,15,135,
450 244,248,255,221,216,217,224,195,248,1,221,216,217,225,195,248,2,131,252,248,
451 9,15,132,244,247,15,135,244,248,217,252,243,195,248,1,217,201,217,252,253,
452 221,217,195,248,2,131,252,248,11,15,132,244,247,15,135,244,255,255,219,252,
453 233,219,209,221,217,195,248,1,219,252,233,218,209,221,217,195,255,221,225,
454 223,224,252,246,196,1,15,132,244,248,217,201,248,2,221,216,195,248,1,221,
455 225,223,224,252,246,196,1,15,133,244,248,217,201,248,2,221,216,195,255,248,
456 155,137,252,248,83,15,162,137,6,137,94,4,137,78,8,137,86,12,91,195,255,249,
457 255,129,124,253,202,4,239,15,135,244,41,129,124,253,194,4,239,15,135,244,
458 41,255,252,242,15,16,4,194,131,195,4,102,15,46,4,202,255,221,4,202,221,4,
459 194,131,195,4,255,223,252,233,221,216,255,218,252,233,223,224,158,255,15,
460 134,244,248,255,15,131,244,248,255,248,1,15,183,67,252,254,141,156,253,131,
461 233,248,2,139,3,15,182,204,15,182,232,131,195,4,193,232,16,65,252,255,36,
462 252,238,255,139,108,194,4,131,195,4,129,252,253,239,15,135,244,251,129,124,
463 253,202,4,239,15,135,244,251,255,252,242,15,16,4,194,102,15,46,4,202,255,
464 221,4,202,221,4,194,255,15,138,244,248,15,133,244,248,255,15,138,244,248,
465 15,132,244,247,255,248,1,15,183,67,252,254,141,156,253,131,233,248,2,255,
466 248,2,15,183,67,252,254,141,156,253,131,233,248,1,255,248,5,57,108,202,4,
467 15,133,244,2,129,252,253,239,15,131,244,1,139,12,202,139,4,194,57,193,15,
468 132,244,1,129,252,253,239,15,135,244,2,139,169,233,133,252,237,15,132,244,
469 2,252,246,133,233,235,15,133,244,2,255,49,252,237,255,189,1,0,0,0,255,252,
470 233,244,45,255,72,252,247,208,131,195,4,129,124,253,202,4,239,15,133,244,
471 248,139,12,202,65,59,12,135,255,131,195,4,129,124,253,202,4,239,15,135,244,
472 248,255,252,242,65,15,16,4,199,102,15,46,4,202,255,221,4,202,65,221,4,199,
473 255,72,252,247,208,131,195,4,57,68,202,4,255,139,108,194,4,131,195,4,129,
474 252,253,239,255,15,131,244,247,255,15,130,244,247,255,137,108,202,4,139,44,
475 194,137,44,202,255,15,183,67,252,254,141,156,253,131,233,248,1,139,3,15,182,
476 204,15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,255,139,108,194,
477 4,139,4,194,137,108,202,4,137,4,202,139,3,15,182,204,15,182,232,131,195,4,
478 193,232,16,65,252,255,36,252,238,255,49,252,237,129,124,253,194,4,239,129,
479 213,239,137,108,202,4,139,3,15,182,204,15,182,232,131,195,4,193,232,16,65,
480 252,255,36,252,238,255,129,124,253,194,4,239,15,135,244,48,255,252,242,15,
481 16,4,194,72,184,237,237,102,72,15,110,200,15,87,193,252,242,15,17,4,202,255,
482 221,4,194,217,224,221,28,202,255,129,124,253,194,4,239,15,133,244,248,139,
483 4,194,255,15,87,192,252,242,15,42,128,233,248,1,252,242,15,17,4,202,255,219,
484 128,233,248,1,221,28,202,255,139,3,15,182,204,15,182,232,131,195,4,193,232,
485 16,65,252,255,36,252,238,248,2,129,124,253,194,4,239,15,133,244,50,139,60,
486 194,137,213,232,251,1,18,255,252,242,15,42,192,137,252,234,255,15,182,75,
487 252,253,252,233,244,1,255,15,182,252,236,15,182,192,255,129,124,253,252,234,
488 4,239,15,135,244,46,255,252,242,15,16,4,252,234,252,242,65,15,88,4,199,255,
489 221,4,252,234,65,220,4,199,255,129,124,253,252,234,4,239,15,135,244,47,255,
490 252,242,65,15,16,4,199,252,242,15,88,4,252,234,255,65,221,4,199,220,4,252,
491 234,255,129,124,253,252,234,4,239,15,135,244,49,129,124,253,194,4,239,15,
492 135,244,49,255,252,242,15,16,4,252,234,252,242,15,88,4,194,255,221,4,252,
493 234,220,4,194,255,252,242,15,16,4,252,234,252,242,65,15,92,4,199,255,221,
494 4,252,234,65,220,36,199,255,252,242,65,15,16,4,199,252,242,15,92,4,252,234,
495 255,65,221,4,199,220,36,252,234,255,252,242,15,16,4,252,234,252,242,15,92,
496 4,194,255,221,4,252,234,220,36,194,255,252,242,15,16,4,252,234,252,242,65,
497 15,89,4,199,255,221,4,252,234,65,220,12,199,255,252,242,65,15,16,4,199,252,
498 242,15,89,4,252,234,255,65,221,4,199,220,12,252,234,255,252,242,15,16,4,252,
499 234,252,242,15,89,4,194,255,221,4,252,234,220,12,194,255,252,242,15,16,4,
500 252,234,252,242,65,15,94,4,199,255,221,4,252,234,65,220,52,199,255,252,242,
501 65,15,16,4,199,252,242,15,94,4,252,234,255,65,221,4,199,220,52,252,234,255,
502 252,242,15,16,4,252,234,252,242,15,94,4,194,255,221,4,252,234,220,52,194,
503 255,252,242,15,16,4,252,234,252,242,65,15,16,12,199,255,221,4,252,234,65,
504 221,4,199,255,252,242,65,15,16,4,199,252,242,15,16,12,252,234,255,65,221,
505 4,199,221,4,252,234,255,252,242,15,16,4,252,234,252,242,15,16,12,194,255,
506 221,4,252,234,221,4,194,255,248,156,232,244,148,255,252,233,244,156,255,232,
507 244,107,255,15,182,252,236,15,182,192,139,124,36,16,137,151,233,141,52,194,
508 137,194,41,252,234,248,33,137,252,253,137,92,36,20,232,251,1,22,139,149,233,
509 133,192,15,133,244,42,15,182,107,252,255,15,182,75,252,253,139,68,252,234,
510 4,139,44,252,234,137,68,202,4,137,44,202,139,3,15,182,204,15,182,232,131,
511 195,4,193,232,16,65,252,255,36,252,238,255,72,252,247,208,65,139,4,135,199,
512 68,202,4,237,137,4,202,139,3,15,182,204,15,182,232,131,195,4,193,232,16,65,
513 252,255,36,252,238,255,15,191,192,252,242,15,42,192,252,242,15,17,4,202,255,
514 223,67,252,254,221,28,202,255,252,242,65,15,16,4,199,252,242,15,17,4,202,
515 255,65,221,4,199,221,28,202,255,72,252,247,208,137,68,202,4,139,3,15,182,
516 204,15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,255,141,76,202,
517 12,141,68,194,4,189,237,137,105,252,248,248,1,137,41,131,193,8,57,193,15,
518 134,244,1,139,3,15,182,204,15,182,232,131,195,4,193,232,16,65,252,255,36,
519 252,238,255,139,106,252,248,139,172,253,133,233,139,173,233,139,69,4,139,
520 109,0,137,68,202,4,137,44,202,139,3,15,182,204,15,182,232,131,195,4,193,232,
521 16,65,252,255,36,252,238,255,139,106,252,248,139,172,253,141,233,128,189,
522 233,0,139,173,233,139,12,194,139,68,194,4,137,77,0,137,69,4,15,132,244,247,
523 252,246,133,233,235,15,133,244,248,248,1,139,3,15,182,204,15,182,232,131,
524 195,4,193,232,16,65,252,255,36,252,238,248,2,129,232,239,129,252,248,239,
525 15,134,244,1,252,246,129,233,235,15,132,244,1,137,252,238,137,213,65,141,
526 190,233,255,232,251,1,23,137,252,234,252,233,244,1,255,72,252,247,208,139,
527 106,252,248,139,172,253,141,233,65,139,12,135,139,133,233,137,8,199,64,4,
528 237,252,246,133,233,235,15,133,244,248,248,1,139,3,15,182,204,15,182,232,
529 131,195,4,193,232,16,65,252,255,36,252,238,248,2,252,246,129,233,235,15,132,
530 244,1,128,189,233,0,15,132,244,1,137,213,137,198,65,141,190,233,232,251,1,
531 23,137,252,234,252,233,244,1,255,139,106,252,248,255,252,242,65,15,16,4,199,
532 255,139,172,253,141,233,139,141,233,255,252,242,15,17,1,255,221,25,255,72,
533 252,247,208,139,106,252,248,139,172,253,141,233,139,141,233,137,65,4,139,
534 3,15,182,204,15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,255,141,
535 156,253,131,233,139,108,36,16,131,189,233,0,15,132,244,247,137,149,233,141,
536 52,202,137,252,239,232,251,1,24,139,149,233,248,1,139,3,15,182,204,15,182,
537 232,131,195,4,193,232,16,65,252,255,36,252,238,255,72,252,247,208,139,108,
538 36,16,137,149,233,139,82,252,248,65,139,52,135,137,252,239,137,92,36,20,232,
539 251,1,25,139,149,233,15,182,75,252,253,137,4,202,199,68,202,4,237,139,3,15,
540 182,204,15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,255,139,124,
541 36,16,137,151,233,248,1,137,194,37,252,255,7,0,0,193,252,234,11,61,252,255,
542 7,0,0,15,132,244,249,248,2,137,198,65,139,134,233,137,252,253,65,59,134,233,
543 137,92,36,20,15,131,244,251,232,251,1,26,139,149,233,15,182,75,252,253,137,
544 4,202,199,68,202,4,237,139,3,15,182,204,15,182,232,131,195,4,193,232,16,65,
545 252,255,36,252,238,248,3,184,1,8,0,0,252,233,244,2,248,5,232,251,1,27,15,
546 183,67,252,254,137,252,239,252,233,244,1,255,72,252,247,208,139,108,36,16,
547 65,139,142,233,137,92,36,20,65,59,142,233,137,149,233,15,131,244,249,248,
548 2,65,139,52,135,137,252,239,232,251,1,28,139,149,233,15,182,75,252,253,137,
549 4,202,199,68,202,4,237,139,3,15,182,204,15,182,232,131,195,4,193,232,16,65,
550 252,255,36,252,238,248,3,137,252,239,232,251,1,27,15,183,67,252,254,72,252,
551 247,208,252,233,244,2,255,72,252,247,208,139,106,252,248,139,173,233,65,139,
552 4,135,252,233,244,157,255,72,252,247,208,139,106,252,248,139,173,233,65,139,
553 4,135,252,233,244,158,255,15,182,252,236,15,182,192,129,124,253,252,234,4,
554 239,15,133,244,36,139,44,252,234,129,124,253,194,4,239,15,135,244,251,255,
555 252,242,15,16,4,194,252,242,15,45,192,252,242,15,42,200,102,15,46,193,255,
556 15,133,244,36,59,133,233,15,131,244,36,193,224,3,3,133,233,129,120,253,4,
557 239,15,132,244,248,248,1,139,40,139,64,4,137,44,202,137,68,202,4,139,3,15,
558 182,204,15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,248,2,131,189,
559 233,0,15,132,244,1,139,141,233,252,246,129,233,235,15,132,244,36,15,182,75,
560 252,253,252,233,244,1,248,5,255,129,124,253,194,4,239,15,133,244,36,139,4,
561 194,252,233,244,157,255,15,182,252,236,15,182,192,72,252,247,208,65,139,4,
562 135,129,124,253,252,234,4,239,15,133,244,34,139,44,252,234,248,157,139,141,
563 233,35,136,233,105,201,239,3,141,233,248,1,129,185,233,239,15,133,244,250,
564 57,129,233,15,133,244,250,129,121,253,4,239,15,132,244,251,15,182,67,252,
565 253,139,41,139,73,4,137,44,194,248,2,255,137,76,194,4,139,3,15,182,204,15,
566 182,232,131,195,4,193,232,16,65,252,255,36,252,238,248,3,15,182,67,252,253,
567 185,237,252,233,244,2,248,4,139,137,233,133,201,15,133,244,1,248,5,139,141,
568 233,133,201,15,132,244,3,252,246,129,233,235,15,133,244,3,252,233,244,34,
569 255,15,182,252,236,15,182,192,129,124,253,252,234,4,239,15,133,244,35,139,
570 44,252,234,59,133,233,15,131,244,35,193,224,3,3,133,233,129,120,253,4,239,
571 15,132,244,248,248,1,139,40,139,64,4,137,44,202,137,68,202,4,139,3,15,182,
572 204,15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,248,2,131,189,233,
573 0,15,132,244,1,139,141,233,252,246,129,233,235,15,132,244,35,255,15,182,252,
574 236,15,182,192,129,124,253,252,234,4,239,15,133,244,39,139,44,252,234,129,
575 124,253,194,4,239,15,135,244,251,255,15,133,244,39,59,133,233,15,131,244,
576 39,193,224,3,3,133,233,129,120,253,4,239,15,132,244,249,248,1,252,246,133,
577 233,235,15,133,244,253,248,2,139,108,202,4,139,12,202,137,104,4,137,8,139,
578 3,15,182,204,15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,248,3,
579 131,189,233,0,15,132,244,1,139,141,233,255,252,246,129,233,235,15,132,244,
580 39,15,182,75,252,253,252,233,244,1,248,5,129,124,253,194,4,239,15,133,244,
581 39,139,4,194,252,233,244,158,248,7,128,165,233,235,65,139,142,233,65,137,
582 174,233,137,141,233,15,182,75,252,253,252,233,244,2,255,15,182,252,236,15,
583 182,192,72,252,247,208,65,139,4,135,129,124,253,252,234,4,239,15,133,244,
584 37,139,44,252,234,248,158,139,141,233,35,136,233,105,201,239,198,133,233,
585 0,3,141,233,248,1,129,185,233,239,15,133,244,251,57,129,233,15,133,244,251,
586 129,121,253,4,239,15,132,244,250,248,2,255,252,246,133,233,235,15,133,244,
587 253,248,3,15,182,67,252,253,139,108,194,4,139,4,194,137,105,4,137,1,139,3,
588 15,182,204,15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,248,4,131,
589 189,233,0,15,132,244,2,137,12,36,139,141,233,252,246,129,233,235,15,132,244,
590 37,139,12,36,252,233,244,2,248,5,139,137,233,133,201,15,133,244,1,255,139,
591 141,233,133,201,15,132,244,252,252,246,129,233,235,15,132,244,37,248,6,137,
592 4,36,199,68,36,4,237,137,108,36,24,139,124,36,16,137,151,233,72,141,20,36,
593 137,252,238,137,252,253,137,92,36,20,232,251,1,29,139,149,233,139,108,36,
594 24,137,193,252,233,244,2,248,7,128,165,233,235,65,139,134,233,65,137,174,
595 233,137,133,233,252,233,244,3,255,15,182,252,236,15,182,192,129,124,253,252,
596 234,4,239,15,133,244,38,139,44,252,234,59,133,233,15,131,244,38,193,224,3,
597 3,133,233,129,120,253,4,239,15,132,244,249,248,1,252,246,133,233,235,15,133,
598 244,253,248,2,139,108,202,4,139,12,202,137,104,4,137,8,139,3,15,182,204,15,
599 182,232,131,195,4,193,232,16,65,252,255,36,252,238,248,3,131,189,233,0,15,
600 132,244,1,255,139,141,233,252,246,129,233,235,15,132,244,38,15,182,75,252,
601 253,252,233,244,1,248,7,128,165,233,235,65,139,142,233,65,137,174,233,137,
602 141,233,15,182,75,252,253,252,233,244,2,255,68,137,60,36,255,248,1,141,12,
603 202,139,105,252,248,252,246,133,233,235,15,133,244,253,248,2,139,68,36,4,
604 255,252,242,68,15,45,252,248,255,131,232,1,15,132,244,250,68,1,252,248,59,
605 133,233,15,131,244,251,68,41,252,248,65,193,231,3,68,3,189,233,248,3,139,
606 41,65,137,47,139,105,4,131,193,8,65,137,111,4,65,131,199,8,131,232,1,15,133,
607 244,3,248,4,68,139,60,36,139,3,15,182,204,15,182,232,131,195,4,193,232,16,
608 65,252,255,36,252,238,248,5,139,124,36,16,137,151,233,137,252,238,137,194,
609 137,252,253,137,92,36,20,232,251,1,30,139,149,233,15,182,75,252,253,252,233,
610 244,1,248,7,128,165,233,235,65,139,134,233,65,137,174,233,255,137,133,233,
611 252,233,244,2,255,3,68,36,4,255,129,124,253,202,4,239,139,44,202,15,133,244,
612 51,141,84,202,8,137,90,252,252,139,157,233,139,11,15,182,252,233,15,182,205,
613 131,195,4,65,252,255,36,252,238,255,141,76,202,8,65,137,215,139,105,252,248,
614 129,121,253,252,252,239,15,133,244,28,248,52,139,90,252,252,252,247,195,237,
615 15,133,244,253,248,1,137,106,252,248,137,68,36,4,131,232,1,15,132,244,249,
616 248,2,139,41,65,137,47,139,105,4,65,137,111,4,65,131,199,8,131,193,8,131,
617 232,1,15,133,244,2,139,106,252,248,248,3,139,68,36,4,128,189,233,1,15,135,
618 244,251,248,4,139,157,233,139,11,15,182,252,233,15,182,205,131,195,4,65,252,
619 255,36,252,238,248,5,255,252,247,195,237,15,133,244,4,15,182,75,252,253,72,
620 252,247,209,141,12,202,68,139,121,252,248,69,139,191,233,69,139,191,233,252,
621 233,244,4,248,7,15,139,244,1,131,227,252,248,41,218,65,137,215,139,90,252,
622 252,252,233,244,1,255,141,76,202,8,139,105,232,139,65,252,236,137,41,137,
623 65,4,139,105,252,240,139,65,252,244,137,105,8,137,65,12,139,105,224,139,65,
624 228,137,105,252,248,137,65,252,252,129,252,248,239,184,237,15,133,244,28,
625 137,202,137,90,252,252,139,157,233,139,11,15,182,252,233,15,182,205,131,195,
626 4,65,252,255,36,252,238,255,15,182,252,236,139,66,252,248,141,12,202,139,
627 128,233,15,182,128,233,68,137,60,36,68,141,188,253,194,233,68,43,122,252,
628 252,133,252,237,15,132,244,251,141,108,252,233,252,248,65,57,215,15,131,244,
629 248,248,1,65,139,71,252,248,137,1,65,139,71,252,252,65,131,199,8,137,65,4,
630 131,193,8,57,252,233,15,131,244,249,65,57,215,15,130,244,1,248,2,199,65,4,
631 237,131,193,8,57,252,233,15,130,244,2,248,3,68,139,60,36,139,3,15,182,204,
632 15,182,232,131,195,4,193,232,16,65,252,255,36,252,238,248,5,199,68,36,4,1,
633 0,0,0,137,208,68,41,252,248,15,134,244,3,255,137,197,193,252,237,3,131,197,
634 1,137,108,36,4,139,108,36,16,1,200,59,133,233,15,135,244,253,248,6,65,139,
635 71,252,248,137,1,65,139,71,252,252,65,131,199,8,137,65,4,131,193,8,65,57,
636 215,15,130,244,6,252,233,244,3,248,7,137,149,233,137,141,233,137,92,36,20,
637 65,41,215,139,116,36,4,131,252,238,1,137,252,239,232,251,1,0,139,149,233,
638 139,141,233,65,1,215,252,233,244,6,255,193,225,3,255,248,1,139,90,252,252,
639 137,68,36,4,252,247,195,237,15,133,244,253,255,248,13,65,137,215,131,232,
640 1,15,132,244,249,248,2,65,139,44,15,65,137,111,252,248,65,139,108,15,4,65,
641 137,111,252,252,65,131,199,8,131,232,1,15,133,244,2,248,3,139,68,36,4,15,
642 182,107,252,255,248,5,57,197,15,135,244,252,255,139,108,10,4,137,106,252,
643 252,139,44,10,137,106,252,248,255,248,5,56,67,252,255,15,135,244,252,255,
644 15,182,75,252,253,72,252,247,209,141,20,202,68,139,122,252,248,69,139,191,
645 233,69,139,191,233,139,3,15,182,204,15,182,232,131,195,4,193,232,16,65,252,
646 255,36,252,238,248,6,255,65,199,71,252,252,237,65,131,199,8,255,199,68,194,
647 252,244,237,255,131,192,1,252,233,244,5,248,7,15,139,244,14,131,227,252,248,
648 41,218,255,1,217,255,137,221,209,252,237,129,229,239,102,65,131,172,253,46,
649 233,1,15,132,244,140,255,141,12,202,255,129,121,253,4,239,15,135,244,53,129,
650 121,253,12,239,15,135,244,53,255,139,105,20,255,129,252,253,239,15,135,244,
651 53,255,252,242,15,16,1,252,242,15,16,73,8,255,252,242,15,88,65,16,252,242,
652 15,17,1,133,252,237,15,136,244,249,255,15,140,244,249,255,102,15,46,200,248,
653 1,252,242,15,17,65,24,255,221,65,8,221,1,255,220,65,16,221,17,221,81,24,133,
654 252,237,15,136,244,247,255,221,81,24,15,140,244,247,255,217,201,248,1,255,
655 15,183,67,252,254,255,15,131,244,248,141,156,253,131,233,255,141,156,253,
656 131,233,15,183,67,252,254,15,131,245,255,15,130,244,248,141,156,253,131,233,
657 255,248,3,102,15,46,193,252,233,244,1,255,141,12,202,139,105,4,129,252,253,
658 239,15,132,244,247,255,137,105,252,252,139,41,137,105,252,248,252,233,245,
659 255,141,156,253,131,233,139,1,137,105,252,252,137,65,252,248,255,65,139,142,
660 233,139,4,129,72,139,128,233,139,108,36,16,65,137,150,233,65,137,174,233,
661 252,255,224,255,141,156,253,131,233,139,3,15,182,204,15,182,232,131,195,4,
662 193,232,16,65,252,255,36,252,238,255,68,139,187,233,139,108,36,16,141,12,
663 202,59,141,233,15,135,244,23,15,182,139,233,57,200,15,134,244,249,248,2,255,
664 15,183,67,252,254,252,233,245,255,248,3,199,68,194,252,252,237,131,192,1,
665 57,200,15,134,244,3,252,233,244,2,255,141,44,197,237,141,4,194,68,139,122,
666 252,248,137,104,252,252,68,137,120,252,248,139,108,36,16,141,12,200,59,141,
667 233,15,135,244,22,137,209,137,194,15,182,171,233,133,252,237,15,132,244,248,
668 248,1,131,193,8,57,209,15,131,244,249,68,139,121,252,248,68,137,56,68,139,
669 121,252,252,68,137,120,4,131,192,8,199,65,252,252,237,131,252,237,1,15,133,
670 244,1,248,2,255,68,139,187,233,139,3,15,182,204,15,182,232,131,195,4,193,
671 232,16,65,252,255,36,252,238,255,248,3,199,64,4,237,131,192,8,131,252,237,
672 1,15,133,244,3,252,233,244,2,255,139,106,252,248,76,139,189,233,139,108,36,
673 16,141,68,194,252,248,137,149,233,141,136,233,59,141,233,137,133,233,255,
674 137,252,239,255,76,137,252,254,137,252,239,255,15,135,244,21,65,199,134,233,
675 237,255,65,252,255,215,255,65,252,255,150,233,255,65,199,134,233,237,139,
676 149,233,141,12,194,252,247,217,3,141,233,139,90,252,252,252,233,244,12,255,
677 254,0
680 enum {
681 GLOB_vm_returnp,
682 GLOB_cont_dispatch,
683 GLOB_vm_returnc,
684 GLOB_BC_RET_Z,
685 GLOB_vm_return,
686 GLOB_vm_leave_cp,
687 GLOB_vm_leave_unw,
688 GLOB_vm_unwind_c,
689 GLOB_vm_unwind_c_eh,
690 GLOB_vm_unwind_ff,
691 GLOB_vm_unwind_ff_eh,
692 GLOB_vm_growstack_c,
693 GLOB_vm_growstack_v,
694 GLOB_vm_growstack_f,
695 GLOB_vm_resume,
696 GLOB_vm_pcall,
697 GLOB_vm_call,
698 GLOB_vm_call_dispatch,
699 GLOB_vmeta_call,
700 GLOB_vm_call_dispatch_f,
701 GLOB_vm_cpcall,
702 GLOB_cont_cat,
703 GLOB_cont_ra,
704 GLOB_BC_CAT_Z,
705 GLOB_vmeta_tgets,
706 GLOB_vmeta_tgetb,
707 GLOB_vmeta_tgetv,
708 GLOB_vmeta_tsets,
709 GLOB_vmeta_tsetb,
710 GLOB_vmeta_tsetv,
711 GLOB_cont_nop,
712 GLOB_vmeta_comp,
713 GLOB_vmeta_binop,
714 GLOB_cont_condt,
715 GLOB_cont_condf,
716 GLOB_vmeta_equal,
717 GLOB_vmeta_arith_vn,
718 GLOB_vmeta_arith_nv,
719 GLOB_vmeta_unm,
720 GLOB_vmeta_arith_vv,
721 GLOB_vmeta_len,
722 GLOB_vmeta_call_ra,
723 GLOB_BC_CALLT_Z,
724 GLOB_vmeta_for,
725 GLOB_ff_assert,
726 GLOB_fff_fallback,
727 GLOB_fff_res_,
728 GLOB_ff_type,
729 GLOB_fff_res1,
730 GLOB_ff_getmetatable,
731 GLOB_ff_setmetatable,
732 GLOB_ff_rawget,
733 GLOB_ff_tonumber,
734 GLOB_fff_resxmm0,
735 GLOB_fff_resn,
736 GLOB_ff_tostring,
737 GLOB_fff_gcstep,
738 GLOB_ff_next,
739 GLOB_fff_res2,
740 GLOB_fff_res,
741 GLOB_ff_pairs,
742 GLOB_ff_ipairs_aux,
743 GLOB_fff_res0,
744 GLOB_ff_ipairs,
745 GLOB_ff_pcall,
746 GLOB_ff_xpcall,
747 GLOB_ff_coroutine_resume,
748 GLOB_ff_coroutine_wrap_aux,
749 GLOB_ff_coroutine_yield,
750 GLOB_ff_math_abs,
751 GLOB_ff_math_sqrt,
752 GLOB_ff_math_floor,
753 GLOB_vm_floor,
754 GLOB_ff_math_ceil,
755 GLOB_vm_ceil,
756 GLOB_ff_math_log,
757 GLOB_ff_math_log10,
758 GLOB_ff_math_exp,
759 GLOB_vm_exp,
760 GLOB_ff_math_sin,
761 GLOB_ff_math_cos,
762 GLOB_ff_math_tan,
763 GLOB_ff_math_asin,
764 GLOB_ff_math_acos,
765 GLOB_ff_math_atan,
766 GLOB_ff_math_sinh,
767 GLOB_ff_math_cosh,
768 GLOB_ff_math_tanh,
769 GLOB_ff_math_deg,
770 GLOB_ff_math_rad,
771 GLOB_ff_math_atan2,
772 GLOB_ff_math_ldexp,
773 GLOB_ff_math_frexp,
774 GLOB_ff_math_modf,
775 GLOB_vm_trunc,
776 GLOB_ff_math_fmod,
777 GLOB_ff_math_pow,
778 GLOB_vm_pow,
779 GLOB_ff_math_min,
780 GLOB_ff_math_max,
781 GLOB_ff_string_len,
782 GLOB_ff_string_byte,
783 GLOB_ff_string_char,
784 GLOB_fff_newstr,
785 GLOB_ff_string_sub,
786 GLOB_fff_emptystr,
787 GLOB_ff_string_rep,
788 GLOB_fff_fallback_2,
789 GLOB_ff_string_reverse,
790 GLOB_fff_fallback_1,
791 GLOB_ff_string_lower,
792 GLOB_ff_string_upper,
793 GLOB_ff_table_getn,
794 GLOB_ff_bit_tobit,
795 GLOB_ff_bit_band,
796 GLOB_fff_resbit,
797 GLOB_fff_fallback_bit_op,
798 GLOB_ff_bit_bor,
799 GLOB_ff_bit_bxor,
800 GLOB_ff_bit_bswap,
801 GLOB_ff_bit_bnot,
802 GLOB_ff_bit_lshift,
803 GLOB_ff_bit_rshift,
804 GLOB_ff_bit_arshift,
805 GLOB_ff_bit_rol,
806 GLOB_ff_bit_ror,
807 GLOB_vm_record,
808 GLOB_vm_rethook,
809 GLOB_vm_inshook,
810 GLOB_cont_hook,
811 GLOB_vm_hotloop,
812 GLOB_vm_callhook,
813 GLOB_vm_hotcall,
814 GLOB_vm_exit_handler,
815 GLOB_vm_exit_interp,
816 GLOB_vm_floor_sse,
817 GLOB_vm_ceil_sse,
818 GLOB_vm_trunc_sse,
819 GLOB_vm_mod,
820 GLOB_vm_exp2,
821 GLOB_vm_exp2raw,
822 GLOB_vm_pow_sse,
823 GLOB_vm_powi_sse,
824 GLOB_vm_foldfpm,
825 GLOB_vm_foldarith,
826 GLOB_vm_cpuid,
827 GLOB_BC_MODVN_Z,
828 GLOB_BC_TGETS_Z,
829 GLOB_BC_TSETS_Z,
830 GLOB__MAX
832 static const char *const globnames[] = {
833 "vm_returnp",
834 "cont_dispatch",
835 "vm_returnc",
836 "BC_RET_Z",
837 "vm_return",
838 "vm_leave_cp",
839 "vm_leave_unw",
840 "vm_unwind_c@8",
841 "vm_unwind_c_eh",
842 "vm_unwind_ff@4",
843 "vm_unwind_ff_eh",
844 "vm_growstack_c",
845 "vm_growstack_v",
846 "vm_growstack_f",
847 "vm_resume",
848 "vm_pcall",
849 "vm_call",
850 "vm_call_dispatch",
851 "vmeta_call",
852 "vm_call_dispatch_f",
853 "vm_cpcall",
854 "cont_cat",
855 "cont_ra",
856 "BC_CAT_Z",
857 "vmeta_tgets",
858 "vmeta_tgetb",
859 "vmeta_tgetv",
860 "vmeta_tsets",
861 "vmeta_tsetb",
862 "vmeta_tsetv",
863 "cont_nop",
864 "vmeta_comp",
865 "vmeta_binop",
866 "cont_condt",
867 "cont_condf",
868 "vmeta_equal",
869 "vmeta_arith_vn",
870 "vmeta_arith_nv",
871 "vmeta_unm",
872 "vmeta_arith_vv",
873 "vmeta_len",
874 "vmeta_call_ra",
875 "BC_CALLT_Z",
876 "vmeta_for",
877 "ff_assert",
878 "fff_fallback",
879 "fff_res_",
880 "ff_type",
881 "fff_res1",
882 "ff_getmetatable",
883 "ff_setmetatable",
884 "ff_rawget",
885 "ff_tonumber",
886 "fff_resxmm0",
887 "fff_resn",
888 "ff_tostring",
889 "fff_gcstep",
890 "ff_next",
891 "fff_res2",
892 "fff_res",
893 "ff_pairs",
894 "ff_ipairs_aux",
895 "fff_res0",
896 "ff_ipairs",
897 "ff_pcall",
898 "ff_xpcall",
899 "ff_coroutine_resume",
900 "ff_coroutine_wrap_aux",
901 "ff_coroutine_yield",
902 "ff_math_abs",
903 "ff_math_sqrt",
904 "ff_math_floor",
905 "vm_floor",
906 "ff_math_ceil",
907 "vm_ceil",
908 "ff_math_log",
909 "ff_math_log10",
910 "ff_math_exp",
911 "vm_exp",
912 "ff_math_sin",
913 "ff_math_cos",
914 "ff_math_tan",
915 "ff_math_asin",
916 "ff_math_acos",
917 "ff_math_atan",
918 "ff_math_sinh",
919 "ff_math_cosh",
920 "ff_math_tanh",
921 "ff_math_deg",
922 "ff_math_rad",
923 "ff_math_atan2",
924 "ff_math_ldexp",
925 "ff_math_frexp",
926 "ff_math_modf",
927 "vm_trunc",
928 "ff_math_fmod",
929 "ff_math_pow",
930 "vm_pow",
931 "ff_math_min",
932 "ff_math_max",
933 "ff_string_len",
934 "ff_string_byte",
935 "ff_string_char",
936 "fff_newstr",
937 "ff_string_sub",
938 "fff_emptystr",
939 "ff_string_rep",
940 "fff_fallback_2",
941 "ff_string_reverse",
942 "fff_fallback_1",
943 "ff_string_lower",
944 "ff_string_upper",
945 "ff_table_getn",
946 "ff_bit_tobit",
947 "ff_bit_band",
948 "fff_resbit",
949 "fff_fallback_bit_op",
950 "ff_bit_bor",
951 "ff_bit_bxor",
952 "ff_bit_bswap",
953 "ff_bit_bnot",
954 "ff_bit_lshift",
955 "ff_bit_rshift",
956 "ff_bit_arshift",
957 "ff_bit_rol",
958 "ff_bit_ror",
959 "vm_record",
960 "vm_rethook",
961 "vm_inshook",
962 "cont_hook",
963 "vm_hotloop",
964 "vm_callhook",
965 "vm_hotcall",
966 "vm_exit_handler",
967 "vm_exit_interp",
968 "vm_floor_sse",
969 "vm_ceil_sse",
970 "vm_trunc_sse",
971 "vm_mod",
972 "vm_exp2",
973 "vm_exp2raw",
974 "vm_pow_sse",
975 "vm_powi_sse",
976 "vm_foldfpm",
977 "vm_foldarith",
978 "vm_cpuid",
979 "BC_MODVN_Z",
980 "BC_TGETS_Z",
981 "BC_TSETS_Z",
982 (const char *)0
984 static const char *const extnames[] = {
985 "lj_state_growstack@8",
986 "lj_meta_tget",
987 "lj_meta_tset",
988 "lj_meta_comp",
989 "lj_meta_equal",
990 "lj_meta_arith",
991 "lj_meta_len@8",
992 "lj_meta_call",
993 "lj_meta_for@8",
994 "lj_tab_get",
995 "lj_str_fromnum@8",
996 "lj_tab_next",
997 "lj_tab_getinth@8",
998 "lj_ffh_coroutine_wrap_err@8",
999 "lj_wrapper_sinh",
1000 "lj_wrapper_cosh",
1001 "lj_wrapper_tanh",
1002 "lj_str_new",
1003 "lj_tab_len@4",
1004 "lj_gc_step@4",
1005 "lj_dispatch_ins@8",
1006 "lj_dispatch_call@8",
1007 "lj_meta_cat",
1008 "lj_gc_barrieruv@8",
1009 "lj_func_closeuv@8",
1010 "lj_func_newL_gc",
1011 "lj_tab_new",
1012 "lj_gc_step_fixtop@4",
1013 "lj_tab_dup@8",
1014 "lj_tab_newkey",
1015 "lj_tab_reasize",
1016 (const char *)0
1018 #define Dt1(_V) (int)(ptrdiff_t)&(((lua_State *)0)_V)
1019 #define Dt2(_V) (int)(ptrdiff_t)&(((global_State *)0)_V)
1020 #define Dt3(_V) (int)(ptrdiff_t)&(((TValue *)0)_V)
1021 #define Dt4(_V) (int)(ptrdiff_t)&(((GCobj *)0)_V)
1022 #define Dt5(_V) (int)(ptrdiff_t)&(((GCstr *)0)_V)
1023 #define Dt6(_V) (int)(ptrdiff_t)&(((GCtab *)0)_V)
1024 #define Dt7(_V) (int)(ptrdiff_t)&(((GCfuncL *)0)_V)
1025 #define Dt8(_V) (int)(ptrdiff_t)&(((GCfuncC *)0)_V)
1026 #define Dt9(_V) (int)(ptrdiff_t)&(((GCproto *)0)_V)
1027 #define DtA(_V) (int)(ptrdiff_t)&(((GCupval *)0)_V)
1028 #define DtB(_V) (int)(ptrdiff_t)&(((Node *)0)_V)
1029 #define DtC(_V) (int)(ptrdiff_t)&(((int *)0)_V)
1030 #define DtD(_V) (int)(ptrdiff_t)&(((Trace *)0)_V)
1031 #define DtE(_V) (int)(ptrdiff_t)&(((ExitInfo *)0)_V)
1032 #define DISPATCH_GL(field) (GG_DISP2G + (int)offsetof(global_State, field))
1033 #define DISPATCH_J(field) (GG_DISP2J + (int)offsetof(jit_State, field))
1034 #define PC2PROTO(field) ((int)offsetof(GCproto, field)-(int)sizeof(GCproto))
1036 /* Generate subroutines used by opcodes and other parts of the VM. */
1037 /* The .code_sub section should be last to help static branch prediction. */
1038 static void build_subroutines(BuildCtx *ctx, int cmov, int sse)
1040 dasm_put(Dst, 0);
1041 dasm_put(Dst, 2, FRAME_P, LJ_TTRUE, FRAME_TYPE, FRAME_C, DISPATCH_GL(vmstate), ~LJ_VMST_C);
1042 dasm_put(Dst, 111, Dt1(->base), Dt1(->top), Dt1(->cframe), Dt1(->maxstack), LJ_TNIL);
1043 dasm_put(Dst, 202, Dt1(->top), Dt1(->top), Dt1(->glref), Dt2(->vmstate), ~LJ_VMST_C, CFRAME_RAWMASK, 1+1);
1044 dasm_put(Dst, 298, Dt1(->base), Dt1(->glref), GG_G2DISP, LJ_TFALSE, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, LUA_MINSTACK, -4+PC2PROTO(framesize), Dt1(->base), Dt1(->top));
1045 dasm_put(Dst, 367, Dt1(->base), Dt1(->top), Dt7(->pc), FRAME_CP, CFRAME_RESUME, Dt1(->glref), GG_G2DISP, Dt1(->cframe), Dt1(->status), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->status), Dt1(->base), Dt1(->top), FRAME_TYPE);
1046 dasm_put(Dst, 535, FRAME_CP, FRAME_C, Dt1(->cframe), Dt1(->cframe), Dt1(->glref), GG_G2DISP, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top));
1047 dasm_put(Dst, 648, LJ_TFUNC, Dt7(->pc), Dt1(->stack), Dt1(->top), Dt1(->cframe), Dt1(->cframe), FRAME_CP, LJ_TNIL, 0, Dt7(->pc));
1048 dasm_put(Dst, 813, PC2PROTO(k), Dt1(->base), LJ_TSTR, BC_GGET, DISPATCH_GL(tmptv), LJ_TTAB);
1049 if (sse) {
1050 dasm_put(Dst, 922);
1051 } else {
1053 dasm_put(Dst, 934, Dt1(->base), Dt1(->base), Dt1(->top), FRAME_CONT, 2+1, LJ_TSTR, BC_GSET);
1054 dasm_put(Dst, 1085, DISPATCH_GL(tmptv), LJ_TTAB);
1055 if (sse) {
1056 dasm_put(Dst, 922);
1057 } else {
1059 dasm_put(Dst, 1109, Dt1(->base), Dt1(->base), Dt1(->top), FRAME_CONT, 3+1, Dt1(->base), Dt1(->base));
1060 dasm_put(Dst, 1291, -BCBIAS_J*4, LJ_TISTRUECOND, LJ_TISTRUECOND, Dt1(->base));
1061 dasm_put(Dst, 1390, Dt1(->base), Dt1(->base), FRAME_CONT);
1062 dasm_put(Dst, 1513, 2+1, Dt1(->base), Dt1(->base), Dt1(->base), Dt1(->base), Dt7(->pc), Dt1(->base), Dt1(->base), GG_DISP2STATIC);
1063 dasm_put(Dst, 1691, 1+1, LJ_TISTRUECOND, 1+1, ~LJ_TNUMX);
1064 if (cmov) {
1065 dasm_put(Dst, 1793);
1066 } else {
1067 dasm_put(Dst, 1797);
1069 dasm_put(Dst, 1806, ((char *)(&((GCfuncC *)0)->upvalue)), LJ_TSTR, 1+1, LJ_TTAB, Dt6(->metatable), LJ_TNIL, DISPATCH_GL(mmname)+4*MM_metatable, LJ_TTAB, Dt6(->hmask));
1070 dasm_put(Dst, 1895, Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), DtB(->next), LJ_TNIL);
1071 dasm_put(Dst, 1950, LJ_TUDATA, LJ_TISNUM, LJ_TNUMX, DISPATCH_GL(gcroot[GCROOT_BASEMT]), 2+1, LJ_TTAB);
1072 dasm_put(Dst, 2019, Dt6(->metatable), LJ_TTAB, Dt6(->metatable), LJ_TTAB, Dt6(->marked), LJ_GC_BLACK, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
1073 dasm_put(Dst, 2090, 2+1, LJ_TTAB, 1+1, LJ_TISNUM);
1074 if (sse) {
1075 dasm_put(Dst, 2166);
1076 } else {
1077 dasm_put(Dst, 2176);
1079 dasm_put(Dst, 2183, 1+1, LJ_TSTR, LJ_TSTR, LJ_TISNUM, DISPATCH_GL(gcroot[GCROOT_BASEMT_NUM]), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold));
1080 dasm_put(Dst, 2252, Dt1(->base), Dt1(->base), 1+1, LJ_TTAB, Dt1(->base));
1081 dasm_put(Dst, 2321, Dt1(->base), 1+2, LJ_TNIL, LJ_TNIL, 1+1, LJ_TTAB);
1082 dasm_put(Dst, 2424, Dt8(->upvalue[0]), LJ_TFUNC, LJ_TNIL, 1+3, 1+1, LJ_TTAB, LJ_TISNUM);
1083 if (sse) {
1084 dasm_put(Dst, 2487, (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32));
1085 } else {
1087 dasm_put(Dst, 2520, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->hmask), 1+0);
1088 dasm_put(Dst, 2601, 1+1, LJ_TTAB, Dt8(->upvalue[0]), LJ_TFUNC);
1089 if (sse) {
1090 dasm_put(Dst, 2639);
1091 } else {
1092 dasm_put(Dst, 2649);
1094 dasm_put(Dst, 2656, 1+3, 1+1, 8+FRAME_PCALL, DISPATCH_GL(hookmask), HOOK_ACTIVE_SHIFT, 2+1, LJ_TFUNC);
1095 dasm_put(Dst, 2721, LJ_TFUNC, 16+FRAME_PCALL, 1+1, LJ_TTHREAD, Dt1(->cframe), Dt1(->status), LUA_YIELD, Dt1(->top));
1096 dasm_put(Dst, 2810, Dt1(->base), Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP);
1097 dasm_put(Dst, 2903, Dt1(->base), LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top), Dt1(->maxstack), LJ_TTRUE, FRAME_TYPE);
1098 dasm_put(Dst, 3023, LJ_TFALSE, Dt1(->top), Dt1(->top), 1+2, Dt1(->top), Dt1(->base), Dt8(->upvalue[0].gcr), Dt1(->cframe));
1099 dasm_put(Dst, 3119, Dt1(->status), LUA_YIELD, Dt1(->top), Dt1(->base), Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top));
1100 dasm_put(Dst, 3185, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top), Dt1(->maxstack));
1101 dasm_put(Dst, 3280, FRAME_TYPE, Dt1(->top), Dt1(->base), Dt1(->cframe), CFRAME_RESUME);
1102 dasm_put(Dst, 3392, Dt1(->base), Dt1(->top), Dt1(->cframe), LUA_YIELD, Dt1(->status));
1103 if (sse) {
1104 dasm_put(Dst, 3419, 1+1, LJ_TISNUM, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32));
1105 } else {
1106 dasm_put(Dst, 3483, 1+1, LJ_TISNUM);
1108 dasm_put(Dst, 3519, 1+1, FRAME_TYPE, LJ_TNIL);
1109 if (sse) {
1110 dasm_put(Dst, 3614, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM);
1111 dasm_put(Dst, 3676, 1+1, LJ_TISNUM);
1112 } else {
1113 dasm_put(Dst, 3706, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM);
1114 dasm_put(Dst, 3765, 1+1, LJ_TISNUM);
1116 dasm_put(Dst, 3792, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1);
1117 dasm_put(Dst, 3861, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1);
1118 dasm_put(Dst, 3918, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1);
1119 dasm_put(Dst, 3981, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM);
1120 dasm_put(Dst, 4071);
1121 if (sse) {
1122 dasm_put(Dst, 4083, 1+1, LJ_TISNUM);
1123 } else {
1125 dasm_put(Dst, 4108);
1126 if (sse) {
1127 dasm_put(Dst, 4122, 1+1, LJ_TISNUM);
1128 } else {
1130 dasm_put(Dst, 4147);
1131 if (sse) {
1132 dasm_put(Dst, 4161, 1+1, LJ_TISNUM);
1133 } else {
1135 dasm_put(Dst, 4186);
1136 if (sse) {
1137 dasm_put(Dst, 4202, 1+1, LJ_TISNUM, Dt8(->upvalue[0]));
1138 } else {
1139 dasm_put(Dst, 4241, 1+1, LJ_TISNUM, Dt8(->upvalue[0]));
1141 dasm_put(Dst, 4274, 2+1, LJ_TISNUM, LJ_TISNUM, 2+1, LJ_TISNUM, LJ_TISNUM);
1142 dasm_put(Dst, 4339, 1+1, LJ_TISNUM);
1143 if (sse) {
1144 dasm_put(Dst, 4438);
1145 } else {
1146 dasm_put(Dst, 4444);
1148 dasm_put(Dst, 4451);
1149 if (sse) {
1150 dasm_put(Dst, 4476);
1151 } else {
1152 dasm_put(Dst, 4482);
1154 dasm_put(Dst, 4485, 1+2);
1155 if (sse) {
1156 dasm_put(Dst, 4494);
1157 } else {
1158 dasm_put(Dst, 4502);
1160 dasm_put(Dst, 4510);
1161 if (sse) {
1162 dasm_put(Dst, 4513, (unsigned int)(U64x(43500000,00000000)), (unsigned int)((U64x(43500000,00000000))>>32));
1163 } else {
1164 dasm_put(Dst, 4540);
1166 dasm_put(Dst, 4557);
1167 if (sse) {
1168 dasm_put(Dst, 4573, 1+1, LJ_TISNUM);
1169 } else {
1170 dasm_put(Dst, 4598, 1+1, LJ_TISNUM);
1172 dasm_put(Dst, 4620);
1173 if (sse) {
1174 dasm_put(Dst, 4642);
1175 } else {
1176 dasm_put(Dst, 4668);
1178 dasm_put(Dst, 4685, 1+2);
1179 if (sse) {
1180 dasm_put(Dst, 4725);
1181 } else {
1182 dasm_put(Dst, 4733);
1184 dasm_put(Dst, 4743, 2+1, LJ_TISNUM, LJ_TISNUM);
1185 if (sse) {
1186 dasm_put(Dst, 4795, 1+1, LJ_TISNUM, LJ_TISNUM);
1187 } else {
1188 dasm_put(Dst, 4842, 2+1, LJ_TISNUM, LJ_TISNUM);
1190 if (sse) {
1191 dasm_put(Dst, 4883, 1+1, LJ_TISNUM, LJ_TISNUM);
1192 } else {
1194 if (sse) {
1195 dasm_put(Dst, 4954, 1+1, LJ_TISNUM, LJ_TISNUM);
1196 } else {
1198 if (!sse) {
1199 dasm_put(Dst, 5025);
1201 dasm_put(Dst, 5034, 1+1, LJ_TSTR);
1202 if (sse) {
1203 dasm_put(Dst, 5056, Dt5(->len));
1204 } else {
1205 dasm_put(Dst, 5067, Dt5(->len));
1207 dasm_put(Dst, 5075, 1+1, LJ_TSTR, Dt5(->len), Dt5([1]));
1208 if (sse) {
1209 dasm_put(Dst, 5113);
1210 } else {
1211 dasm_put(Dst, 5123);
1213 dasm_put(Dst, 5134, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+1, LJ_TISNUM);
1214 if (sse) {
1215 dasm_put(Dst, 5171);
1216 } else {
1217 dasm_put(Dst, 5191);
1219 dasm_put(Dst, 5211, Dt1(->base), Dt1(->base), LJ_TSTR, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+2, LJ_TISNUM);
1220 dasm_put(Dst, 2161);
1221 if (sse) {
1222 dasm_put(Dst, 5320);
1223 } else {
1224 dasm_put(Dst, 5331);
1226 dasm_put(Dst, 5339, LJ_TSTR, LJ_TISNUM, Dt5(->len));
1227 if (sse) {
1228 dasm_put(Dst, 5369);
1229 } else {
1231 dasm_put(Dst, 5376, sizeof(GCstr)-1);
1232 dasm_put(Dst, 5451, 2+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold));
1233 dasm_put(Dst, 5512, LJ_TSTR, LJ_TISNUM);
1234 if (sse) {
1235 dasm_put(Dst, 5533);
1236 } else {
1237 dasm_put(Dst, 5540);
1239 dasm_put(Dst, 5552, Dt5(->len), DISPATCH_GL(tmpbuf.sz), Dt5([1]), DISPATCH_GL(tmpbuf.buf), DISPATCH_GL(tmpbuf.buf), 1+1);
1240 dasm_put(Dst, 5620, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf));
1241 dasm_put(Dst, 5687, 1+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz));
1242 dasm_put(Dst, 5760, sizeof(GCstr), DISPATCH_GL(tmpbuf.buf), 1+1);
1243 dasm_put(Dst, 5845, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf));
1244 dasm_put(Dst, 5919, 1+1, LJ_TTAB);
1245 if (sse) {
1246 dasm_put(Dst, 5986);
1247 } else {
1249 if (sse) {
1250 dasm_put(Dst, 5996, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32));
1251 } else {
1253 if (sse) {
1254 dasm_put(Dst, 6048, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32));
1255 } else {
1257 dasm_put(Dst, 6091, LJ_TISNUM);
1258 if (sse) {
1259 dasm_put(Dst, 6118);
1260 } else {
1262 dasm_put(Dst, 6135);
1263 if (sse) {
1264 dasm_put(Dst, 6143, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32));
1265 } else {
1267 dasm_put(Dst, 6091, LJ_TISNUM);
1268 if (sse) {
1269 dasm_put(Dst, 6186);
1270 } else {
1272 dasm_put(Dst, 6135);
1273 if (sse) {
1274 dasm_put(Dst, 6203, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32));
1275 } else {
1277 dasm_put(Dst, 6091, LJ_TISNUM);
1278 if (sse) {
1279 dasm_put(Dst, 6246);
1280 } else {
1282 dasm_put(Dst, 6135);
1283 if (sse) {
1284 dasm_put(Dst, 6263, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32));
1285 } else {
1287 dasm_put(Dst, 6306);
1288 if (sse) {
1289 dasm_put(Dst, 6313, 1+1, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32));
1290 } else {
1292 dasm_put(Dst, 6356);
1293 if (sse) {
1294 dasm_put(Dst, 6360);
1295 } else {
1297 dasm_put(Dst, 6372);
1298 if (sse) {
1299 dasm_put(Dst, 6383, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32));
1300 } else {
1302 dasm_put(Dst, 6452);
1303 if (sse) {
1304 dasm_put(Dst, 6461, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32));
1305 } else {
1307 dasm_put(Dst, 6530);
1308 if (sse) {
1309 dasm_put(Dst, 6540, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32));
1310 } else {
1312 dasm_put(Dst, 6609);
1313 if (sse) {
1314 dasm_put(Dst, 6619, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32));
1315 } else {
1317 dasm_put(Dst, 6688);
1318 if (sse) {
1319 dasm_put(Dst, 6697, 1+1, LJ_TISNUM, LJ_TISNUM, (unsigned int)(U64x(43380000,00000000)), (unsigned int)((U64x(43380000,00000000))>>32));
1320 } else {
1322 dasm_put(Dst, 6766, 1+2, 1+1, Dt1(->base), 8*LUA_MINSTACK, Dt1(->top), Dt1(->maxstack), Dt8(->f), Dt1(->base));
1323 dasm_put(Dst, 6844, Dt1(->top), Dt7(->pc), FRAME_TYPE, LUA_MINSTACK, Dt1(->base), Dt1(->base));
1324 dasm_put(Dst, 6970, Dt1(->top), Dt1(->base), Dt1(->top));
1325 #if LJ_HASJIT
1326 dasm_put(Dst, 7009, DISPATCH_GL(hookmask), HOOK_VMEVENT, HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount));
1327 #endif
1328 dasm_put(Dst, 7042, DISPATCH_GL(hookmask), HOOK_ACTIVE, DISPATCH_GL(hookmask), HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount), LUA_MASKLINE);
1329 dasm_put(Dst, 7096, Dt1(->base), Dt1(->base), GG_DISP2STATIC);
1330 #if LJ_HASJIT
1331 dasm_put(Dst, 7163);
1332 #endif
1333 dasm_put(Dst, 7165);
1334 #if LJ_HASJIT
1335 dasm_put(Dst, 7037);
1336 #endif
1337 dasm_put(Dst, 7172);
1338 #if LJ_HASJIT
1339 dasm_put(Dst, 7175);
1340 #endif
1341 dasm_put(Dst, 7185, Dt1(->base), Dt1(->top));
1342 #if LJ_HASJIT
1343 dasm_put(Dst, 7218);
1344 #endif
1345 dasm_put(Dst, 7223, Dt1(->base), Dt1(->top));
1346 #if LJ_HASJIT
1347 dasm_put(Dst, 7163);
1348 #endif
1349 dasm_put(Dst, 7254);
1350 #if LJ_HASJIT
1351 dasm_put(Dst, 7257, Dt7(->pc), PC2PROTO(k), DISPATCH_GL(jit_L), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP);
1352 #endif
1353 dasm_put(Dst, 7304);
1354 if (!sse) {
1355 dasm_put(Dst, 7307);
1357 dasm_put(Dst, 7352, (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));
1358 if (!sse) {
1359 dasm_put(Dst, 7438);
1361 dasm_put(Dst, 7483, (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));
1362 if (!sse) {
1363 dasm_put(Dst, 7569);
1365 dasm_put(Dst, 7608, (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));
1366 if (sse) {
1367 dasm_put(Dst, 7697, (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));
1368 } else {
1369 dasm_put(Dst, 7811);
1371 dasm_put(Dst, 7858);
1372 if (!sse) {
1373 } else {
1374 dasm_put(Dst, 7935);
1376 dasm_put(Dst, 7938);
1377 dasm_put(Dst, 8023, (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32), (unsigned int)(U64x(3ff00000,00000000)), (unsigned int)((U64x(3ff00000,00000000))>>32));
1378 dasm_put(Dst, 8124, (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));
1379 dasm_put(Dst, 8298);
1380 if (sse) {
1381 dasm_put(Dst, 8339);
1382 dasm_put(Dst, 8409);
1383 dasm_put(Dst, 8481);
1384 } else {
1385 dasm_put(Dst, 8533);
1386 dasm_put(Dst, 8625);
1388 dasm_put(Dst, 8671);
1389 if (sse) {
1390 dasm_put(Dst, 8677, (unsigned int)(U64x(80000000,00000000)), (unsigned int)((U64x(80000000,00000000))>>32));
1391 dasm_put(Dst, 8762, (unsigned int)(U64x(7fffffff,ffffffff)), (unsigned int)((U64x(7fffffff,ffffffff))>>32));
1392 } else {
1393 dasm_put(Dst, 8890);
1394 dasm_put(Dst, 8973);
1395 if (cmov) {
1396 dasm_put(Dst, 9028);
1397 } else {
1398 dasm_put(Dst, 9047);
1400 dasm_put(Dst, 8886);
1402 dasm_put(Dst, 9088);
1405 /* Generate the code for a single instruction. */
1406 static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
1408 int vk = 0;
1409 dasm_put(Dst, 9110, defop);
1411 switch (op) {
1413 /* -- Comparison ops ---------------------------------------------------- */
1415 /* Remember: all ops branch for a true comparison, fall through otherwise. */
1417 case BC_ISLT: case BC_ISGE: case BC_ISLE: case BC_ISGT:
1418 dasm_put(Dst, 9112, LJ_TISNUM, LJ_TISNUM);
1419 if (sse) {
1420 dasm_put(Dst, 9133);
1421 } else {
1422 dasm_put(Dst, 9148);
1423 if (cmov) {
1424 dasm_put(Dst, 9158);
1425 } else {
1426 dasm_put(Dst, 9164);
1429 switch (op) {
1430 case BC_ISLT:
1431 dasm_put(Dst, 9171);
1432 break;
1433 case BC_ISGE:
1434 dasm_put(Dst, 8968);
1435 break;
1436 case BC_ISLE:
1437 dasm_put(Dst, 5914);
1438 break;
1439 case BC_ISGT:
1440 dasm_put(Dst, 9176);
1441 break;
1442 default: break; /* Shut up GCC. */
1444 dasm_put(Dst, 9181, -BCBIAS_J*4);
1445 break;
1447 case BC_ISEQV: case BC_ISNEV:
1448 vk = op == BC_ISEQV;
1449 dasm_put(Dst, 9216, LJ_TISNUM, LJ_TISNUM);
1450 if (sse) {
1451 dasm_put(Dst, 9242);
1452 } else {
1453 dasm_put(Dst, 9254);
1454 if (cmov) {
1455 dasm_put(Dst, 9158);
1456 } else {
1457 dasm_put(Dst, 9164);
1460 iseqne_fp:
1461 if (vk) {
1462 dasm_put(Dst, 9261);
1463 } else {
1464 dasm_put(Dst, 9270);
1466 iseqne_end:
1467 if (vk) {
1468 dasm_put(Dst, 9279, -BCBIAS_J*4);
1469 } else {
1470 dasm_put(Dst, 9294, -BCBIAS_J*4);
1472 dasm_put(Dst, 7283);
1473 if (op == BC_ISEQV || op == BC_ISNEV) {
1474 dasm_put(Dst, 9309, LJ_TISPRI, LJ_TISTABUD, Dt6(->metatable), Dt6(->nomm), 1<<MM_eq);
1475 if (vk) {
1476 dasm_put(Dst, 9367);
1477 } else {
1478 dasm_put(Dst, 9371);
1480 dasm_put(Dst, 9377);
1482 break;
1483 case BC_ISEQS: case BC_ISNES:
1484 vk = op == BC_ISEQS;
1485 dasm_put(Dst, 9382, LJ_TSTR);
1486 iseqne_test:
1487 if (vk) {
1488 dasm_put(Dst, 9265);
1489 } else {
1490 dasm_put(Dst, 2805);
1492 goto iseqne_end;
1493 case BC_ISEQN: case BC_ISNEN:
1494 vk = op == BC_ISEQN;
1495 dasm_put(Dst, 9407, LJ_TISNUM);
1496 if (sse) {
1497 dasm_put(Dst, 9421);
1498 } else {
1499 dasm_put(Dst, 9434);
1500 if (cmov) {
1501 dasm_put(Dst, 9158);
1502 } else {
1503 dasm_put(Dst, 9164);
1506 goto iseqne_fp;
1507 case BC_ISEQP: case BC_ISNEP:
1508 vk = op == BC_ISEQP;
1509 dasm_put(Dst, 9442);
1510 goto iseqne_test;
1512 /* -- Unary test and copy ops ------------------------------------------- */
1514 case BC_ISTC: case BC_ISFC: case BC_IST: case BC_ISF:
1515 dasm_put(Dst, 9454, LJ_TISTRUECOND);
1516 if (op == BC_IST || op == BC_ISTC) {
1517 dasm_put(Dst, 9466);
1518 } else {
1519 dasm_put(Dst, 9471);
1521 if (op == BC_ISTC || op == BC_ISFC) {
1522 dasm_put(Dst, 9476);
1524 dasm_put(Dst, 9487, -BCBIAS_J*4);
1525 break;
1527 /* -- Unary ops --------------------------------------------------------- */
1529 case BC_MOV:
1530 dasm_put(Dst, 9520);
1531 break;
1532 case BC_NOT:
1533 dasm_put(Dst, 9555, LJ_TISTRUECOND, LJ_TTRUE);
1534 break;
1535 case BC_UNM:
1536 dasm_put(Dst, 9592, LJ_TISNUM);
1537 if (sse) {
1538 dasm_put(Dst, 9603, (unsigned int)(U64x(80000000,00000000)), (unsigned int)((U64x(80000000,00000000))>>32));
1539 } else {
1540 dasm_put(Dst, 9628);
1542 dasm_put(Dst, 7283);
1543 break;
1544 case BC_LEN:
1545 dasm_put(Dst, 9637, LJ_TSTR);
1546 if (sse) {
1547 dasm_put(Dst, 9651, Dt5(->len));
1548 } else {
1549 dasm_put(Dst, 9669, Dt5(->len));
1551 dasm_put(Dst, 9678, LJ_TTAB);
1552 if (sse) {
1553 dasm_put(Dst, 9720);
1554 } else {
1556 dasm_put(Dst, 9729);
1557 break;
1559 /* -- Binary ops -------------------------------------------------------- */
1562 case BC_ADDVN: case BC_ADDNV: case BC_ADDVV:
1563 dasm_put(Dst, 9739);
1564 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1565 switch (vk) {
1566 case 0:
1567 dasm_put(Dst, 9747, LJ_TISNUM);
1568 if (sse) {
1569 dasm_put(Dst, 9759);
1570 } else {
1571 dasm_put(Dst, 9774);
1573 break;
1574 case 1:
1575 dasm_put(Dst, 9783, LJ_TISNUM);
1576 if (sse) {
1577 dasm_put(Dst, 9795);
1578 } else {
1579 dasm_put(Dst, 9810);
1581 break;
1582 default:
1583 dasm_put(Dst, 9819, LJ_TISNUM, LJ_TISNUM);
1584 if (sse) {
1585 dasm_put(Dst, 9841);
1586 } else {
1587 dasm_put(Dst, 9855);
1589 break;
1591 if (sse) {
1592 dasm_put(Dst, 9621);
1593 } else {
1594 dasm_put(Dst, 9633);
1596 dasm_put(Dst, 7283);
1597 break;
1598 case BC_SUBVN: case BC_SUBNV: case BC_SUBVV:
1599 dasm_put(Dst, 9739);
1600 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1601 switch (vk) {
1602 case 0:
1603 dasm_put(Dst, 9747, LJ_TISNUM);
1604 if (sse) {
1605 dasm_put(Dst, 9863);
1606 } else {
1607 dasm_put(Dst, 9878);
1609 break;
1610 case 1:
1611 dasm_put(Dst, 9783, LJ_TISNUM);
1612 if (sse) {
1613 dasm_put(Dst, 9887);
1614 } else {
1615 dasm_put(Dst, 9902);
1617 break;
1618 default:
1619 dasm_put(Dst, 9819, LJ_TISNUM, LJ_TISNUM);
1620 if (sse) {
1621 dasm_put(Dst, 9911);
1622 } else {
1623 dasm_put(Dst, 9925);
1625 break;
1627 if (sse) {
1628 dasm_put(Dst, 9621);
1629 } else {
1630 dasm_put(Dst, 9633);
1632 dasm_put(Dst, 7283);
1633 break;
1634 case BC_MULVN: case BC_MULNV: case BC_MULVV:
1635 dasm_put(Dst, 9739);
1636 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1637 switch (vk) {
1638 case 0:
1639 dasm_put(Dst, 9747, LJ_TISNUM);
1640 if (sse) {
1641 dasm_put(Dst, 9933);
1642 } else {
1643 dasm_put(Dst, 9948);
1645 break;
1646 case 1:
1647 dasm_put(Dst, 9783, LJ_TISNUM);
1648 if (sse) {
1649 dasm_put(Dst, 9957);
1650 } else {
1651 dasm_put(Dst, 9972);
1653 break;
1654 default:
1655 dasm_put(Dst, 9819, LJ_TISNUM, LJ_TISNUM);
1656 if (sse) {
1657 dasm_put(Dst, 9981);
1658 } else {
1659 dasm_put(Dst, 9995);
1661 break;
1663 if (sse) {
1664 dasm_put(Dst, 9621);
1665 } else {
1666 dasm_put(Dst, 9633);
1668 dasm_put(Dst, 7283);
1669 break;
1670 case BC_DIVVN: case BC_DIVNV: case BC_DIVVV:
1671 dasm_put(Dst, 9739);
1672 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1673 switch (vk) {
1674 case 0:
1675 dasm_put(Dst, 9747, LJ_TISNUM);
1676 if (sse) {
1677 dasm_put(Dst, 10003);
1678 } else {
1679 dasm_put(Dst, 10018);
1681 break;
1682 case 1:
1683 dasm_put(Dst, 9783, LJ_TISNUM);
1684 if (sse) {
1685 dasm_put(Dst, 10027);
1686 } else {
1687 dasm_put(Dst, 10042);
1689 break;
1690 default:
1691 dasm_put(Dst, 9819, LJ_TISNUM, LJ_TISNUM);
1692 if (sse) {
1693 dasm_put(Dst, 10051);
1694 } else {
1695 dasm_put(Dst, 10065);
1697 break;
1699 if (sse) {
1700 dasm_put(Dst, 9621);
1701 } else {
1702 dasm_put(Dst, 9633);
1704 dasm_put(Dst, 7283);
1705 break;
1706 case BC_MODVN:
1707 dasm_put(Dst, 9739);
1708 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1709 switch (vk) {
1710 case 0:
1711 dasm_put(Dst, 9747, LJ_TISNUM);
1712 if (sse) {
1713 dasm_put(Dst, 10073);
1714 } else {
1715 dasm_put(Dst, 10088);
1717 break;
1718 case 1:
1719 dasm_put(Dst, 9783, LJ_TISNUM);
1720 if (sse) {
1721 dasm_put(Dst, 10097);
1722 } else {
1723 dasm_put(Dst, 10112);
1725 break;
1726 default:
1727 dasm_put(Dst, 9819, LJ_TISNUM, LJ_TISNUM);
1728 if (sse) {
1729 dasm_put(Dst, 10121);
1730 } else {
1731 dasm_put(Dst, 10135);
1733 break;
1735 dasm_put(Dst, 10143);
1736 if (sse) {
1737 dasm_put(Dst, 9621);
1738 } else {
1739 dasm_put(Dst, 9633);
1741 dasm_put(Dst, 7283);
1742 break;
1743 case BC_MODNV: case BC_MODVV:
1744 dasm_put(Dst, 9739);
1745 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1746 switch (vk) {
1747 case 0:
1748 dasm_put(Dst, 9747, LJ_TISNUM);
1749 if (sse) {
1750 dasm_put(Dst, 10073);
1751 } else {
1752 dasm_put(Dst, 10088);
1754 break;
1755 case 1:
1756 dasm_put(Dst, 9783, LJ_TISNUM);
1757 if (sse) {
1758 dasm_put(Dst, 10097);
1759 } else {
1760 dasm_put(Dst, 10112);
1762 break;
1763 default:
1764 dasm_put(Dst, 9819, LJ_TISNUM, LJ_TISNUM);
1765 if (sse) {
1766 dasm_put(Dst, 10121);
1767 } else {
1768 dasm_put(Dst, 10135);
1770 break;
1772 dasm_put(Dst, 10149);
1773 break;
1774 case BC_POW:
1775 dasm_put(Dst, 9739);
1776 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1777 switch (vk) {
1778 case 0:
1779 dasm_put(Dst, 9747, LJ_TISNUM);
1780 if (sse) {
1781 dasm_put(Dst, 10073);
1782 } else {
1783 dasm_put(Dst, 10088);
1785 break;
1786 case 1:
1787 dasm_put(Dst, 9783, LJ_TISNUM);
1788 if (sse) {
1789 dasm_put(Dst, 10097);
1790 } else {
1791 dasm_put(Dst, 10112);
1793 break;
1794 default:
1795 dasm_put(Dst, 9819, LJ_TISNUM, LJ_TISNUM);
1796 if (sse) {
1797 dasm_put(Dst, 10121);
1798 } else {
1799 dasm_put(Dst, 10135);
1801 break;
1803 dasm_put(Dst, 10154);
1804 if (sse) {
1805 dasm_put(Dst, 9621);
1806 } else {
1807 dasm_put(Dst, 9633);
1809 dasm_put(Dst, 7283);
1810 break;
1812 case BC_CAT:
1813 dasm_put(Dst, 10158, Dt1(->base), Dt1(->base));
1814 break;
1816 /* -- Constant ops ------------------------------------------------------ */
1818 case BC_KSTR:
1819 dasm_put(Dst, 10249, LJ_TSTR);
1820 break;
1821 case BC_KSHORT:
1822 if (sse) {
1823 dasm_put(Dst, 10286);
1824 } else {
1825 dasm_put(Dst, 10301);
1827 dasm_put(Dst, 7283);
1828 break;
1829 case BC_KNUM:
1830 if (sse) {
1831 dasm_put(Dst, 10309);
1832 } else {
1833 dasm_put(Dst, 10323);
1835 dasm_put(Dst, 7283);
1836 break;
1837 case BC_KPRI:
1838 dasm_put(Dst, 10331);
1839 break;
1840 case BC_KNIL:
1841 dasm_put(Dst, 10360, LJ_TNIL);
1842 break;
1844 /* -- Upvalue and function ops ------------------------------------------ */
1846 case BC_UGET:
1847 dasm_put(Dst, 10408, offsetof(GCfuncL, uvptr), DtA(->v));
1848 break;
1849 case BC_USETV:
1850 #define TV2MARKOFS \
1851 ((int32_t)offsetof(GCupval, marked)-(int32_t)offsetof(GCupval, tv))
1852 dasm_put(Dst, 10454, 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);
1853 dasm_put(Dst, 10550);
1854 break;
1855 #undef TV2MARKOFS
1856 case BC_USETS:
1857 dasm_put(Dst, 10562, offsetof(GCfuncL, uvptr), DtA(->v), LJ_TSTR, DtA(->marked), LJ_GC_BLACK, Dt4(->gch.marked), LJ_GC_WHITES, DtA(->closed), GG_DISP2G);
1858 break;
1859 case BC_USETN:
1860 dasm_put(Dst, 10658);
1861 if (sse) {
1862 dasm_put(Dst, 10663);
1863 } else {
1864 dasm_put(Dst, 9437);
1866 dasm_put(Dst, 10671, offsetof(GCfuncL, uvptr), DtA(->v));
1867 if (sse) {
1868 dasm_put(Dst, 10680);
1869 } else {
1870 dasm_put(Dst, 10686);
1872 dasm_put(Dst, 7283);
1873 break;
1874 case BC_USETP:
1875 dasm_put(Dst, 10689, offsetof(GCfuncL, uvptr), DtA(->v));
1876 break;
1877 case BC_UCLO:
1878 dasm_put(Dst, 10729, -BCBIAS_J*4, Dt1(->openupval), Dt1(->base), Dt1(->base));
1879 break;
1881 case BC_FNEW:
1882 dasm_put(Dst, 10785, Dt1(->base), Dt1(->base), LJ_TFUNC);
1883 break;
1885 /* -- Table ops --------------------------------------------------------- */
1887 case BC_TNEW:
1888 dasm_put(Dst, 10852, Dt1(->base), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), LJ_TTAB);
1889 break;
1890 case BC_TDUP:
1891 dasm_put(Dst, 10976, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB);
1892 break;
1894 case BC_GGET:
1895 dasm_put(Dst, 11075, Dt7(->env));
1896 break;
1897 case BC_GSET:
1898 dasm_put(Dst, 11095, Dt7(->env));
1899 break;
1901 case BC_TGETV:
1902 dasm_put(Dst, 11115, LJ_TTAB, LJ_TISNUM);
1903 if (sse) {
1904 dasm_put(Dst, 11148);
1905 } else {
1907 dasm_put(Dst, 11169, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
1908 dasm_put(Dst, 11263, LJ_TSTR);
1909 break;
1910 case BC_TGETS:
1911 dasm_put(Dst, 11281, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL);
1912 dasm_put(Dst, 11367, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
1913 break;
1914 case BC_TGETB:
1915 dasm_put(Dst, 11440, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
1916 dasm_put(Dst, 9729);
1917 break;
1919 case BC_TSETV:
1920 dasm_put(Dst, 11541, LJ_TTAB, LJ_TISNUM);
1921 if (sse) {
1922 dasm_put(Dst, 11148);
1923 } else {
1925 dasm_put(Dst, 11574, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable));
1926 dasm_put(Dst, 11659, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
1927 break;
1928 case BC_TSETS:
1929 dasm_put(Dst, 11723, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL);
1930 dasm_put(Dst, 11800, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next));
1931 dasm_put(Dst, 11892, 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));
1932 break;
1933 case BC_TSETB:
1934 dasm_put(Dst, 11984, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable));
1935 dasm_put(Dst, 12084, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
1936 break;
1938 case BC_TSETM:
1939 dasm_put(Dst, 12132);
1940 if (sse) {
1941 dasm_put(Dst, 10663);
1942 } else {
1944 dasm_put(Dst, 12137, Dt6(->marked), LJ_GC_BLACK);
1945 if (sse) {
1946 dasm_put(Dst, 12162);
1947 } else {
1949 dasm_put(Dst, 12170, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base), Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain));
1950 dasm_put(Dst, 12306, Dt6(->gclist));
1951 break;
1953 /* -- Calls and vararg handling ----------------------------------------- */
1955 case BC_CALL: case BC_CALLM:
1956 dasm_put(Dst, 9743);
1957 if (op == BC_CALLM) {
1958 dasm_put(Dst, 12314);
1960 dasm_put(Dst, 12319, LJ_TFUNC, Dt7(->pc));
1961 break;
1963 case BC_CALLMT:
1964 dasm_put(Dst, 12314);
1965 break;
1966 case BC_CALLT:
1967 dasm_put(Dst, 12362, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->pc));
1968 dasm_put(Dst, 12486, FRAME_TYPE, Dt7(->pc), PC2PROTO(k));
1969 break;
1971 case BC_ITERC:
1972 dasm_put(Dst, 12547, LJ_TFUNC, 2+1, Dt7(->pc));
1973 break;
1975 case BC_VARG:
1976 dasm_put(Dst, 12629, Dt7(->pc), PC2PROTO(numparams), (8+FRAME_VARG), LJ_TNIL);
1977 dasm_put(Dst, 12783, Dt1(->maxstack), Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top));
1978 break;
1980 /* -- Returns ----------------------------------------------------------- */
1982 case BC_RETM:
1983 dasm_put(Dst, 12314);
1984 break;
1986 case BC_RET: case BC_RET0: case BC_RET1:
1987 if (op != BC_RET0) {
1988 dasm_put(Dst, 12888);
1990 dasm_put(Dst, 12892, FRAME_TYPE);
1991 switch (op) {
1992 case BC_RET:
1993 dasm_put(Dst, 12911);
1994 break;
1995 case BC_RET1:
1996 dasm_put(Dst, 12975);
1997 /* fallthrough */
1998 case BC_RET0:
1999 dasm_put(Dst, 12991);
2000 default:
2001 break;
2003 dasm_put(Dst, 13002, Dt7(->pc), PC2PROTO(k));
2004 if (op == BC_RET) {
2005 dasm_put(Dst, 13050, LJ_TNIL);
2006 } else {
2007 dasm_put(Dst, 13061, LJ_TNIL);
2009 dasm_put(Dst, 13068);
2010 if (op != BC_RET0) {
2011 dasm_put(Dst, 13088);
2013 dasm_put(Dst, 4568);
2014 break;
2016 /* -- Loops and branches ------------------------------------------------ */
2019 case BC_FORL:
2020 #if LJ_HASJIT
2021 dasm_put(Dst, 13091, HOTCOUNT_PCMASK, GG_DISP2HOT);
2022 #endif
2023 break;
2025 case BC_JFORI:
2026 case BC_JFORL:
2027 #if !LJ_HASJIT
2028 break;
2029 #endif
2030 case BC_FORI:
2031 case BC_IFORL:
2032 vk = (op == BC_IFORL || op == BC_JFORL);
2033 dasm_put(Dst, 13112);
2034 if (!vk) {
2035 dasm_put(Dst, 13116, LJ_TISNUM, LJ_TISNUM);
2037 dasm_put(Dst, 13135);
2038 if (!vk) {
2039 dasm_put(Dst, 13139, LJ_TISNUM);
2041 if (sse) {
2042 dasm_put(Dst, 13148);
2043 if (vk) {
2044 dasm_put(Dst, 13160);
2045 } else {
2046 dasm_put(Dst, 13179);
2048 dasm_put(Dst, 13184);
2049 } else {
2050 dasm_put(Dst, 13197);
2051 if (vk) {
2052 dasm_put(Dst, 13203);
2053 } else {
2054 dasm_put(Dst, 13219);
2056 dasm_put(Dst, 13227);
2057 if (cmov) {
2058 dasm_put(Dst, 9158);
2059 } else {
2060 dasm_put(Dst, 9164);
2062 if (!cmov) {
2063 dasm_put(Dst, 13232);
2066 if (op == BC_FORI) {
2067 dasm_put(Dst, 13238, -BCBIAS_J*4);
2068 } else if (op == BC_JFORI) {
2069 dasm_put(Dst, 13248, -BCBIAS_J*4, BC_JLOOP);
2070 } else if (op == BC_IFORL) {
2071 dasm_put(Dst, 13262, -BCBIAS_J*4);
2072 } else {
2073 dasm_put(Dst, 13258, BC_JLOOP);
2075 dasm_put(Dst, 9193);
2076 if (sse) {
2077 dasm_put(Dst, 13272);
2079 break;
2081 case BC_ITERL:
2082 #if LJ_HASJIT
2083 dasm_put(Dst, 13091, HOTCOUNT_PCMASK, GG_DISP2HOT);
2084 #endif
2085 break;
2087 case BC_JITERL:
2088 #if !LJ_HASJIT
2089 break;
2090 #endif
2091 case BC_IITERL:
2092 dasm_put(Dst, 13283, LJ_TNIL);
2093 if (op == BC_JITERL) {
2094 dasm_put(Dst, 13298, BC_JLOOP);
2095 } else {
2096 dasm_put(Dst, 13312, -BCBIAS_J*4);
2098 dasm_put(Dst, 9497);
2099 break;
2101 case BC_LOOP:
2102 #if LJ_HASJIT
2103 dasm_put(Dst, 13091, HOTCOUNT_PCMASK, GG_DISP2HOT);
2104 #endif
2105 break;
2107 case BC_ILOOP:
2108 dasm_put(Dst, 7283);
2109 break;
2111 case BC_JLOOP:
2112 #if LJ_HASJIT
2113 dasm_put(Dst, 13328, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L));
2114 #endif
2115 break;
2117 case BC_JMP:
2118 dasm_put(Dst, 13355, -BCBIAS_J*4);
2119 break;
2121 /* -- Function headers -------------------------------------------------- */
2124 ** Reminder: A function may be called with func/args above L->maxstack,
2125 ** i.e. occupying EXTRA_STACK slots. And vmeta_call may add one extra slot,
2126 ** too. This means all FUNC* ops (including fast functions) must check
2127 ** for stack overflow _before_ adding more slots!
2130 case BC_FUNCF:
2131 #if LJ_HASJIT
2132 #endif
2133 case BC_FUNCV: /* NYI: compiled vararg functions. */
2134 break;
2136 case BC_JFUNCF:
2137 #if !LJ_HASJIT
2138 break;
2139 #endif
2140 case BC_IFUNCF:
2141 dasm_put(Dst, 13381, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams));
2142 if (op == BC_JFUNCF) {
2143 dasm_put(Dst, 13412, BC_JLOOP);
2144 } else {
2145 dasm_put(Dst, 7283);
2147 dasm_put(Dst, 13421, LJ_TNIL);
2148 break;
2150 case BC_JFUNCV:
2151 #if !LJ_HASJIT
2152 break;
2153 #endif
2154 dasm_put(Dst, 7163);
2155 break; /* NYI: compiled vararg functions. */
2157 case BC_IFUNCV:
2158 dasm_put(Dst, 13443, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL);
2159 if (op == BC_JFUNCV) {
2160 dasm_put(Dst, 13412, BC_JLOOP);
2161 } else {
2162 dasm_put(Dst, 13540, -4+PC2PROTO(k));
2164 dasm_put(Dst, 13565, LJ_TNIL);
2165 break;
2167 case BC_FUNCC:
2168 case BC_FUNCCW:
2169 dasm_put(Dst, 13587, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top));
2170 if (op == BC_FUNCC) {
2171 dasm_put(Dst, 13617);
2172 } else {
2173 dasm_put(Dst, 13621);
2175 dasm_put(Dst, 13629, DISPATCH_GL(vmstate), ~LJ_VMST_C);
2176 if (op == BC_FUNCC) {
2177 dasm_put(Dst, 13639);
2178 } else {
2179 dasm_put(Dst, 13644, DISPATCH_GL(wrapf));
2181 dasm_put(Dst, 13650, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top));
2182 break;
2184 /* ---------------------------------------------------------------------- */
2186 default:
2187 fprintf(stderr, "Error: undefined opcode BC_%s\n", bc_names[op]);
2188 exit(2);
2189 break;
2193 static int build_backend(BuildCtx *ctx)
2195 int op;
2196 int cmov = 1;
2197 int sse = 0;
2198 #ifdef LUAJIT_CPU_NOCMOV
2199 cmov = 0;
2200 #endif
2201 #if defined(LUAJIT_CPU_SSE2) || defined(LJ_TARGET_X64)
2202 sse = 1;
2203 #endif
2205 dasm_growpc(Dst, BC__MAX);
2207 build_subroutines(ctx, cmov, sse);
2209 dasm_put(Dst, 13676);
2210 for (op = 0; op < BC__MAX; op++)
2211 build_ins(ctx, (BCOp)op, op, cmov, sse);
2213 return BC__MAX;
2216 /* Emit pseudo frame-info for all assembler functions. */
2217 static void emit_asm_debug(BuildCtx *ctx)
2219 #if LJ_64
2220 #define SZPTR "8"
2221 #define BSZPTR "3"
2222 #define REG_SP "0x7"
2223 #define REG_RA "0x10"
2224 #else
2225 #define SZPTR "4"
2226 #define BSZPTR "2"
2227 #define REG_SP "0x4"
2228 #define REG_RA "0x8"
2229 #endif
2230 switch (ctx->mode) {
2231 case BUILD_elfasm:
2232 fprintf(ctx->fp, "\t.section .debug_frame,\"\",@progbits\n");
2233 fprintf(ctx->fp,
2234 ".Lframe0:\n"
2235 "\t.long .LECIE0-.LSCIE0\n"
2236 ".LSCIE0:\n"
2237 "\t.long 0xffffffff\n"
2238 "\t.byte 0x1\n"
2239 "\t.string \"\"\n"
2240 "\t.uleb128 0x1\n"
2241 "\t.sleb128 -" SZPTR "\n"
2242 "\t.byte " REG_RA "\n"
2243 "\t.byte 0xc\n\t.uleb128 " REG_SP "\n\t.uleb128 " SZPTR "\n"
2244 "\t.byte 0x80+" REG_RA "\n\t.uleb128 0x1\n"
2245 "\t.align " SZPTR "\n"
2246 ".LECIE0:\n\n");
2247 fprintf(ctx->fp,
2248 ".LSFDE0:\n"
2249 "\t.long .LEFDE0-.LASFDE0\n"
2250 ".LASFDE0:\n"
2251 "\t.long .Lframe0\n"
2252 "\t.long .Lbegin\n"
2253 "\t.long %d\n"
2254 "\t.byte 0xe\n\t.uleb128 %d\n" /* def_cfa_offset */
2255 #if LJ_64
2256 "\t.byte 0x86\n\t.uleb128 0x2\n" /* offset rbp */
2257 "\t.byte 0x83\n\t.uleb128 0x3\n" /* offset rbx */
2258 "\t.byte 0x8f\n\t.uleb128 0x4\n" /* offset r15 */
2259 "\t.byte 0x8e\n\t.uleb128 0x5\n" /* offset r14 */
2260 #else
2261 "\t.byte 0x85\n\t.uleb128 0x2\n" /* offset ebp */
2262 "\t.byte 0x87\n\t.uleb128 0x3\n" /* offset edi */
2263 "\t.byte 0x86\n\t.uleb128 0x4\n" /* offset esi */
2264 "\t.byte 0x83\n\t.uleb128 0x5\n" /* offset ebx */
2265 #endif
2266 "\t.align " SZPTR "\n"
2267 ".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE);
2268 fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n");
2269 fprintf(ctx->fp,
2270 ".Lframe1:\n"
2271 "\t.long .LECIE1-.LSCIE1\n"
2272 ".LSCIE1:\n"
2273 "\t.long 0\n"
2274 "\t.byte 0x1\n"
2275 "\t.string \"zPR\"\n"
2276 "\t.uleb128 0x1\n"
2277 "\t.sleb128 -" SZPTR "\n"
2278 "\t.byte " REG_RA "\n"
2279 "\t.uleb128 6\n" /* augmentation length */
2280 "\t.byte 0x1b\n" /* pcrel|sdata4 */
2281 "\t.long lj_err_unwind_dwarf-.\n"
2282 "\t.byte 0x1b\n" /* pcrel|sdata4 */
2283 "\t.byte 0xc\n\t.uleb128 " REG_SP "\n\t.uleb128 " SZPTR "\n"
2284 "\t.byte 0x80+" REG_RA "\n\t.uleb128 0x1\n"
2285 "\t.align " SZPTR "\n"
2286 ".LECIE1:\n\n");
2287 fprintf(ctx->fp,
2288 ".LSFDE1:\n"
2289 "\t.long .LEFDE1-.LASFDE1\n"
2290 ".LASFDE1:\n"
2291 "\t.long .LASFDE1-.Lframe1\n"
2292 "\t.long .Lbegin-.\n"
2293 "\t.long %d\n"
2294 "\t.uleb128 0\n" /* augmentation length */
2295 "\t.byte 0xe\n\t.uleb128 %d\n" /* def_cfa_offset */
2296 #if LJ_64
2297 "\t.byte 0x86\n\t.uleb128 0x2\n" /* offset rbp */
2298 "\t.byte 0x83\n\t.uleb128 0x3\n" /* offset rbx */
2299 "\t.byte 0x8f\n\t.uleb128 0x4\n" /* offset r15 */
2300 "\t.byte 0x8e\n\t.uleb128 0x5\n" /* offset r14 */
2301 #else
2302 "\t.byte 0x85\n\t.uleb128 0x2\n" /* offset ebp */
2303 "\t.byte 0x87\n\t.uleb128 0x3\n" /* offset edi */
2304 "\t.byte 0x86\n\t.uleb128 0x4\n" /* offset esi */
2305 "\t.byte 0x83\n\t.uleb128 0x5\n" /* offset ebx */
2306 #endif
2307 "\t.align " SZPTR "\n"
2308 ".LEFDE1:\n\n", (int)ctx->codesz, CFRAME_SIZE);
2309 break;
2310 case BUILD_coffasm:
2311 fprintf(ctx->fp, "\t.section .eh_frame,\"dr\"\n");
2312 fprintf(ctx->fp,
2313 "\t.def %slj_err_unwind_dwarf; .scl 2; .type 32; .endef\n",
2314 LJ_32 ? "_" : "");
2315 fprintf(ctx->fp,
2316 "Lframe1:\n"
2317 "\t.long LECIE1-LSCIE1\n"
2318 "LSCIE1:\n"
2319 "\t.long 0\n"
2320 "\t.byte 0x1\n"
2321 "\t.string \"zP\"\n"
2322 "\t.uleb128 0x1\n"
2323 "\t.sleb128 -" SZPTR "\n"
2324 "\t.byte " REG_RA "\n"
2325 "\t.uleb128 5\n" /* augmentation length */
2326 "\t.byte 0x00\n" /* absptr */
2327 "\t.long %slj_err_unwind_dwarf\n"
2328 "\t.byte 0xc\n\t.uleb128 " REG_SP "\n\t.uleb128 " SZPTR "\n"
2329 "\t.byte 0x80+" REG_RA "\n\t.uleb128 0x1\n"
2330 "\t.align " SZPTR "\n"
2331 "LECIE1:\n\n", LJ_32 ? "_" : "");
2332 fprintf(ctx->fp,
2333 "LSFDE1:\n"
2334 "\t.long LEFDE1-LASFDE1\n"
2335 "LASFDE1:\n"
2336 "\t.long LASFDE1-Lframe1\n"
2337 "\t.long %slj_vm_asm_begin\n"
2338 "\t.long %d\n"
2339 "\t.uleb128 0\n" /* augmentation length */
2340 "\t.byte 0xe\n\t.uleb128 %d\n" /* def_cfa_offset */
2341 #if LJ_64
2342 "\t.byte 0x86\n\t.uleb128 0x2\n" /* offset rbp */
2343 "\t.byte 0x83\n\t.uleb128 0x3\n" /* offset rbx */
2344 "\t.byte 0x8f\n\t.uleb128 0x4\n" /* offset r15 */
2345 "\t.byte 0x8e\n\t.uleb128 0x5\n" /* offset r14 */
2346 #else
2347 "\t.byte 0x85\n\t.uleb128 0x2\n" /* offset ebp */
2348 "\t.byte 0x87\n\t.uleb128 0x3\n" /* offset edi */
2349 "\t.byte 0x86\n\t.uleb128 0x4\n" /* offset esi */
2350 "\t.byte 0x83\n\t.uleb128 0x5\n" /* offset ebx */
2351 #endif
2352 "\t.align " SZPTR "\n"
2353 "LEFDE1:\n\n", LJ_32 ? "_" : "", (int)ctx->codesz, CFRAME_SIZE);
2354 break;
2355 case BUILD_machasm:
2356 fprintf(ctx->fp, "\t.section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support\n");
2357 fprintf(ctx->fp,
2358 "EH_frame1:\n"
2359 "\t.set L$set$0,LECIE1-LSCIE1\n"
2360 "\t.long L$set$0\n"
2361 "LSCIE1:\n"
2362 "\t.long 0\n"
2363 "\t.byte 0x1\n"
2364 "\t.ascii \"zPR\\0\"\n"
2365 "\t.byte 0x1\n"
2366 "\t.byte 128-" SZPTR "\n"
2367 "\t.byte " REG_RA "\n"
2368 "\t.byte 6\n" /* augmentation length */
2369 "\t.byte 0x9b\n" /* indirect|pcrel|sdata4 */
2370 "\t.long L_lj_err_unwind_dwarf$non_lazy_ptr-.\n"
2371 "\t.byte 0x1b\n" /* pcrel|sdata4 */
2372 #if LJ_64
2373 "\t.byte 0xc\n\t.byte " REG_SP "\n\t.byte " SZPTR "\n"
2374 #else
2375 "\t.byte 0xc\n\t.byte 0x5\n\t.byte 0x4\n" /* esp=5 on 32 bit MACH-O. */
2376 #endif
2377 "\t.byte 0x80+" REG_RA "\n\t.byte 0x1\n"
2378 "\t.align " BSZPTR "\n"
2379 "LECIE1:\n\n");
2380 fprintf(ctx->fp,
2381 "_lj_vm_asm_begin.eh:\n"
2382 "LSFDE1:\n"
2383 "\t.set L$set$1,LEFDE1-LASFDE1\n"
2384 "\t.long L$set$1\n"
2385 "LASFDE1:\n"
2386 "\t.long LASFDE1-EH_frame1\n"
2387 "\t.long _lj_vm_asm_begin-.\n"
2388 "\t.long %d\n"
2389 "\t.byte 0\n" /* augmentation length */
2390 "\t.byte 0xe\n\t.byte %d\n" /* def_cfa_offset */
2391 #if LJ_64
2392 "\t.byte 0x86\n\t.uleb128 0x2\n" /* offset rbp */
2393 "\t.byte 0x83\n\t.uleb128 0x3\n" /* offset rbx */
2394 "\t.byte 0x8f\n\t.uleb128 0x4\n" /* offset r15 */
2395 "\t.byte 0x8e\n\t.uleb128 0x5\n" /* offset r14 */
2396 #else
2397 "\t.byte 0x84\n\t.byte 0x2\n" /* offset ebp (4 for MACH-O)*/
2398 "\t.byte 0x87\n\t.byte 0x3\n" /* offset edi */
2399 "\t.byte 0x86\n\t.byte 0x4\n" /* offset esi */
2400 "\t.byte 0x83\n\t.byte 0x5\n" /* offset ebx */
2401 #endif
2402 "\t.align " BSZPTR "\n"
2403 "LEFDE1:\n\n", (int)ctx->codesz, CFRAME_SIZE);
2404 fprintf(ctx->fp,
2405 "\t.non_lazy_symbol_pointer\n"
2406 "L_lj_err_unwind_dwarf$non_lazy_ptr:\n"
2407 ".indirect_symbol _lj_err_unwind_dwarf\n"
2408 ".long 0\n");
2409 break;
2410 default: /* Difficult for other modes. */
2411 break;