mikepaul-LuaJIT/src/buildvm_x86.h

2515 lines
101 KiB
C
Raw Normal View History

2009-12-08 19:40:15 +00:00
/*
** This file has been pre-processed with DynASM.
** http://luajit.org/dynasm.html
** DynASM version 1.2.1, DynASM x86 version 1.2.1
** DO NOT EDIT! The original file is in "buildvm_x86.dasc".
*/
#if DASM_VERSION != 10201
#error "Version mismatch between DynASM and included encoding engine"
#endif
#define DASM_SECTION_CODE_OP 0
#define DASM_SECTION_CODE_SUB 1
#define DASM_MAXSECTION 2
static const unsigned char build_actionlist[15199] = {
254,1,248,10,137,202,137,114,252,252,139,181,233,15,182,142,233,139,190,233,
139,108,36,48,141,12,202,59,141,233,15,135,244,11,15,182,142,233,57,200,15,
134,244,249,248,2,255,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,
255,36,171,248,3,199,68,194,252,252,237,131,192,1,57,200,15,134,244,3,252,
233,244,2,248,12,137,113,252,252,141,52,197,237,141,148,253,49,233,137,106,
252,248,137,114,252,252,139,181,233,15,182,174,233,141,60,252,234,139,108,
36,48,59,189,233,15,135,244,13,137,208,15,182,174,233,133,252,237,15,132,
244,248,248,1,131,193,8,57,209,15,131,244,249,255,139,121,252,248,137,56,
139,121,252,252,137,120,4,131,192,8,199,65,252,252,237,131,252,237,1,15,133,
244,1,248,2,139,190,233,255,139,6,15,182,204,15,182,232,131,198,4,193,232,
16,252,255,36,171,248,3,199,64,4,237,131,192,8,131,252,237,1,15,133,244,3,
252,233,244,2,248,14,137,113,252,252,139,189,233,139,108,36,48,141,68,193,
252,248,137,141,233,141,136,233,137,133,233,59,141,233,137,124,36,4,137,44,
36,15,135,244,15,199,131,233,237,252,255,147,233,199,131,233,237,139,149,
233,255,141,12,194,252,247,217,3,141,233,248,16,131,192,1,137,68,36,20,252,
247,198,237,15,132,244,17,252,233,244,18,248,19,137,113,252,252,139,189,233,
139,108,36,48,141,68,193,252,248,137,141,233,141,136,233,137,133,233,59,141,
233,137,44,36,15,135,244,15,199,131,233,237,252,255,215,199,131,233,237,139,
149,233,255,141,12,194,252,247,217,3,141,233,248,16,131,192,1,137,68,36,20,
252,247,198,237,15,132,244,17,248,18,252,247,198,237,15,132,244,20,199,131,
233,237,131,230,252,248,41,214,252,247,222,131,232,1,15,132,244,248,248,1,
139,44,10,137,106,252,248,139,108,10,4,137,106,252,252,131,194,8,131,232,
1,15,133,244,1,248,2,139,108,36,48,137,181,233,248,3,139,68,36,20,139,76,
36,56,248,4,255,57,193,15,133,244,252,248,5,131,252,234,8,137,149,233,248,
21,139,76,36,52,137,141,233,49,192,248,22,131,196,28,91,94,95,93,195,248,
6,15,130,244,253,59,149,233,15,135,244,254,199,66,252,252,237,131,194,8,131,
192,1,252,233,244,4,248,7,133,201,15,132,244,5,41,193,141,20,202,252,233,
244,5,248,8,255,137,149,233,137,68,36,20,137,202,137,252,233,232,251,1,0,
139,149,233,252,233,244,3,248,23,137,208,137,204,248,24,139,108,36,48,139,
173,233,199,133,233,237,252,233,244,22,248,25,129,225,239,137,204,248,26,
139,108,36,48,185,252,248,252,255,252,255,252,255,184,237,139,149,233,139,
157,233,129,195,239,139,114,252,252,199,66,252,252,237,199,131,233,237,255,
252,233,244,16,248,20,252,247,198,237,15,132,244,27,131,230,252,248,41,252,
242,141,76,49,252,248,139,114,252,252,199,68,10,4,237,252,233,244,16,248,
15,186,237,252,233,244,247,248,13,137,202,248,11,141,68,194,252,248,15,182,
142,233,131,198,4,137,149,233,137,133,233,137,116,36,24,137,202,248,1,137,
252,233,232,251,1,0,139,141,233,255,139,133,233,139,105,252,248,139,113,252,
252,41,200,193,232,3,131,192,1,252,255,165,233,248,28,85,87,86,83,131,252,
236,28,139,108,36,48,139,76,36,52,190,237,49,192,141,188,253,36,233,139,157,
233,129,195,239,137,189,233,137,68,36,24,137,68,36,52,56,133,233,15,132,244,
249,199,131,233,237,136,133,233,139,149,233,139,133,233,41,200,193,232,3,
131,192,1,41,209,139,114,252,252,137,68,36,20,252,247,198,237,15,132,244,
17,252,233,244,18,248,29,255,85,87,86,83,131,252,236,28,190,237,252,233,244,
247,248,30,85,87,86,83,131,252,236,28,190,237,248,1,139,108,36,48,139,76,
36,52,248,2,139,189,233,137,124,36,52,137,108,36,24,137,165,233,139,157,233,
129,195,239,248,3,199,131,233,237,139,149,233,1,206,41,214,139,133,233,41,
200,193,232,3,131,192,1,139,105,252,248,129,121,253,252,252,239,15,133,244,
31,252,255,165,233,248,32,255,85,87,86,83,131,252,236,28,139,108,36,48,139,
68,36,56,139,76,36,52,139,84,36,60,137,108,36,24,139,189,233,43,189,233,199,
68,36,60,0,0,0,0,137,124,36,56,137,68,36,8,137,76,36,4,137,44,36,139,189,
233,137,124,36,52,137,165,233,252,255,210,133,192,15,132,244,21,137,193,190,
237,252,233,244,2,248,27,1,209,131,230,252,248,137,213,41,252,242,199,68,
193,252,252,237,137,200,139,117,252,244,139,77,252,240,139,122,252,248,139,
191,233,139,191,233,252,255,225,248,33,15,182,78,252,255,131,252,237,16,141,
12,202,41,252,233,15,132,244,34,252,247,217,193,252,233,3,137,76,36,8,139,
72,4,139,0,137,77,4,137,69,0,137,108,36,4,252,233,244,35,248,36,137,68,36,
16,199,68,36,20,237,255,141,68,36,16,128,126,252,252,235,15,133,244,247,141,
139,233,137,41,199,65,4,237,137,205,252,233,244,248,248,37,15,182,70,252,
254,255,252,242,15,42,192,252,242,15,17,68,36,16,255,137,68,36,12,219,68,
36,12,221,92,36,16,255,141,68,36,16,252,233,244,247,248,38,15,182,70,252,
254,141,4,194,248,1,15,182,110,252,255,141,44,252,234,248,2,137,108,36,4,
139,108,36,48,137,68,36,8,137,44,36,137,149,233,137,116,36,24,232,251,1,1,
139,149,233,133,192,15,132,244,249,248,34,15,182,78,252,253,139,104,4,139,
0,137,108,202,4,137,4,202,139,6,15,182,204,15,182,232,131,198,4,193,232,16,
252,255,36,171,248,3,139,141,233,137,113,252,244,141,177,233,41,214,139,105,
252,248,184,3,0,0,0,252,255,165,233,248,39,137,68,36,16,199,68,36,20,237,
141,68,36,16,128,126,252,252,235,15,133,244,247,141,139,233,255,137,41,199,
65,4,237,137,205,252,233,244,248,248,40,15,182,70,252,254,255,141,68,36,16,
252,233,244,247,248,41,15,182,70,252,254,141,4,194,248,1,15,182,110,252,255,
141,44,252,234,248,2,137,108,36,4,139,108,36,48,137,68,36,8,137,44,36,137,
149,233,137,116,36,24,232,251,1,2,139,149,233,133,192,15,132,244,249,15,182,
78,252,253,139,108,202,4,139,12,202,137,104,4,137,8,248,42,139,6,15,182,204,
15,182,232,131,198,4,193,232,16,252,255,36,171,248,3,139,141,233,137,113,
252,244,15,182,70,252,253,139,108,194,4,139,4,194,137,105,20,137,65,16,141,
177,233,41,214,139,105,252,248,184,4,0,0,0,252,255,165,233,248,43,15,182,
110,252,252,141,4,194,141,12,202,137,108,36,12,139,108,36,48,137,68,36,8,
137,76,36,4,137,44,36,137,149,233,137,116,36,24,232,251,1,3,248,3,139,149,
233,131,252,248,1,15,135,244,44,248,4,255,141,118,4,15,130,244,252,248,5,
15,183,70,252,254,141,180,253,134,233,248,6,139,6,15,182,204,15,182,232,131,
198,4,193,232,16,252,255,36,171,248,45,131,198,4,129,120,253,4,239,15,130,
244,5,252,233,244,6,248,46,129,120,253,4,239,252,233,244,4,248,47,131,252,
238,4,137,108,36,12,139,108,36,48,137,68,36,8,137,76,36,4,137,44,36,137,149,
233,137,116,36,24,232,251,1,4,252,233,244,3,248,48,255,141,4,199,252,233,
244,247,248,49,141,4,199,141,44,252,234,149,252,233,244,248,248,50,141,4,
194,137,197,252,233,244,248,248,51,141,4,194,248,1,141,44,252,234,248,2,141,
12,202,137,108,36,8,139,108,36,48,137,68,36,12,15,182,70,252,252,137,76,36,
4,137,68,36,16,137,44,36,137,149,233,137,116,36,24,232,251,1,5,139,149,233,
133,192,15,132,244,42,248,44,137,193,41,208,137,113,252,244,141,176,233,139,
105,252,248,184,3,0,0,0,129,121,253,252,252,239,15,133,244,31,255,252,255,
165,233,248,52,139,108,36,48,137,149,233,141,20,194,137,252,233,137,116,36,
24,232,251,1,6,139,149,233,252,233,244,44,248,31,137,76,36,20,137,68,36,16,
131,252,233,8,141,4,193,139,108,36,48,137,76,36,4,137,68,36,8,137,44,36,137,
149,233,137,116,36,24,232,251,1,7,139,149,233,139,76,36,20,139,68,36,16,139,
105,252,248,131,192,1,57,215,15,132,244,53,252,255,165,233,248,54,139,108,
36,48,137,149,233,137,202,137,252,233,137,116,36,24,232,251,1,8,139,149,233,
139,70,252,252,15,182,204,15,182,232,193,232,16,252,255,164,253,171,233,248,
55,129,252,248,239,15,130,244,56,255,139,105,4,129,252,253,239,15,131,244,
56,137,68,36,20,137,105,252,252,139,41,137,105,252,248,131,232,2,15,132,244,
248,137,76,36,16,248,1,131,193,8,139,105,4,137,105,252,252,139,41,137,105,
252,248,131,232,1,15,133,244,1,139,76,36,16,248,2,139,68,36,20,252,233,244,
57,248,58,129,252,248,239,15,130,244,56,139,105,4,184,237,252,247,213,57,
232,255,15,71,197,255,15,134,244,247,137,232,248,1,255,139,105,252,248,139,
132,253,197,233,199,65,252,252,237,137,65,252,248,252,233,244,59,248,60,129,
252,248,239,15,130,244,56,139,105,4,129,252,253,239,15,133,244,252,248,1,
139,41,139,173,233,248,2,133,252,237,199,65,252,252,237,15,132,244,59,139,
65,252,248,139,131,233,199,65,252,252,237,137,105,252,248,137,76,36,16,139,
141,233,255,35,136,233,105,201,239,3,141,233,248,3,129,185,233,239,15,133,
244,250,57,129,233,15,132,244,251,248,4,139,137,233,133,201,15,133,244,3,
252,233,244,59,248,5,139,105,4,129,252,253,239,15,132,244,59,255,139,1,139,
76,36,16,137,105,252,252,137,65,252,248,252,233,244,59,248,6,129,252,253,
239,15,132,244,1,129,252,253,239,15,135,244,253,189,237,248,7,252,247,213,
139,172,253,171,233,252,233,244,2,248,61,129,252,248,239,15,130,244,56,129,
121,253,4,239,15,133,244,56,255,139,41,131,189,233,0,15,133,244,56,129,121,
253,12,239,15,133,244,56,139,65,8,137,133,233,199,65,252,252,237,137,105,
252,248,252,246,133,233,235,15,132,244,247,128,165,233,235,139,131,233,137,
171,233,137,133,233,248,1,252,233,244,59,248,62,255,129,252,248,239,15,130,
244,56,129,121,253,4,239,15,133,244,56,139,1,139,108,36,48,137,68,36,4,137,
44,36,137,205,137,84,36,16,131,193,8,137,76,36,8,232,251,1,9,137,252,233,
139,84,36,16,139,40,139,64,4,137,105,252,248,137,65,252,252,252,233,244,59,
248,63,129,252,248,239,15,133,244,56,129,121,253,4,239,15,135,244,56,255,
252,242,15,16,1,252,233,244,64,255,221,1,252,233,244,65,255,248,66,129,252,
248,239,15,130,244,56,129,121,253,4,239,15,133,244,249,139,1,248,2,199,65,
252,252,237,137,65,252,248,252,233,244,59,248,3,129,121,253,4,239,15,135,
244,56,131,187,233,0,15,133,244,56,139,171,233,59,171,233,255,15,130,244,
247,232,244,67,248,1,139,108,36,48,137,141,233,137,113,252,252,137,116,36,
24,137,84,36,16,137,202,137,252,233,232,251,1,10,139,141,233,139,84,36,16,
252,233,244,2,248,68,129,252,248,239,15,130,244,56,15,132,244,248,248,1,129,
121,253,4,239,15,133,244,56,139,41,137,108,36,4,139,108,36,48,137,44,36,137,
141,233,255,137,113,252,252,137,84,36,16,131,193,8,137,76,36,8,137,116,36,
24,232,251,1,11,139,141,233,139,84,36,16,133,192,15,132,244,249,139,105,8,
139,65,12,137,105,252,248,137,65,252,252,139,105,16,139,65,20,137,41,137,
65,4,248,69,184,237,252,233,244,70,248,2,199,65,12,237,252,233,244,1,248,
3,199,65,252,252,237,252,233,244,59,248,71,129,252,248,239,15,130,244,56,
129,121,253,4,239,255,15,133,244,56,139,133,233,199,65,252,252,237,137,65,
252,248,199,65,12,237,184,237,252,233,244,70,248,72,129,252,248,239,15,130,
244,56,129,121,253,4,239,15,133,244,56,129,121,253,12,239,15,135,244,56,255,
252,242,15,16,65,8,189,0,0,252,240,63,102,15,110,205,102,15,112,201,81,252,
242,15,88,193,252,242,15,45,192,252,242,15,17,65,252,248,255,221,65,8,217,
232,222,193,219,20,36,221,89,252,248,139,4,36,255,139,41,59,133,233,15,131,
244,248,193,224,3,3,133,233,248,1,129,120,253,4,239,15,132,244,73,139,40,
139,64,4,137,41,137,65,4,252,233,244,69,248,2,131,189,233,0,15,132,244,73,
137,84,36,16,135,205,137,194,232,251,1,12,137,252,233,139,84,36,16,133,192,
15,133,244,1,248,73,184,237,252,233,244,70,248,74,255,129,252,248,239,15,
130,244,56,129,121,253,4,239,15,133,244,56,139,133,233,199,65,252,252,237,
137,65,252,248,255,15,87,192,252,242,15,17,65,8,255,217,252,238,221,89,8,
255,184,237,252,233,244,70,248,75,129,252,248,239,15,130,244,56,137,113,252,
252,190,237,137,202,131,193,8,131,232,1,139,105,252,248,248,1,252,246,131,
233,235,15,133,244,249,248,2,129,121,253,252,252,239,15,133,244,31,252,255,
165,233,248,3,131,198,1,252,233,244,2,248,76,255,129,252,248,239,15,130,244,
56,129,121,253,12,239,15,133,244,56,137,113,252,252,139,105,4,137,105,12,
199,65,4,237,139,41,139,113,8,137,105,8,137,49,190,237,137,202,129,193,239,
131,232,2,252,233,244,1,248,9,139,116,36,24,252,233,244,56,248,77,129,252,
248,239,15,130,244,56,139,41,137,113,252,252,137,116,36,24,137,44,36,129,
121,253,4,239,15,133,244,9,255,131,189,233,0,15,133,244,9,128,189,233,235,
15,135,244,9,139,181,233,137,116,36,4,15,132,244,247,59,181,233,15,132,244,
9,248,1,141,116,198,252,240,59,181,233,15,135,244,9,137,181,233,139,108,36,
48,137,141,233,131,193,8,137,141,233,255,139,108,36,4,141,76,193,232,41,252,
241,57,252,238,15,132,244,249,248,2,139,68,14,4,137,70,252,252,139,4,14,137,
70,252,248,131,252,238,8,57,252,238,15,133,244,2,248,3,49,201,137,76,36,12,
137,76,36,8,232,244,28,199,131,233,237,139,108,36,48,139,52,36,139,149,233,
129,252,248,239,15,135,244,254,248,4,139,142,233,139,190,233,137,142,233,
137,252,254,41,206,15,132,244,252,255,141,4,50,193,252,238,3,59,133,233,15,
135,244,255,137,213,41,205,248,5,139,1,137,4,41,139,65,4,137,68,41,4,131,
193,8,57,252,249,15,133,244,5,248,6,141,70,2,199,66,252,252,237,248,7,139,
116,36,24,137,68,36,20,185,252,248,252,255,252,255,252,255,252,247,198,237,
15,132,244,17,252,233,244,18,248,8,199,66,252,252,237,139,142,233,131,252,
233,8,137,142,233,139,1,137,2,139,65,4,137,66,4,184,237,252,233,244,7,248,
9,255,139,12,36,137,185,233,137,252,242,137,252,233,232,251,1,0,139,149,233,
252,233,244,4,248,9,139,116,36,24,252,233,244,56,248,78,139,173,233,137,113,
252,252,137,116,36,24,137,44,36,131,189,233,0,15,133,244,9,128,189,233,235,
15,135,244,9,139,181,233,137,116,36,4,15,132,244,247,59,181,233,255,15,132,
244,9,248,1,141,116,198,252,248,59,181,233,15,135,244,9,137,181,233,139,108,
36,48,137,141,233,137,141,233,139,108,36,4,141,76,193,252,240,41,252,241,
57,252,238,15,132,244,249,248,2,139,68,14,4,137,70,252,252,139,4,14,137,70,
252,248,131,252,238,8,57,252,238,15,133,244,2,248,3,49,201,137,76,36,12,137,
76,36,8,232,244,28,199,131,233,237,139,108,36,48,139,52,36,139,149,233,255,
129,252,248,239,15,135,244,254,248,4,139,142,233,139,190,233,137,142,233,
137,252,254,41,206,15,132,244,252,141,4,50,193,252,238,3,59,133,233,15,135,
244,255,137,213,41,205,248,5,139,1,137,4,41,139,65,4,137,68,41,4,131,193,
8,57,252,249,15,133,244,5,248,6,141,70,1,248,7,139,116,36,24,137,68,36,20,
49,201,252,247,198,237,15,132,244,17,255,252,233,244,18,248,8,137,252,242,
137,252,233,232,251,1,13,248,9,139,12,36,137,185,233,137,252,242,137,252,
233,232,251,1,0,139,149,233,252,233,244,4,248,79,139,108,36,48,137,113,252,
252,252,247,133,233,237,15,132,244,56,137,141,233,141,68,193,252,248,137,
133,233,49,192,137,133,233,176,235,136,133,233,252,233,244,22,255,248,65,
221,89,252,248,252,233,244,59,248,80,129,252,248,239,15,130,244,56,129,121,
253,4,239,15,135,244,56,252,242,15,16,1,102,15,252,239,201,102,15,118,201,
102,15,115,209,1,15,84,193,248,64,252,242,15,17,65,252,248,255,248,80,129,
252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,56,221,1,217,225,248,
64,248,65,221,89,252,248,255,248,59,184,237,248,70,137,68,36,20,248,57,252,
247,198,237,15,133,244,253,248,5,56,70,252,255,15,135,244,252,139,6,15,182,
204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,6,199,68,193,252,244,
237,131,192,1,252,233,244,5,248,7,137,202,185,252,248,252,255,252,255,252,
255,252,233,244,18,255,248,81,129,252,248,239,15,130,244,56,129,121,253,4,
239,15,135,244,56,252,242,15,81,1,252,233,244,64,248,82,129,252,248,239,15,
130,244,56,129,121,253,4,239,15,135,244,56,252,242,15,16,1,232,244,83,252,
233,244,64,248,84,255,129,252,248,239,15,130,244,56,129,121,253,4,239,15,
135,244,56,252,242,15,16,1,232,244,85,252,233,244,64,255,248,81,129,252,248,
239,15,130,244,56,129,121,253,4,239,15,135,244,56,221,1,217,252,250,252,233,
244,65,248,82,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,
56,221,1,232,244,83,252,233,244,65,248,84,255,129,252,248,239,15,130,244,
56,129,121,253,4,239,15,135,244,56,221,1,232,244,85,252,233,244,65,255,248,
86,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,56,217,252,
237,221,1,217,252,241,252,233,244,65,248,87,129,252,248,239,15,130,244,56,
129,121,253,4,239,15,135,244,56,217,252,236,221,1,217,252,241,252,233,244,
65,248,88,129,252,248,239,255,15,130,244,56,129,121,253,4,239,15,135,244,
56,221,1,232,244,89,252,233,244,65,248,90,129,252,248,239,15,130,244,56,129,
121,253,4,239,15,135,244,56,221,1,217,252,254,252,233,244,65,248,91,129,252,
248,239,255,15,130,244,56,129,121,253,4,239,15,135,244,56,221,1,217,252,255,
252,233,244,65,248,92,129,252,248,239,15,130,244,56,129,121,253,4,239,15,
135,244,56,221,1,217,252,242,221,216,252,233,244,65,248,93,129,252,248,239,
15,130,244,56,255,129,121,253,4,239,15,135,244,56,221,1,217,192,216,200,217,
232,222,225,217,252,250,217,252,243,252,233,244,65,248,94,129,252,248,239,
15,130,244,56,129,121,253,4,239,15,135,244,56,221,1,217,192,216,200,217,232,
222,225,217,252,250,217,201,217,252,243,252,233,244,65,248,95,129,252,248,
239,15,130,244,56,129,121,253,4,239,15,135,244,56,255,221,1,217,232,217,252,
243,252,233,244,65,255,248,96,129,252,248,239,15,130,244,56,129,121,253,4,
239,15,135,244,56,252,242,15,16,1,252,242,15,17,4,36,255,248,96,129,252,248,
239,15,130,244,56,129,121,253,4,239,15,135,244,56,221,1,221,28,36,255,137,
76,36,16,137,213,232,251,1,14,139,76,36,16,137,252,234,252,233,244,65,255,
248,97,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,56,252,
242,15,16,1,252,242,15,17,4,36,255,248,97,129,252,248,239,15,130,244,56,129,
121,253,4,239,15,135,244,56,221,1,221,28,36,255,137,76,36,16,137,213,232,
251,1,15,139,76,36,16,137,252,234,252,233,244,65,255,248,98,129,252,248,239,
15,130,244,56,129,121,253,4,239,15,135,244,56,252,242,15,16,1,252,242,15,
17,4,36,255,248,98,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,
244,56,221,1,221,28,36,255,137,76,36,16,137,213,232,251,1,16,139,76,36,16,
137,252,234,252,233,244,65,248,99,255,248,100,129,252,248,239,15,130,244,
56,129,121,253,4,239,15,135,244,56,252,242,15,16,1,252,242,15,89,133,233,
252,233,244,64,255,248,100,129,252,248,239,15,130,244,56,129,121,253,4,239,
15,135,244,56,221,1,220,141,233,252,233,244,65,255,248,101,129,252,248,239,
15,130,244,56,129,121,253,4,239,15,135,244,56,129,121,253,12,239,15,135,244,
56,221,1,221,65,8,217,252,243,252,233,244,65,248,102,129,252,248,239,15,130,
244,56,129,121,253,4,239,15,135,244,56,129,121,253,12,239,255,15,135,244,
56,221,65,8,221,1,217,252,253,221,217,252,233,244,65,248,103,129,252,248,
239,15,130,244,56,139,105,4,129,252,253,239,15,135,244,56,139,1,137,105,252,
252,137,65,252,248,209,229,129,252,253,0,0,224,252,255,15,131,244,249,9,232,
15,132,244,249,184,252,254,3,0,0,129,252,253,0,0,32,0,15,130,244,250,248,
1,193,252,237,21,41,197,255,252,242,15,42,197,255,137,108,36,16,219,68,36,
16,255,139,105,252,252,129,229,252,255,252,255,15,128,129,205,0,0,224,63,
137,105,252,252,248,2,255,252,242,15,17,1,255,221,25,255,184,237,252,233,
244,70,248,3,255,15,87,192,252,233,244,2,255,217,252,238,252,233,244,2,255,
252,242,15,16,1,189,0,0,80,67,102,15,110,205,102,15,112,201,81,252,242,15,
89,193,252,242,15,17,65,252,248,255,221,1,199,68,36,16,0,0,128,90,216,76,
36,16,221,89,252,248,255,139,105,252,252,184,52,4,0,0,209,229,252,233,244,
1,255,248,104,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,
56,252,242,15,16,1,255,248,104,129,252,248,239,15,130,244,56,129,121,253,
4,239,15,135,244,56,221,1,255,139,105,4,209,229,129,252,253,0,0,224,252,255,
15,132,244,250,255,15,40,224,232,244,105,252,242,15,92,224,248,1,252,242,
15,17,65,252,248,252,242,15,17,33,255,217,192,232,244,105,220,252,233,248,
1,221,89,252,248,221,25,255,139,65,252,252,139,105,4,49,232,15,136,244,249,
248,2,184,237,252,233,244,70,248,3,129,252,245,0,0,0,128,137,105,4,252,233,
244,2,248,4,255,15,87,228,252,233,244,1,255,217,252,238,217,201,252,233,244,
1,255,248,106,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,
56,129,121,253,12,239,15,135,244,56,221,65,8,221,1,248,1,217,252,248,223,
224,158,15,138,244,1,221,217,252,233,244,65,255,248,107,129,252,248,239,15,
130,244,56,129,121,253,4,239,15,135,244,56,129,121,253,12,239,15,135,244,
56,252,242,15,16,1,252,242,15,16,73,8,232,244,108,252,233,244,64,255,248,
107,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,56,129,121,
253,12,239,15,135,244,56,221,1,221,65,8,232,244,108,252,233,244,65,255,248,
109,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,56,252,242,
15,16,1,189,2,0,0,0,248,1,57,197,15,131,244,64,129,124,253,252,233,252,252,
239,15,135,244,56,252,242,15,16,76,252,233,252,248,252,242,15,93,193,131,
197,1,252,233,244,1,255,248,109,129,252,248,239,15,130,244,56,129,121,253,
4,239,15,135,244,56,221,1,189,2,0,0,0,248,1,57,197,15,131,244,65,129,124,
253,252,233,252,252,239,15,135,244,251,221,68,252,233,252,248,255,219,252,
233,219,209,221,217,255,80,221,225,223,224,252,246,196,1,15,132,244,248,217,
201,248,2,221,216,88,255,248,110,129,252,248,239,15,130,244,56,129,121,253,
4,239,15,135,244,56,252,242,15,16,1,189,2,0,0,0,248,1,57,197,15,131,244,64,
129,124,253,252,233,252,252,239,15,135,244,56,252,242,15,16,76,252,233,252,
248,252,242,15,95,193,131,197,1,252,233,244,1,255,248,110,129,252,248,239,
15,130,244,56,129,121,253,4,239,15,135,244,56,221,1,189,2,0,0,0,248,1,57,
197,15,131,244,65,129,124,253,252,233,252,252,239,15,135,244,251,221,68,252,
233,252,248,255,219,252,233,218,209,221,217,255,80,221,225,223,224,252,246,
196,1,15,133,244,248,217,201,248,2,221,216,88,255,248,5,221,216,252,233,244,
56,255,248,111,129,252,248,239,15,130,244,56,129,121,253,4,239,15,133,244,
56,139,41,255,252,242,15,42,133,233,252,233,244,64,255,219,133,233,252,233,
244,65,255,248,112,129,252,248,239,15,133,244,56,129,121,253,4,239,15,133,
244,56,139,41,131,189,233,1,15,130,244,73,15,182,173,233,255,252,242,15,42,
197,252,233,244,64,255,137,108,36,16,219,68,36,16,252,233,244,65,255,248,
113,139,171,233,59,171,233,15,130,244,247,232,244,67,248,1,129,252,248,239,
15,133,244,56,129,121,253,4,239,15,135,244,56,255,252,242,15,45,1,61,252,
255,0,0,0,15,135,244,56,137,68,36,20,255,221,1,219,92,36,20,129,124,36,20,
252,255,0,0,0,15,135,244,56,255,199,68,36,8,1,0,0,0,141,68,36,20,137,76,36,
16,248,114,139,108,36,48,137,149,233,137,68,36,4,137,44,36,137,116,36,24,
232,251,1,17,139,76,36,16,139,149,233,199,65,252,252,237,137,65,252,248,252,
233,244,59,248,115,139,171,233,59,171,233,15,130,244,247,232,244,67,248,1,
137,76,36,16,199,68,36,20,252,255,252,255,252,255,252,255,129,252,248,239,
15,130,244,56,15,134,244,247,129,121,253,20,239,255,252,242,15,45,105,16,
137,108,36,20,255,221,65,16,219,92,36,20,255,248,1,129,121,253,4,239,15,133,
244,56,129,121,253,12,239,15,135,244,56,139,41,137,108,36,12,139,173,233,
255,252,242,15,45,73,8,255,221,65,8,219,92,36,8,139,76,36,8,255,139,68,36,
20,57,197,15,130,244,251,248,2,133,201,15,142,244,253,248,3,139,108,36,12,
41,200,15,140,244,116,141,172,253,13,233,131,192,1,248,4,137,68,36,8,137,
232,252,233,244,114,248,5,15,140,244,252,141,68,40,1,252,233,244,2,248,6,
137,232,252,233,244,2,248,7,255,15,132,244,254,1,252,233,131,193,1,15,143,
244,3,248,8,185,1,0,0,0,252,233,244,3,248,116,49,192,252,233,244,4,248,117,
129,252,248,239,15,130,244,56,139,171,233,59,171,233,15,130,244,247,232,244,
67,248,1,255,137,76,36,16,129,121,253,4,239,15,133,244,56,129,121,253,12,
239,15,135,244,56,139,41,255,252,242,15,45,65,8,255,221,65,8,219,92,36,20,
139,68,36,20,255,133,192,15,142,244,116,131,189,233,1,15,130,244,116,15,133,
244,118,57,131,233,15,130,244,118,15,182,141,233,139,171,233,137,68,36,8,
248,1,136,77,0,131,197,1,131,232,1,15,133,244,1,139,131,233,252,233,244,114,
248,119,129,252,248,239,255,15,130,244,56,139,171,233,59,171,233,15,130,244,
247,232,244,67,248,1,137,76,36,16,129,121,253,4,239,15,133,244,56,139,41,
139,133,233,133,192,15,132,244,116,57,131,233,15,130,244,120,129,197,239,
137,116,36,20,137,68,36,8,139,179,233,248,1,255,15,182,77,0,131,197,1,131,
232,1,136,12,6,15,133,244,1,137,252,240,139,116,36,20,252,233,244,114,248,
121,129,252,248,239,15,130,244,56,139,171,233,59,171,233,15,130,244,247,232,
244,67,248,1,137,76,36,16,129,121,253,4,239,15,133,244,56,139,41,139,133,
233,57,131,233,255,15,130,244,120,129,197,239,137,116,36,20,137,68,36,8,139,
179,233,252,233,244,249,248,1,15,182,76,5,0,131,252,249,65,15,130,244,248,
131,252,249,90,15,135,244,248,131,252,241,32,248,2,136,12,6,248,3,131,232,
1,15,137,244,1,137,252,240,139,116,36,20,252,233,244,114,248,122,129,252,
248,239,15,130,244,56,255,139,171,233,59,171,233,15,130,244,247,232,244,67,
248,1,137,76,36,16,129,121,253,4,239,15,133,244,56,139,41,139,133,233,57,
131,233,15,130,244,120,129,197,239,137,116,36,20,137,68,36,8,139,179,233,
252,233,244,249,248,1,15,182,76,5,0,131,252,249,97,15,130,244,248,255,131,
252,249,122,15,135,244,248,131,252,241,32,248,2,136,12,6,248,3,131,232,1,
15,137,244,1,137,252,240,139,116,36,20,252,233,244,114,248,123,129,252,248,
239,15,130,244,56,129,121,253,4,239,15,133,244,56,137,84,36,16,137,205,139,
9,232,251,1,18,137,252,233,139,84,36,16,255,252,242,15,42,192,252,233,244,
64,255,137,4,36,219,4,36,252,233,244,65,255,248,124,129,252,248,239,15,130,
244,56,129,121,253,4,239,15,135,244,56,252,242,15,16,1,189,0,0,56,67,102,
15,110,205,102,15,112,201,81,252,242,15,88,193,102,15,126,197,252,242,15,
42,197,252,233,244,64,255,248,124,129,252,248,239,15,130,244,56,129,121,253,
4,239,15,135,244,56,221,1,199,68,36,16,0,0,192,89,216,68,36,16,221,28,36,
219,4,36,252,233,244,65,255,248,125,129,252,248,239,15,130,244,56,129,121,
253,4,239,15,135,244,56,252,242,15,16,1,189,0,0,56,67,102,15,110,205,102,
15,112,201,81,252,242,15,88,193,102,15,126,197,255,248,125,129,252,248,239,
15,130,244,56,129,121,253,4,239,15,135,244,56,221,1,199,68,36,16,0,0,192,
89,216,68,36,16,221,28,36,139,44,36,255,137,68,36,20,141,68,193,252,240,255,
137,84,36,16,255,248,1,57,200,15,134,244,126,129,120,253,4,239,15,135,244,
127,255,252,242,15,16,0,252,242,15,88,193,102,15,126,194,33,213,255,221,0,
216,68,36,16,221,28,36,35,44,36,255,131,232,8,252,233,244,1,255,248,128,129,
252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,56,252,242,15,16,1,
189,0,0,56,67,102,15,110,205,102,15,112,201,81,252,242,15,88,193,102,15,126,
197,255,248,128,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,
56,221,1,199,68,36,16,0,0,192,89,216,68,36,16,221,28,36,139,44,36,255,252,
242,15,16,0,252,242,15,88,193,102,15,126,194,9,213,255,221,0,216,68,36,16,
221,28,36,11,44,36,255,248,129,129,252,248,239,15,130,244,56,129,121,253,
4,239,15,135,244,56,252,242,15,16,1,189,0,0,56,67,102,15,110,205,102,15,112,
201,81,252,242,15,88,193,102,15,126,197,255,248,129,129,252,248,239,15,130,
244,56,129,121,253,4,239,15,135,244,56,221,1,199,68,36,16,0,0,192,89,216,
68,36,16,221,28,36,139,44,36,255,252,242,15,16,0,252,242,15,88,193,102,15,
126,194,49,213,255,221,0,216,68,36,16,221,28,36,51,44,36,255,248,130,129,
252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,56,252,242,15,16,1,
189,0,0,56,67,102,15,110,205,102,15,112,201,81,252,242,15,88,193,102,15,126,
197,255,248,130,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,
56,221,1,199,68,36,16,0,0,192,89,216,68,36,16,221,28,36,139,44,36,255,15,
205,252,233,244,131,255,248,132,129,252,248,239,15,130,244,56,129,121,253,
4,239,15,135,244,56,252,242,15,16,1,189,0,0,56,67,102,15,110,205,102,15,112,
201,81,252,242,15,88,193,102,15,126,197,255,248,132,129,252,248,239,15,130,
244,56,129,121,253,4,239,15,135,244,56,221,1,199,68,36,16,0,0,192,89,216,
68,36,16,221,28,36,139,44,36,255,252,247,213,255,248,131,252,242,15,42,197,
252,233,244,64,248,126,252,242,15,42,197,139,84,36,16,252,233,244,64,255,
248,131,248,126,137,44,36,219,4,36,252,233,244,65,255,248,127,255,139,68,
36,20,252,233,244,56,255,248,133,129,252,248,239,15,130,244,56,129,121,253,
4,239,15,135,244,56,129,121,253,12,239,15,135,244,56,252,242,15,16,1,252,
242,15,16,73,8,189,0,0,56,67,102,15,110,213,102,15,112,210,81,252,242,15,
88,194,252,242,15,88,202,137,200,102,15,126,197,102,15,126,201,255,248,133,
129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,56,129,121,253,
12,239,15,135,244,56,221,1,221,65,8,199,68,36,16,0,0,192,89,216,68,36,16,
221,92,36,8,216,68,36,16,221,28,36,137,200,139,76,36,8,139,44,36,255,211,
229,137,193,252,233,244,131,255,248,134,129,252,248,239,15,130,244,56,129,
121,253,4,239,15,135,244,56,129,121,253,12,239,15,135,244,56,252,242,15,16,
1,252,242,15,16,73,8,189,0,0,56,67,102,15,110,213,102,15,112,210,81,252,242,
15,88,194,252,242,15,88,202,137,200,102,15,126,197,102,15,126,201,255,248,
134,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,56,129,121,
253,12,239,15,135,244,56,221,1,221,65,8,199,68,36,16,0,0,192,89,216,68,36,
16,221,92,36,8,216,68,36,16,221,28,36,137,200,139,76,36,8,139,44,36,255,211,
252,237,137,193,252,233,244,131,255,248,135,129,252,248,239,15,130,244,56,
129,121,253,4,239,15,135,244,56,129,121,253,12,239,15,135,244,56,252,242,
15,16,1,252,242,15,16,73,8,189,0,0,56,67,102,15,110,213,102,15,112,210,81,
252,242,15,88,194,252,242,15,88,202,137,200,102,15,126,197,102,15,126,201,
255,248,135,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,56,
129,121,253,12,239,15,135,244,56,221,1,221,65,8,199,68,36,16,0,0,192,89,216,
68,36,16,221,92,36,8,216,68,36,16,221,28,36,137,200,139,76,36,8,139,44,36,
255,211,252,253,137,193,252,233,244,131,255,248,136,129,252,248,239,15,130,
244,56,129,121,253,4,239,15,135,244,56,129,121,253,12,239,15,135,244,56,252,
242,15,16,1,252,242,15,16,73,8,189,0,0,56,67,102,15,110,213,102,15,112,210,
81,252,242,15,88,194,252,242,15,88,202,137,200,102,15,126,197,102,15,126,
201,255,248,136,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,
56,129,121,253,12,239,15,135,244,56,221,1,221,65,8,199,68,36,16,0,0,192,89,
216,68,36,16,221,92,36,8,216,68,36,16,221,28,36,137,200,139,76,36,8,139,44,
36,255,211,197,137,193,252,233,244,131,255,248,137,129,252,248,239,15,130,
244,56,129,121,253,4,239,15,135,244,56,129,121,253,12,239,15,135,244,56,252,
242,15,16,1,252,242,15,16,73,8,189,0,0,56,67,102,15,110,213,102,15,112,210,
81,252,242,15,88,194,252,242,15,88,202,137,200,102,15,126,197,102,15,126,
201,255,248,137,129,252,248,239,15,130,244,56,129,121,253,4,239,15,135,244,
56,129,121,253,12,239,15,135,244,56,221,1,221,65,8,199,68,36,16,0,0,192,89,
216,68,36,16,221,92,36,8,216,68,36,16,221,28,36,137,200,139,76,36,8,139,44,
36,255,211,205,137,193,252,233,244,131,248,118,184,237,252,233,244,56,248,
120,184,237,248,56,139,108,36,48,41,202,137,113,252,252,137,116,36,24,137,
84,36,16,137,141,233,141,68,193,252,248,141,144,233,137,133,233,139,65,252,
248,59,149,233,15,135,244,251,137,44,36,252,255,144,233,133,192,15,133,244,
249,248,1,139,141,233,255,139,133,233,41,200,193,232,3,131,192,1,139,105,
252,248,139,84,36,16,1,202,57,113,252,252,15,133,244,248,252,255,165,233,
248,2,129,121,253,252,252,239,15,133,244,31,252,255,165,233,248,3,139,141,
233,139,84,36,16,1,202,252,233,244,70,248,5,186,237,137,252,233,232,251,1,
0,252,233,244,1,248,67,93,137,108,36,16,139,108,36,48,41,202,137,84,36,20,
137,113,252,252,137,116,36,24,137,141,233,141,68,193,252,248,137,252,233,
137,133,233,255,232,251,1,19,139,141,233,139,133,233,41,200,193,232,3,131,
192,1,139,113,252,252,139,84,36,20,1,202,139,108,36,16,85,139,105,252,248,
195,248,138,255,15,182,131,233,168,235,15,133,244,251,168,235,15,133,244,
247,168,235,15,132,244,247,252,255,139,233,252,233,244,247,255,248,139,15,
182,131,233,168,235,15,133,244,251,168,235,15,132,244,251,252,255,139,233,
15,132,244,247,168,235,15,132,244,251,248,1,139,108,36,48,137,149,233,137,
252,242,137,252,233,232,251,1,20,248,3,139,149,233,248,4,15,182,78,252,253,
248,5,255,15,182,110,252,252,15,183,70,252,254,252,255,164,253,171,233,248,
140,131,198,4,139,77,232,137,76,36,20,252,233,244,4,248,141,255,139,108,36,
48,137,149,233,137,252,242,141,139,233,137,171,233,137,116,36,24,232,251,
1,21,252,233,244,3,255,248,142,255,139,108,36,48,137,149,233,137,252,242,
141,139,233,137,171,233,137,116,36,24,232,251,1,21,139,149,233,139,6,15,182,
204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,248,143,255,85,141,
108,36,12,85,83,82,81,80,15,182,69,252,252,138,101,252,248,137,125,252,252,
137,117,252,248,139,93,0,139,139,233,199,131,233,237,137,131,233,137,139,
233,129,252,236,239,252,247,131,233,237,15,132,244,247,252,242,15,17,125,
216,252,242,15,17,117,208,252,242,15,17,109,200,252,242,15,17,101,192,252,
242,15,17,93,184,252,242,15,17,85,176,252,242,15,17,77,168,252,242,15,17,
69,160,248,1,139,171,233,139,147,233,137,171,233,137,149,233,141,84,36,16,
141,139,233,232,251,1,22,137,196,139,149,233,139,116,36,24,137,108,36,48,
255,248,144,255,139,122,252,248,139,191,233,139,191,233,199,131,233,0,0,0,
0,199,131,233,237,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,
36,171,255,248,83,255,217,124,36,4,137,68,36,8,102,184,0,4,102,11,68,36,4,
102,37,252,255,252,247,102,137,68,36,6,217,108,36,6,217,252,252,217,108,36,
4,139,68,36,8,195,255,248,145,102,15,252,239,210,102,15,118,210,102,15,115,
210,1,184,0,0,48,67,102,15,110,216,102,15,112,219,81,15,40,200,102,15,84,
202,102,15,46,217,15,134,244,247,102,15,85,208,252,242,15,88,203,252,242,
15,92,203,102,15,86,202,184,0,0,252,240,63,102,15,110,208,102,15,112,210,
81,252,242,15,194,193,1,102,15,84,194,252,242,15,92,200,15,40,193,248,1,195,
248,85,255,217,124,36,4,137,68,36,8,102,184,0,8,102,11,68,36,4,102,37,252,
255,252,251,102,137,68,36,6,217,108,36,6,217,252,252,217,108,36,4,139,68,
36,8,195,255,248,146,102,15,252,239,210,102,15,118,210,102,15,115,210,1,184,
0,0,48,67,102,15,110,216,102,15,112,219,81,15,40,200,102,15,84,202,102,15,
46,217,15,134,244,247,102,15,85,208,252,242,15,88,203,252,242,15,92,203,102,
15,86,202,184,0,0,252,240,191,102,15,110,208,102,15,112,210,81,252,242,15,
194,193,6,102,15,84,194,252,242,15,92,200,15,40,193,248,1,195,248,105,255,
217,124,36,4,137,68,36,8,102,184,0,12,102,11,68,36,4,102,137,68,36,6,217,
108,36,6,217,252,252,217,108,36,4,139,68,36,8,195,255,248,147,102,15,252,
239,210,102,15,118,210,102,15,115,210,1,184,0,0,48,67,102,15,110,216,102,
15,112,219,81,15,40,200,102,15,84,202,102,15,46,217,15,134,244,247,102,15,
85,208,15,40,193,252,242,15,88,203,252,242,15,92,203,184,0,0,252,240,63,102,
15,110,216,102,15,112,219,81,252,242,15,194,193,1,102,15,84,195,252,242,15,
92,200,102,15,86,202,15,40,193,248,1,195,248,148,255,15,40,232,252,242,15,
94,193,102,15,252,239,210,102,15,118,210,102,15,115,210,1,184,0,0,48,67,102,
15,110,216,102,15,112,219,81,15,40,224,102,15,84,226,102,15,46,220,15,134,
244,247,102,15,85,208,252,242,15,88,227,252,242,15,92,227,102,15,86,226,184,
0,0,252,240,63,102,15,110,208,102,15,112,210,81,252,242,15,194,196,1,102,
15,84,194,252,242,15,92,224,15,40,197,252,242,15,89,204,252,242,15,92,193,
195,248,1,252,242,15,89,200,15,40,197,252,242,15,92,193,195,255,217,193,216,
252,241,217,124,36,4,102,184,0,4,102,11,68,36,4,102,37,252,255,252,247,102,
137,68,36,6,217,108,36,6,217,252,252,217,108,36,4,222,201,222,252,233,195,
255,248,89,217,252,234,222,201,248,149,217,84,36,4,129,124,36,4,0,0,128,127,
15,132,244,247,129,124,36,4,0,0,128,252,255,15,132,244,248,248,150,217,192,
217,252,252,220,252,233,217,201,217,252,240,217,232,222,193,217,252,253,221,
217,248,1,195,248,2,221,216,217,252,238,195,255,248,108,219,84,36,4,219,68,
36,4,255,223,252,233,255,221,252,233,223,224,158,255,15,133,244,254,15,138,
244,255,221,216,139,68,36,4,131,252,248,1,15,142,244,252,248,1,169,1,0,0,
0,15,133,244,248,216,200,209,232,252,233,244,1,248,2,209,232,15,132,244,251,
217,192,248,3,216,200,209,232,15,132,244,250,15,131,244,3,220,201,252,233,
244,3,248,4,255,222,201,248,5,195,248,6,15,132,244,5,15,130,244,253,217,232,
222,252,241,252,247,216,131,252,248,1,15,132,244,5,252,233,244,1,248,7,221,
216,217,232,195,248,8,217,84,36,4,217,201,217,84,36,8,139,68,36,4,209,224,
61,0,0,0,252,255,15,132,244,248,139,68,36,8,209,224,15,132,244,250,61,0,0,
0,252,255,15,132,244,250,217,252,241,252,233,244,150,248,9,255,217,232,255,
223,252,234,255,221,252,234,223,224,158,255,15,132,244,247,217,201,248,1,
221,216,195,248,2,217,225,217,232,255,15,132,244,249,221,216,217,225,217,
252,238,184,0,0,0,0,15,146,208,209,200,51,68,36,4,15,137,244,249,217,201,
248,3,221,217,217,225,195,248,4,131,124,36,4,0,15,141,244,3,221,216,221,216,
133,192,15,132,244,251,217,252,238,195,248,5,199,68,36,4,0,0,128,127,217,
68,36,4,195,255,248,108,255,248,151,252,242,15,45,193,252,242,15,42,208,102,
15,46,202,15,133,244,254,15,138,244,255,248,152,131,252,248,1,15,142,244,
252,248,1,169,1,0,0,0,15,133,244,248,252,242,15,89,192,209,232,252,233,244,
1,248,2,209,232,15,132,244,251,15,40,200,248,3,252,242,15,89,192,209,232,
15,132,244,250,15,131,244,3,255,252,242,15,89,200,252,233,244,3,248,4,252,
242,15,89,193,248,5,195,248,6,15,132,244,5,15,130,244,253,80,184,0,0,252,
240,63,102,15,110,200,102,15,112,201,81,252,242,15,94,200,88,15,40,193,252,
247,216,131,252,248,1,15,132,244,5,252,233,244,1,248,7,184,0,0,252,240,63,
102,15,110,192,102,15,112,192,81,195,248,8,252,242,15,17,76,36,12,252,242,
15,17,68,36,4,131,124,36,12,0,15,133,244,247,139,68,36,16,209,224,61,0,0,
224,252,255,15,132,244,248,248,1,255,131,124,36,4,0,15,133,244,247,139,68,
36,8,209,224,15,132,244,250,61,0,0,224,252,255,15,132,244,251,248,1,221,68,
36,12,221,68,36,4,217,252,241,217,192,217,252,252,220,252,233,217,201,217,
252,240,217,232,222,193,217,252,253,221,217,221,92,36,4,252,242,15,16,68,
36,4,195,248,9,184,0,0,252,240,63,102,15,110,208,102,15,112,210,81,102,15,
46,194,15,132,244,247,15,40,193,248,1,195,248,2,102,15,252,239,210,102,15,
118,210,102,15,115,210,1,102,15,84,194,184,0,0,252,240,63,102,15,110,208,
102,15,112,210,81,102,15,46,194,15,132,244,1,102,15,80,193,15,87,192,136,
196,15,146,208,48,224,15,133,244,1,248,3,184,0,0,252,240,127,102,15,110,192,
102,15,112,192,81,195,248,4,102,15,80,193,133,192,15,133,244,3,255,15,87,
192,195,248,5,102,15,80,193,133,192,15,132,244,3,15,87,192,195,248,153,255,
139,68,36,12,252,242,15,16,68,36,4,131,252,248,1,15,132,244,247,15,135,244,
248,232,244,83,252,233,244,253,248,1,232,244,85,252,233,244,253,248,2,131,
252,248,3,15,132,244,247,15,135,244,248,232,244,105,255,252,233,244,253,248,
1,252,242,15,81,192,248,7,252,242,15,17,68,36,4,221,68,36,4,195,248,2,221,
68,36,4,131,252,248,5,15,130,244,89,15,132,244,149,248,2,131,252,248,7,15,
132,244,247,15,135,244,248,217,252,237,217,201,217,252,241,195,248,1,217,
232,217,201,217,252,241,195,248,2,131,252,248,9,15,132,244,247,15,135,244,
248,255,217,252,236,217,201,217,252,241,195,248,1,217,252,254,195,248,2,131,
252,248,11,15,132,244,247,15,135,244,255,217,252,255,195,248,1,217,252,242,
221,216,195,255,139,68,36,12,221,68,36,4,131,252,248,1,15,130,244,83,15,132,
244,85,131,252,248,3,15,130,244,105,15,135,244,248,217,252,250,195,248,2,
131,252,248,5,15,130,244,89,15,132,244,149,131,252,248,7,15,132,244,247,15,
135,244,248,217,252,237,217,201,217,252,241,195,248,1,217,232,217,201,217,
252,241,195,248,2,131,252,248,9,15,132,244,247,255,15,135,244,248,217,252,
236,217,201,217,252,241,195,248,1,217,252,254,195,248,2,131,252,248,11,15,
132,244,247,15,135,244,255,217,252,255,195,248,1,217,252,242,221,216,195,
255,248,9,204,248,154,255,139,68,36,20,252,242,15,16,68,36,4,252,242,15,16,
76,36,12,131,252,248,1,15,132,244,247,15,135,244,248,252,242,15,88,193,248,
7,252,242,15,17,68,36,4,221,68,36,4,195,248,1,252,242,15,92,193,252,233,244,
7,248,2,131,252,248,3,15,132,244,247,15,135,244,248,252,242,15,89,193,252,
233,244,7,248,1,252,242,15,94,193,252,233,244,7,248,2,131,252,248,5,15,132,
244,247,255,15,135,244,248,232,244,148,252,233,244,7,248,1,90,232,244,108,
82,252,233,244,7,248,2,131,252,248,7,15,132,244,247,15,135,244,248,184,0,
0,0,128,102,15,110,200,102,15,112,201,81,15,87,193,252,233,244,7,248,1,102,
15,252,239,201,102,15,118,201,102,15,115,209,1,15,84,193,252,233,244,7,248,
2,255,131,252,248,9,15,135,244,248,221,68,36,4,221,68,36,12,15,132,244,247,
217,252,243,195,248,1,217,201,217,252,253,221,217,195,248,2,131,252,248,11,
15,132,244,247,15,135,244,255,252,242,15,93,193,252,233,244,7,248,1,252,242,
15,95,193,252,233,244,7,248,9,204,255,139,68,36,20,221,68,36,4,221,68,36,
12,131,252,248,1,15,132,244,247,15,135,244,248,222,193,195,248,1,222,252,
233,195,248,2,131,252,248,3,15,132,244,247,15,135,244,248,222,201,195,248,
1,222,252,249,195,248,2,131,252,248,5,15,130,244,148,15,132,244,108,131,252,
248,7,15,132,244,247,15,135,244,248,255,221,216,217,224,195,248,1,221,216,
217,225,195,248,2,131,252,248,9,15,132,244,247,15,135,244,248,217,252,243,
195,248,1,217,201,217,252,253,221,217,195,248,2,131,252,248,11,15,132,244,
247,15,135,244,255,255,219,252,233,219,209,221,217,195,248,1,219,252,233,
218,209,221,217,195,255,221,225,223,224,252,246,196,1,15,132,244,248,217,
201,248,2,221,216,195,248,1,221,225,223,224,252,246,196,1,15,133,244,248,
217,201,248,2,221,216,195,255,248,155,156,90,137,209,129,252,242,0,0,32,0,
82,157,156,90,49,192,57,209,15,132,244,247,139,68,36,4,87,83,15,162,139,124,
36,16,137,7,137,95,4,137,79,8,137,87,12,91,95,248,1,195,255,129,124,253,202,
4,239,15,135,244,43,129,124,253,194,4,239,15,135,244,43,255,252,242,15,16,
4,194,131,198,4,102,15,46,4,202,255,221,4,202,221,4,194,131,198,4,255,223,
252,233,221,216,255,218,252,233,223,224,158,255,15,134,244,248,255,15,131,
244,248,255,248,1,15,183,70,252,254,141,180,253,134,233,248,2,139,6,15,182,
204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,139,108,194,4,131,
198,4,129,252,253,239,15,135,244,251,129,124,253,202,4,239,15,135,244,251,
255,252,242,15,16,4,194,102,15,46,4,202,255,221,4,202,221,4,194,255,15,138,
244,248,15,133,244,248,255,15,138,244,248,15,132,244,247,255,248,1,15,183,
70,252,254,141,180,253,134,233,248,2,255,248,2,15,183,70,252,254,141,180,
253,134,233,248,1,255,248,5,57,108,202,4,15,133,244,2,129,252,253,239,15,
131,244,1,139,12,202,139,4,194,57,193,15,132,244,1,129,252,253,239,15,135,
244,2,139,169,233,133,252,237,15,132,244,2,252,246,133,233,235,15,133,244,
2,255,49,252,237,255,189,1,0,0,0,255,252,233,244,47,255,252,247,208,131,198,
4,129,124,253,202,4,239,15,133,244,248,139,12,202,59,12,135,255,131,198,4,
129,124,253,202,4,239,15,135,244,248,255,252,242,15,16,4,199,102,15,46,4,
202,255,221,4,202,221,4,199,255,252,247,208,131,198,4,57,68,202,4,255,139,
108,194,4,131,198,4,129,252,253,239,255,15,131,244,247,255,15,130,244,247,
255,137,108,202,4,139,44,194,137,44,202,255,15,183,70,252,254,141,180,253,
134,233,248,1,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,
171,255,139,108,194,4,139,4,194,137,108,202,4,137,4,202,139,6,15,182,204,
15,182,232,131,198,4,193,232,16,252,255,36,171,255,49,252,237,129,124,253,
194,4,239,129,213,239,137,108,202,4,139,6,15,182,204,15,182,232,131,198,4,
193,232,16,252,255,36,171,255,129,124,253,194,4,239,15,135,244,50,255,252,
242,15,16,4,194,184,0,0,0,128,102,15,110,200,102,15,112,201,81,15,87,193,
252,242,15,17,4,202,255,221,4,194,217,224,221,28,202,255,129,124,253,194,
4,239,15,133,244,248,139,4,194,255,15,87,192,252,242,15,42,128,233,248,1,
252,242,15,17,4,202,255,219,128,233,248,1,221,28,202,255,139,6,15,182,204,
15,182,232,131,198,4,193,232,16,252,255,36,171,248,2,129,124,253,194,4,239,
15,133,244,52,139,12,194,137,213,232,251,1,18,255,252,242,15,42,192,137,252,
234,255,137,4,36,137,252,234,219,4,36,255,15,182,78,252,253,252,233,244,1,
255,15,182,252,236,15,182,192,255,129,124,253,252,234,4,239,15,135,244,48,
255,252,242,15,16,4,252,234,252,242,15,88,4,199,255,221,4,252,234,220,4,199,
255,129,124,253,252,234,4,239,15,135,244,49,255,252,242,15,16,4,199,252,242,
15,88,4,252,234,255,221,4,199,220,4,252,234,255,129,124,253,252,234,4,239,
15,135,244,51,129,124,253,194,4,239,15,135,244,51,255,252,242,15,16,4,252,
234,252,242,15,88,4,194,255,221,4,252,234,220,4,194,255,252,242,15,16,4,252,
234,252,242,15,92,4,199,255,221,4,252,234,220,36,199,255,252,242,15,16,4,
199,252,242,15,92,4,252,234,255,221,4,199,220,36,252,234,255,252,242,15,16,
4,252,234,252,242,15,92,4,194,255,221,4,252,234,220,36,194,255,252,242,15,
16,4,252,234,252,242,15,89,4,199,255,221,4,252,234,220,12,199,255,252,242,
15,16,4,199,252,242,15,89,4,252,234,255,221,4,199,220,12,252,234,255,252,
242,15,16,4,252,234,252,242,15,89,4,194,255,221,4,252,234,220,12,194,255,
252,242,15,16,4,252,234,252,242,15,94,4,199,255,221,4,252,234,220,52,199,
255,252,242,15,16,4,199,252,242,15,94,4,252,234,255,221,4,199,220,52,252,
234,255,252,242,15,16,4,252,234,252,242,15,94,4,194,255,221,4,252,234,220,
52,194,255,252,242,15,16,4,252,234,252,242,15,16,12,199,255,221,4,252,234,
221,4,199,255,252,242,15,16,4,199,252,242,15,16,12,252,234,255,221,4,199,
221,4,252,234,255,252,242,15,16,4,252,234,252,242,15,16,12,194,255,221,4,
252,234,221,4,194,255,248,156,232,244,148,255,252,233,244,156,255,232,244,
108,255,15,182,252,236,15,182,192,141,12,194,41,232,137,76,36,4,137,68,36,
8,248,35,139,108,36,48,137,44,36,137,149,233,137,116,36,24,232,251,1,23,139,
149,233,133,192,15,133,244,44,15,182,110,252,255,15,182,78,252,253,139,68,
252,234,4,139,44,252,234,137,68,202,4,137,44,202,139,6,15,182,204,15,182,
232,131,198,4,193,232,16,252,255,36,171,255,252,247,208,139,4,135,199,68,
202,4,237,137,4,202,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,
255,36,171,255,15,191,192,252,242,15,42,192,252,242,15,17,4,202,255,223,70,
252,254,221,28,202,255,252,242,15,16,4,199,252,242,15,17,4,202,255,221,4,
199,221,28,202,255,252,247,208,137,68,202,4,139,6,15,182,204,15,182,232,131,
198,4,193,232,16,252,255,36,171,255,141,76,202,12,141,68,194,4,189,237,137,
105,252,248,248,1,137,41,131,193,8,57,193,15,134,244,1,139,6,15,182,204,15,
182,232,131,198,4,193,232,16,252,255,36,171,255,139,106,252,248,139,172,253,
133,233,139,173,233,139,69,4,139,109,0,137,68,202,4,137,44,202,139,6,15,182,
204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,139,106,252,248,139,
172,253,141,233,128,189,233,0,139,173,233,139,12,194,139,68,194,4,137,77,
0,137,69,4,15,132,244,247,252,246,133,233,235,15,133,244,248,248,1,139,6,
15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,2,129,232,239,
129,252,248,239,15,134,244,1,252,246,129,233,235,15,132,244,1,135,213,141,
139,233,255,232,251,1,24,137,252,234,252,233,244,1,255,252,247,208,139,106,
252,248,139,172,253,141,233,139,12,135,139,133,233,137,8,199,64,4,237,252,
246,133,233,235,15,133,244,248,248,1,139,6,15,182,204,15,182,232,131,198,
4,193,232,16,252,255,36,171,248,2,252,246,129,233,235,15,132,244,1,128,189,
233,0,15,132,244,1,137,213,137,194,141,139,233,232,251,1,24,137,252,234,252,
233,244,1,255,139,106,252,248,255,252,242,15,16,4,199,255,139,172,253,141,
233,139,141,233,255,252,247,208,139,106,252,248,139,172,253,141,233,139,141,
233,137,65,4,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,
171,255,141,180,253,134,233,139,108,36,48,131,189,233,0,15,132,244,247,137,
149,233,141,20,202,137,252,233,232,251,1,25,139,149,233,248,1,139,6,15,182,
204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,252,247,208,139,74,
252,248,139,4,135,139,108,36,48,137,76,36,8,137,68,36,4,137,44,36,137,149,
233,137,116,36,24,232,251,1,26,139,149,233,15,182,78,252,253,137,4,202,199,
68,202,4,237,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,
171,255,137,197,37,252,255,7,0,0,193,252,237,11,61,252,255,7,0,0,15,132,244,
249,248,2,137,108,36,8,139,108,36,48,137,68,36,4,137,116,36,24,139,131,233,
137,44,36,59,131,233,137,149,233,15,131,244,251,248,1,232,251,1,27,139,149,
233,15,182,78,252,253,137,4,202,199,68,202,4,237,139,6,15,182,204,15,182,
232,131,198,4,193,232,16,252,255,36,171,248,3,184,1,8,0,0,252,233,244,2,248,
5,137,252,233,232,251,1,28,252,233,244,1,255,252,247,208,139,108,36,48,139,
139,233,137,116,36,24,59,139,233,137,149,233,15,131,244,249,248,2,139,20,
135,137,252,233,232,251,1,29,139,149,233,15,182,78,252,253,137,4,202,199,
68,202,4,237,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,
171,248,3,137,252,233,232,251,1,28,15,183,70,252,254,252,247,208,252,233,
244,2,255,252,247,208,139,106,252,248,139,173,233,139,4,135,252,233,244,157,
255,252,247,208,139,106,252,248,139,173,233,139,4,135,252,233,244,158,255,
15,182,252,236,15,182,192,129,124,253,252,234,4,239,15,133,244,38,139,44,
252,234,129,124,253,194,4,239,15,135,244,251,255,252,242,15,16,4,194,252,
242,15,45,192,252,242,15,42,200,102,15,46,193,255,221,4,194,219,20,36,219,
4,36,255,15,133,244,38,59,133,233,15,131,244,38,193,224,3,3,133,233,129,120,
253,4,239,15,132,244,248,248,1,139,40,139,64,4,137,44,202,137,68,202,4,139,
6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,2,131,189,
233,0,15,132,244,1,139,141,233,252,246,129,233,235,15,132,244,38,15,182,78,
252,253,252,233,244,1,248,5,255,129,124,253,194,4,239,15,133,244,38,139,4,
194,252,233,244,157,255,15,182,252,236,15,182,192,252,247,208,139,4,135,129,
124,253,252,234,4,239,15,133,244,36,139,44,252,234,248,157,139,141,233,35,
136,233,105,201,239,3,141,233,248,1,129,185,233,239,15,133,244,250,57,129,
233,15,133,244,250,129,121,253,4,239,15,132,244,251,15,182,70,252,253,139,
41,139,73,4,137,44,194,248,2,255,137,76,194,4,139,6,15,182,204,15,182,232,
131,198,4,193,232,16,252,255,36,171,248,3,15,182,70,252,253,185,237,252,233,
244,2,248,4,139,137,233,133,201,15,133,244,1,248,5,139,141,233,133,201,15,
132,244,3,252,246,129,233,235,15,133,244,3,252,233,244,36,255,15,182,252,
236,15,182,192,129,124,253,252,234,4,239,15,133,244,37,139,44,252,234,59,
133,233,15,131,244,37,193,224,3,3,133,233,129,120,253,4,239,15,132,244,248,
248,1,139,40,139,64,4,137,44,202,137,68,202,4,139,6,15,182,204,15,182,232,
131,198,4,193,232,16,252,255,36,171,248,2,131,189,233,0,15,132,244,1,139,
141,233,252,246,129,233,235,15,132,244,37,255,15,182,252,236,15,182,192,129,
124,253,252,234,4,239,15,133,244,41,139,44,252,234,129,124,253,194,4,239,
15,135,244,251,255,15,133,244,41,59,133,233,15,131,244,41,193,224,3,3,133,
233,129,120,253,4,239,15,132,244,249,248,1,252,246,133,233,235,15,133,244,
253,248,2,139,108,202,4,139,12,202,137,104,4,137,8,139,6,15,182,204,15,182,
232,131,198,4,193,232,16,252,255,36,171,248,3,131,189,233,0,15,132,244,1,
139,141,233,255,252,246,129,233,235,15,132,244,41,15,182,78,252,253,252,233,
244,1,248,5,129,124,253,194,4,239,15,133,244,41,139,4,194,252,233,244,158,
248,7,128,165,233,235,139,139,233,137,171,233,137,141,233,15,182,78,252,253,
252,233,244,2,255,15,182,252,236,15,182,192,252,247,208,139,4,135,129,124,
253,252,234,4,239,15,133,244,39,139,44,252,234,248,158,139,141,233,35,136,
233,105,201,239,198,133,233,0,3,141,233,248,1,129,185,233,239,15,133,244,
251,57,129,233,15,133,244,251,129,121,253,4,239,15,132,244,250,248,2,255,
252,246,133,233,235,15,133,244,253,248,3,15,182,70,252,253,139,108,194,4,
139,4,194,137,105,4,137,1,139,6,15,182,204,15,182,232,131,198,4,193,232,16,
252,255,36,171,248,4,131,189,233,0,15,132,244,2,137,76,36,16,139,141,233,
252,246,129,233,235,15,132,244,39,139,76,36,16,252,233,244,2,248,5,139,137,
233,133,201,15,133,244,1,255,139,141,233,133,201,15,132,244,252,252,246,129,
233,235,15,132,244,39,248,6,137,68,36,16,199,68,36,20,237,137,108,36,12,141,
68,36,16,137,108,36,4,139,108,36,48,137,68,36,8,137,44,36,137,149,233,137,
116,36,24,232,251,1,30,139,149,233,139,108,36,12,137,193,252,233,244,2,248,
7,128,165,233,235,139,131,233,137,171,233,137,133,233,252,233,244,3,255,15,
182,252,236,15,182,192,129,124,253,252,234,4,239,15,133,244,40,139,44,252,
234,59,133,233,15,131,244,40,193,224,3,3,133,233,129,120,253,4,239,15,132,
244,249,248,1,252,246,133,233,235,15,133,244,253,248,2,139,108,202,4,139,
12,202,137,104,4,137,8,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,
255,36,171,248,3,131,189,233,0,15,132,244,1,255,139,141,233,252,246,129,233,
235,15,132,244,40,15,182,78,252,253,252,233,244,1,248,7,128,165,233,235,139,
139,233,137,171,233,137,141,233,15,182,78,252,253,252,233,244,2,255,137,124,
36,16,255,221,4,199,219,92,36,12,255,248,1,141,12,202,139,105,252,248,252,
246,133,233,235,15,133,244,253,248,2,139,68,36,20,255,252,242,15,45,252,248,
255,139,124,36,12,255,131,232,1,15,132,244,250,1,252,248,59,133,233,15,131,
244,251,41,252,248,193,231,3,3,189,233,248,3,139,41,137,47,139,105,4,131,
193,8,137,111,4,131,199,8,131,232,1,15,133,244,3,248,4,139,124,36,16,139,
6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,5,137,108,
36,4,139,108,36,48,137,149,233,137,68,36,8,137,44,36,137,116,36,24,232,251,
1,31,139,149,233,15,182,78,252,253,252,233,244,1,248,7,128,165,233,235,139,
131,233,137,171,233,255,137,133,233,252,233,244,2,255,3,68,36,20,255,141,
76,202,8,139,105,252,248,129,121,253,252,252,239,15,133,244,31,252,255,165,
233,255,141,76,202,8,137,215,139,105,252,248,129,121,253,252,252,239,15,133,
244,31,248,53,139,114,252,252,252,247,198,237,15,133,244,253,248,1,137,106,
252,248,137,68,36,20,131,232,1,15,132,244,249,248,2,139,41,137,47,139,105,
4,137,111,4,131,199,8,131,193,8,131,232,1,15,133,244,2,139,106,252,248,248,
3,137,209,128,189,233,1,15,135,244,251,248,4,139,68,36,20,252,255,165,233,
248,5,255,252,247,198,237,15,133,244,4,15,182,70,252,253,252,247,208,141,
20,194,139,122,252,248,139,191,233,139,191,233,252,233,244,4,248,7,15,139,
244,1,131,230,252,248,41,252,242,137,215,139,114,252,252,252,233,244,1,255,
141,76,202,8,139,105,232,139,65,252,236,137,41,137,65,4,139,105,252,240,139,
65,252,244,137,105,8,137,65,12,139,105,224,139,65,228,137,105,252,248,137,
65,252,252,129,252,248,239,184,3,0,0,0,15,133,244,31,252,255,165,233,255,
15,182,252,236,139,66,252,248,141,12,202,139,128,233,15,182,128,233,137,124,
36,16,141,188,253,194,233,43,122,252,252,133,252,237,15,132,244,251,141,108,
252,233,252,248,57,215,15,131,244,248,248,1,139,71,252,248,137,1,139,71,252,
252,131,199,8,137,65,4,131,193,8,57,252,233,15,131,244,249,57,215,15,130,
244,1,248,2,199,65,4,237,131,193,8,57,252,233,15,130,244,2,248,3,139,124,
36,16,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,
5,199,68,36,20,1,0,0,0,137,208,41,252,248,15,134,244,3,255,137,197,193,252,
237,3,131,197,1,137,108,36,20,139,108,36,48,1,200,59,133,233,15,135,244,253,
248,6,139,71,252,248,137,1,139,71,252,252,131,199,8,137,65,4,131,193,8,57,
215,15,130,244,6,252,233,244,3,248,7,137,149,233,137,141,233,137,116,36,24,
41,215,139,84,36,20,131,252,234,1,137,252,233,232,251,1,0,139,149,233,139,
141,233,1,215,252,233,244,6,255,193,225,3,255,248,1,139,114,252,252,137,68,
36,20,252,247,198,237,15,133,244,253,255,248,17,137,215,131,232,1,15,132,
244,249,248,2,139,44,15,137,111,252,248,139,108,15,4,137,111,252,252,131,
199,8,131,232,1,15,133,244,2,248,3,139,68,36,20,15,182,110,252,255,248,5,
57,197,15,135,244,252,255,139,108,10,4,137,106,252,252,139,44,10,137,106,
252,248,255,248,5,56,70,252,255,15,135,244,252,255,15,182,78,252,253,252,
247,209,141,20,202,139,122,252,248,139,191,233,139,191,233,139,6,15,182,204,
15,182,232,131,198,4,193,232,16,252,255,36,171,248,6,255,199,71,252,252,237,
131,199,8,255,199,68,194,252,244,237,255,131,192,1,252,233,244,5,248,7,15,
139,244,18,131,230,252,248,41,252,242,255,1,252,241,255,137,252,245,209,252,
237,129,229,239,102,131,172,253,43,233,1,15,132,244,141,255,141,12,202,255,
129,121,253,4,239,15,135,244,54,129,121,253,12,239,15,135,244,54,255,139,
105,20,255,129,252,253,239,15,135,244,54,255,252,242,15,16,1,252,242,15,16,
73,8,255,252,242,15,88,65,16,252,242,15,17,1,133,252,237,15,136,244,249,255,
15,140,244,249,255,102,15,46,200,248,1,252,242,15,17,65,24,255,221,65,8,221,
1,255,220,65,16,221,17,221,81,24,133,252,237,15,136,244,247,255,221,81,24,
15,140,244,247,255,217,201,248,1,255,15,183,70,252,254,255,15,131,244,248,
141,180,253,134,233,255,141,180,253,134,233,15,183,70,252,254,15,131,245,
255,15,130,244,248,141,180,253,134,233,255,248,3,102,15,46,193,252,233,244,
1,255,141,12,202,139,105,4,129,252,253,239,15,132,244,247,255,137,105,252,
252,139,41,137,105,252,248,252,233,245,255,141,180,253,134,233,139,1,137,
105,252,252,137,65,252,248,255,139,139,233,139,4,129,139,128,233,139,108,
36,48,137,147,233,137,171,233,252,255,224,255,141,180,253,134,233,139,6,15,
182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,254,0
2009-12-08 19:40:15 +00:00
};
enum {
GLOB_gate_lf,
GLOB_gate_lf_growstack,
GLOB_gate_lv,
GLOB_gate_lv_growstack,
GLOB_gate_cwrap,
GLOB_gate_c_growstack,
GLOB_vm_returnc,
GLOB_BC_RET_Z,
GLOB_vm_return,
GLOB_gate_c,
GLOB_vm_returnp,
GLOB_vm_leave_cp,
GLOB_vm_leave_unw,
GLOB_vm_unwind_c,
GLOB_vm_unwind_c_eh,
2009-12-08 19:40:15 +00:00
GLOB_vm_unwind_ff,
GLOB_vm_unwind_ff_eh,
2009-12-08 19:40:15 +00:00
GLOB_cont_dispatch,
GLOB_vm_resume,
GLOB_vm_pcall,
GLOB_vm_call,
GLOB_vmeta_call,
GLOB_vm_cpcall,
GLOB_cont_cat,
GLOB_cont_ra,
GLOB_BC_CAT_Z,
GLOB_vmeta_tgets,
GLOB_vmeta_tgetb,
GLOB_vmeta_tgetv,
GLOB_vmeta_tsets,
GLOB_vmeta_tsetb,
GLOB_vmeta_tsetv,
GLOB_cont_nop,
GLOB_vmeta_comp,
GLOB_vmeta_binop,
GLOB_cont_condt,
GLOB_cont_condf,
GLOB_vmeta_equal,
GLOB_vmeta_arith_vn,
GLOB_vmeta_arith_nv,
GLOB_vmeta_unm,
GLOB_vmeta_arith_vv,
GLOB_vmeta_len,
GLOB_BC_CALLT_Z,
GLOB_vmeta_for,
GLOB_ff_assert,
GLOB_fff_fallback,
GLOB_fff_res_,
GLOB_ff_type,
GLOB_fff_res1,
GLOB_ff_getmetatable,
GLOB_ff_setmetatable,
GLOB_ff_rawget,
GLOB_ff_tonumber,
GLOB_fff_resxmm0,
2009-12-08 19:40:15 +00:00
GLOB_fff_resn,
GLOB_ff_tostring,
GLOB_fff_gcstep,
GLOB_ff_next,
GLOB_fff_res2,
GLOB_fff_res,
GLOB_ff_pairs,
GLOB_ff_ipairs_aux,
GLOB_fff_res0,
GLOB_ff_ipairs,
GLOB_ff_pcall,
GLOB_ff_xpcall,
GLOB_ff_coroutine_resume,
GLOB_ff_coroutine_wrap_aux,
GLOB_ff_coroutine_yield,
GLOB_ff_math_abs,
GLOB_ff_math_sqrt,
2009-12-08 19:40:15 +00:00
GLOB_ff_math_floor,
GLOB_vm_floor,
GLOB_ff_math_ceil,
GLOB_vm_ceil,
GLOB_ff_math_log,
GLOB_ff_math_log10,
GLOB_ff_math_exp,
GLOB_vm_exp,
GLOB_ff_math_sin,
GLOB_ff_math_cos,
GLOB_ff_math_tan,
GLOB_ff_math_asin,
GLOB_ff_math_acos,
GLOB_ff_math_atan,
GLOB_ff_math_sinh,
GLOB_ff_math_cosh,
GLOB_ff_math_tanh,
GLOB_ff_math_deg,
GLOB_ff_math_rad,
GLOB_ff_math_atan2,
GLOB_ff_math_ldexp,
GLOB_ff_math_frexp,
GLOB_ff_math_modf,
GLOB_vm_trunc,
GLOB_ff_math_fmod,
GLOB_ff_math_pow,
GLOB_vm_pow,
GLOB_ff_math_min,
GLOB_ff_math_max,
GLOB_ff_string_len,
GLOB_ff_string_byte,
GLOB_ff_string_char,
GLOB_fff_newstr,
GLOB_ff_string_sub,
GLOB_fff_emptystr,
GLOB_ff_string_rep,
GLOB_fff_fallback_2,
GLOB_ff_string_reverse,
GLOB_fff_fallback_1,
GLOB_ff_string_lower,
GLOB_ff_string_upper,
GLOB_ff_table_getn,
GLOB_ff_bit_tobit,
GLOB_ff_bit_band,
GLOB_fff_resbit_op,
2009-12-08 19:40:15 +00:00
GLOB_fff_fallback_bit_op,
GLOB_ff_bit_bor,
GLOB_ff_bit_bxor,
GLOB_ff_bit_bswap,
GLOB_fff_resbit,
2009-12-08 19:40:15 +00:00
GLOB_ff_bit_bnot,
GLOB_ff_bit_lshift,
GLOB_ff_bit_rshift,
GLOB_ff_bit_arshift,
GLOB_ff_bit_rol,
GLOB_ff_bit_ror,
GLOB_vm_record,
GLOB_vm_hook,
GLOB_cont_hook,
2009-12-08 19:40:15 +00:00
GLOB_vm_hotloop,
GLOB_vm_hotcall,
GLOB_vm_exit_handler,
GLOB_vm_exit_interp,
GLOB_vm_floor_sse,
GLOB_vm_ceil_sse,
GLOB_vm_trunc_sse,
2009-12-08 19:40:15 +00:00
GLOB_vm_mod,
GLOB_vm_exp2,
GLOB_vm_exp2raw,
GLOB_vm_pow_sse,
GLOB_vm_powi_sse,
2009-12-08 19:40:15 +00:00
GLOB_vm_foldfpm,
GLOB_vm_foldarith,
GLOB_vm_cpuid,
GLOB_BC_MODVN_Z,
GLOB_BC_TGETS_Z,
GLOB_BC_TSETS_Z,
GLOB__MAX
};
static const char *const globnames[] = {
"gate_lf",
"gate_lf_growstack",
"gate_lv",
"gate_lv_growstack",
"gate_cwrap",
"gate_c_growstack",
"vm_returnc",
"BC_RET_Z",
"vm_return",
"gate_c",
"vm_returnp",
"vm_leave_cp",
"vm_leave_unw",
"vm_unwind_c@8",
"vm_unwind_c_eh",
"vm_unwind_ff@4",
"vm_unwind_ff_eh",
2009-12-08 19:40:15 +00:00
"cont_dispatch",
"vm_resume",
"vm_pcall",
"vm_call",
"vmeta_call",
"vm_cpcall",
"cont_cat",
"cont_ra",
"BC_CAT_Z",
"vmeta_tgets",
"vmeta_tgetb",
"vmeta_tgetv",
"vmeta_tsets",
"vmeta_tsetb",
"vmeta_tsetv",
"cont_nop",
"vmeta_comp",
"vmeta_binop",
"cont_condt",
"cont_condf",
"vmeta_equal",
"vmeta_arith_vn",
"vmeta_arith_nv",
"vmeta_unm",
"vmeta_arith_vv",
"vmeta_len",
"BC_CALLT_Z",
"vmeta_for",
"ff_assert",
"fff_fallback",
"fff_res_",
"ff_type",
"fff_res1",
"ff_getmetatable",
"ff_setmetatable",
"ff_rawget",
"ff_tonumber",
"fff_resxmm0",
2009-12-08 19:40:15 +00:00
"fff_resn",
"ff_tostring",
"fff_gcstep",
"ff_next",
"fff_res2",
"fff_res",
"ff_pairs",
"ff_ipairs_aux",
"fff_res0",
"ff_ipairs",
"ff_pcall",
"ff_xpcall",
"ff_coroutine_resume",
"ff_coroutine_wrap_aux",
"ff_coroutine_yield",
"ff_math_abs",
"ff_math_sqrt",
2009-12-08 19:40:15 +00:00
"ff_math_floor",
"vm_floor",
"ff_math_ceil",
"vm_ceil",
"ff_math_log",
"ff_math_log10",
"ff_math_exp",
"vm_exp",
"ff_math_sin",
"ff_math_cos",
"ff_math_tan",
"ff_math_asin",
"ff_math_acos",
"ff_math_atan",
"ff_math_sinh",
"ff_math_cosh",
"ff_math_tanh",
"ff_math_deg",
"ff_math_rad",
"ff_math_atan2",
"ff_math_ldexp",
"ff_math_frexp",
"ff_math_modf",
"vm_trunc",
"ff_math_fmod",
"ff_math_pow",
"vm_pow",
"ff_math_min",
"ff_math_max",
"ff_string_len",
"ff_string_byte",
"ff_string_char",
"fff_newstr",
"ff_string_sub",
"fff_emptystr",
"ff_string_rep",
"fff_fallback_2",
"ff_string_reverse",
"fff_fallback_1",
"ff_string_lower",
"ff_string_upper",
"ff_table_getn",
"ff_bit_tobit",
"ff_bit_band",
"fff_resbit_op",
2009-12-08 19:40:15 +00:00
"fff_fallback_bit_op",
"ff_bit_bor",
"ff_bit_bxor",
"ff_bit_bswap",
"fff_resbit",
2009-12-08 19:40:15 +00:00
"ff_bit_bnot",
"ff_bit_lshift",
"ff_bit_rshift",
"ff_bit_arshift",
"ff_bit_rol",
"ff_bit_ror",
"vm_record",
"vm_hook",
"cont_hook",
2009-12-08 19:40:15 +00:00
"vm_hotloop",
"vm_hotcall",
"vm_exit_handler",
"vm_exit_interp",
"vm_floor_sse",
"vm_ceil_sse",
"vm_trunc_sse",
2009-12-08 19:40:15 +00:00
"vm_mod",
"vm_exp2",
"vm_exp2raw",
"vm_pow_sse",
"vm_powi_sse",
2009-12-08 19:40:15 +00:00
"vm_foldfpm",
"vm_foldarith",
"vm_cpuid",
"BC_MODVN_Z",
"BC_TGETS_Z",
"BC_TSETS_Z",
(const char *)0
};
static const char *const extnames[] = {
"lj_state_growstack@8",
2009-12-08 19:40:15 +00:00
"lj_meta_tget",
"lj_meta_tset",
"lj_meta_comp",
"lj_meta_equal",
"lj_meta_arith",
"lj_meta_len@8",
2009-12-08 19:40:15 +00:00
"lj_meta_call",
"lj_meta_for@8",
2009-12-08 19:40:15 +00:00
"lj_tab_get",
"lj_str_fromnum@8",
"lj_tab_next",
"lj_tab_getinth@8",
"lj_ffh_coroutine_wrap_err@8",
2009-12-08 19:40:15 +00:00
"lj_wrapper_sinh",
"lj_wrapper_cosh",
"lj_wrapper_tanh",
"lj_str_new",
"lj_tab_len@4",
"lj_gc_step@4",
"lj_dispatch_ins@8",
"lj_trace_hot@8",
"lj_trace_exit@8",
2009-12-08 19:40:15 +00:00
"lj_meta_cat",
"lj_gc_barrieruv@8",
"lj_func_closeuv@8",
2009-12-08 19:40:15 +00:00
"lj_func_newL_gc",
"lj_tab_new",
"lj_gc_step_fixtop@4",
"lj_tab_dup@8",
"lj_tab_newkey",
"lj_tab_reasize",
(const char *)0
};
#define Dt1(_V) (int)(ptrdiff_t)&(((lua_State *)0)_V)
#define Dt2(_V) (int)(ptrdiff_t)&(((global_State *)0)_V)
#define Dt3(_V) (int)(ptrdiff_t)&(((TValue *)0)_V)
#define Dt4(_V) (int)(ptrdiff_t)&(((GCobj *)0)_V)
#define Dt5(_V) (int)(ptrdiff_t)&(((GCstr *)0)_V)
#define Dt6(_V) (int)(ptrdiff_t)&(((GCtab *)0)_V)
#define Dt7(_V) (int)(ptrdiff_t)&(((GCfuncL *)0)_V)
#define Dt8(_V) (int)(ptrdiff_t)&(((GCfuncC *)0)_V)
#define Dt9(_V) (int)(ptrdiff_t)&(((GCproto *)0)_V)
#define DtA(_V) (int)(ptrdiff_t)&(((GCupval *)0)_V)
#define DtB(_V) (int)(ptrdiff_t)&(((Node *)0)_V)
#define DtC(_V) (int)(ptrdiff_t)&(((int *)0)_V)
#define DtD(_V) (int)(ptrdiff_t)&(((Trace *)0)_V)
#define DtE(_V) (int)(ptrdiff_t)&(((ExitInfo *)0)_V)
#define DISPATCH_GL(field) (GG_DISP2G + (int)offsetof(global_State, field))
#define DISPATCH_J(field) (GG_DISP2J + (int)offsetof(jit_State, field))
#define PC2PROTO(field) ((int)offsetof(GCproto, field)-(int)sizeof(GCproto))
2009-12-08 19:40:15 +00:00
/* Generate subroutines used by opcodes and other parts of the VM. */
/* The .code_sub section should be last to help static branch prediction. */
static void build_subroutines(BuildCtx *ctx, int cmov, int sse)
2009-12-08 19:40:15 +00:00
{
dasm_put(Dst, 0);
dasm_put(Dst, 2, Dt7(->pc), PC2PROTO(framesize), PC2PROTO(k), Dt1(->maxstack), PC2PROTO(numparams));
2009-12-08 19:40:15 +00:00
#if LJ_HASJIT
#endif
dasm_put(Dst, 47, LJ_TNIL, FRAME_VARG, -FRAME_VARG, Dt7(->pc), PC2PROTO(framesize), Dt1(->maxstack), PC2PROTO(numparams));
dasm_put(Dst, 156, LJ_TNIL, PC2PROTO(k));
#if LJ_HASJIT
#endif
dasm_put(Dst, 191, LJ_TNIL, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->top), Dt1(->maxstack), DISPATCH_GL(vmstate), ~LJ_VMST_C, DISPATCH_GL(wrapf), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base));
dasm_put(Dst, 287, Dt1(->top), FRAME_TYPE, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->top), Dt1(->maxstack), DISPATCH_GL(vmstate), ~LJ_VMST_C, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base));
dasm_put(Dst, 369, Dt1(->top), FRAME_TYPE, FRAME_C, DISPATCH_GL(vmstate), ~LJ_VMST_C, Dt1(->base));
dasm_put(Dst, 474, Dt1(->top), Dt1(->cframe), Dt1(->maxstack), LJ_TNIL);
dasm_put(Dst, 558, Dt1(->top), Dt1(->top), Dt1(->glref), Dt2(->vmstate), ~LJ_VMST_C, CFRAME_RAWMASK, 1+1, Dt1(->base), Dt1(->glref), GG_G2DISP, LJ_TFALSE, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP);
dasm_put(Dst, 651, FRAME_P, LJ_TTRUE, LUA_MINSTACK, PC2PROTO(framesize), Dt1(->base), Dt1(->top), Dt1(->base));
dasm_put(Dst, 741, Dt1(->top), Dt7(->gate), 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);
dasm_put(Dst, 861, FRAME_CP, FRAME_C, Dt1(->cframe), Dt1(->cframe), Dt1(->glref), GG_G2DISP, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top), LJ_TFUNC, Dt7(->gate));
dasm_put(Dst, 964, Dt1(->stack), Dt1(->top), Dt1(->cframe), Dt1(->cframe), FRAME_CP, LJ_TNIL, Dt7(->pc), PC2PROTO(k), LJ_TSTR);
dasm_put(Dst, 1153, BC_GGET, DISPATCH_GL(tmptv), LJ_TTAB);
if (sse) {
dasm_put(Dst, 1189);
} else {
dasm_put(Dst, 1202);
}
dasm_put(Dst, 1215, Dt1(->base), Dt1(->base), Dt1(->top), FRAME_CONT, Dt7(->gate), LJ_TSTR, BC_GSET, DISPATCH_GL(tmptv));
dasm_put(Dst, 1373, LJ_TTAB);
if (sse) {
dasm_put(Dst, 1189);
} else {
dasm_put(Dst, 1202);
}
dasm_put(Dst, 1393, Dt1(->base), Dt1(->base), Dt1(->top), FRAME_CONT, Dt7(->gate), Dt1(->base), Dt1(->base));
dasm_put(Dst, 1600, -BCBIAS_J*4, LJ_TISTRUECOND, LJ_TISTRUECOND, Dt1(->base));
dasm_put(Dst, 1711, Dt1(->base), Dt1(->base), FRAME_CONT, LJ_TFUNC);
dasm_put(Dst, 1840, Dt7(->gate), Dt1(->base), Dt1(->base), Dt1(->base), Dt1(->base), Dt7(->gate), Dt1(->base), Dt1(->base), GG_DISP_STATIC*4, 1+1);
dasm_put(Dst, 2000, LJ_TISTRUECOND, 1+1, ~LJ_TNUMX);
2009-12-08 19:40:15 +00:00
if (cmov) {
dasm_put(Dst, 2096);
} else {
dasm_put(Dst, 2100);
}
dasm_put(Dst, 2109, ((char *)(&((GCfuncC *)0)->upvalue)), LJ_TSTR, 1+1, LJ_TTAB, Dt6(->metatable), LJ_TNIL, DISPATCH_GL(mmname)+4*MM_metatable, LJ_TTAB, Dt6(->hmask));
dasm_put(Dst, 2197, Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), DtB(->next), LJ_TNIL);
dasm_put(Dst, 2252, LJ_TUDATA, LJ_TISNUM, LJ_TNUMX, DISPATCH_GL(gcroot[GCROOT_BASEMT]), 2+1, LJ_TTAB);
dasm_put(Dst, 2324, 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));
dasm_put(Dst, 2389, 2+1, LJ_TTAB, 1+1, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 2480);
} else {
dasm_put(Dst, 2490);
}
dasm_put(Dst, 2497, 1+1, LJ_TSTR, LJ_TSTR, LJ_TISNUM, DISPATCH_GL(gcroot[GCROOT_BASEMT_NUM]), DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold));
dasm_put(Dst, 2559, Dt1(->base), Dt1(->base), 1+1, LJ_TTAB, Dt1(->base));
dasm_put(Dst, 2649, Dt1(->base), 1+2, LJ_TNIL, LJ_TNIL, 1+1, LJ_TTAB);
dasm_put(Dst, 2755, Dt8(->upvalue[0]), LJ_TFUNC, LJ_TNIL, 1+3, 1+1, LJ_TTAB, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 2810);
} else {
dasm_put(Dst, 2849);
}
dasm_put(Dst, 2867, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->hmask), 1+0);
dasm_put(Dst, 2953, 1+1, LJ_TTAB, Dt8(->upvalue[0]), LJ_TFUNC);
if (sse) {
dasm_put(Dst, 2983);
} else {
dasm_put(Dst, 2993);
}
dasm_put(Dst, 3000, 1+3, 1+1, 8+FRAME_PCALL, DISPATCH_GL(hookmask), HOOK_ACTIVE, LJ_TFUNC, Dt7(->gate));
dasm_put(Dst, 3073, 2+1, LJ_TFUNC, LJ_TFUNC, 2*8+FRAME_PCALL, 2*8, 1+1, LJ_TTHREAD);
dasm_put(Dst, 3171, Dt1(->cframe), Dt1(->status), LUA_YIELD, Dt1(->top), Dt1(->base), Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top));
dasm_put(Dst, 3236, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top));
dasm_put(Dst, 3340, Dt1(->maxstack), LJ_TTRUE, FRAME_TYPE, LJ_TFALSE, Dt1(->top), Dt1(->top), 1+2);
dasm_put(Dst, 3459, Dt1(->top), Dt1(->base), Dt8(->upvalue[0].gcr), Dt1(->cframe), Dt1(->status), LUA_YIELD, Dt1(->top), Dt1(->base));
dasm_put(Dst, 3539, Dt1(->maxstack), Dt1(->top), Dt1(->base), Dt1(->top), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base));
dasm_put(Dst, 3647, LUA_YIELD, Dt1(->base), Dt1(->top), Dt1(->top), Dt1(->maxstack), FRAME_TYPE);
dasm_put(Dst, 3743, Dt1(->top), Dt1(->base), Dt1(->cframe), CFRAME_RESUME, Dt1(->base), Dt1(->top), Dt1(->cframe), LUA_YIELD, Dt1(->status));
if (sse) {
dasm_put(Dst, 3829, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 3890, 1+1, LJ_TISNUM);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 3922, 1+1, FRAME_TYPE, LJ_TNIL);
if (sse) {
dasm_put(Dst, 4003, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM);
dasm_put(Dst, 4065, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 4095, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM);
dasm_put(Dst, 4154, 1+1, LJ_TISNUM);
}
dasm_put(Dst, 4181, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1);
dasm_put(Dst, 4250, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1);
dasm_put(Dst, 4307, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1);
dasm_put(Dst, 4370, LJ_TISNUM, 1+1, LJ_TISNUM, 1+1, LJ_TISNUM);
dasm_put(Dst, 4460);
if (sse) {
dasm_put(Dst, 4472, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 4503, 1+1, LJ_TISNUM);
}
dasm_put(Dst, 4528);
if (sse) {
dasm_put(Dst, 4550, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 4581, 1+1, LJ_TISNUM);
}
dasm_put(Dst, 4606);
if (sse) {
dasm_put(Dst, 4628, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 4659, 1+1, LJ_TISNUM);
}
dasm_put(Dst, 4684);
if (sse) {
dasm_put(Dst, 4708, 1+1, LJ_TISNUM, Dt8(->upvalue[0]));
} else {
dasm_put(Dst, 4743, 1+1, LJ_TISNUM, Dt8(->upvalue[0]));
}
dasm_put(Dst, 4772, 2+1, LJ_TISNUM, LJ_TISNUM, 2+1, LJ_TISNUM, LJ_TISNUM);
dasm_put(Dst, 4837, 1+1, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 4932);
} else {
dasm_put(Dst, 4938);
}
dasm_put(Dst, 4947);
if (sse) {
dasm_put(Dst, 4972);
} else {
dasm_put(Dst, 4978);
}
dasm_put(Dst, 4981, 1+2);
if (sse) {
dasm_put(Dst, 4990);
} else {
dasm_put(Dst, 4998);
}
dasm_put(Dst, 471);
if (sse) {
dasm_put(Dst, 5006);
} else {
dasm_put(Dst, 5038);
}
dasm_put(Dst, 5057);
if (sse) {
dasm_put(Dst, 5073, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 5098, 1+1, LJ_TISNUM);
}
dasm_put(Dst, 5120);
if (sse) {
dasm_put(Dst, 5138);
} else {
dasm_put(Dst, 5164);
}
dasm_put(Dst, 5181, 1+2);
if (sse) {
dasm_put(Dst, 5221);
} else {
dasm_put(Dst, 5229);
}
dasm_put(Dst, 5239, 2+1, LJ_TISNUM, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 5291, 1+1, LJ_TISNUM, LJ_TISNUM);
} else {
dasm_put(Dst, 5338, 2+1, LJ_TISNUM, LJ_TISNUM);
}
if (sse) {
dasm_put(Dst, 5379, 1+1, LJ_TISNUM, LJ_TISNUM);
} else {
dasm_put(Dst, 5450, 1+1, LJ_TISNUM, LJ_TISNUM);
2009-12-08 19:40:15 +00:00
if (cmov) {
dasm_put(Dst, 5503);
} else {
dasm_put(Dst, 5511);
}
dasm_put(Dst, 5442);
2009-12-08 19:40:15 +00:00
}
if (sse) {
dasm_put(Dst, 5532, 1+1, LJ_TISNUM, LJ_TISNUM);
} else {
dasm_put(Dst, 5603, 1+1, LJ_TISNUM, LJ_TISNUM);
2009-12-08 19:40:15 +00:00
if (cmov) {
dasm_put(Dst, 5656);
} else {
dasm_put(Dst, 5664);
}
dasm_put(Dst, 5442);
}
if (!sse) {
dasm_put(Dst, 5685);
}
dasm_put(Dst, 5694, 1+1, LJ_TSTR);
if (sse) {
dasm_put(Dst, 5716, Dt5(->len));
} else {
dasm_put(Dst, 5727, Dt5(->len));
}
dasm_put(Dst, 5735, 1+1, LJ_TSTR, Dt5(->len), Dt5([1]));
if (sse) {
dasm_put(Dst, 5769);
} else {
dasm_put(Dst, 5779);
}
dasm_put(Dst, 5792, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+1, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 5827);
} else {
dasm_put(Dst, 5847);
}
dasm_put(Dst, 5867, Dt1(->base), Dt1(->base), LJ_TSTR, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), 1+2, LJ_TISNUM);
dasm_put(Dst, 2475);
if (sse) {
dasm_put(Dst, 5978);
} else {
dasm_put(Dst, 5989);
}
dasm_put(Dst, 5997, LJ_TSTR, LJ_TISNUM, Dt5(->len));
if (sse) {
dasm_put(Dst, 6027);
} else {
dasm_put(Dst, 6034);
}
dasm_put(Dst, 6046, sizeof(GCstr)-1);
dasm_put(Dst, 6121, 2+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold));
dasm_put(Dst, 6180, LJ_TSTR, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 6205);
} else {
dasm_put(Dst, 6212);
}
dasm_put(Dst, 6224, Dt5(->len), DISPATCH_GL(tmpbuf.sz), Dt5([1]), DISPATCH_GL(tmpbuf.buf), DISPATCH_GL(tmpbuf.buf), 1+1);
dasm_put(Dst, 6289, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf));
dasm_put(Dst, 6356, 1+1, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz));
dasm_put(Dst, 6431, sizeof(GCstr), DISPATCH_GL(tmpbuf.buf), 1+1);
dasm_put(Dst, 6516, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), LJ_TSTR, Dt5(->len), DISPATCH_GL(tmpbuf.sz), sizeof(GCstr), DISPATCH_GL(tmpbuf.buf));
dasm_put(Dst, 6590, 1+1, LJ_TTAB);
if (sse) {
dasm_put(Dst, 6666);
} else {
dasm_put(Dst, 6676);
}
if (sse) {
dasm_put(Dst, 6687, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 6744, 1+1, LJ_TISNUM);
}
if (sse) {
dasm_put(Dst, 6788, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 6836, 1+1, LJ_TISNUM);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 6876);
if (sse) {
dasm_put(Dst, 6886);
}
dasm_put(Dst, 6891, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 6909);
} else {
dasm_put(Dst, 6926);
}
dasm_put(Dst, 6939);
if (sse) {
dasm_put(Dst, 6947, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 6995, 1+1, LJ_TISNUM);
}
dasm_put(Dst, 6876);
if (sse) {
dasm_put(Dst, 6886);
}
dasm_put(Dst, 6891, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 7035);
} else {
dasm_put(Dst, 7052);
}
dasm_put(Dst, 6939);
if (sse) {
dasm_put(Dst, 7065, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 7113, 1+1, LJ_TISNUM);
}
dasm_put(Dst, 6876);
if (sse) {
dasm_put(Dst, 6886);
}
dasm_put(Dst, 6891, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 7153);
} else {
dasm_put(Dst, 7170);
}
dasm_put(Dst, 6939);
if (sse) {
dasm_put(Dst, 7183, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 7231, 1+1, LJ_TISNUM);
}
dasm_put(Dst, 7271);
if (sse) {
dasm_put(Dst, 7278, 1+1, LJ_TISNUM);
} else {
dasm_put(Dst, 7326, 1+1, LJ_TISNUM);
}
dasm_put(Dst, 7366);
if (sse) {
dasm_put(Dst, 7370);
} else {
dasm_put(Dst, 7397);
}
dasm_put(Dst, 7412);
if (sse) {
dasm_put(Dst, 6661);
}
dasm_put(Dst, 7415);
if (sse) {
dasm_put(Dst, 7424, 1+1, LJ_TISNUM, LJ_TISNUM);
} else {
dasm_put(Dst, 7498, 2+1, LJ_TISNUM, LJ_TISNUM);
}
dasm_put(Dst, 7564);
if (sse) {
dasm_put(Dst, 7573, 1+1, LJ_TISNUM, LJ_TISNUM);
} else {
dasm_put(Dst, 7647, 2+1, LJ_TISNUM, LJ_TISNUM);
}
dasm_put(Dst, 7713);
if (sse) {
dasm_put(Dst, 7723, 1+1, LJ_TISNUM, LJ_TISNUM);
} else {
dasm_put(Dst, 7797, 2+1, LJ_TISNUM, LJ_TISNUM);
}
dasm_put(Dst, 7863);
if (sse) {
dasm_put(Dst, 7873, 1+1, LJ_TISNUM, LJ_TISNUM);
} else {
dasm_put(Dst, 7947, 2+1, LJ_TISNUM, LJ_TISNUM);
}
dasm_put(Dst, 8013);
if (sse) {
dasm_put(Dst, 8022, 1+1, LJ_TISNUM, LJ_TISNUM);
} else {
dasm_put(Dst, 8096, 2+1, LJ_TISNUM, LJ_TISNUM);
}
dasm_put(Dst, 8162, 1+2, 1+1, Dt1(->base), 8*LUA_MINSTACK, Dt1(->top), Dt1(->maxstack), Dt8(->f), Dt1(->base));
dasm_put(Dst, 8246, Dt1(->top), Dt7(->gate), LJ_TFUNC, Dt7(->gate), Dt1(->base), LUA_MINSTACK, Dt1(->base), Dt1(->top));
dasm_put(Dst, 8365, Dt1(->base), Dt1(->top));
2009-12-08 19:40:15 +00:00
#if LJ_HASJIT
dasm_put(Dst, 8406, DISPATCH_GL(hookmask), HOOK_VMEVENT, HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount));
2009-12-08 19:40:15 +00:00
#endif
dasm_put(Dst, 8437, DISPATCH_GL(hookmask), HOOK_ACTIVE, LUA_MASKLINE|LUA_MASKCOUNT, DISPATCH_GL(hookcount), LUA_MASKLINE, Dt1(->base), Dt1(->base));
dasm_put(Dst, 8503, GG_DISP_STATIC*4);
2009-12-08 19:40:15 +00:00
#if LJ_HASJIT
dasm_put(Dst, 8538, Dt1(->base), GG_DISP2J, DISPATCH_J(L));
2009-12-08 19:40:15 +00:00
#endif
dasm_put(Dst, 8567);
2009-12-08 19:40:15 +00:00
#if LJ_HASJIT
dasm_put(Dst, 8570, Dt1(->base), GG_DISP2J, DISPATCH_J(L), Dt1(->base));
2009-12-08 19:40:15 +00:00
#endif
dasm_put(Dst, 8616);
2009-12-08 19:40:15 +00:00
#if LJ_HASJIT
dasm_put(Dst, 8619, DISPATCH_GL(vmstate), DISPATCH_GL(vmstate), ~LJ_VMST_EXIT, DISPATCH_J(exitno), DISPATCH_J(parent), 8*8+16, DISPATCH_J(flags), JIT_F_SSE2, DISPATCH_GL(jit_L), DISPATCH_GL(jit_base), DISPATCH_J(L), Dt1(->base), GG_DISP2J, Dt1(->base));
2009-12-08 19:40:15 +00:00
#endif
dasm_put(Dst, 8762);
2009-12-08 19:40:15 +00:00
#if LJ_HASJIT
dasm_put(Dst, 8765, Dt7(->pc), PC2PROTO(k), DISPATCH_GL(jit_L), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP);
2009-12-08 19:40:15 +00:00
#endif
dasm_put(Dst, 8805);
if (!sse) {
dasm_put(Dst, 8808);
}
dasm_put(Dst, 8853);
if (!sse) {
dasm_put(Dst, 8955);
}
dasm_put(Dst, 9000);
if (!sse) {
dasm_put(Dst, 9102);
}
dasm_put(Dst, 9141);
if (sse) {
dasm_put(Dst, 9246);
} else {
dasm_put(Dst, 9376);
2009-12-16 21:31:15 +00:00
}
dasm_put(Dst, 9423);
if (!sse) {
dasm_put(Dst, 9497);
2009-12-08 19:40:15 +00:00
if (cmov) {
dasm_put(Dst, 9508);
} else {
dasm_put(Dst, 9512);
}
dasm_put(Dst, 9519);
dasm_put(Dst, 9593);
dasm_put(Dst, 9693);
2009-12-08 19:40:15 +00:00
if (cmov) {
dasm_put(Dst, 9696);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 9700);
}
dasm_put(Dst, 9707);
2009-12-08 19:40:15 +00:00
if (cmov) {
dasm_put(Dst, 9508);
} else {
dasm_put(Dst, 9512);
}
dasm_put(Dst, 9725);
} else {
dasm_put(Dst, 9804);
}
dasm_put(Dst, 9807);
dasm_put(Dst, 9892);
dasm_put(Dst, 10023);
dasm_put(Dst, 10222);
if (sse) {
dasm_put(Dst, 10245);
dasm_put(Dst, 10302);
dasm_put(Dst, 10393);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 10435);
dasm_put(Dst, 10527);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 10573);
if (sse) {
dasm_put(Dst, 10579);
dasm_put(Dst, 10684);
dasm_put(Dst, 10767);
} else {
dasm_put(Dst, 10839);
dasm_put(Dst, 10922);
if (cmov) {
dasm_put(Dst, 10977);
} else {
dasm_put(Dst, 10996);
}
dasm_put(Dst, 10835);
}
dasm_put(Dst, 11037);
2009-12-08 19:40:15 +00:00
}
/* Generate the code for a single instruction. */
static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2009-12-08 19:40:15 +00:00
{
int vk = 0;
dasm_put(Dst, 154, defop);
2009-12-08 19:40:15 +00:00
switch (op) {
/* -- Comparison ops ---------------------------------------------------- */
/* Remember: all ops branch for a true comparison, fall through otherwise. */
case BC_ISLT: case BC_ISGE: case BC_ISLE: case BC_ISGT:
dasm_put(Dst, 11091, LJ_TISNUM, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11112);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 11127);
if (cmov) {
dasm_put(Dst, 11137);
} else {
dasm_put(Dst, 11143);
}
2009-12-08 19:40:15 +00:00
}
switch (op) {
case BC_ISLT:
dasm_put(Dst, 11150);
2009-12-08 19:40:15 +00:00
break;
case BC_ISGE:
dasm_put(Dst, 10388);
2009-12-08 19:40:15 +00:00
break;
case BC_ISLE:
dasm_put(Dst, 6585);
2009-12-08 19:40:15 +00:00
break;
case BC_ISGT:
dasm_put(Dst, 11155);
2009-12-08 19:40:15 +00:00
break;
default: break; /* Shut up GCC. */
}
dasm_put(Dst, 11160, -BCBIAS_J*4);
2009-12-08 19:40:15 +00:00
break;
case BC_ISEQV: case BC_ISNEV:
vk = op == BC_ISEQV;
dasm_put(Dst, 11193, LJ_TISNUM, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11219);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 11231);
if (cmov) {
dasm_put(Dst, 11137);
} else {
dasm_put(Dst, 11143);
}
2009-12-08 19:40:15 +00:00
}
iseqne_fp:
if (vk) {
dasm_put(Dst, 11238);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 11247);
2009-12-08 19:40:15 +00:00
}
iseqne_end:
if (vk) {
dasm_put(Dst, 11256, -BCBIAS_J*4);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 11271, -BCBIAS_J*4);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
if (op == BC_ISEQV || op == BC_ISNEV) {
dasm_put(Dst, 11286, LJ_TISPRI, LJ_TISTABUD, Dt6(->metatable), Dt6(->nomm), 1<<MM_eq);
2009-12-08 19:40:15 +00:00
if (vk) {
dasm_put(Dst, 11344);
} else {
dasm_put(Dst, 11348);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 11354);
2009-12-08 19:40:15 +00:00
}
break;
case BC_ISEQS: case BC_ISNES:
vk = op == BC_ISEQS;
dasm_put(Dst, 11359, LJ_TSTR);
2009-12-08 19:40:15 +00:00
iseqne_test:
if (vk) {
dasm_put(Dst, 11242);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 10522);
2009-12-08 19:40:15 +00:00
}
goto iseqne_end;
case BC_ISEQN: case BC_ISNEN:
vk = op == BC_ISEQN;
dasm_put(Dst, 11382, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11396);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 11408);
if (cmov) {
dasm_put(Dst, 11137);
} else {
dasm_put(Dst, 11143);
}
2009-12-08 19:40:15 +00:00
}
goto iseqne_fp;
case BC_ISEQP: case BC_ISNEP:
vk = op == BC_ISEQP;
dasm_put(Dst, 11415);
2009-12-08 19:40:15 +00:00
goto iseqne_test;
/* -- Unary test and copy ops ------------------------------------------- */
case BC_ISTC: case BC_ISFC: case BC_IST: case BC_ISF:
dasm_put(Dst, 11426, LJ_TISTRUECOND);
2009-12-08 19:40:15 +00:00
if (op == BC_IST || op == BC_ISTC) {
dasm_put(Dst, 11438);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 11443);
2009-12-08 19:40:15 +00:00
}
if (op == BC_ISTC || op == BC_ISFC) {
dasm_put(Dst, 11448);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 11459, -BCBIAS_J*4);
2009-12-08 19:40:15 +00:00
break;
/* -- Unary ops --------------------------------------------------------- */
case BC_MOV:
dasm_put(Dst, 11490);
2009-12-08 19:40:15 +00:00
break;
case BC_NOT:
dasm_put(Dst, 11523, LJ_TISTRUECOND, LJ_TTRUE);
2009-12-08 19:40:15 +00:00
break;
case BC_UNM:
dasm_put(Dst, 11558, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11569);
} else {
dasm_put(Dst, 11599);
}
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
break;
case BC_LEN:
dasm_put(Dst, 11608, LJ_TSTR);
if (sse) {
dasm_put(Dst, 11622, Dt5(->len));
} else {
dasm_put(Dst, 11640, Dt5(->len));
}
dasm_put(Dst, 11649, LJ_TTAB);
if (sse) {
dasm_put(Dst, 11689);
} else {
dasm_put(Dst, 11698);
}
dasm_put(Dst, 11708);
2009-12-08 19:40:15 +00:00
break;
/* -- Binary ops -------------------------------------------------------- */
case BC_ADDVN: case BC_ADDNV: case BC_ADDVV:
dasm_put(Dst, 11718);
2009-12-08 19:40:15 +00:00
vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
switch (vk) {
case 0:
dasm_put(Dst, 11726, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11738);
} else {
dasm_put(Dst, 11752);
}
2009-12-08 19:40:15 +00:00
break;
case 1:
dasm_put(Dst, 11760, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11772);
} else {
dasm_put(Dst, 11786);
}
2009-12-08 19:40:15 +00:00
break;
default:
dasm_put(Dst, 11794, LJ_TISNUM, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11816);
} else {
dasm_put(Dst, 11830);
}
2009-12-08 19:40:15 +00:00
break;
}
if (sse) {
dasm_put(Dst, 11592);
} else {
dasm_put(Dst, 11604);
}
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
break;
case BC_SUBVN: case BC_SUBNV: case BC_SUBVV:
dasm_put(Dst, 11718);
2009-12-08 19:40:15 +00:00
vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
switch (vk) {
case 0:
dasm_put(Dst, 11726, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11838);
} else {
dasm_put(Dst, 11852);
}
2009-12-08 19:40:15 +00:00
break;
case 1:
dasm_put(Dst, 11760, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11860);
} else {
dasm_put(Dst, 11874);
}
2009-12-08 19:40:15 +00:00
break;
default:
dasm_put(Dst, 11794, LJ_TISNUM, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11882);
} else {
dasm_put(Dst, 11896);
}
2009-12-08 19:40:15 +00:00
break;
}
if (sse) {
dasm_put(Dst, 11592);
} else {
dasm_put(Dst, 11604);
}
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
break;
case BC_MULVN: case BC_MULNV: case BC_MULVV:
dasm_put(Dst, 11718);
2009-12-08 19:40:15 +00:00
vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
switch (vk) {
case 0:
dasm_put(Dst, 11726, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11904);
} else {
dasm_put(Dst, 11918);
}
2009-12-08 19:40:15 +00:00
break;
case 1:
dasm_put(Dst, 11760, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11926);
} else {
dasm_put(Dst, 11940);
}
2009-12-08 19:40:15 +00:00
break;
default:
dasm_put(Dst, 11794, LJ_TISNUM, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11948);
} else {
dasm_put(Dst, 11962);
}
2009-12-08 19:40:15 +00:00
break;
}
if (sse) {
dasm_put(Dst, 11592);
} else {
dasm_put(Dst, 11604);
}
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
break;
case BC_DIVVN: case BC_DIVNV: case BC_DIVVV:
dasm_put(Dst, 11718);
2009-12-08 19:40:15 +00:00
vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
switch (vk) {
case 0:
dasm_put(Dst, 11726, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11970);
} else {
dasm_put(Dst, 11984);
}
2009-12-08 19:40:15 +00:00
break;
case 1:
dasm_put(Dst, 11760, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 11992);
} else {
dasm_put(Dst, 12006);
}
2009-12-08 19:40:15 +00:00
break;
default:
dasm_put(Dst, 11794, LJ_TISNUM, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 12014);
} else {
dasm_put(Dst, 12028);
}
2009-12-08 19:40:15 +00:00
break;
}
if (sse) {
dasm_put(Dst, 11592);
} else {
dasm_put(Dst, 11604);
}
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
break;
case BC_MODVN:
dasm_put(Dst, 11718);
2009-12-08 19:40:15 +00:00
vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
switch (vk) {
case 0:
dasm_put(Dst, 11726, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 12036);
} else {
dasm_put(Dst, 12050);
}
2009-12-08 19:40:15 +00:00
break;
case 1:
dasm_put(Dst, 11760, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 12058);
} else {
dasm_put(Dst, 12072);
}
2009-12-08 19:40:15 +00:00
break;
default:
dasm_put(Dst, 11794, LJ_TISNUM, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 12080);
} else {
dasm_put(Dst, 12094);
}
2009-12-08 19:40:15 +00:00
break;
}
dasm_put(Dst, 12102);
if (sse) {
dasm_put(Dst, 11592);
} else {
dasm_put(Dst, 11604);
}
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
break;
case BC_MODNV: case BC_MODVV:
dasm_put(Dst, 11718);
2009-12-08 19:40:15 +00:00
vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
switch (vk) {
case 0:
dasm_put(Dst, 11726, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 12036);
} else {
dasm_put(Dst, 12050);
}
2009-12-08 19:40:15 +00:00
break;
case 1:
dasm_put(Dst, 11760, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 12058);
} else {
dasm_put(Dst, 12072);
}
2009-12-08 19:40:15 +00:00
break;
default:
dasm_put(Dst, 11794, LJ_TISNUM, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 12080);
} else {
dasm_put(Dst, 12094);
}
2009-12-08 19:40:15 +00:00
break;
}
dasm_put(Dst, 12108);
2009-12-08 19:40:15 +00:00
break;
case BC_POW:
dasm_put(Dst, 11718);
vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
switch (vk) {
case 0:
dasm_put(Dst, 11726, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 12036);
} else {
dasm_put(Dst, 12050);
}
break;
case 1:
dasm_put(Dst, 11760, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 12058);
} else {
dasm_put(Dst, 12072);
}
break;
default:
dasm_put(Dst, 11794, LJ_TISNUM, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 12080);
} else {
dasm_put(Dst, 12094);
}
break;
}
dasm_put(Dst, 12113);
if (sse) {
dasm_put(Dst, 11592);
} else {
dasm_put(Dst, 11604);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
break;
case BC_CAT:
dasm_put(Dst, 12117, Dt1(->base), Dt1(->base));
2009-12-08 19:40:15 +00:00
break;
/* -- Constant ops ------------------------------------------------------ */
case BC_KSTR:
dasm_put(Dst, 12211, LJ_TSTR);
2009-12-08 19:40:15 +00:00
break;
case BC_KSHORT:
if (sse) {
dasm_put(Dst, 12244);
} else {
dasm_put(Dst, 12259);
}
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
break;
case BC_KNUM:
if (sse) {
dasm_put(Dst, 12267);
} else {
dasm_put(Dst, 12280);
}
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
break;
case BC_KPRI:
dasm_put(Dst, 12287);
2009-12-08 19:40:15 +00:00
break;
case BC_KNIL:
dasm_put(Dst, 12313, LJ_TNIL);
2009-12-08 19:40:15 +00:00
break;
/* -- Upvalue and function ops ------------------------------------------ */
case BC_UGET:
dasm_put(Dst, 12359, offsetof(GCfuncL, uvptr), DtA(->v));
2009-12-08 19:40:15 +00:00
break;
case BC_USETV:
#define TV2MARKOFS \
((int32_t)offsetof(GCupval, marked)-(int32_t)offsetof(GCupval, tv))
dasm_put(Dst, 12403, 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);
dasm_put(Dst, 12493);
2009-12-08 19:40:15 +00:00
break;
#undef TV2MARKOFS
case BC_USETS:
dasm_put(Dst, 12505, offsetof(GCfuncL, uvptr), DtA(->v), LJ_TSTR, DtA(->marked), LJ_GC_BLACK, Dt4(->gch.marked), LJ_GC_WHITES, DtA(->closed), GG_DISP2G);
2009-12-08 19:40:15 +00:00
break;
case BC_USETN:
dasm_put(Dst, 12596);
if (sse) {
dasm_put(Dst, 12601);
} else {
dasm_put(Dst, 11411);
}
dasm_put(Dst, 12608, offsetof(GCfuncL, uvptr), DtA(->v));
if (sse) {
dasm_put(Dst, 4972);
} else {
dasm_put(Dst, 4978);
}
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
break;
case BC_USETP:
dasm_put(Dst, 12617, offsetof(GCfuncL, uvptr), DtA(->v));
2009-12-08 19:40:15 +00:00
break;
case BC_UCLO:
dasm_put(Dst, 12654, -BCBIAS_J*4, Dt1(->openupval), Dt1(->base), Dt1(->base));
2009-12-08 19:40:15 +00:00
break;
case BC_FNEW:
dasm_put(Dst, 12708, Dt1(->base), Dt1(->base), LJ_TFUNC);
2009-12-08 19:40:15 +00:00
break;
/* -- Table ops --------------------------------------------------------- */
case BC_TNEW:
dasm_put(Dst, 12779, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB);
2009-12-08 19:40:15 +00:00
break;
case BC_TDUP:
dasm_put(Dst, 12900, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB);
2009-12-08 19:40:15 +00:00
break;
case BC_GGET:
dasm_put(Dst, 12992, Dt7(->env));
2009-12-08 19:40:15 +00:00
break;
case BC_GSET:
dasm_put(Dst, 13010, Dt7(->env));
2009-12-08 19:40:15 +00:00
break;
case BC_TGETV:
dasm_put(Dst, 13028, LJ_TTAB, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 13061);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 13082);
if (cmov) {
dasm_put(Dst, 11137);
} else {
dasm_put(Dst, 11143);
}
dasm_put(Dst, 2863);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 13092, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
dasm_put(Dst, 13184, LJ_TSTR);
2009-12-08 19:40:15 +00:00
break;
case BC_TGETS:
dasm_put(Dst, 13202, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL);
dasm_put(Dst, 13286, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
2009-12-08 19:40:15 +00:00
break;
case BC_TGETB:
dasm_put(Dst, 13357, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
dasm_put(Dst, 11708);
2009-12-08 19:40:15 +00:00
break;
case BC_TSETV:
dasm_put(Dst, 13456, LJ_TTAB, LJ_TISNUM);
if (sse) {
dasm_put(Dst, 13061);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 13082);
if (cmov) {
dasm_put(Dst, 11137);
} else {
dasm_put(Dst, 11143);
}
dasm_put(Dst, 2863);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 13489, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable));
dasm_put(Dst, 13572, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
2009-12-08 19:40:15 +00:00
break;
case BC_TSETS:
dasm_put(Dst, 13634, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL);
dasm_put(Dst, 13709, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next));
dasm_put(Dst, 13801, 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));
2009-12-08 19:40:15 +00:00
break;
case BC_TSETB:
dasm_put(Dst, 13897, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable));
dasm_put(Dst, 13995, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
2009-12-08 19:40:15 +00:00
break;
case BC_TSETM:
dasm_put(Dst, 14041);
if (sse) {
dasm_put(Dst, 12601);
} else {
dasm_put(Dst, 14046);
}
dasm_put(Dst, 14054, Dt6(->marked), LJ_GC_BLACK);
if (sse) {
dasm_put(Dst, 14079);
} else {
dasm_put(Dst, 14086);
}
dasm_put(Dst, 14091, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base), Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain));
dasm_put(Dst, 14219, Dt6(->gclist));
2009-12-08 19:40:15 +00:00
break;
/* -- Calls and vararg handling ----------------------------------------- */
case BC_CALL: case BC_CALLM:
dasm_put(Dst, 11722);
2009-12-08 19:40:15 +00:00
if (op == BC_CALLM) {
dasm_put(Dst, 14227);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 14232, LJ_TFUNC, Dt7(->gate));
2009-12-08 19:40:15 +00:00
break;
case BC_CALLMT:
dasm_put(Dst, 14227);
2009-12-08 19:40:15 +00:00
break;
case BC_CALLT:
dasm_put(Dst, 14255, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->gate));
dasm_put(Dst, 14360, FRAME_TYPE, Dt7(->pc), PC2PROTO(k));
2009-12-08 19:40:15 +00:00
break;
case BC_ITERC:
dasm_put(Dst, 14417, LJ_TFUNC, Dt7(->gate));
2009-12-08 19:40:15 +00:00
break;
case BC_VARG:
dasm_put(Dst, 14479, Dt7(->pc), PC2PROTO(numparams), (8+FRAME_VARG), LJ_TNIL);
dasm_put(Dst, 14623, Dt1(->maxstack), Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top));
2009-12-08 19:40:15 +00:00
break;
/* -- Returns ----------------------------------------------------------- */
case BC_RETM:
dasm_put(Dst, 14227);
2009-12-08 19:40:15 +00:00
break;
case BC_RET: case BC_RET0: case BC_RET1:
if (op != BC_RET0) {
dasm_put(Dst, 14722);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 14726, FRAME_TYPE);
2009-12-08 19:40:15 +00:00
switch (op) {
case BC_RET:
dasm_put(Dst, 14745);
2009-12-08 19:40:15 +00:00
break;
case BC_RET1:
dasm_put(Dst, 14803);
2009-12-08 19:40:15 +00:00
/* fallthrough */
case BC_RET0:
dasm_put(Dst, 14819);
2009-12-08 19:40:15 +00:00
default:
break;
}
dasm_put(Dst, 14830, Dt7(->pc), PC2PROTO(k));
2009-12-08 19:40:15 +00:00
if (op == BC_RET) {
dasm_put(Dst, 14872, LJ_TNIL);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 14881, LJ_TNIL);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 14888);
2009-12-08 19:40:15 +00:00
if (op != BC_RET0) {
dasm_put(Dst, 14909);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 5068);
2009-12-08 19:40:15 +00:00
break;
/* -- Loops and branches ------------------------------------------------ */
case BC_FORL:
#if LJ_HASJIT
dasm_put(Dst, 14913, HOTCOUNT_PCMASK, GG_DISP2HOT);
2009-12-08 19:40:15 +00:00
#endif
break;
case BC_JFORI:
case BC_JFORL:
#if !LJ_HASJIT
break;
#endif
case BC_FORI:
case BC_IFORL:
vk = (op == BC_IFORL || op == BC_JFORL);
dasm_put(Dst, 14934);
2009-12-08 19:40:15 +00:00
if (!vk) {
dasm_put(Dst, 14938, LJ_TISNUM, LJ_TISNUM);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 14957);
2009-12-08 19:40:15 +00:00
if (!vk) {
dasm_put(Dst, 14961, LJ_TISNUM);
2009-12-08 19:40:15 +00:00
}
if (sse) {
dasm_put(Dst, 14970);
if (vk) {
dasm_put(Dst, 14982);
} else {
dasm_put(Dst, 15001);
}
dasm_put(Dst, 15006);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 15019);
if (vk) {
dasm_put(Dst, 15025);
} else {
dasm_put(Dst, 15041);
}
dasm_put(Dst, 15049);
if (cmov) {
dasm_put(Dst, 11137);
} else {
dasm_put(Dst, 11143);
}
if (!cmov) {
dasm_put(Dst, 15054);
}
2009-12-08 19:40:15 +00:00
}
if (op == BC_FORI) {
dasm_put(Dst, 15060, -BCBIAS_J*4);
2009-12-08 19:40:15 +00:00
} else if (op == BC_JFORI) {
dasm_put(Dst, 15070, -BCBIAS_J*4, BC_JLOOP);
2009-12-08 19:40:15 +00:00
} else if (op == BC_IFORL) {
dasm_put(Dst, 15084, -BCBIAS_J*4);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 15080, BC_JLOOP);
}
dasm_put(Dst, 11172);
if (sse) {
dasm_put(Dst, 15094);
2009-12-08 19:40:15 +00:00
}
break;
case BC_ITERL:
#if LJ_HASJIT
dasm_put(Dst, 14913, HOTCOUNT_PCMASK, GG_DISP2HOT);
2009-12-08 19:40:15 +00:00
#endif
break;
case BC_JITERL:
#if !LJ_HASJIT
break;
#endif
case BC_IITERL:
dasm_put(Dst, 15105, LJ_TNIL);
2009-12-08 19:40:15 +00:00
if (op == BC_JITERL) {
dasm_put(Dst, 15120, BC_JLOOP);
2009-12-08 19:40:15 +00:00
} else {
dasm_put(Dst, 15134, -BCBIAS_J*4);
2009-12-08 19:40:15 +00:00
}
dasm_put(Dst, 11469);
2009-12-08 19:40:15 +00:00
break;
case BC_LOOP:
#if LJ_HASJIT
dasm_put(Dst, 14913, HOTCOUNT_PCMASK, GG_DISP2HOT);
2009-12-08 19:40:15 +00:00
#endif
break;
case BC_ILOOP:
dasm_put(Dst, 8597);
2009-12-08 19:40:15 +00:00
break;
case BC_JLOOP:
#if LJ_HASJIT
dasm_put(Dst, 15150, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L));
2009-12-08 19:40:15 +00:00
#endif
break;
case BC_JMP:
dasm_put(Dst, 15173, -BCBIAS_J*4);
2009-12-08 19:40:15 +00:00
break;
/* ---------------------------------------------------------------------- */
default:
fprintf(stderr, "Error: undefined opcode BC_%s\n", bc_names[op]);
exit(2);
break;
}
}
static int build_backend(BuildCtx *ctx)
{
int op;
int cmov = 1;
int sse = 0;
2009-12-08 19:40:15 +00:00
#ifdef LUAJIT_CPU_NOCMOV
cmov = 0;
#endif
#if defined(LUAJIT_CPU_SSE2) || defined(LJ_TARGET_X64)
sse = 1;
#endif
2009-12-08 19:40:15 +00:00
dasm_growpc(Dst, BC__MAX);
build_subroutines(ctx, cmov, sse);
2009-12-08 19:40:15 +00:00
dasm_put(Dst, 15197);
2009-12-08 19:40:15 +00:00
for (op = 0; op < BC__MAX; op++)
build_ins(ctx, (BCOp)op, op, cmov, sse);
2009-12-08 19:40:15 +00:00
return BC__MAX;
}
/* Emit pseudo frame-info for all assembler functions. */
static void emit_asm_debug(BuildCtx *ctx)
{
#if LJ_64
#define SZPTR "8"
#define BSZPTR "3"
#define REG_SP "0x7"
#define REG_RA "0x10"
#else
#define SZPTR "4"
#define BSZPTR "2"
#define REG_SP "0x4"
#define REG_RA "0x8"
#endif
2009-12-08 19:40:15 +00:00
switch (ctx->mode) {
case BUILD_elfasm:
fprintf(ctx->fp, "\t.section .debug_frame,\"\",@progbits\n");
fprintf(ctx->fp,
".Lframe0:\n"
"\t.long .LECIE0-.LSCIE0\n"
".LSCIE0:\n"
"\t.long 0xffffffff\n"
"\t.byte 0x1\n"
"\t.string \"\"\n"
"\t.uleb128 0x1\n"
"\t.sleb128 -" SZPTR "\n"
"\t.byte " REG_RA "\n"
"\t.byte 0xc\n\t.uleb128 " REG_SP "\n\t.uleb128 " SZPTR "\n"
"\t.byte 0x80+" REG_RA "\n\t.uleb128 0x1\n"
"\t.align " SZPTR "\n"
2009-12-08 19:40:15 +00:00
".LECIE0:\n\n");
fprintf(ctx->fp,
".LSFDE0:\n"
"\t.long .LEFDE0-.LASFDE0\n"
".LASFDE0:\n"
"\t.long .Lframe0\n"
"\t.long .Lbegin\n"
"\t.long %d\n"
"\t.byte 0xe\n\t.uleb128 %d\n" /* def_cfa_offset */
#if LJ_64
"\t.byte 0x86\n\t.uleb128 0x2\n" /* offset rbp */
"\t.byte 0x83\n\t.uleb128 0x3\n" /* offset rbx */
"\t.byte 0x8f\n\t.uleb128 0x4\n" /* offset r15 */
"\t.byte 0x8e\n\t.uleb128 0x5\n" /* offset r14 */
#else
2009-12-08 19:40:15 +00:00
"\t.byte 0x85\n\t.uleb128 0x2\n" /* offset ebp */
"\t.byte 0x87\n\t.uleb128 0x3\n" /* offset edi */
"\t.byte 0x86\n\t.uleb128 0x4\n" /* offset esi */
"\t.byte 0x83\n\t.uleb128 0x5\n" /* offset ebx */
#endif
"\t.align " SZPTR "\n"
".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE);
2009-12-08 19:40:15 +00:00
fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n");
fprintf(ctx->fp,
".Lframe1:\n"
"\t.long .LECIE1-.LSCIE1\n"
".LSCIE1:\n"
"\t.long 0\n"
"\t.byte 0x1\n"
"\t.string \"zPR\"\n"
"\t.uleb128 0x1\n"
"\t.sleb128 -" SZPTR "\n"
"\t.byte " REG_RA "\n"
2009-12-08 19:40:15 +00:00
"\t.uleb128 6\n" /* augmentation length */
"\t.byte 0x1b\n" /* pcrel|sdata4 */
"\t.long lj_err_unwind_dwarf-.\n"
"\t.byte 0x1b\n" /* pcrel|sdata4 */
"\t.byte 0xc\n\t.uleb128 " REG_SP "\n\t.uleb128 " SZPTR "\n"
"\t.byte 0x80+" REG_RA "\n\t.uleb128 0x1\n"
"\t.align " SZPTR "\n"
2009-12-08 19:40:15 +00:00
".LECIE1:\n\n");
fprintf(ctx->fp,
".LSFDE1:\n"
"\t.long .LEFDE1-.LASFDE1\n"
".LASFDE1:\n"
"\t.long .LASFDE1-.Lframe1\n"
"\t.long .Lbegin-.\n"
"\t.long %d\n"
"\t.uleb128 0\n" /* augmentation length */
"\t.byte 0xe\n\t.uleb128 %d\n" /* def_cfa_offset */
#if LJ_64
"\t.byte 0x86\n\t.uleb128 0x2\n" /* offset rbp */
"\t.byte 0x83\n\t.uleb128 0x3\n" /* offset rbx */
"\t.byte 0x8f\n\t.uleb128 0x4\n" /* offset r15 */
"\t.byte 0x8e\n\t.uleb128 0x5\n" /* offset r14 */
#else
2009-12-08 19:40:15 +00:00
"\t.byte 0x85\n\t.uleb128 0x2\n" /* offset ebp */
"\t.byte 0x87\n\t.uleb128 0x3\n" /* offset edi */
"\t.byte 0x86\n\t.uleb128 0x4\n" /* offset esi */
"\t.byte 0x83\n\t.uleb128 0x5\n" /* offset ebx */
#endif
"\t.align " SZPTR "\n"
".LEFDE1:\n\n", (int)ctx->codesz, CFRAME_SIZE);
2009-12-08 19:40:15 +00:00
break;
case BUILD_coffasm:
fprintf(ctx->fp, "\t.section .eh_frame,\"dr\"\n");
fprintf(ctx->fp,
"\t.def %slj_err_unwind_dwarf; .scl 2; .type 32; .endef\n",
LJ_32 ? "_" : "");
fprintf(ctx->fp,
"Lframe1:\n"
"\t.long LECIE1-LSCIE1\n"
"LSCIE1:\n"
"\t.long 0\n"
"\t.byte 0x1\n"
"\t.string \"zP\"\n"
"\t.uleb128 0x1\n"
"\t.sleb128 -" SZPTR "\n"
"\t.byte " REG_RA "\n"
"\t.uleb128 5\n" /* augmentation length */
"\t.byte 0x00\n" /* absptr */
"\t.long %slj_err_unwind_dwarf\n"
"\t.byte 0xc\n\t.uleb128 " REG_SP "\n\t.uleb128 " SZPTR "\n"
"\t.byte 0x80+" REG_RA "\n\t.uleb128 0x1\n"
"\t.align " SZPTR "\n"
"LECIE1:\n\n", LJ_32 ? "_" : "");
fprintf(ctx->fp,
"LSFDE1:\n"
"\t.long LEFDE1-LASFDE1\n"
"LASFDE1:\n"
"\t.long LASFDE1-Lframe1\n"
"\t.long %slj_vm_asm_begin\n"
"\t.long %d\n"
"\t.uleb128 0\n" /* augmentation length */
"\t.byte 0xe\n\t.uleb128 %d\n" /* def_cfa_offset */
#if LJ_64
"\t.byte 0x86\n\t.uleb128 0x2\n" /* offset rbp */
"\t.byte 0x83\n\t.uleb128 0x3\n" /* offset rbx */
"\t.byte 0x8f\n\t.uleb128 0x4\n" /* offset r15 */
"\t.byte 0x8e\n\t.uleb128 0x5\n" /* offset r14 */
#else
"\t.byte 0x85\n\t.uleb128 0x2\n" /* offset ebp */
"\t.byte 0x87\n\t.uleb128 0x3\n" /* offset edi */
"\t.byte 0x86\n\t.uleb128 0x4\n" /* offset esi */
"\t.byte 0x83\n\t.uleb128 0x5\n" /* offset ebx */
#endif
"\t.align " SZPTR "\n"
"LEFDE1:\n\n", LJ_32 ? "_" : "", (int)ctx->codesz, CFRAME_SIZE);
break;
2009-12-08 19:40:15 +00:00
case BUILD_machasm:
fprintf(ctx->fp, "\t.section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support\n");
fprintf(ctx->fp,
"EH_frame1:\n"
"\t.set L$set$0,LECIE1-LSCIE1\n"
"\t.long L$set$0\n"
"LSCIE1:\n"
"\t.long 0\n"
"\t.byte 0x1\n"
"\t.ascii \"zPR\\0\"\n"
"\t.byte 0x1\n"
"\t.byte 128-" SZPTR "\n"
"\t.byte " REG_RA "\n"
2009-12-08 19:40:15 +00:00
"\t.byte 6\n" /* augmentation length */
"\t.byte 0x9b\n" /* indirect|pcrel|sdata4 */
"\t.long L_lj_err_unwind_dwarf$non_lazy_ptr-.\n"
"\t.byte 0x1b\n" /* pcrel|sdata4 */
#if LJ_64
"\t.byte 0xc\n\t.byte " REG_SP "\n\t.byte " SZPTR "\n"
#else
2009-12-08 19:40:15 +00:00
"\t.byte 0xc\n\t.byte 0x5\n\t.byte 0x4\n" /* esp=5 on 32 bit MACH-O. */
#endif
"\t.byte 0x80+" REG_RA "\n\t.byte 0x1\n"
"\t.align " BSZPTR "\n"
2009-12-08 19:40:15 +00:00
"LECIE1:\n\n");
fprintf(ctx->fp,
"_lj_vm_asm_begin.eh:\n"
"LSFDE1:\n"
"\t.set L$set$1,LEFDE1-LASFDE1\n"
"\t.long L$set$1\n"
"LASFDE1:\n"
"\t.long LASFDE1-EH_frame1\n"
"\t.long _lj_vm_asm_begin-.\n"
"\t.long %d\n"
"\t.byte 0\n" /* augmentation length */
"\t.byte 0xe\n\t.byte %d\n" /* def_cfa_offset */
#if LJ_64
"\t.byte 0x86\n\t.uleb128 0x2\n" /* offset rbp */
"\t.byte 0x83\n\t.uleb128 0x3\n" /* offset rbx */
"\t.byte 0x8f\n\t.uleb128 0x4\n" /* offset r15 */
"\t.byte 0x8e\n\t.uleb128 0x5\n" /* offset r14 */
#else
2009-12-08 19:40:15 +00:00
"\t.byte 0x84\n\t.byte 0x2\n" /* offset ebp (4 for MACH-O)*/
"\t.byte 0x87\n\t.byte 0x3\n" /* offset edi */
"\t.byte 0x86\n\t.byte 0x4\n" /* offset esi */
"\t.byte 0x83\n\t.byte 0x5\n" /* offset ebx */
#endif
"\t.align " BSZPTR "\n"
"LEFDE1:\n\n", (int)ctx->codesz, CFRAME_SIZE);
2009-12-08 19:40:15 +00:00
fprintf(ctx->fp,
"\t.non_lazy_symbol_pointer\n"
"L_lj_err_unwind_dwarf$non_lazy_ptr:\n"
".indirect_symbol _lj_err_unwind_dwarf\n"
".long 0\n");
break;
default: /* Difficult for other modes. */
break;
}
}