summaryrefslogtreecommitdiff
path: root/src/buildvm_x86.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildvm_x86.h')
-rw-r--r--src/buildvm_x86.h973
1 files changed, 488 insertions, 485 deletions
diff --git a/src/buildvm_x86.h b/src/buildvm_x86.h
index ef160e61..9253bc21 100644
--- a/src/buildvm_x86.h
+++ b/src/buildvm_x86.h
@@ -12,7 +12,7 @@
12#define DASM_SECTION_CODE_OP 0 12#define DASM_SECTION_CODE_OP 0
13#define DASM_SECTION_CODE_SUB 1 13#define DASM_SECTION_CODE_SUB 1
14#define DASM_MAXSECTION 2 14#define DASM_MAXSECTION 2
15static const unsigned char build_actionlist[15165] = { 15static const unsigned char build_actionlist[15189] = {
16 254,1,248,10,252,247,198,237,15,132,244,11,131,230,252,248,41,252,242,141, 16 254,1,248,10,252,247,198,237,15,132,244,11,131,230,252,248,41,252,242,141,
17 76,49,252,248,139,114,252,252,199,68,10,4,237,248,12,131,192,1,137,68,36, 17 76,49,252,248,139,114,252,252,199,68,10,4,237,248,12,131,192,1,137,68,36,
18 20,252,247,198,237,15,132,244,13,248,14,252,247,198,237,15,132,244,10,199, 18 20,252,247,198,237,15,132,244,13,248,14,252,247,198,237,15,132,244,10,199,
@@ -417,170 +417,171 @@ static const unsigned char build_actionlist[15165] = {
417 15,17,125,216,252,242,15,17,117,208,252,242,15,17,109,200,252,242,15,17,101, 417 15,17,125,216,252,242,15,17,117,208,252,242,15,17,109,200,252,242,15,17,101,
418 192,252,242,15,17,93,184,252,242,15,17,85,176,252,242,15,17,77,168,252,242, 418 192,252,242,15,17,93,184,252,242,15,17,85,176,252,242,15,17,77,168,252,242,
419 15,17,69,160,248,1,139,171,233,139,147,233,137,171,233,137,149,233,141,84, 419 15,17,69,160,248,1,139,171,233,139,147,233,137,171,233,137,149,233,141,84,
420 36,16,141,139,233,232,251,1,23,137,196,139,149,233,139,116,36,24,137,108, 420 36,16,141,139,233,232,251,1,23,139,141,233,129,225,239,137,204,137,108,36,
421 36,48,255,248,144,255,139,122,252,248,139,191,233,139,191,233,199,131,233, 421 48,133,192,15,133,244,247,255,139,149,233,139,116,36,24,255,248,144,255,139,
422 0,0,0,0,199,131,233,237,139,6,15,182,204,15,182,232,131,198,4,193,232,16, 422 122,252,248,139,191,233,139,191,233,199,131,233,0,0,0,0,199,131,233,237,139,
423 252,255,36,171,255,248,82,255,217,124,36,4,137,68,36,8,102,184,0,4,102,11, 423 6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,1,137,252,
424 68,36,4,102,37,252,255,252,247,102,137,68,36,6,217,108,36,6,217,252,252,217, 424 233,137,194,232,251,1,24,255,248,82,255,217,124,36,4,137,68,36,8,102,184,
425 108,36,4,139,68,36,8,195,255,248,145,102,15,252,239,210,102,15,118,210,102, 425 0,4,102,11,68,36,4,102,37,252,255,252,247,102,137,68,36,6,217,108,36,6,217,
426 252,252,217,108,36,4,139,68,36,8,195,255,248,145,102,15,252,239,210,102,15,
427 118,210,102,15,115,210,1,184,0,0,48,67,102,15,110,216,102,15,112,219,81,15,
428 40,200,102,15,84,202,102,15,46,217,15,134,244,247,102,15,85,208,252,242,15,
429 88,203,252,242,15,92,203,102,15,86,202,184,0,0,252,240,63,102,15,110,208,
430 102,15,112,210,81,252,242,15,194,193,1,102,15,84,194,252,242,15,92,200,15,
431 40,193,248,1,195,248,84,255,217,124,36,4,137,68,36,8,102,184,0,8,102,11,68,
432 36,4,102,37,252,255,252,251,102,137,68,36,6,217,108,36,6,217,252,252,217,
433 108,36,4,139,68,36,8,195,255,248,146,102,15,252,239,210,102,15,118,210,102,
426 15,115,210,1,184,0,0,48,67,102,15,110,216,102,15,112,219,81,15,40,200,102, 434 15,115,210,1,184,0,0,48,67,102,15,110,216,102,15,112,219,81,15,40,200,102,
427 15,84,202,102,15,46,217,15,134,244,247,102,15,85,208,252,242,15,88,203,252, 435 15,84,202,102,15,46,217,15,134,244,247,102,15,85,208,252,242,15,88,203,252,
428 242,15,92,203,102,15,86,202,184,0,0,252,240,63,102,15,110,208,102,15,112, 436 242,15,92,203,102,15,86,202,184,0,0,252,240,191,102,15,110,208,102,15,112,
429 210,81,252,242,15,194,193,1,102,15,84,194,252,242,15,92,200,15,40,193,248, 437 210,81,252,242,15,194,193,6,102,15,84,194,252,242,15,92,200,15,40,193,248,
430 1,195,248,84,255,217,124,36,4,137,68,36,8,102,184,0,8,102,11,68,36,4,102, 438 1,195,248,104,255,217,124,36,4,137,68,36,8,102,184,0,12,102,11,68,36,4,102,
431 37,252,255,252,251,102,137,68,36,6,217,108,36,6,217,252,252,217,108,36,4, 439 137,68,36,6,217,108,36,6,217,252,252,217,108,36,4,139,68,36,8,195,255,248,
432 139,68,36,8,195,255,248,146,102,15,252,239,210,102,15,118,210,102,15,115, 440 147,102,15,252,239,210,102,15,118,210,102,15,115,210,1,184,0,0,48,67,102,
433 210,1,184,0,0,48,67,102,15,110,216,102,15,112,219,81,15,40,200,102,15,84, 441 15,110,216,102,15,112,219,81,15,40,200,102,15,84,202,102,15,46,217,15,134,
434 202,102,15,46,217,15,134,244,247,102,15,85,208,252,242,15,88,203,252,242, 442 244,247,102,15,85,208,15,40,193,252,242,15,88,203,252,242,15,92,203,184,0,
435 15,92,203,102,15,86,202,184,0,0,252,240,191,102,15,110,208,102,15,112,210, 443 0,252,240,63,102,15,110,216,102,15,112,219,81,252,242,15,194,193,1,102,15,
436 81,252,242,15,194,193,6,102,15,84,194,252,242,15,92,200,15,40,193,248,1,195, 444 84,195,252,242,15,92,200,102,15,86,202,15,40,193,248,1,195,248,148,255,15,
437 248,104,255,217,124,36,4,137,68,36,8,102,184,0,12,102,11,68,36,4,102,137, 445 40,232,252,242,15,94,193,102,15,252,239,210,102,15,118,210,102,15,115,210,
438 68,36,6,217,108,36,6,217,252,252,217,108,36,4,139,68,36,8,195,255,248,147, 446 1,184,0,0,48,67,102,15,110,216,102,15,112,219,81,15,40,224,102,15,84,226,
439 102,15,252,239,210,102,15,118,210,102,15,115,210,1,184,0,0,48,67,102,15,110, 447 102,15,46,220,15,134,244,247,102,15,85,208,252,242,15,88,227,252,242,15,92,
440 216,102,15,112,219,81,15,40,200,102,15,84,202,102,15,46,217,15,134,244,247, 448 227,102,15,86,226,184,0,0,252,240,63,102,15,110,208,102,15,112,210,81,252,
441 102,15,85,208,15,40,193,252,242,15,88,203,252,242,15,92,203,184,0,0,252,240, 449 242,15,194,196,1,102,15,84,194,252,242,15,92,224,15,40,197,252,242,15,89,
442 63,102,15,110,216,102,15,112,219,81,252,242,15,194,193,1,102,15,84,195,252, 450 204,252,242,15,92,193,195,248,1,252,242,15,89,200,15,40,197,252,242,15,92,
443 242,15,92,200,102,15,86,202,15,40,193,248,1,195,248,148,255,15,40,232,252, 451 193,195,255,217,193,216,252,241,217,124,36,4,102,184,0,4,102,11,68,36,4,102,
444 242,15,94,193,102,15,252,239,210,102,15,118,210,102,15,115,210,1,184,0,0, 452 37,252,255,252,247,102,137,68,36,6,217,108,36,6,217,252,252,217,108,36,4,
445 48,67,102,15,110,216,102,15,112,219,81,15,40,224,102,15,84,226,102,15,46, 453 222,201,222,252,233,195,255,248,88,217,252,234,222,201,248,149,217,84,36,
446 220,15,134,244,247,102,15,85,208,252,242,15,88,227,252,242,15,92,227,102, 454 4,129,124,36,4,0,0,128,127,15,132,244,247,129,124,36,4,0,0,128,252,255,15,
447 15,86,226,184,0,0,252,240,63,102,15,110,208,102,15,112,210,81,252,242,15, 455 132,244,248,248,150,217,192,217,252,252,220,252,233,217,201,217,252,240,217,
448 194,196,1,102,15,84,194,252,242,15,92,224,15,40,197,252,242,15,89,204,252, 456 232,222,193,217,252,253,221,217,248,1,195,248,2,221,216,217,252,238,195,255,
449 242,15,92,193,195,248,1,252,242,15,89,200,15,40,197,252,242,15,92,193,195, 457 248,107,219,84,36,4,219,68,36,4,255,223,252,233,255,221,252,233,223,224,158,
450 255,217,193,216,252,241,217,124,36,4,102,184,0,4,102,11,68,36,4,102,37,252, 458 255,15,133,244,254,15,138,244,255,221,216,139,68,36,4,131,252,248,1,15,142,
451 255,252,247,102,137,68,36,6,217,108,36,6,217,252,252,217,108,36,4,222,201, 459 244,252,248,1,169,1,0,0,0,15,133,244,248,216,200,209,232,252,233,244,1,248,
452 222,252,233,195,255,248,88,217,252,234,222,201,248,149,217,84,36,4,129,124, 460 2,209,232,15,132,244,251,217,192,248,3,216,200,209,232,15,132,244,250,15,
453 36,4,0,0,128,127,15,132,244,247,129,124,36,4,0,0,128,252,255,15,132,244,248, 461 131,244,3,220,201,252,233,244,3,248,4,255,222,201,248,5,195,248,6,15,132,
454 248,150,217,192,217,252,252,220,252,233,217,201,217,252,240,217,232,222,193, 462 244,5,15,130,244,253,217,232,222,252,241,252,247,216,131,252,248,1,15,132,
455 217,252,253,221,217,248,1,195,248,2,221,216,217,252,238,195,255,248,107,219, 463 244,5,252,233,244,1,248,7,221,216,217,232,195,248,8,217,84,36,4,217,201,217,
456 84,36,4,219,68,36,4,255,223,252,233,255,221,252,233,223,224,158,255,15,133, 464 84,36,8,139,68,36,4,209,224,61,0,0,0,252,255,15,132,244,248,139,68,36,8,209,
457 244,254,15,138,244,255,221,216,139,68,36,4,131,252,248,1,15,142,244,252,248, 465 224,15,132,244,250,61,0,0,0,252,255,15,132,244,250,217,252,241,252,233,244,
458 1,169,1,0,0,0,15,133,244,248,216,200,209,232,252,233,244,1,248,2,209,232, 466 150,248,9,255,217,232,255,223,252,234,255,221,252,234,223,224,158,255,15,
459 15,132,244,251,217,192,248,3,216,200,209,232,15,132,244,250,15,131,244,3, 467 132,244,247,217,201,248,1,221,216,195,248,2,217,225,217,232,255,15,132,244,
460 220,201,252,233,244,3,248,4,255,222,201,248,5,195,248,6,15,132,244,5,15,130, 468 249,221,216,217,225,217,252,238,184,0,0,0,0,15,146,208,209,200,51,68,36,4,
461 244,253,217,232,222,252,241,252,247,216,131,252,248,1,15,132,244,5,252,233, 469 15,137,244,249,217,201,248,3,221,217,217,225,195,248,4,131,124,36,4,0,15,
462 244,1,248,7,221,216,217,232,195,248,8,217,84,36,4,217,201,217,84,36,8,139, 470 141,244,3,221,216,221,216,133,192,15,132,244,251,217,252,238,195,248,5,199,
463 68,36,4,209,224,61,0,0,0,252,255,15,132,244,248,139,68,36,8,209,224,15,132, 471 68,36,4,0,0,128,127,217,68,36,4,195,255,248,107,255,248,151,252,242,15,45,
464 244,250,61,0,0,0,252,255,15,132,244,250,217,252,241,252,233,244,150,248,9, 472 193,252,242,15,42,208,102,15,46,202,15,133,244,254,15,138,244,255,248,152,
465 255,217,232,255,223,252,234,255,221,252,234,223,224,158,255,15,132,244,247, 473 131,252,248,1,15,142,244,252,248,1,169,1,0,0,0,15,133,244,248,252,242,15,
466 217,201,248,1,221,216,195,248,2,217,225,217,232,255,15,132,244,249,221,216, 474 89,192,209,232,252,233,244,1,248,2,209,232,15,132,244,251,15,40,200,248,3,
467 217,225,217,252,238,184,0,0,0,0,15,146,208,209,200,51,68,36,4,15,137,244, 475 252,242,15,89,192,209,232,15,132,244,250,15,131,244,3,255,252,242,15,89,200,
468 249,217,201,248,3,221,217,217,225,195,248,4,131,124,36,4,0,15,141,244,3,221, 476 252,233,244,3,248,4,252,242,15,89,193,248,5,195,248,6,15,132,244,5,15,130,
469 216,221,216,133,192,15,132,244,251,217,252,238,195,248,5,199,68,36,4,0,0, 477 244,253,80,184,0,0,252,240,63,102,15,110,200,102,15,112,201,81,252,242,15,
470 128,127,217,68,36,4,195,255,248,107,255,248,151,252,242,15,45,193,252,242, 478 94,200,88,15,40,193,252,247,216,131,252,248,1,15,132,244,5,252,233,244,1,
471 15,42,208,102,15,46,202,15,133,244,254,15,138,244,255,248,152,131,252,248, 479 248,7,184,0,0,252,240,63,102,15,110,192,102,15,112,192,81,195,248,8,252,242,
472 1,15,142,244,252,248,1,169,1,0,0,0,15,133,244,248,252,242,15,89,192,209,232, 480 15,17,76,36,12,252,242,15,17,68,36,4,131,124,36,12,0,15,133,244,247,139,68,
473 252,233,244,1,248,2,209,232,15,132,244,251,15,40,200,248,3,252,242,15,89, 481 36,16,209,224,61,0,0,224,252,255,15,132,244,248,248,1,255,131,124,36,4,0,
474 192,209,232,15,132,244,250,15,131,244,3,255,252,242,15,89,200,252,233,244, 482 15,133,244,247,139,68,36,8,209,224,15,132,244,250,61,0,0,224,252,255,15,132,
475 3,248,4,252,242,15,89,193,248,5,195,248,6,15,132,244,5,15,130,244,253,80, 483 244,251,248,1,221,68,36,12,221,68,36,4,217,252,241,217,192,217,252,252,220,
476 184,0,0,252,240,63,102,15,110,200,102,15,112,201,81,252,242,15,94,200,88, 484 252,233,217,201,217,252,240,217,232,222,193,217,252,253,221,217,221,92,36,
477 15,40,193,252,247,216,131,252,248,1,15,132,244,5,252,233,244,1,248,7,184, 485 4,252,242,15,16,68,36,4,195,248,9,184,0,0,252,240,63,102,15,110,208,102,15,
478 0,0,252,240,63,102,15,110,192,102,15,112,192,81,195,248,8,252,242,15,17,76, 486 112,210,81,102,15,46,194,15,132,244,247,15,40,193,248,1,195,248,2,102,15,
479 36,12,252,242,15,17,68,36,4,131,124,36,12,0,15,133,244,247,139,68,36,16,209, 487 252,239,210,102,15,118,210,102,15,115,210,1,102,15,84,194,184,0,0,252,240,
480 224,61,0,0,224,252,255,15,132,244,248,248,1,255,131,124,36,4,0,15,133,244, 488 63,102,15,110,208,102,15,112,210,81,102,15,46,194,15,132,244,1,102,15,80,
481 247,139,68,36,8,209,224,15,132,244,250,61,0,0,224,252,255,15,132,244,251, 489 193,15,87,192,136,196,15,146,208,48,224,15,133,244,1,248,3,184,0,0,252,240,
482 248,1,221,68,36,12,221,68,36,4,217,252,241,217,192,217,252,252,220,252,233, 490 127,102,15,110,192,102,15,112,192,81,195,248,4,102,15,80,193,133,192,15,133,
483 217,201,217,252,240,217,232,222,193,217,252,253,221,217,221,92,36,4,252,242, 491 244,3,255,15,87,192,195,248,5,102,15,80,193,133,192,15,132,244,3,15,87,192,
484 15,16,68,36,4,195,248,9,184,0,0,252,240,63,102,15,110,208,102,15,112,210, 492 195,248,153,255,139,68,36,12,252,242,15,16,68,36,4,131,252,248,1,15,132,244,
485 81,102,15,46,194,15,132,244,247,15,40,193,248,1,195,248,2,102,15,252,239, 493 247,15,135,244,248,232,244,82,252,233,244,253,248,1,232,244,84,252,233,244,
486 210,102,15,118,210,102,15,115,210,1,102,15,84,194,184,0,0,252,240,63,102, 494 253,248,2,131,252,248,3,15,132,244,247,15,135,244,248,232,244,104,255,252,
487 15,110,208,102,15,112,210,81,102,15,46,194,15,132,244,1,102,15,80,193,15, 495 233,244,253,248,1,252,242,15,81,192,248,7,252,242,15,17,68,36,4,221,68,36,
488 87,192,136,196,15,146,208,48,224,15,133,244,1,248,3,184,0,0,252,240,127,102, 496 4,195,248,2,221,68,36,4,131,252,248,5,15,130,244,88,15,132,244,149,248,2,
489 15,110,192,102,15,112,192,81,195,248,4,102,15,80,193,133,192,15,133,244,3, 497 131,252,248,7,15,132,244,247,15,135,244,248,217,252,237,217,201,217,252,241,
490 255,15,87,192,195,248,5,102,15,80,193,133,192,15,132,244,3,15,87,192,195, 498 195,248,1,217,232,217,201,217,252,241,195,248,2,131,252,248,9,15,132,244,
491 248,153,255,139,68,36,12,252,242,15,16,68,36,4,131,252,248,1,15,132,244,247, 499 247,15,135,244,248,255,217,252,236,217,201,217,252,241,195,248,1,217,252,
492 15,135,244,248,232,244,82,252,233,244,253,248,1,232,244,84,252,233,244,253, 500 254,195,248,2,131,252,248,11,15,132,244,247,15,135,244,255,217,252,255,195,
493 248,2,131,252,248,3,15,132,244,247,15,135,244,248,232,244,104,255,252,233, 501 248,1,217,252,242,221,216,195,255,139,68,36,12,221,68,36,4,131,252,248,1,
494 244,253,248,1,252,242,15,81,192,248,7,252,242,15,17,68,36,4,221,68,36,4,195, 502 15,130,244,82,15,132,244,84,131,252,248,3,15,130,244,104,15,135,244,248,217,
495 248,2,221,68,36,4,131,252,248,5,15,130,244,88,15,132,244,149,248,2,131,252, 503 252,250,195,248,2,131,252,248,5,15,130,244,88,15,132,244,149,131,252,248,
496 248,7,15,132,244,247,15,135,244,248,217,252,237,217,201,217,252,241,195,248, 504 7,15,132,244,247,15,135,244,248,217,252,237,217,201,217,252,241,195,248,1,
497 1,217,232,217,201,217,252,241,195,248,2,131,252,248,9,15,132,244,247,15,135, 505 217,232,217,201,217,252,241,195,248,2,131,252,248,9,15,132,244,247,255,15,
498 244,248,255,217,252,236,217,201,217,252,241,195,248,1,217,252,254,195,248, 506 135,244,248,217,252,236,217,201,217,252,241,195,248,1,217,252,254,195,248,
499 2,131,252,248,11,15,132,244,247,15,135,244,255,217,252,255,195,248,1,217, 507 2,131,252,248,11,15,132,244,247,15,135,244,255,217,252,255,195,248,1,217,
500 252,242,221,216,195,255,139,68,36,12,221,68,36,4,131,252,248,1,15,130,244, 508 252,242,221,216,195,255,248,9,204,248,154,255,139,68,36,20,252,242,15,16,
501 82,15,132,244,84,131,252,248,3,15,130,244,104,15,135,244,248,217,252,250, 509 68,36,4,252,242,15,16,76,36,12,131,252,248,1,15,132,244,247,15,135,244,248,
502 195,248,2,131,252,248,5,15,130,244,88,15,132,244,149,131,252,248,7,15,132, 510 252,242,15,88,193,248,7,252,242,15,17,68,36,4,221,68,36,4,195,248,1,252,242,
503 244,247,15,135,244,248,217,252,237,217,201,217,252,241,195,248,1,217,232, 511 15,92,193,252,233,244,7,248,2,131,252,248,3,15,132,244,247,15,135,244,248,
504 217,201,217,252,241,195,248,2,131,252,248,9,15,132,244,247,255,15,135,244, 512 252,242,15,89,193,252,233,244,7,248,1,252,242,15,94,193,252,233,244,7,248,
505 248,217,252,236,217,201,217,252,241,195,248,1,217,252,254,195,248,2,131,252, 513 2,131,252,248,5,15,132,244,247,255,15,135,244,248,232,244,148,252,233,244,
506 248,11,15,132,244,247,15,135,244,255,217,252,255,195,248,1,217,252,242,221, 514 7,248,1,90,232,244,107,82,252,233,244,7,248,2,131,252,248,7,15,132,244,247,
507 216,195,255,248,9,204,248,154,255,139,68,36,20,252,242,15,16,68,36,4,252, 515 15,135,244,248,184,0,0,0,128,102,15,110,200,102,15,112,201,81,15,87,193,252,
508 242,15,16,76,36,12,131,252,248,1,15,132,244,247,15,135,244,248,252,242,15, 516 233,244,7,248,1,102,15,252,239,201,102,15,118,201,102,15,115,209,1,15,84,
509 88,193,248,7,252,242,15,17,68,36,4,221,68,36,4,195,248,1,252,242,15,92,193, 517 193,252,233,244,7,248,2,255,131,252,248,9,15,135,244,248,221,68,36,4,221,
510 252,233,244,7,248,2,131,252,248,3,15,132,244,247,15,135,244,248,252,242,15, 518 68,36,12,15,132,244,247,217,252,243,195,248,1,217,201,217,252,253,221,217,
511 89,193,252,233,244,7,248,1,252,242,15,94,193,252,233,244,7,248,2,131,252, 519 195,248,2,131,252,248,11,15,132,244,247,15,135,244,255,252,242,15,93,193,
512 248,5,15,132,244,247,255,15,135,244,248,232,244,148,252,233,244,7,248,1,90, 520 252,233,244,7,248,1,252,242,15,95,193,252,233,244,7,248,9,204,255,139,68,
513 232,244,107,82,252,233,244,7,248,2,131,252,248,7,15,132,244,247,15,135,244, 521 36,20,221,68,36,4,221,68,36,12,131,252,248,1,15,132,244,247,15,135,244,248,
514 248,184,0,0,0,128,102,15,110,200,102,15,112,201,81,15,87,193,252,233,244, 522 222,193,195,248,1,222,252,233,195,248,2,131,252,248,3,15,132,244,247,15,135,
515 7,248,1,102,15,252,239,201,102,15,118,201,102,15,115,209,1,15,84,193,252, 523 244,248,222,201,195,248,1,222,252,249,195,248,2,131,252,248,5,15,130,244,
516 233,244,7,248,2,255,131,252,248,9,15,135,244,248,221,68,36,4,221,68,36,12, 524 148,15,132,244,107,131,252,248,7,15,132,244,247,15,135,244,248,255,221,216,
517 15,132,244,247,217,252,243,195,248,1,217,201,217,252,253,221,217,195,248, 525 217,224,195,248,1,221,216,217,225,195,248,2,131,252,248,9,15,132,244,247,
518 2,131,252,248,11,15,132,244,247,15,135,244,255,252,242,15,93,193,252,233, 526 15,135,244,248,217,252,243,195,248,1,217,201,217,252,253,221,217,195,248,
519 244,7,248,1,252,242,15,95,193,252,233,244,7,248,9,204,255,139,68,36,20,221, 527 2,131,252,248,11,15,132,244,247,15,135,244,255,255,219,252,233,219,209,221,
520 68,36,4,221,68,36,12,131,252,248,1,15,132,244,247,15,135,244,248,222,193, 528 217,195,248,1,219,252,233,218,209,221,217,195,255,221,225,223,224,252,246,
521 195,248,1,222,252,233,195,248,2,131,252,248,3,15,132,244,247,15,135,244,248, 529 196,1,15,132,244,248,217,201,248,2,221,216,195,248,1,221,225,223,224,252,
522 222,201,195,248,1,222,252,249,195,248,2,131,252,248,5,15,130,244,148,15,132, 530 246,196,1,15,133,244,248,217,201,248,2,221,216,195,255,248,155,156,90,137,
523 244,107,131,252,248,7,15,132,244,247,15,135,244,248,255,221,216,217,224,195, 531 209,129,252,242,0,0,32,0,82,157,156,90,49,192,57,209,15,132,244,247,139,68,
524 248,1,221,216,217,225,195,248,2,131,252,248,9,15,132,244,247,15,135,244,248, 532 36,4,87,83,15,162,139,124,36,16,137,7,137,95,4,137,79,8,137,87,12,91,95,248,
525 217,252,243,195,248,1,217,201,217,252,253,221,217,195,248,2,131,252,248,11, 533 1,195,255,249,255,129,124,253,202,4,239,15,135,244,41,129,124,253,194,4,239,
526 15,132,244,247,15,135,244,255,255,219,252,233,219,209,221,217,195,248,1,219, 534 15,135,244,41,255,252,242,15,16,4,194,131,198,4,102,15,46,4,202,255,221,4,
527 252,233,218,209,221,217,195,255,221,225,223,224,252,246,196,1,15,132,244, 535 202,221,4,194,131,198,4,255,223,252,233,221,216,255,218,252,233,223,224,158,
528 248,217,201,248,2,221,216,195,248,1,221,225,223,224,252,246,196,1,15,133, 536 255,15,134,244,248,255,15,131,244,248,255,248,1,15,183,70,252,254,141,180,
529 244,248,217,201,248,2,221,216,195,255,248,155,156,90,137,209,129,252,242, 537 253,134,233,248,2,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,
530 0,0,32,0,82,157,156,90,49,192,57,209,15,132,244,247,139,68,36,4,87,83,15, 538 36,171,255,139,108,194,4,131,198,4,129,252,253,239,15,135,244,251,129,124,
531 162,139,124,36,16,137,7,137,95,4,137,79,8,137,87,12,91,95,248,1,195,255,249, 539 253,202,4,239,15,135,244,251,255,252,242,15,16,4,194,102,15,46,4,202,255,
532 255,129,124,253,202,4,239,15,135,244,41,129,124,253,194,4,239,15,135,244, 540 221,4,202,221,4,194,255,15,138,244,248,15,133,244,248,255,15,138,244,248,
533 41,255,252,242,15,16,4,194,131,198,4,102,15,46,4,202,255,221,4,202,221,4, 541 15,132,244,247,255,248,1,15,183,70,252,254,141,180,253,134,233,248,2,255,
534 194,131,198,4,255,223,252,233,221,216,255,218,252,233,223,224,158,255,15, 542 248,2,15,183,70,252,254,141,180,253,134,233,248,1,255,248,5,57,108,202,4,
535 134,244,248,255,15,131,244,248,255,248,1,15,183,70,252,254,141,180,253,134, 543 15,133,244,2,129,252,253,239,15,131,244,1,139,12,202,139,4,194,57,193,15,
536 233,248,2,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171, 544 132,244,1,129,252,253,239,15,135,244,2,139,169,233,133,252,237,15,132,244,
537 255,139,108,194,4,131,198,4,129,252,253,239,15,135,244,251,129,124,253,202, 545 2,252,246,133,233,235,15,133,244,2,255,49,252,237,255,189,1,0,0,0,255,252,
538 4,239,15,135,244,251,255,252,242,15,16,4,194,102,15,46,4,202,255,221,4,202, 546 233,244,45,255,252,247,208,131,198,4,129,124,253,202,4,239,15,133,244,248,
539 221,4,194,255,15,138,244,248,15,133,244,248,255,15,138,244,248,15,132,244, 547 139,12,202,59,12,135,255,131,198,4,129,124,253,202,4,239,15,135,244,248,255,
540 247,255,248,1,15,183,70,252,254,141,180,253,134,233,248,2,255,248,2,15,183, 548 252,242,15,16,4,199,102,15,46,4,202,255,221,4,202,221,4,199,255,252,247,208,
541 70,252,254,141,180,253,134,233,248,1,255,248,5,57,108,202,4,15,133,244,2, 549 131,198,4,57,68,202,4,255,139,108,194,4,131,198,4,129,252,253,239,255,15,
542 129,252,253,239,15,131,244,1,139,12,202,139,4,194,57,193,15,132,244,1,129, 550 131,244,247,255,15,130,244,247,255,137,108,202,4,139,44,194,137,44,202,255,
543 252,253,239,15,135,244,2,139,169,233,133,252,237,15,132,244,2,252,246,133, 551 15,183,70,252,254,141,180,253,134,233,248,1,139,6,15,182,204,15,182,232,131,
544 233,235,15,133,244,2,255,49,252,237,255,189,1,0,0,0,255,252,233,244,45,255, 552 198,4,193,232,16,252,255,36,171,255,139,108,194,4,139,4,194,137,108,202,4,
545 252,247,208,131,198,4,129,124,253,202,4,239,15,133,244,248,139,12,202,59, 553 137,4,202,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,
546 12,135,255,131,198,4,129,124,253,202,4,239,15,135,244,248,255,252,242,15, 554 255,49,252,237,129,124,253,194,4,239,129,213,239,137,108,202,4,139,6,15,182,
547 16,4,199,102,15,46,4,202,255,221,4,202,221,4,199,255,252,247,208,131,198, 555 204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,129,124,253,194,4,
548 4,57,68,202,4,255,139,108,194,4,131,198,4,129,252,253,239,255,15,131,244, 556 239,15,135,244,48,255,252,242,15,16,4,194,184,0,0,0,128,102,15,110,200,102,
549 247,255,15,130,244,247,255,137,108,202,4,139,44,194,137,44,202,255,15,183, 557 15,112,201,81,15,87,193,252,242,15,17,4,202,255,221,4,194,217,224,221,28,
550 70,252,254,141,180,253,134,233,248,1,139,6,15,182,204,15,182,232,131,198, 558 202,255,129,124,253,194,4,239,15,133,244,248,139,4,194,255,15,87,192,252,
551 4,193,232,16,252,255,36,171,255,139,108,194,4,139,4,194,137,108,202,4,137, 559 242,15,42,128,233,248,1,252,242,15,17,4,202,255,219,128,233,248,1,221,28,
552 4,202,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255, 560 202,255,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,
553 49,252,237,129,124,253,194,4,239,129,213,239,137,108,202,4,139,6,15,182,204, 561 2,129,124,253,194,4,239,15,133,244,50,139,12,194,137,213,232,251,1,18,255,
554 15,182,232,131,198,4,193,232,16,252,255,36,171,255,129,124,253,194,4,239, 562 252,242,15,42,192,137,252,234,255,137,4,36,137,252,234,219,4,36,255,15,182,
555 15,135,244,48,255,252,242,15,16,4,194,184,0,0,0,128,102,15,110,200,102,15, 563 78,252,253,252,233,244,1,255,15,182,252,236,15,182,192,255,129,124,253,252,
556 112,201,81,15,87,193,252,242,15,17,4,202,255,221,4,194,217,224,221,28,202, 564 234,4,239,15,135,244,46,255,252,242,15,16,4,252,234,252,242,15,88,4,199,255,
557 255,129,124,253,194,4,239,15,133,244,248,139,4,194,255,15,87,192,252,242, 565 221,4,252,234,220,4,199,255,129,124,253,252,234,4,239,15,135,244,47,255,252,
558 15,42,128,233,248,1,252,242,15,17,4,202,255,219,128,233,248,1,221,28,202, 566 242,15,16,4,199,252,242,15,88,4,252,234,255,221,4,199,220,4,252,234,255,129,
559 255,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,2, 567 124,253,252,234,4,239,15,135,244,49,129,124,253,194,4,239,15,135,244,49,255,
560 129,124,253,194,4,239,15,133,244,50,139,12,194,137,213,232,251,1,18,255,252, 568 252,242,15,16,4,252,234,252,242,15,88,4,194,255,221,4,252,234,220,4,194,255,
561 242,15,42,192,137,252,234,255,137,4,36,137,252,234,219,4,36,255,15,182,78, 569 252,242,15,16,4,252,234,252,242,15,92,4,199,255,221,4,252,234,220,36,199,
562 252,253,252,233,244,1,255,15,182,252,236,15,182,192,255,129,124,253,252,234, 570 255,252,242,15,16,4,199,252,242,15,92,4,252,234,255,221,4,199,220,36,252,
563 4,239,15,135,244,46,255,252,242,15,16,4,252,234,252,242,15,88,4,199,255,221, 571 234,255,252,242,15,16,4,252,234,252,242,15,92,4,194,255,221,4,252,234,220,
564 4,252,234,220,4,199,255,129,124,253,252,234,4,239,15,135,244,47,255,252,242, 572 36,194,255,252,242,15,16,4,252,234,252,242,15,89,4,199,255,221,4,252,234,
565 15,16,4,199,252,242,15,88,4,252,234,255,221,4,199,220,4,252,234,255,129,124, 573 220,12,199,255,252,242,15,16,4,199,252,242,15,89,4,252,234,255,221,4,199,
566 253,252,234,4,239,15,135,244,49,129,124,253,194,4,239,15,135,244,49,255,252, 574 220,12,252,234,255,252,242,15,16,4,252,234,252,242,15,89,4,194,255,221,4,
567 242,15,16,4,252,234,252,242,15,88,4,194,255,221,4,252,234,220,4,194,255,252, 575 252,234,220,12,194,255,252,242,15,16,4,252,234,252,242,15,94,4,199,255,221,
568 242,15,16,4,252,234,252,242,15,92,4,199,255,221,4,252,234,220,36,199,255, 576 4,252,234,220,52,199,255,252,242,15,16,4,199,252,242,15,94,4,252,234,255,
569 252,242,15,16,4,199,252,242,15,92,4,252,234,255,221,4,199,220,36,252,234, 577 221,4,199,220,52,252,234,255,252,242,15,16,4,252,234,252,242,15,94,4,194,
570 255,252,242,15,16,4,252,234,252,242,15,92,4,194,255,221,4,252,234,220,36, 578 255,221,4,252,234,220,52,194,255,252,242,15,16,4,252,234,252,242,15,16,12,
571 194,255,252,242,15,16,4,252,234,252,242,15,89,4,199,255,221,4,252,234,220, 579 199,255,221,4,252,234,221,4,199,255,252,242,15,16,4,199,252,242,15,16,12,
572 12,199,255,252,242,15,16,4,199,252,242,15,89,4,252,234,255,221,4,199,220, 580 252,234,255,221,4,199,221,4,252,234,255,252,242,15,16,4,252,234,252,242,15,
573 12,252,234,255,252,242,15,16,4,252,234,252,242,15,89,4,194,255,221,4,252, 581 16,12,194,255,221,4,252,234,221,4,194,255,248,156,232,244,148,255,252,233,
574 234,220,12,194,255,252,242,15,16,4,252,234,252,242,15,94,4,199,255,221,4, 582 244,156,255,232,244,107,255,15,182,252,236,15,182,192,141,12,194,41,232,137,
575 252,234,220,52,199,255,252,242,15,16,4,199,252,242,15,94,4,252,234,255,221, 583 76,36,4,137,68,36,8,248,33,139,108,36,48,137,44,36,137,149,233,137,116,36,
576 4,199,220,52,252,234,255,252,242,15,16,4,252,234,252,242,15,94,4,194,255, 584 24,232,251,1,25,139,149,233,133,192,15,133,244,42,15,182,110,252,255,15,182,
577 221,4,252,234,220,52,194,255,252,242,15,16,4,252,234,252,242,15,16,12,199,
578 255,221,4,252,234,221,4,199,255,252,242,15,16,4,199,252,242,15,16,12,252,
579 234,255,221,4,199,221,4,252,234,255,252,242,15,16,4,252,234,252,242,15,16,
580 12,194,255,221,4,252,234,221,4,194,255,248,156,232,244,148,255,252,233,244,
581 156,255,232,244,107,255,15,182,252,236,15,182,192,141,12,194,41,232,137,76,
582 36,4,137,68,36,8,248,33,139,108,36,48,137,44,36,137,149,233,137,116,36,24,
583 232,251,1,24,139,149,233,133,192,15,133,244,42,15,182,110,252,255,15,182,
584 78,252,253,139,68,252,234,4,139,44,252,234,137,68,202,4,137,44,202,139,6, 585 78,252,253,139,68,252,234,4,139,44,252,234,137,68,202,4,137,44,202,139,6,
585 15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,252,247,208, 586 15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,252,247,208,
586 139,4,135,199,68,202,4,237,137,4,202,139,6,15,182,204,15,182,232,131,198, 587 139,4,135,199,68,202,4,237,137,4,202,139,6,15,182,204,15,182,232,131,198,
@@ -596,31 +597,31 @@ static const unsigned char build_actionlist[15165] = {
596 12,194,139,68,194,4,137,77,0,137,69,4,15,132,244,247,252,246,133,233,235, 597 12,194,139,68,194,4,137,77,0,137,69,4,15,132,244,247,252,246,133,233,235,
597 15,133,244,248,248,1,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252, 598 15,133,244,248,248,1,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,
598 255,36,171,248,2,129,232,239,129,252,248,239,15,134,244,1,252,246,129,233, 599 255,36,171,248,2,129,232,239,129,252,248,239,15,134,244,1,252,246,129,233,
599 235,15,132,244,1,135,213,141,139,233,255,232,251,1,25,137,252,234,252,233, 600 235,15,132,244,1,135,213,141,139,233,255,232,251,1,26,137,252,234,252,233,
600 244,1,255,252,247,208,139,106,252,248,139,172,253,141,233,139,12,135,139, 601 244,1,255,252,247,208,139,106,252,248,139,172,253,141,233,139,12,135,139,
601 133,233,137,8,199,64,4,237,252,246,133,233,235,15,133,244,248,248,1,139,6, 602 133,233,137,8,199,64,4,237,252,246,133,233,235,15,133,244,248,248,1,139,6,
602 15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,2,252,246,129, 603 15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,2,252,246,129,
603 233,235,15,132,244,1,128,189,233,0,15,132,244,1,137,213,137,194,141,139,233, 604 233,235,15,132,244,1,128,189,233,0,15,132,244,1,137,213,137,194,141,139,233,
604 232,251,1,25,137,252,234,252,233,244,1,255,139,106,252,248,255,252,242,15, 605 232,251,1,26,137,252,234,252,233,244,1,255,139,106,252,248,255,252,242,15,
605 16,4,199,255,139,172,253,141,233,139,141,233,255,252,242,15,17,1,255,221, 606 16,4,199,255,139,172,253,141,233,139,141,233,255,252,242,15,17,1,255,221,
606 25,255,252,247,208,139,106,252,248,139,172,253,141,233,139,141,233,137,65, 607 25,255,252,247,208,139,106,252,248,139,172,253,141,233,139,141,233,137,65,
607 4,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,141, 608 4,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,141,
608 180,253,134,233,139,108,36,48,131,189,233,0,15,132,244,247,137,149,233,141, 609 180,253,134,233,139,108,36,48,131,189,233,0,15,132,244,247,137,149,233,141,
609 20,202,137,252,233,232,251,1,26,139,149,233,248,1,139,6,15,182,204,15,182, 610 20,202,137,252,233,232,251,1,27,139,149,233,248,1,139,6,15,182,204,15,182,
610 232,131,198,4,193,232,16,252,255,36,171,255,252,247,208,139,74,252,248,139, 611 232,131,198,4,193,232,16,252,255,36,171,255,252,247,208,139,74,252,248,139,
611 4,135,139,108,36,48,137,76,36,8,137,68,36,4,137,44,36,137,149,233,137,116, 612 4,135,139,108,36,48,137,76,36,8,137,68,36,4,137,44,36,137,149,233,137,116,
612 36,24,232,251,1,27,139,149,233,15,182,78,252,253,137,4,202,199,68,202,4,237, 613 36,24,232,251,1,28,139,149,233,15,182,78,252,253,137,4,202,199,68,202,4,237,
613 139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,137,197, 614 139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,255,137,197,
614 37,252,255,7,0,0,193,252,237,11,61,252,255,7,0,0,15,132,244,249,248,2,137, 615 37,252,255,7,0,0,193,252,237,11,61,252,255,7,0,0,15,132,244,249,248,2,137,
615 108,36,8,139,108,36,48,137,68,36,4,137,116,36,24,139,131,233,137,44,36,59, 616 108,36,8,139,108,36,48,137,68,36,4,137,116,36,24,139,131,233,137,44,36,59,
616 131,233,137,149,233,15,131,244,251,248,1,232,251,1,28,139,149,233,15,182, 617 131,233,137,149,233,15,131,244,251,248,1,232,251,1,29,139,149,233,15,182,
617 78,252,253,137,4,202,199,68,202,4,237,139,6,15,182,204,15,182,232,131,198, 618 78,252,253,137,4,202,199,68,202,4,237,139,6,15,182,204,15,182,232,131,198,
618 4,193,232,16,252,255,36,171,248,3,184,1,8,0,0,252,233,244,2,248,5,137,252, 619 4,193,232,16,252,255,36,171,248,3,184,1,8,0,0,252,233,244,2,248,5,137,252,
619 233,232,251,1,29,252,233,244,1,255,252,247,208,139,108,36,48,139,139,233, 620 233,232,251,1,30,252,233,244,1,255,252,247,208,139,108,36,48,139,139,233,
620 137,116,36,24,59,139,233,137,149,233,15,131,244,249,248,2,139,20,135,137, 621 137,116,36,24,59,139,233,137,149,233,15,131,244,249,248,2,139,20,135,137,
621 252,233,232,251,1,30,139,149,233,15,182,78,252,253,137,4,202,199,68,202,4, 622 252,233,232,251,1,31,139,149,233,15,182,78,252,253,137,4,202,199,68,202,4,
622 237,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,3, 623 237,139,6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,3,
623 137,252,233,232,251,1,29,15,183,70,252,254,252,247,208,252,233,244,2,255, 624 137,252,233,232,251,1,30,15,183,70,252,254,252,247,208,252,233,244,2,255,
624 252,247,208,139,106,252,248,139,173,233,139,4,135,252,233,244,157,255,252, 625 252,247,208,139,106,252,248,139,173,233,139,4,135,252,233,244,157,255,252,
625 247,208,139,106,252,248,139,173,233,139,4,135,252,233,244,158,255,15,182, 626 247,208,139,106,252,248,139,173,233,139,4,135,252,233,244,158,255,15,182,
626 252,236,15,182,192,129,124,253,252,234,4,239,15,133,244,36,139,44,252,234, 627 252,236,15,182,192,129,124,253,252,234,4,239,15,133,244,36,139,44,252,234,
@@ -663,7 +664,7 @@ static const unsigned char build_actionlist[15165] = {
663 133,201,15,133,244,1,255,139,141,233,133,201,15,132,244,252,252,246,129,233, 664 133,201,15,133,244,1,255,139,141,233,133,201,15,132,244,252,252,246,129,233,
664 235,15,132,244,37,248,6,137,68,36,16,199,68,36,20,237,137,108,36,12,141,68, 665 235,15,132,244,37,248,6,137,68,36,16,199,68,36,20,237,137,108,36,12,141,68,
665 36,16,137,108,36,4,139,108,36,48,137,68,36,8,137,44,36,137,149,233,137,116, 666 36,16,137,108,36,4,139,108,36,48,137,68,36,8,137,44,36,137,149,233,137,116,
666 36,24,232,251,1,31,139,149,233,139,108,36,12,137,193,252,233,244,2,248,7, 667 36,24,232,251,1,32,139,149,233,139,108,36,12,137,193,252,233,244,2,248,7,
667 128,165,233,235,139,131,233,137,171,233,137,133,233,252,233,244,3,255,15, 668 128,165,233,235,139,131,233,137,171,233,137,133,233,252,233,244,3,255,15,
668 182,252,236,15,182,192,129,124,253,252,234,4,239,15,133,244,38,139,44,252, 669 182,252,236,15,182,192,129,124,253,252,234,4,239,15,133,244,38,139,44,252,
669 234,59,133,233,15,131,244,38,193,224,3,3,133,233,129,120,253,4,239,15,132, 670 234,59,133,233,15,131,244,38,193,224,3,3,133,233,129,120,253,4,239,15,132,
@@ -679,7 +680,7 @@ static const unsigned char build_actionlist[15165] = {
679 193,8,137,111,4,131,199,8,131,232,1,15,133,244,3,248,4,139,124,36,16,139, 680 193,8,137,111,4,131,199,8,131,232,1,15,133,244,3,248,4,139,124,36,16,139,
680 6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,5,137,108, 681 6,15,182,204,15,182,232,131,198,4,193,232,16,252,255,36,171,248,5,137,108,
681 36,4,139,108,36,48,137,149,233,137,68,36,8,137,44,36,137,116,36,24,232,251, 682 36,4,139,108,36,48,137,149,233,137,68,36,8,137,44,36,137,116,36,24,232,251,
682 1,32,139,149,233,15,182,78,252,253,252,233,244,1,248,7,128,165,233,235,139, 683 1,33,139,149,233,15,182,78,252,253,252,233,244,1,248,7,128,165,233,235,139,
683 131,233,137,171,233,255,137,133,233,252,233,244,2,255,3,68,36,20,255,129, 684 131,233,137,171,233,255,137,133,233,252,233,244,2,255,3,68,36,20,255,129,
684 124,253,202,4,239,139,44,202,15,133,244,51,141,84,202,8,137,114,252,252,139, 685 124,253,202,4,239,139,44,202,15,133,244,51,141,84,202,8,137,114,252,252,139,
685 181,233,139,14,15,182,252,233,15,182,205,131,198,4,252,255,36,171,255,141, 686 181,233,139,14,15,182,252,233,15,182,205,131,198,4,252,255,36,171,255,141,
@@ -1076,6 +1077,7 @@ static const char *const extnames[] = {
1076 "lj_trace_hot@8", 1077 "lj_trace_hot@8",
1077 "lj_dispatch_call@8", 1078 "lj_dispatch_call@8",
1078 "lj_trace_exit@8", 1079 "lj_trace_exit@8",
1080 "lj_err_throw@8",
1079 "lj_meta_cat", 1081 "lj_meta_cat",
1080 "lj_gc_barrieruv@8", 1082 "lj_gc_barrieruv@8",
1081 "lj_func_closeuv@8", 1083 "lj_func_closeuv@8",
@@ -1453,91 +1455,92 @@ static void build_subroutines(BuildCtx *ctx, int cmov, int sse)
1453#endif 1455#endif
1454 dasm_put(Dst, 8216, Dt1(->base), Dt1(->top)); 1456 dasm_put(Dst, 8216, Dt1(->base), Dt1(->top));
1455#if LJ_HASJIT 1457#if LJ_HASJIT
1456 dasm_put(Dst, 8245, 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)); 1458 dasm_put(Dst, 8245, 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(->cframe), CFRAME_RAWMASK);
1459 dasm_put(Dst, 8393, Dt1(->base));
1457#endif 1460#endif
1458 dasm_put(Dst, 8388); 1461 dasm_put(Dst, 8401);
1459#if LJ_HASJIT 1462#if LJ_HASJIT
1460 dasm_put(Dst, 8391, Dt7(->pc), PC2PROTO(k), DISPATCH_GL(jit_L), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP); 1463 dasm_put(Dst, 8404, Dt7(->pc), PC2PROTO(k), DISPATCH_GL(jit_L), DISPATCH_GL(vmstate), ~LJ_VMST_INTERP);
1461#endif 1464#endif
1462 dasm_put(Dst, 8431); 1465 dasm_put(Dst, 8455);
1463 if (!sse) { 1466 if (!sse) {
1464 dasm_put(Dst, 8434); 1467 dasm_put(Dst, 8458);
1465 } 1468 }
1466 dasm_put(Dst, 8479); 1469 dasm_put(Dst, 8503);
1467 if (!sse) { 1470 if (!sse) {
1468 dasm_put(Dst, 8581); 1471 dasm_put(Dst, 8605);
1469 } 1472 }
1470 dasm_put(Dst, 8626); 1473 dasm_put(Dst, 8650);
1471 if (!sse) { 1474 if (!sse) {
1472 dasm_put(Dst, 8728); 1475 dasm_put(Dst, 8752);
1473 } 1476 }
1474 dasm_put(Dst, 8767); 1477 dasm_put(Dst, 8791);
1475 if (sse) { 1478 if (sse) {
1476 dasm_put(Dst, 8872); 1479 dasm_put(Dst, 8896);
1477 } else { 1480 } else {
1478 dasm_put(Dst, 9002); 1481 dasm_put(Dst, 9026);
1479 } 1482 }
1480 dasm_put(Dst, 9049); 1483 dasm_put(Dst, 9073);
1481 if (!sse) { 1484 if (!sse) {
1482 dasm_put(Dst, 9123); 1485 dasm_put(Dst, 9147);
1483 if (cmov) { 1486 if (cmov) {
1484 dasm_put(Dst, 9134); 1487 dasm_put(Dst, 9158);
1485 } else { 1488 } else {
1486 dasm_put(Dst, 9138); 1489 dasm_put(Dst, 9162);
1487 } 1490 }
1488 dasm_put(Dst, 9145); 1491 dasm_put(Dst, 9169);
1489 dasm_put(Dst, 9219); 1492 dasm_put(Dst, 9243);
1490 dasm_put(Dst, 9319); 1493 dasm_put(Dst, 9343);
1491 if (cmov) { 1494 if (cmov) {
1492 dasm_put(Dst, 9322); 1495 dasm_put(Dst, 9346);
1493 } else { 1496 } else {
1494 dasm_put(Dst, 9326); 1497 dasm_put(Dst, 9350);
1495 } 1498 }
1496 dasm_put(Dst, 9333); 1499 dasm_put(Dst, 9357);
1497 if (cmov) { 1500 if (cmov) {
1498 dasm_put(Dst, 9134); 1501 dasm_put(Dst, 9158);
1499 } else { 1502 } else {
1500 dasm_put(Dst, 9138); 1503 dasm_put(Dst, 9162);
1501 } 1504 }
1502 dasm_put(Dst, 9351); 1505 dasm_put(Dst, 9375);
1503 } else { 1506 } else {
1504 dasm_put(Dst, 9430); 1507 dasm_put(Dst, 9454);
1505 } 1508 }
1506 dasm_put(Dst, 9433); 1509 dasm_put(Dst, 9457);
1507 dasm_put(Dst, 9518); 1510 dasm_put(Dst, 9542);
1508 dasm_put(Dst, 9649); 1511 dasm_put(Dst, 9673);
1509 dasm_put(Dst, 9848); 1512 dasm_put(Dst, 9872);
1510 if (sse) { 1513 if (sse) {
1511 dasm_put(Dst, 9871); 1514 dasm_put(Dst, 9895);
1512 dasm_put(Dst, 9928); 1515 dasm_put(Dst, 9952);
1513 dasm_put(Dst, 10019); 1516 dasm_put(Dst, 10043);
1514 } else { 1517 } else {
1515 dasm_put(Dst, 10061); 1518 dasm_put(Dst, 10085);
1516 dasm_put(Dst, 10153); 1519 dasm_put(Dst, 10177);
1517 } 1520 }
1518 dasm_put(Dst, 10199); 1521 dasm_put(Dst, 10223);
1519 if (sse) { 1522 if (sse) {
1520 dasm_put(Dst, 10205); 1523 dasm_put(Dst, 10229);
1521 dasm_put(Dst, 10310); 1524 dasm_put(Dst, 10334);
1522 dasm_put(Dst, 10393); 1525 dasm_put(Dst, 10417);
1523 } else { 1526 } else {
1524 dasm_put(Dst, 10465); 1527 dasm_put(Dst, 10489);
1525 dasm_put(Dst, 10548); 1528 dasm_put(Dst, 10572);
1526 if (cmov) { 1529 if (cmov) {
1527 dasm_put(Dst, 10603); 1530 dasm_put(Dst, 10627);
1528 } else { 1531 } else {
1529 dasm_put(Dst, 10622); 1532 dasm_put(Dst, 10646);
1530 } 1533 }
1531 dasm_put(Dst, 10461); 1534 dasm_put(Dst, 10485);
1532 } 1535 }
1533 dasm_put(Dst, 10663); 1536 dasm_put(Dst, 10687);
1534} 1537}
1535 1538
1536/* Generate the code for a single instruction. */ 1539/* Generate the code for a single instruction. */
1537static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse) 1540static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
1538{ 1541{
1539 int vk = 0; 1542 int vk = 0;
1540 dasm_put(Dst, 10717, defop); 1543 dasm_put(Dst, 10741, defop);
1541 1544
1542 switch (op) { 1545 switch (op) {
1543 1546
@@ -1546,617 +1549,617 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
1546 /* Remember: all ops branch for a true comparison, fall through otherwise. */ 1549 /* Remember: all ops branch for a true comparison, fall through otherwise. */
1547 1550
1548 case BC_ISLT: case BC_ISGE: case BC_ISLE: case BC_ISGT: 1551 case BC_ISLT: case BC_ISGE: case BC_ISLE: case BC_ISGT:
1549 dasm_put(Dst, 10719, LJ_TISNUM, LJ_TISNUM); 1552 dasm_put(Dst, 10743, LJ_TISNUM, LJ_TISNUM);
1550 if (sse) { 1553 if (sse) {
1551 dasm_put(Dst, 10740); 1554 dasm_put(Dst, 10764);
1552 } else { 1555 } else {
1553 dasm_put(Dst, 10755); 1556 dasm_put(Dst, 10779);
1554 if (cmov) { 1557 if (cmov) {
1555 dasm_put(Dst, 10765); 1558 dasm_put(Dst, 10789);
1556 } else { 1559 } else {
1557 dasm_put(Dst, 10771); 1560 dasm_put(Dst, 10795);
1558 } 1561 }
1559 } 1562 }
1560 switch (op) { 1563 switch (op) {
1561 case BC_ISLT: 1564 case BC_ISLT:
1562 dasm_put(Dst, 10778); 1565 dasm_put(Dst, 10802);
1563 break; 1566 break;
1564 case BC_ISGE: 1567 case BC_ISGE:
1565 dasm_put(Dst, 10014); 1568 dasm_put(Dst, 10038);
1566 break; 1569 break;
1567 case BC_ISLE: 1570 case BC_ISLE:
1568 dasm_put(Dst, 6179); 1571 dasm_put(Dst, 6179);
1569 break; 1572 break;
1570 case BC_ISGT: 1573 case BC_ISGT:
1571 dasm_put(Dst, 10783); 1574 dasm_put(Dst, 10807);
1572 break; 1575 break;
1573 default: break; /* Shut up GCC. */ 1576 default: break; /* Shut up GCC. */
1574 } 1577 }
1575 dasm_put(Dst, 10788, -BCBIAS_J*4); 1578 dasm_put(Dst, 10812, -BCBIAS_J*4);
1576 break; 1579 break;
1577 1580
1578 case BC_ISEQV: case BC_ISNEV: 1581 case BC_ISEQV: case BC_ISNEV:
1579 vk = op == BC_ISEQV; 1582 vk = op == BC_ISEQV;
1580 dasm_put(Dst, 10821, LJ_TISNUM, LJ_TISNUM); 1583 dasm_put(Dst, 10845, LJ_TISNUM, LJ_TISNUM);
1581 if (sse) { 1584 if (sse) {
1582 dasm_put(Dst, 10847); 1585 dasm_put(Dst, 10871);
1583 } else { 1586 } else {
1584 dasm_put(Dst, 10859); 1587 dasm_put(Dst, 10883);
1585 if (cmov) { 1588 if (cmov) {
1586 dasm_put(Dst, 10765); 1589 dasm_put(Dst, 10789);
1587 } else { 1590 } else {
1588 dasm_put(Dst, 10771); 1591 dasm_put(Dst, 10795);
1589 } 1592 }
1590 } 1593 }
1591 iseqne_fp: 1594 iseqne_fp:
1592 if (vk) { 1595 if (vk) {
1593 dasm_put(Dst, 10866); 1596 dasm_put(Dst, 10890);
1594 } else { 1597 } else {
1595 dasm_put(Dst, 10875); 1598 dasm_put(Dst, 10899);
1596 } 1599 }
1597 iseqne_end: 1600 iseqne_end:
1598 if (vk) { 1601 if (vk) {
1599 dasm_put(Dst, 10884, -BCBIAS_J*4); 1602 dasm_put(Dst, 10908, -BCBIAS_J*4);
1600 } else { 1603 } else {
1601 dasm_put(Dst, 10899, -BCBIAS_J*4); 1604 dasm_put(Dst, 10923, -BCBIAS_J*4);
1602 } 1605 }
1603 dasm_put(Dst, 8412); 1606 dasm_put(Dst, 10826);
1604 if (op == BC_ISEQV || op == BC_ISNEV) { 1607 if (op == BC_ISEQV || op == BC_ISNEV) {
1605 dasm_put(Dst, 10914, LJ_TISPRI, LJ_TISTABUD, Dt6(->metatable), Dt6(->nomm), 1<<MM_eq); 1608 dasm_put(Dst, 10938, LJ_TISPRI, LJ_TISTABUD, Dt6(->metatable), Dt6(->nomm), 1<<MM_eq);
1606 if (vk) { 1609 if (vk) {
1607 dasm_put(Dst, 10972); 1610 dasm_put(Dst, 10996);
1608 } else { 1611 } else {
1609 dasm_put(Dst, 10976); 1612 dasm_put(Dst, 11000);
1610 } 1613 }
1611 dasm_put(Dst, 10982); 1614 dasm_put(Dst, 11006);
1612 } 1615 }
1613 break; 1616 break;
1614 case BC_ISEQS: case BC_ISNES: 1617 case BC_ISEQS: case BC_ISNES:
1615 vk = op == BC_ISEQS; 1618 vk = op == BC_ISEQS;
1616 dasm_put(Dst, 10987, LJ_TSTR); 1619 dasm_put(Dst, 11011, LJ_TSTR);
1617 iseqne_test: 1620 iseqne_test:
1618 if (vk) { 1621 if (vk) {
1619 dasm_put(Dst, 10870); 1622 dasm_put(Dst, 10894);
1620 } else { 1623 } else {
1621 dasm_put(Dst, 2809); 1624 dasm_put(Dst, 2809);
1622 } 1625 }
1623 goto iseqne_end; 1626 goto iseqne_end;
1624 case BC_ISEQN: case BC_ISNEN: 1627 case BC_ISEQN: case BC_ISNEN:
1625 vk = op == BC_ISEQN; 1628 vk = op == BC_ISEQN;
1626 dasm_put(Dst, 11010, LJ_TISNUM); 1629 dasm_put(Dst, 11034, LJ_TISNUM);
1627 if (sse) { 1630 if (sse) {
1628 dasm_put(Dst, 11024); 1631 dasm_put(Dst, 11048);
1629 } else { 1632 } else {
1630 dasm_put(Dst, 11036); 1633 dasm_put(Dst, 11060);
1631 if (cmov) { 1634 if (cmov) {
1632 dasm_put(Dst, 10765); 1635 dasm_put(Dst, 10789);
1633 } else { 1636 } else {
1634 dasm_put(Dst, 10771); 1637 dasm_put(Dst, 10795);
1635 } 1638 }
1636 } 1639 }
1637 goto iseqne_fp; 1640 goto iseqne_fp;
1638 case BC_ISEQP: case BC_ISNEP: 1641 case BC_ISEQP: case BC_ISNEP:
1639 vk = op == BC_ISEQP; 1642 vk = op == BC_ISEQP;
1640 dasm_put(Dst, 11043); 1643 dasm_put(Dst, 11067);
1641 goto iseqne_test; 1644 goto iseqne_test;
1642 1645
1643 /* -- Unary test and copy ops ------------------------------------------- */ 1646 /* -- Unary test and copy ops ------------------------------------------- */
1644 1647
1645 case BC_ISTC: case BC_ISFC: case BC_IST: case BC_ISF: 1648 case BC_ISTC: case BC_ISFC: case BC_IST: case BC_ISF:
1646 dasm_put(Dst, 11054, LJ_TISTRUECOND); 1649 dasm_put(Dst, 11078, LJ_TISTRUECOND);
1647 if (op == BC_IST || op == BC_ISTC) { 1650 if (op == BC_IST || op == BC_ISTC) {
1648 dasm_put(Dst, 11066); 1651 dasm_put(Dst, 11090);
1649 } else { 1652 } else {
1650 dasm_put(Dst, 11071); 1653 dasm_put(Dst, 11095);
1651 } 1654 }
1652 if (op == BC_ISTC || op == BC_ISFC) { 1655 if (op == BC_ISTC || op == BC_ISFC) {
1653 dasm_put(Dst, 11076); 1656 dasm_put(Dst, 11100);
1654 } 1657 }
1655 dasm_put(Dst, 11087, -BCBIAS_J*4); 1658 dasm_put(Dst, 11111, -BCBIAS_J*4);
1656 break; 1659 break;
1657 1660
1658 /* -- Unary ops --------------------------------------------------------- */ 1661 /* -- Unary ops --------------------------------------------------------- */
1659 1662
1660 case BC_MOV: 1663 case BC_MOV:
1661 dasm_put(Dst, 11118); 1664 dasm_put(Dst, 11142);
1662 break; 1665 break;
1663 case BC_NOT: 1666 case BC_NOT:
1664 dasm_put(Dst, 11151, LJ_TISTRUECOND, LJ_TTRUE); 1667 dasm_put(Dst, 11175, LJ_TISTRUECOND, LJ_TTRUE);
1665 break; 1668 break;
1666 case BC_UNM: 1669 case BC_UNM:
1667 dasm_put(Dst, 11186, LJ_TISNUM); 1670 dasm_put(Dst, 11210, LJ_TISNUM);
1668 if (sse) { 1671 if (sse) {
1669 dasm_put(Dst, 11197); 1672 dasm_put(Dst, 11221);
1670 } else { 1673 } else {
1671 dasm_put(Dst, 11227); 1674 dasm_put(Dst, 11251);
1672 } 1675 }
1673 dasm_put(Dst, 8412); 1676 dasm_put(Dst, 10826);
1674 break; 1677 break;
1675 case BC_LEN: 1678 case BC_LEN:
1676 dasm_put(Dst, 11236, LJ_TSTR); 1679 dasm_put(Dst, 11260, LJ_TSTR);
1677 if (sse) { 1680 if (sse) {
1678 dasm_put(Dst, 11250, Dt5(->len)); 1681 dasm_put(Dst, 11274, Dt5(->len));
1679 } else { 1682 } else {
1680 dasm_put(Dst, 11268, Dt5(->len)); 1683 dasm_put(Dst, 11292, Dt5(->len));
1681 } 1684 }
1682 dasm_put(Dst, 11277, LJ_TTAB); 1685 dasm_put(Dst, 11301, LJ_TTAB);
1683 if (sse) { 1686 if (sse) {
1684 dasm_put(Dst, 11317); 1687 dasm_put(Dst, 11341);
1685 } else { 1688 } else {
1686 dasm_put(Dst, 11326); 1689 dasm_put(Dst, 11350);
1687 } 1690 }
1688 dasm_put(Dst, 11336); 1691 dasm_put(Dst, 11360);
1689 break; 1692 break;
1690 1693
1691 /* -- Binary ops -------------------------------------------------------- */ 1694 /* -- Binary ops -------------------------------------------------------- */
1692 1695
1693 1696
1694 case BC_ADDVN: case BC_ADDNV: case BC_ADDVV: 1697 case BC_ADDVN: case BC_ADDNV: case BC_ADDVV:
1695 dasm_put(Dst, 11346); 1698 dasm_put(Dst, 11370);
1696 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1699 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1697 switch (vk) { 1700 switch (vk) {
1698 case 0: 1701 case 0:
1699 dasm_put(Dst, 11354, LJ_TISNUM); 1702 dasm_put(Dst, 11378, LJ_TISNUM);
1700 if (sse) { 1703 if (sse) {
1701 dasm_put(Dst, 11366); 1704 dasm_put(Dst, 11390);
1702 } else { 1705 } else {
1703 dasm_put(Dst, 11380); 1706 dasm_put(Dst, 11404);
1704 } 1707 }
1705 break; 1708 break;
1706 case 1: 1709 case 1:
1707 dasm_put(Dst, 11388, LJ_TISNUM); 1710 dasm_put(Dst, 11412, LJ_TISNUM);
1708 if (sse) { 1711 if (sse) {
1709 dasm_put(Dst, 11400); 1712 dasm_put(Dst, 11424);
1710 } else { 1713 } else {
1711 dasm_put(Dst, 11414); 1714 dasm_put(Dst, 11438);
1712 } 1715 }
1713 break; 1716 break;
1714 default: 1717 default:
1715 dasm_put(Dst, 11422, LJ_TISNUM, LJ_TISNUM); 1718 dasm_put(Dst, 11446, LJ_TISNUM, LJ_TISNUM);
1716 if (sse) { 1719 if (sse) {
1717 dasm_put(Dst, 11444); 1720 dasm_put(Dst, 11468);
1718 } else { 1721 } else {
1719 dasm_put(Dst, 11458); 1722 dasm_put(Dst, 11482);
1720 } 1723 }
1721 break; 1724 break;
1722 } 1725 }
1723 if (sse) { 1726 if (sse) {
1724 dasm_put(Dst, 11220); 1727 dasm_put(Dst, 11244);
1725 } else { 1728 } else {
1726 dasm_put(Dst, 11232); 1729 dasm_put(Dst, 11256);
1727 } 1730 }
1728 dasm_put(Dst, 8412); 1731 dasm_put(Dst, 10826);
1729 break; 1732 break;
1730 case BC_SUBVN: case BC_SUBNV: case BC_SUBVV: 1733 case BC_SUBVN: case BC_SUBNV: case BC_SUBVV:
1731 dasm_put(Dst, 11346); 1734 dasm_put(Dst, 11370);
1732 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1735 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1733 switch (vk) { 1736 switch (vk) {
1734 case 0: 1737 case 0:
1735 dasm_put(Dst, 11354, LJ_TISNUM); 1738 dasm_put(Dst, 11378, LJ_TISNUM);
1736 if (sse) { 1739 if (sse) {
1737 dasm_put(Dst, 11466); 1740 dasm_put(Dst, 11490);
1738 } else { 1741 } else {
1739 dasm_put(Dst, 11480); 1742 dasm_put(Dst, 11504);
1740 } 1743 }
1741 break; 1744 break;
1742 case 1: 1745 case 1:
1743 dasm_put(Dst, 11388, LJ_TISNUM); 1746 dasm_put(Dst, 11412, LJ_TISNUM);
1744 if (sse) { 1747 if (sse) {
1745 dasm_put(Dst, 11488); 1748 dasm_put(Dst, 11512);
1746 } else { 1749 } else {
1747 dasm_put(Dst, 11502); 1750 dasm_put(Dst, 11526);
1748 } 1751 }
1749 break; 1752 break;
1750 default: 1753 default:
1751 dasm_put(Dst, 11422, LJ_TISNUM, LJ_TISNUM); 1754 dasm_put(Dst, 11446, LJ_TISNUM, LJ_TISNUM);
1752 if (sse) { 1755 if (sse) {
1753 dasm_put(Dst, 11510); 1756 dasm_put(Dst, 11534);
1754 } else { 1757 } else {
1755 dasm_put(Dst, 11524); 1758 dasm_put(Dst, 11548);
1756 } 1759 }
1757 break; 1760 break;
1758 } 1761 }
1759 if (sse) { 1762 if (sse) {
1760 dasm_put(Dst, 11220); 1763 dasm_put(Dst, 11244);
1761 } else { 1764 } else {
1762 dasm_put(Dst, 11232); 1765 dasm_put(Dst, 11256);
1763 } 1766 }
1764 dasm_put(Dst, 8412); 1767 dasm_put(Dst, 10826);
1765 break; 1768 break;
1766 case BC_MULVN: case BC_MULNV: case BC_MULVV: 1769 case BC_MULVN: case BC_MULNV: case BC_MULVV:
1767 dasm_put(Dst, 11346); 1770 dasm_put(Dst, 11370);
1768 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1771 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1769 switch (vk) { 1772 switch (vk) {
1770 case 0: 1773 case 0:
1771 dasm_put(Dst, 11354, LJ_TISNUM); 1774 dasm_put(Dst, 11378, LJ_TISNUM);
1772 if (sse) { 1775 if (sse) {
1773 dasm_put(Dst, 11532); 1776 dasm_put(Dst, 11556);
1774 } else { 1777 } else {
1775 dasm_put(Dst, 11546); 1778 dasm_put(Dst, 11570);
1776 } 1779 }
1777 break; 1780 break;
1778 case 1: 1781 case 1:
1779 dasm_put(Dst, 11388, LJ_TISNUM); 1782 dasm_put(Dst, 11412, LJ_TISNUM);
1780 if (sse) { 1783 if (sse) {
1781 dasm_put(Dst, 11554); 1784 dasm_put(Dst, 11578);
1782 } else { 1785 } else {
1783 dasm_put(Dst, 11568); 1786 dasm_put(Dst, 11592);
1784 } 1787 }
1785 break; 1788 break;
1786 default: 1789 default:
1787 dasm_put(Dst, 11422, LJ_TISNUM, LJ_TISNUM); 1790 dasm_put(Dst, 11446, LJ_TISNUM, LJ_TISNUM);
1788 if (sse) { 1791 if (sse) {
1789 dasm_put(Dst, 11576); 1792 dasm_put(Dst, 11600);
1790 } else { 1793 } else {
1791 dasm_put(Dst, 11590); 1794 dasm_put(Dst, 11614);
1792 } 1795 }
1793 break; 1796 break;
1794 } 1797 }
1795 if (sse) { 1798 if (sse) {
1796 dasm_put(Dst, 11220); 1799 dasm_put(Dst, 11244);
1797 } else { 1800 } else {
1798 dasm_put(Dst, 11232); 1801 dasm_put(Dst, 11256);
1799 } 1802 }
1800 dasm_put(Dst, 8412); 1803 dasm_put(Dst, 10826);
1801 break; 1804 break;
1802 case BC_DIVVN: case BC_DIVNV: case BC_DIVVV: 1805 case BC_DIVVN: case BC_DIVNV: case BC_DIVVV:
1803 dasm_put(Dst, 11346); 1806 dasm_put(Dst, 11370);
1804 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1807 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1805 switch (vk) { 1808 switch (vk) {
1806 case 0: 1809 case 0:
1807 dasm_put(Dst, 11354, LJ_TISNUM); 1810 dasm_put(Dst, 11378, LJ_TISNUM);
1808 if (sse) { 1811 if (sse) {
1809 dasm_put(Dst, 11598); 1812 dasm_put(Dst, 11622);
1810 } else { 1813 } else {
1811 dasm_put(Dst, 11612); 1814 dasm_put(Dst, 11636);
1812 } 1815 }
1813 break; 1816 break;
1814 case 1: 1817 case 1:
1815 dasm_put(Dst, 11388, LJ_TISNUM); 1818 dasm_put(Dst, 11412, LJ_TISNUM);
1816 if (sse) { 1819 if (sse) {
1817 dasm_put(Dst, 11620); 1820 dasm_put(Dst, 11644);
1818 } else { 1821 } else {
1819 dasm_put(Dst, 11634); 1822 dasm_put(Dst, 11658);
1820 } 1823 }
1821 break; 1824 break;
1822 default: 1825 default:
1823 dasm_put(Dst, 11422, LJ_TISNUM, LJ_TISNUM); 1826 dasm_put(Dst, 11446, LJ_TISNUM, LJ_TISNUM);
1824 if (sse) { 1827 if (sse) {
1825 dasm_put(Dst, 11642); 1828 dasm_put(Dst, 11666);
1826 } else { 1829 } else {
1827 dasm_put(Dst, 11656); 1830 dasm_put(Dst, 11680);
1828 } 1831 }
1829 break; 1832 break;
1830 } 1833 }
1831 if (sse) { 1834 if (sse) {
1832 dasm_put(Dst, 11220); 1835 dasm_put(Dst, 11244);
1833 } else { 1836 } else {
1834 dasm_put(Dst, 11232); 1837 dasm_put(Dst, 11256);
1835 } 1838 }
1836 dasm_put(Dst, 8412); 1839 dasm_put(Dst, 10826);
1837 break; 1840 break;
1838 case BC_MODVN: 1841 case BC_MODVN:
1839 dasm_put(Dst, 11346); 1842 dasm_put(Dst, 11370);
1840 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1843 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1841 switch (vk) { 1844 switch (vk) {
1842 case 0: 1845 case 0:
1843 dasm_put(Dst, 11354, LJ_TISNUM); 1846 dasm_put(Dst, 11378, LJ_TISNUM);
1844 if (sse) { 1847 if (sse) {
1845 dasm_put(Dst, 11664); 1848 dasm_put(Dst, 11688);
1846 } else { 1849 } else {
1847 dasm_put(Dst, 11678); 1850 dasm_put(Dst, 11702);
1848 } 1851 }
1849 break; 1852 break;
1850 case 1: 1853 case 1:
1851 dasm_put(Dst, 11388, LJ_TISNUM); 1854 dasm_put(Dst, 11412, LJ_TISNUM);
1852 if (sse) { 1855 if (sse) {
1853 dasm_put(Dst, 11686); 1856 dasm_put(Dst, 11710);
1854 } else { 1857 } else {
1855 dasm_put(Dst, 11700); 1858 dasm_put(Dst, 11724);
1856 } 1859 }
1857 break; 1860 break;
1858 default: 1861 default:
1859 dasm_put(Dst, 11422, LJ_TISNUM, LJ_TISNUM); 1862 dasm_put(Dst, 11446, LJ_TISNUM, LJ_TISNUM);
1860 if (sse) { 1863 if (sse) {
1861 dasm_put(Dst, 11708); 1864 dasm_put(Dst, 11732);
1862 } else { 1865 } else {
1863 dasm_put(Dst, 11722); 1866 dasm_put(Dst, 11746);
1864 } 1867 }
1865 break; 1868 break;
1866 } 1869 }
1867 dasm_put(Dst, 11730); 1870 dasm_put(Dst, 11754);
1868 if (sse) { 1871 if (sse) {
1869 dasm_put(Dst, 11220); 1872 dasm_put(Dst, 11244);
1870 } else { 1873 } else {
1871 dasm_put(Dst, 11232); 1874 dasm_put(Dst, 11256);
1872 } 1875 }
1873 dasm_put(Dst, 8412); 1876 dasm_put(Dst, 10826);
1874 break; 1877 break;
1875 case BC_MODNV: case BC_MODVV: 1878 case BC_MODNV: case BC_MODVV:
1876 dasm_put(Dst, 11346); 1879 dasm_put(Dst, 11370);
1877 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1880 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1878 switch (vk) { 1881 switch (vk) {
1879 case 0: 1882 case 0:
1880 dasm_put(Dst, 11354, LJ_TISNUM); 1883 dasm_put(Dst, 11378, LJ_TISNUM);
1881 if (sse) { 1884 if (sse) {
1882 dasm_put(Dst, 11664); 1885 dasm_put(Dst, 11688);
1883 } else { 1886 } else {
1884 dasm_put(Dst, 11678); 1887 dasm_put(Dst, 11702);
1885 } 1888 }
1886 break; 1889 break;
1887 case 1: 1890 case 1:
1888 dasm_put(Dst, 11388, LJ_TISNUM); 1891 dasm_put(Dst, 11412, LJ_TISNUM);
1889 if (sse) { 1892 if (sse) {
1890 dasm_put(Dst, 11686); 1893 dasm_put(Dst, 11710);
1891 } else { 1894 } else {
1892 dasm_put(Dst, 11700); 1895 dasm_put(Dst, 11724);
1893 } 1896 }
1894 break; 1897 break;
1895 default: 1898 default:
1896 dasm_put(Dst, 11422, LJ_TISNUM, LJ_TISNUM); 1899 dasm_put(Dst, 11446, LJ_TISNUM, LJ_TISNUM);
1897 if (sse) { 1900 if (sse) {
1898 dasm_put(Dst, 11708); 1901 dasm_put(Dst, 11732);
1899 } else { 1902 } else {
1900 dasm_put(Dst, 11722); 1903 dasm_put(Dst, 11746);
1901 } 1904 }
1902 break; 1905 break;
1903 } 1906 }
1904 dasm_put(Dst, 11736); 1907 dasm_put(Dst, 11760);
1905 break; 1908 break;
1906 case BC_POW: 1909 case BC_POW:
1907 dasm_put(Dst, 11346); 1910 dasm_put(Dst, 11370);
1908 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN); 1911 vk = ((int)op - BC_ADDVN) / (BC_ADDNV-BC_ADDVN);
1909 switch (vk) { 1912 switch (vk) {
1910 case 0: 1913 case 0:
1911 dasm_put(Dst, 11354, LJ_TISNUM); 1914 dasm_put(Dst, 11378, LJ_TISNUM);
1912 if (sse) { 1915 if (sse) {
1913 dasm_put(Dst, 11664); 1916 dasm_put(Dst, 11688);
1914 } else { 1917 } else {
1915 dasm_put(Dst, 11678); 1918 dasm_put(Dst, 11702);
1916 } 1919 }
1917 break; 1920 break;
1918 case 1: 1921 case 1:
1919 dasm_put(Dst, 11388, LJ_TISNUM); 1922 dasm_put(Dst, 11412, LJ_TISNUM);
1920 if (sse) { 1923 if (sse) {
1921 dasm_put(Dst, 11686); 1924 dasm_put(Dst, 11710);
1922 } else { 1925 } else {
1923 dasm_put(Dst, 11700); 1926 dasm_put(Dst, 11724);
1924 } 1927 }
1925 break; 1928 break;
1926 default: 1929 default:
1927 dasm_put(Dst, 11422, LJ_TISNUM, LJ_TISNUM); 1930 dasm_put(Dst, 11446, LJ_TISNUM, LJ_TISNUM);
1928 if (sse) { 1931 if (sse) {
1929 dasm_put(Dst, 11708); 1932 dasm_put(Dst, 11732);
1930 } else { 1933 } else {
1931 dasm_put(Dst, 11722); 1934 dasm_put(Dst, 11746);
1932 } 1935 }
1933 break; 1936 break;
1934 } 1937 }
1935 dasm_put(Dst, 11741); 1938 dasm_put(Dst, 11765);
1936 if (sse) { 1939 if (sse) {
1937 dasm_put(Dst, 11220); 1940 dasm_put(Dst, 11244);
1938 } else { 1941 } else {
1939 dasm_put(Dst, 11232); 1942 dasm_put(Dst, 11256);
1940 } 1943 }
1941 dasm_put(Dst, 8412); 1944 dasm_put(Dst, 10826);
1942 break; 1945 break;
1943 1946
1944 case BC_CAT: 1947 case BC_CAT:
1945 dasm_put(Dst, 11745, Dt1(->base), Dt1(->base)); 1948 dasm_put(Dst, 11769, Dt1(->base), Dt1(->base));
1946 break; 1949 break;
1947 1950
1948 /* -- Constant ops ------------------------------------------------------ */ 1951 /* -- Constant ops ------------------------------------------------------ */
1949 1952
1950 case BC_KSTR: 1953 case BC_KSTR:
1951 dasm_put(Dst, 11839, LJ_TSTR); 1954 dasm_put(Dst, 11863, LJ_TSTR);
1952 break; 1955 break;
1953 case BC_KSHORT: 1956 case BC_KSHORT:
1954 if (sse) { 1957 if (sse) {
1955 dasm_put(Dst, 11872); 1958 dasm_put(Dst, 11896);
1956 } else { 1959 } else {
1957 dasm_put(Dst, 11887); 1960 dasm_put(Dst, 11911);
1958 } 1961 }
1959 dasm_put(Dst, 8412); 1962 dasm_put(Dst, 10826);
1960 break; 1963 break;
1961 case BC_KNUM: 1964 case BC_KNUM:
1962 if (sse) { 1965 if (sse) {
1963 dasm_put(Dst, 11895); 1966 dasm_put(Dst, 11919);
1964 } else { 1967 } else {
1965 dasm_put(Dst, 11908); 1968 dasm_put(Dst, 11932);
1966 } 1969 }
1967 dasm_put(Dst, 8412); 1970 dasm_put(Dst, 10826);
1968 break; 1971 break;
1969 case BC_KPRI: 1972 case BC_KPRI:
1970 dasm_put(Dst, 11915); 1973 dasm_put(Dst, 11939);
1971 break; 1974 break;
1972 case BC_KNIL: 1975 case BC_KNIL:
1973 dasm_put(Dst, 11941, LJ_TNIL); 1976 dasm_put(Dst, 11965, LJ_TNIL);
1974 break; 1977 break;
1975 1978
1976 /* -- Upvalue and function ops ------------------------------------------ */ 1979 /* -- Upvalue and function ops ------------------------------------------ */
1977 1980
1978 case BC_UGET: 1981 case BC_UGET:
1979 dasm_put(Dst, 11987, offsetof(GCfuncL, uvptr), DtA(->v)); 1982 dasm_put(Dst, 12011, offsetof(GCfuncL, uvptr), DtA(->v));
1980 break; 1983 break;
1981 case BC_USETV: 1984 case BC_USETV:
1982#define TV2MARKOFS \ 1985#define TV2MARKOFS \
1983 ((int32_t)offsetof(GCupval, marked)-(int32_t)offsetof(GCupval, tv)) 1986 ((int32_t)offsetof(GCupval, marked)-(int32_t)offsetof(GCupval, tv))
1984 dasm_put(Dst, 12031, 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); 1987 dasm_put(Dst, 12055, 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);
1985 dasm_put(Dst, 12121); 1988 dasm_put(Dst, 12145);
1986 break; 1989 break;
1987#undef TV2MARKOFS 1990#undef TV2MARKOFS
1988 case BC_USETS: 1991 case BC_USETS:
1989 dasm_put(Dst, 12133, offsetof(GCfuncL, uvptr), DtA(->v), LJ_TSTR, DtA(->marked), LJ_GC_BLACK, Dt4(->gch.marked), LJ_GC_WHITES, DtA(->closed), GG_DISP2G); 1992 dasm_put(Dst, 12157, offsetof(GCfuncL, uvptr), DtA(->v), LJ_TSTR, DtA(->marked), LJ_GC_BLACK, Dt4(->gch.marked), LJ_GC_WHITES, DtA(->closed), GG_DISP2G);
1990 break; 1993 break;
1991 case BC_USETN: 1994 case BC_USETN:
1992 dasm_put(Dst, 12224); 1995 dasm_put(Dst, 12248);
1993 if (sse) { 1996 if (sse) {
1994 dasm_put(Dst, 12229); 1997 dasm_put(Dst, 12253);
1995 } else { 1998 } else {
1996 dasm_put(Dst, 11039); 1999 dasm_put(Dst, 11063);
1997 } 2000 }
1998 dasm_put(Dst, 12236, offsetof(GCfuncL, uvptr), DtA(->v)); 2001 dasm_put(Dst, 12260, offsetof(GCfuncL, uvptr), DtA(->v));
1999 if (sse) { 2002 if (sse) {
2000 dasm_put(Dst, 12245); 2003 dasm_put(Dst, 12269);
2001 } else { 2004 } else {
2002 dasm_put(Dst, 12251); 2005 dasm_put(Dst, 12275);
2003 } 2006 }
2004 dasm_put(Dst, 8412); 2007 dasm_put(Dst, 10826);
2005 break; 2008 break;
2006 case BC_USETP: 2009 case BC_USETP:
2007 dasm_put(Dst, 12254, offsetof(GCfuncL, uvptr), DtA(->v)); 2010 dasm_put(Dst, 12278, offsetof(GCfuncL, uvptr), DtA(->v));
2008 break; 2011 break;
2009 case BC_UCLO: 2012 case BC_UCLO:
2010 dasm_put(Dst, 12291, -BCBIAS_J*4, Dt1(->openupval), Dt1(->base), Dt1(->base)); 2013 dasm_put(Dst, 12315, -BCBIAS_J*4, Dt1(->openupval), Dt1(->base), Dt1(->base));
2011 break; 2014 break;
2012 2015
2013 case BC_FNEW: 2016 case BC_FNEW:
2014 dasm_put(Dst, 12345, Dt1(->base), Dt1(->base), LJ_TFUNC); 2017 dasm_put(Dst, 12369, Dt1(->base), Dt1(->base), LJ_TFUNC);
2015 break; 2018 break;
2016 2019
2017 /* -- Table ops --------------------------------------------------------- */ 2020 /* -- Table ops --------------------------------------------------------- */
2018 2021
2019 case BC_TNEW: 2022 case BC_TNEW:
2020 dasm_put(Dst, 12416, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB); 2023 dasm_put(Dst, 12440, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB);
2021 break; 2024 break;
2022 case BC_TDUP: 2025 case BC_TDUP:
2023 dasm_put(Dst, 12537, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB); 2026 dasm_put(Dst, 12561, DISPATCH_GL(gc.total), DISPATCH_GL(gc.threshold), Dt1(->base), Dt1(->base), LJ_TTAB);
2024 break; 2027 break;
2025 2028
2026 case BC_GGET: 2029 case BC_GGET:
2027 dasm_put(Dst, 12629, Dt7(->env)); 2030 dasm_put(Dst, 12653, Dt7(->env));
2028 break; 2031 break;
2029 case BC_GSET: 2032 case BC_GSET:
2030 dasm_put(Dst, 12647, Dt7(->env)); 2033 dasm_put(Dst, 12671, Dt7(->env));
2031 break; 2034 break;
2032 2035
2033 case BC_TGETV: 2036 case BC_TGETV:
2034 dasm_put(Dst, 12665, LJ_TTAB, LJ_TISNUM); 2037 dasm_put(Dst, 12689, LJ_TTAB, LJ_TISNUM);
2035 if (sse) { 2038 if (sse) {
2036 dasm_put(Dst, 12698); 2039 dasm_put(Dst, 12722);
2037 } else { 2040 } else {
2038 dasm_put(Dst, 12719); 2041 dasm_put(Dst, 12743);
2039 if (cmov) { 2042 if (cmov) {
2040 dasm_put(Dst, 10765); 2043 dasm_put(Dst, 10789);
2041 } else { 2044 } else {
2042 dasm_put(Dst, 10771); 2045 dasm_put(Dst, 10795);
2043 } 2046 }
2044 dasm_put(Dst, 2522); 2047 dasm_put(Dst, 2522);
2045 } 2048 }
2046 dasm_put(Dst, 12729, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); 2049 dasm_put(Dst, 12753, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
2047 dasm_put(Dst, 12821, LJ_TSTR); 2050 dasm_put(Dst, 12845, LJ_TSTR);
2048 break; 2051 break;
2049 case BC_TGETS: 2052 case BC_TGETS:
2050 dasm_put(Dst, 12839, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); 2053 dasm_put(Dst, 12863, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL);
2051 dasm_put(Dst, 12923, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); 2054 dasm_put(Dst, 12947, LJ_TNIL, DtB(->next), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
2052 break; 2055 break;
2053 case BC_TGETB: 2056 case BC_TGETB:
2054 dasm_put(Dst, 12994, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index); 2057 dasm_put(Dst, 13018, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_index);
2055 dasm_put(Dst, 11336); 2058 dasm_put(Dst, 11360);
2056 break; 2059 break;
2057 2060
2058 case BC_TSETV: 2061 case BC_TSETV:
2059 dasm_put(Dst, 13093, LJ_TTAB, LJ_TISNUM); 2062 dasm_put(Dst, 13117, LJ_TTAB, LJ_TISNUM);
2060 if (sse) { 2063 if (sse) {
2061 dasm_put(Dst, 12698); 2064 dasm_put(Dst, 12722);
2062 } else { 2065 } else {
2063 dasm_put(Dst, 12719); 2066 dasm_put(Dst, 12743);
2064 if (cmov) { 2067 if (cmov) {
2065 dasm_put(Dst, 10765); 2068 dasm_put(Dst, 10789);
2066 } else { 2069 } else {
2067 dasm_put(Dst, 10771); 2070 dasm_put(Dst, 10795);
2068 } 2071 }
2069 dasm_put(Dst, 2522); 2072 dasm_put(Dst, 2522);
2070 } 2073 }
2071 dasm_put(Dst, 13126, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable)); 2074 dasm_put(Dst, 13150, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable));
2072 dasm_put(Dst, 13209, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); 2075 dasm_put(Dst, 13233, Dt6(->nomm), 1<<MM_newindex, LJ_TSTR, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
2073 break; 2076 break;
2074 case BC_TSETS: 2077 case BC_TSETS:
2075 dasm_put(Dst, 13271, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL); 2078 dasm_put(Dst, 13295, LJ_TTAB, Dt6(->hmask), Dt5(->hash), sizeof(Node), Dt6(->nomm), Dt6(->node), DtB(->key.it), LJ_TSTR, DtB(->key.gcr), LJ_TNIL);
2076 dasm_put(Dst, 13346, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next)); 2079 dasm_put(Dst, 13370, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable), Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, DtB(->next));
2077 dasm_put(Dst, 13438, 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)); 2080 dasm_put(Dst, 13462, 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));
2078 break; 2081 break;
2079 case BC_TSETB: 2082 case BC_TSETB:
2080 dasm_put(Dst, 13534, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable)); 2083 dasm_put(Dst, 13558, LJ_TTAB, Dt6(->asize), Dt6(->array), LJ_TNIL, Dt6(->marked), LJ_GC_BLACK, Dt6(->metatable));
2081 dasm_put(Dst, 13632, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist)); 2084 dasm_put(Dst, 13656, Dt6(->metatable), Dt6(->nomm), 1<<MM_newindex, Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain), Dt6(->gclist));
2082 break; 2085 break;
2083 2086
2084 case BC_TSETM: 2087 case BC_TSETM:
2085 dasm_put(Dst, 13678); 2088 dasm_put(Dst, 13702);
2086 if (sse) { 2089 if (sse) {
2087 dasm_put(Dst, 12229); 2090 dasm_put(Dst, 12253);
2088 } else { 2091 } else {
2089 dasm_put(Dst, 13683); 2092 dasm_put(Dst, 13707);
2090 } 2093 }
2091 dasm_put(Dst, 13691, Dt6(->marked), LJ_GC_BLACK); 2094 dasm_put(Dst, 13715, Dt6(->marked), LJ_GC_BLACK);
2092 if (sse) { 2095 if (sse) {
2093 dasm_put(Dst, 13716); 2096 dasm_put(Dst, 13740);
2094 } else { 2097 } else {
2095 dasm_put(Dst, 13723); 2098 dasm_put(Dst, 13747);
2096 } 2099 }
2097 dasm_put(Dst, 13728, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base), Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain)); 2100 dasm_put(Dst, 13752, Dt6(->asize), Dt6(->array), Dt1(->base), Dt1(->base), Dt6(->marked), cast_byte(~LJ_GC_BLACK), DISPATCH_GL(gc.grayagain), DISPATCH_GL(gc.grayagain));
2098 dasm_put(Dst, 13856, Dt6(->gclist)); 2101 dasm_put(Dst, 13880, Dt6(->gclist));
2099 break; 2102 break;
2100 2103
2101 /* -- Calls and vararg handling ----------------------------------------- */ 2104 /* -- Calls and vararg handling ----------------------------------------- */
2102 2105
2103 case BC_CALL: case BC_CALLM: 2106 case BC_CALL: case BC_CALLM:
2104 dasm_put(Dst, 11350); 2107 dasm_put(Dst, 11374);
2105 if (op == BC_CALLM) { 2108 if (op == BC_CALLM) {
2106 dasm_put(Dst, 13864); 2109 dasm_put(Dst, 13888);
2107 } 2110 }
2108 dasm_put(Dst, 13869, LJ_TFUNC, Dt7(->pc)); 2111 dasm_put(Dst, 13893, LJ_TFUNC, Dt7(->pc));
2109 break; 2112 break;
2110 2113
2111 case BC_CALLMT: 2114 case BC_CALLMT:
2112 dasm_put(Dst, 13864); 2115 dasm_put(Dst, 13888);
2113 break; 2116 break;
2114 case BC_CALLT: 2117 case BC_CALLT:
2115 dasm_put(Dst, 13910, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->pc)); 2118 dasm_put(Dst, 13934, LJ_TFUNC, FRAME_TYPE, Dt7(->ffid), Dt7(->pc));
2116 dasm_put(Dst, 14028, FRAME_TYPE, Dt7(->pc), PC2PROTO(k)); 2119 dasm_put(Dst, 14052, FRAME_TYPE, Dt7(->pc), PC2PROTO(k));
2117 break; 2120 break;
2118 2121
2119 case BC_ITERC: 2122 case BC_ITERC:
2120 dasm_put(Dst, 14085, LJ_TFUNC, 2+1, Dt7(->pc)); 2123 dasm_put(Dst, 14109, LJ_TFUNC, 2+1, Dt7(->pc));
2121 break; 2124 break;
2122 2125
2123 case BC_VARG: 2126 case BC_VARG:
2124 dasm_put(Dst, 14165, Dt7(->pc), PC2PROTO(numparams), (8+FRAME_VARG), LJ_TNIL); 2127 dasm_put(Dst, 14189, Dt7(->pc), PC2PROTO(numparams), (8+FRAME_VARG), LJ_TNIL);
2125 dasm_put(Dst, 14309, Dt1(->maxstack), Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top)); 2128 dasm_put(Dst, 14333, Dt1(->maxstack), Dt1(->base), Dt1(->top), Dt1(->base), Dt1(->top));
2126 break; 2129 break;
2127 2130
2128 /* -- Returns ----------------------------------------------------------- */ 2131 /* -- Returns ----------------------------------------------------------- */
2129 2132
2130 case BC_RETM: 2133 case BC_RETM:
2131 dasm_put(Dst, 13864); 2134 dasm_put(Dst, 13888);
2132 break; 2135 break;
2133 2136
2134 case BC_RET: case BC_RET0: case BC_RET1: 2137 case BC_RET: case BC_RET0: case BC_RET1:
2135 if (op != BC_RET0) { 2138 if (op != BC_RET0) {
2136 dasm_put(Dst, 14408); 2139 dasm_put(Dst, 14432);
2137 } 2140 }
2138 dasm_put(Dst, 14412, FRAME_TYPE); 2141 dasm_put(Dst, 14436, FRAME_TYPE);
2139 switch (op) { 2142 switch (op) {
2140 case BC_RET: 2143 case BC_RET:
2141 dasm_put(Dst, 14431); 2144 dasm_put(Dst, 14455);
2142 break; 2145 break;
2143 case BC_RET1: 2146 case BC_RET1:
2144 dasm_put(Dst, 14489); 2147 dasm_put(Dst, 14513);
2145 /* fallthrough */ 2148 /* fallthrough */
2146 case BC_RET0: 2149 case BC_RET0:
2147 dasm_put(Dst, 14505); 2150 dasm_put(Dst, 14529);
2148 default: 2151 default:
2149 break; 2152 break;
2150 } 2153 }
2151 dasm_put(Dst, 14516, Dt7(->pc), PC2PROTO(k)); 2154 dasm_put(Dst, 14540, Dt7(->pc), PC2PROTO(k));
2152 if (op == BC_RET) { 2155 if (op == BC_RET) {
2153 dasm_put(Dst, 14558, LJ_TNIL); 2156 dasm_put(Dst, 14582, LJ_TNIL);
2154 } else { 2157 } else {
2155 dasm_put(Dst, 14567, LJ_TNIL); 2158 dasm_put(Dst, 14591, LJ_TNIL);
2156 } 2159 }
2157 dasm_put(Dst, 14574); 2160 dasm_put(Dst, 14598);
2158 if (op != BC_RET0) { 2161 if (op != BC_RET0) {
2159 dasm_put(Dst, 14595); 2162 dasm_put(Dst, 14619);
2160 } 2163 }
2161 dasm_put(Dst, 4678); 2164 dasm_put(Dst, 4678);
2162 break; 2165 break;
@@ -2166,7 +2169,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2166 2169
2167 case BC_FORL: 2170 case BC_FORL:
2168#if LJ_HASJIT 2171#if LJ_HASJIT
2169 dasm_put(Dst, 14599, HOTCOUNT_PCMASK, GG_DISP2HOT); 2172 dasm_put(Dst, 14623, HOTCOUNT_PCMASK, GG_DISP2HOT);
2170#endif 2173#endif
2171 break; 2174 break;
2172 2175
@@ -2178,57 +2181,57 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2178 case BC_FORI: 2181 case BC_FORI:
2179 case BC_IFORL: 2182 case BC_IFORL:
2180 vk = (op == BC_IFORL || op == BC_JFORL); 2183 vk = (op == BC_IFORL || op == BC_JFORL);
2181 dasm_put(Dst, 14620); 2184 dasm_put(Dst, 14644);
2182 if (!vk) { 2185 if (!vk) {
2183 dasm_put(Dst, 14624, LJ_TISNUM, LJ_TISNUM); 2186 dasm_put(Dst, 14648, LJ_TISNUM, LJ_TISNUM);
2184 } 2187 }
2185 dasm_put(Dst, 14643); 2188 dasm_put(Dst, 14667);
2186 if (!vk) { 2189 if (!vk) {
2187 dasm_put(Dst, 14647, LJ_TISNUM); 2190 dasm_put(Dst, 14671, LJ_TISNUM);
2188 } 2191 }
2189 if (sse) { 2192 if (sse) {
2190 dasm_put(Dst, 14656); 2193 dasm_put(Dst, 14680);
2191 if (vk) { 2194 if (vk) {
2192 dasm_put(Dst, 14668); 2195 dasm_put(Dst, 14692);
2193 } else { 2196 } else {
2194 dasm_put(Dst, 14687); 2197 dasm_put(Dst, 14711);
2195 } 2198 }
2196 dasm_put(Dst, 14692); 2199 dasm_put(Dst, 14716);
2197 } else { 2200 } else {
2198 dasm_put(Dst, 14705); 2201 dasm_put(Dst, 14729);
2199 if (vk) { 2202 if (vk) {
2200 dasm_put(Dst, 14711); 2203 dasm_put(Dst, 14735);
2201 } else { 2204 } else {
2202 dasm_put(Dst, 14727); 2205 dasm_put(Dst, 14751);
2203 } 2206 }
2204 dasm_put(Dst, 14735); 2207 dasm_put(Dst, 14759);
2205 if (cmov) { 2208 if (cmov) {
2206 dasm_put(Dst, 10765); 2209 dasm_put(Dst, 10789);
2207 } else { 2210 } else {
2208 dasm_put(Dst, 10771); 2211 dasm_put(Dst, 10795);
2209 } 2212 }
2210 if (!cmov) { 2213 if (!cmov) {
2211 dasm_put(Dst, 14740); 2214 dasm_put(Dst, 14764);
2212 } 2215 }
2213 } 2216 }
2214 if (op == BC_FORI) { 2217 if (op == BC_FORI) {
2215 dasm_put(Dst, 14746, -BCBIAS_J*4); 2218 dasm_put(Dst, 14770, -BCBIAS_J*4);
2216 } else if (op == BC_JFORI) { 2219 } else if (op == BC_JFORI) {
2217 dasm_put(Dst, 14756, -BCBIAS_J*4, BC_JLOOP); 2220 dasm_put(Dst, 14780, -BCBIAS_J*4, BC_JLOOP);
2218 } else if (op == BC_IFORL) { 2221 } else if (op == BC_IFORL) {
2219 dasm_put(Dst, 14770, -BCBIAS_J*4); 2222 dasm_put(Dst, 14794, -BCBIAS_J*4);
2220 } else { 2223 } else {
2221 dasm_put(Dst, 14766, BC_JLOOP); 2224 dasm_put(Dst, 14790, BC_JLOOP);
2222 } 2225 }
2223 dasm_put(Dst, 10800); 2226 dasm_put(Dst, 10824);
2224 if (sse) { 2227 if (sse) {
2225 dasm_put(Dst, 14780); 2228 dasm_put(Dst, 14804);
2226 } 2229 }
2227 break; 2230 break;
2228 2231
2229 case BC_ITERL: 2232 case BC_ITERL:
2230#if LJ_HASJIT 2233#if LJ_HASJIT
2231 dasm_put(Dst, 14599, HOTCOUNT_PCMASK, GG_DISP2HOT); 2234 dasm_put(Dst, 14623, HOTCOUNT_PCMASK, GG_DISP2HOT);
2232#endif 2235#endif
2233 break; 2236 break;
2234 2237
@@ -2237,33 +2240,33 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2237 break; 2240 break;
2238#endif 2241#endif
2239 case BC_IITERL: 2242 case BC_IITERL:
2240 dasm_put(Dst, 14791, LJ_TNIL); 2243 dasm_put(Dst, 14815, LJ_TNIL);
2241 if (op == BC_JITERL) { 2244 if (op == BC_JITERL) {
2242 dasm_put(Dst, 14806, BC_JLOOP); 2245 dasm_put(Dst, 14830, BC_JLOOP);
2243 } else { 2246 } else {
2244 dasm_put(Dst, 14820, -BCBIAS_J*4); 2247 dasm_put(Dst, 14844, -BCBIAS_J*4);
2245 } 2248 }
2246 dasm_put(Dst, 11097); 2249 dasm_put(Dst, 11121);
2247 break; 2250 break;
2248 2251
2249 case BC_LOOP: 2252 case BC_LOOP:
2250#if LJ_HASJIT 2253#if LJ_HASJIT
2251 dasm_put(Dst, 14599, HOTCOUNT_PCMASK, GG_DISP2HOT); 2254 dasm_put(Dst, 14623, HOTCOUNT_PCMASK, GG_DISP2HOT);
2252#endif 2255#endif
2253 break; 2256 break;
2254 2257
2255 case BC_ILOOP: 2258 case BC_ILOOP:
2256 dasm_put(Dst, 8412); 2259 dasm_put(Dst, 10826);
2257 break; 2260 break;
2258 2261
2259 case BC_JLOOP: 2262 case BC_JLOOP:
2260#if LJ_HASJIT 2263#if LJ_HASJIT
2261 dasm_put(Dst, 14836, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L)); 2264 dasm_put(Dst, 14860, DISPATCH_J(trace), DtD(->mcode), DISPATCH_GL(jit_base), DISPATCH_GL(jit_L));
2262#endif 2265#endif
2263 break; 2266 break;
2264 2267
2265 case BC_JMP: 2268 case BC_JMP:
2266 dasm_put(Dst, 14859, -BCBIAS_J*4); 2269 dasm_put(Dst, 14883, -BCBIAS_J*4);
2267 break; 2270 break;
2268 2271
2269 /* -- Function headers -------------------------------------------------- */ 2272 /* -- Function headers -------------------------------------------------- */
@@ -2286,47 +2289,47 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
2286 break; 2289 break;
2287#endif 2290#endif
2288 case BC_IFUNCF: 2291 case BC_IFUNCF:
2289 dasm_put(Dst, 14883, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams)); 2292 dasm_put(Dst, 14907, -4+PC2PROTO(k), Dt1(->maxstack), -4+PC2PROTO(numparams));
2290 if (op == BC_JFUNCF) { 2293 if (op == BC_JFUNCF) {
2291 dasm_put(Dst, 14913, BC_JLOOP); 2294 dasm_put(Dst, 14937, BC_JLOOP);
2292 } else { 2295 } else {
2293 dasm_put(Dst, 8412); 2296 dasm_put(Dst, 10826);
2294 } 2297 }
2295 dasm_put(Dst, 14922, LJ_TNIL); 2298 dasm_put(Dst, 14946, LJ_TNIL);
2296 break; 2299 break;
2297 2300
2298 case BC_JFUNCV: 2301 case BC_JFUNCV:
2299#if !LJ_HASJIT 2302#if !LJ_HASJIT
2300 break; 2303 break;
2301#endif 2304#endif
2302 dasm_put(Dst, 10463); 2305 dasm_put(Dst, 10487);
2303 break; /* NYI: compiled vararg functions. */ 2306 break; /* NYI: compiled vararg functions. */
2304 2307
2305 case BC_IFUNCV: 2308 case BC_IFUNCV:
2306 dasm_put(Dst, 14944, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL); 2309 dasm_put(Dst, 14968, FRAME_VARG, Dt1(->maxstack), -4+PC2PROTO(numparams), LJ_TNIL);
2307 if (op == BC_JFUNCV) { 2310 if (op == BC_JFUNCV) {
2308 dasm_put(Dst, 14913, BC_JLOOP); 2311 dasm_put(Dst, 14937, BC_JLOOP);
2309 } else { 2312 } else {
2310 dasm_put(Dst, 15035, -4+PC2PROTO(k)); 2313 dasm_put(Dst, 15059, -4+PC2PROTO(k));
2311 } 2314 }
2312 dasm_put(Dst, 15057, LJ_TNIL); 2315 dasm_put(Dst, 15081, LJ_TNIL);
2313 break; 2316 break;
2314 2317
2315 case BC_FUNCC: 2318 case BC_FUNCC:
2316 case BC_FUNCCW: 2319 case BC_FUNCCW:
2317 dasm_put(Dst, 15079, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top)); 2320 dasm_put(Dst, 15103, Dt8(->f), Dt1(->base), 8*LUA_MINSTACK, Dt1(->maxstack), Dt1(->top));
2318 if (op == BC_FUNCC) { 2321 if (op == BC_FUNCC) {
2319 dasm_put(Dst, 15108); 2322 dasm_put(Dst, 15132);
2320 } else { 2323 } else {
2321 dasm_put(Dst, 15112); 2324 dasm_put(Dst, 15136);
2322 } 2325 }
2323 dasm_put(Dst, 15120, DISPATCH_GL(vmstate), ~LJ_VMST_C); 2326 dasm_put(Dst, 15144, DISPATCH_GL(vmstate), ~LJ_VMST_C);
2324 if (op == BC_FUNCC) { 2327 if (op == BC_FUNCC) {
2325 dasm_put(Dst, 15129); 2328 dasm_put(Dst, 15153);
2326 } else { 2329 } else {
2327 dasm_put(Dst, 15133, DISPATCH_GL(wrapf)); 2330 dasm_put(Dst, 15157, DISPATCH_GL(wrapf));
2328 } 2331 }
2329 dasm_put(Dst, 15138, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top)); 2332 dasm_put(Dst, 15162, DISPATCH_GL(vmstate), ~LJ_VMST_INTERP, Dt1(->base), Dt1(->top));
2330 break; 2333 break;
2331 2334
2332 /* ---------------------------------------------------------------------- */ 2335 /* ---------------------------------------------------------------------- */
@@ -2354,7 +2357,7 @@ static int build_backend(BuildCtx *ctx)
2354 2357
2355 build_subroutines(ctx, cmov, sse); 2358 build_subroutines(ctx, cmov, sse);
2356 2359
2357 dasm_put(Dst, 15163); 2360 dasm_put(Dst, 15187);
2358 for (op = 0; op < BC__MAX; op++) 2361 for (op = 0; op < BC__MAX; op++)
2359 build_ins(ctx, (BCOp)op, op, cmov, sse); 2362 build_ins(ctx, (BCOp)op, op, cmov, sse);
2360 2363