/usr/include/gnash/asobj/SWF.h is in gnash-dev 0.8.11~git20160109-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 | //
// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
// Free Software Foundation, Inc
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef GNASH_SWF_H
#define GNASH_SWF_H
#include <iosfwd>
namespace gnash {
/// SWF format parsing classes
namespace SWF {
/// SWF tag types. Symbolic names copied from Ming
enum TagType
{
END = 0,
SHOWFRAME = 1,
DEFINESHAPE = 2,
FREECHARACTER = 3,
PLACEOBJECT = 4,
REMOVEOBJECT = 5,
DEFINEBITS = 6,
DEFINEBUTTON = 7,
JPEGTABLES = 8,
SETBACKGROUNDCOLOR = 9,
DEFINEFONT = 10,
DEFINETEXT = 11,
DOACTION = 12,
DEFINEFONTINFO = 13,
DEFINESOUND = 14,
STARTSOUND = 15,
STOPSOUND = 16,
DEFINEBUTTONSOUND = 17,
SOUNDSTREAMHEAD = 18,
SOUNDSTREAMBLOCK = 19,
DEFINELOSSLESS = 20,
DEFINEBITSJPEG2 = 21,
DEFINESHAPE2 = 22,
DEFINEBUTTONCXFORM = 23,
PROTECT = 24,
PATHSAREPOSTSCRIPT = 25,
PLACEOBJECT2 = 26,
REMOVEOBJECT2 = 28,
SYNCFRAME = 29,
FREEALL = 31,
DEFINESHAPE3 = 32,
DEFINETEXT2 = 33,
DEFINEBUTTON2 = 34,
DEFINEBITSJPEG3 = 35,
DEFINELOSSLESS2 = 36,
DEFINEEDITTEXT = 37,
DEFINEVIDEO = 38,
DEFINESPRITE = 39,
NAMECHARACTER = 40,
SERIALNUMBER = 41,
DEFINETEXTFORMAT = 42,
FRAMELABEL = 43,
DEFINEBEHAVIOR = 44,
SOUNDSTREAMHEAD2 = 45,
DEFINEMORPHSHAPE = 46,
FRAMETAG = 47,
DEFINEFONT2 = 48,
GENCOMMAND = 49,
DEFINECOMMANDOBJ = 50,
CHARACTERSET = 51,
FONTREF = 52,
DEFINEFUNCTION = 53,
PLACEFUNCTION = 54,
GENTAGOBJECT = 55,
EXPORTASSETS = 56,
IMPORTASSETS = 57,
ENABLEDEBUGGER = 58,
INITACTION = 59,
DEFINEVIDEOSTREAM = 60,
VIDEOFRAME = 61,
DEFINEFONTINFO2 = 62,
DEBUGID = 63,
ENABLEDEBUGGER2 = 64,
SCRIPTLIMITS = 65,
SETTABINDEX = 66,
DEFINESHAPE4_ = 67,
DEFINEMORPHSHAPE2_ = 68,
FILEATTRIBUTES = 69,
PLACEOBJECT3 = 70,
IMPORTASSETS2 = 71,
DOABC = 72,
DEFINEALIGNZONES = 73,
CSMTEXTSETTINGS = 74,
DEFINEFONT3 = 75,
SYMBOLCLASS = 76,
METADATA = 77,
DEFINESCALINGGRID = 78,
DOABCDEFINE = 82,
DEFINESHAPE4 = 83,
DEFINEMORPHSHAPE2 = 84,
DEFINESCENEANDFRAMELABELDATA = 86,
DEFINEBINARYDATA = 87,
DEFINEFONTNAME = 88,
STARTSOUND2 = 89,
DEFINEBITSJPEG4 = 90,
REFLEX = 777,
DEFINEBITSPTR = 1023
};
std::ostream& operator<<(std::ostream& o, TagType t);
/// SWF action ids. Symbolic names copied from Ming.
enum ActionType
{
ACTION_END = 0x00,
ACTION_NEXTFRAME = 0x04,
ACTION_PREVFRAME = 0x05,
ACTION_PLAY = 0x06,
ACTION_STOP = 0x07,
ACTION_TOGGLEQUALITY = 0x08,
ACTION_STOPSOUNDS = 0x09,
ACTION_GOTOFRAME = 0x81, /* >= 0x80 means record has args */
ACTION_GETURL = 0x83,
ACTION_WAITFORFRAME = 0x8A,
ACTION_SETTARGET = 0x8B,
ACTION_GOTOLABEL = 0x8C,
ACTION_ADD = 0x0A,
ACTION_SUBTRACT = 0x0B,
ACTION_MULTIPLY = 0x0C,
ACTION_DIVIDE = 0x0D,
ACTION_EQUAL = 0x0E,
ACTION_LESSTHAN = 0x0F,
ACTION_LOGICALAND = 0x10,
ACTION_LOGICALOR = 0x11,
ACTION_LOGICALNOT = 0x12,
ACTION_STRINGEQ = 0x13,
ACTION_STRINGLENGTH = 0x14,
ACTION_SUBSTRING = 0x15,
ACTION_POP = 0x17,
ACTION_INT = 0x18,
ACTION_GETVARIABLE = 0x1C,
ACTION_SETVARIABLE = 0x1D,
ACTION_SETTARGETEXPRESSION = 0x20,
ACTION_STRINGCONCAT = 0x21,
ACTION_GETPROPERTY = 0x22,
ACTION_SETPROPERTY = 0x23,
ACTION_DUPLICATECLIP = 0x24,
ACTION_REMOVECLIP = 0x25,
ACTION_TRACE = 0x26,
ACTION_STARTDRAGMOVIE = 0x27,
ACTION_STOPDRAGMOVIE = 0x28,
ACTION_STRINGCOMPARE = 0x29,
ACTION_THROW = 0x2A,
/// SWF7
///
/// The Cast Object action makes sure that the object
/// o1 is an instance of the class s2. If it is the case,
/// then o1 is pushed back onto the stack. Otherwise Null is
/// pushed back onto the stack. The comparison is identical
/// to the one applied by the Instance Of action.
ACTION_CASTOP = 0x2B,
/// SWF7
///
/// This action declares an object as a sub-class of
/// one or more interfaces. The number of interfaces has to
/// be indicated by i2. An interface is referenced by its
/// name (which happens to be the same as the constructor
/// function name.)
ACTION_IMPLEMENTSOP = 0x2C,
/// SWF7
//
/// This is Flash Lite only and is ignored in the full player.
//
/// This action executes an fscommand.
/// Stack In:
/// i1 -- number of arguments (int)
/// s2 -- command string
/// [s3..sn] -- arguments, as many as specified in i1
/// Stack Out:
/// not known
ACTION_FSCOMMAND2 = 0x2D,
ACTION_RANDOM = 0x30,
ACTION_MBLENGTH = 0x31,
ACTION_ORD = 0x32,
ACTION_CHR = 0x33,
ACTION_GETTIMER = 0x34,
ACTION_MBSUBSTRING = 0x35,
ACTION_MBORD = 0x36,
ACTION_MBCHR = 0x37,
ACTION_STRICTMODE = 0x89,
ACTION_WAITFORFRAMEEXPRESSION = 0x8D,
ACTION_PUSHDATA = 0x96,
ACTION_BRANCHALWAYS = 0x99,
ACTION_GETURL2 = 0x9A,
ACTION_BRANCHIFTRUE = 0x9D,
ACTION_CALLFRAME = 0x9E,
/// aka GOTOFRAME2
ACTION_GOTOEXPRESSION = 0x9F,
ACTION_DELETE = 0x3A,
ACTION_DELETE2 = 0x3B,
ACTION_VAREQUALS = 0x3C, // DEFINELOCAL actually
ACTION_CALLFUNCTION = 0x3D,
ACTION_RETURN = 0x3E,
ACTION_MODULO = 0x3F,
/// SWF5
///
/// Pop the number of arguments. Pop each argument.
/// Create an object of class s1. Call the
/// constructor function (which has the same name as
/// the object class: s1). The result of the
/// constructor is discarded. Push the created object
/// on the stack. The object should then be saved in
/// a variable or object method.
ACTION_NEW = 0x40,
ACTION_VAR = 0x41,
ACTION_INITARRAY = 0x42,
/// Pops the number of members in the object. Pop
/// one value and one name per member and set the
/// corresponding member in the object. The resulting
/// object is pushed on the stack. It can later be sent
/// to a function or set in a variable. Note: the member
/// names are converted to strings; they certainly should
/// be strings thought anything is supported.
///
/// Also known as 'ACTION_DECLAREOBJECT'.
ACTION_INITOBJECT = 0x43,
ACTION_TYPEOF = 0x44,
/// Pop a value from the stack. If it is a valid movieclip push
/// its target back on the stack (example: _level0.sprite1.sprite2).
ACTION_TARGETPATH = 0x45,
ACTION_ENUMERATE = 0x46,
ACTION_NEWADD = 0x47,
ACTION_NEWLESSTHAN = 0x48,
/// ECMA-262 "Abstract Equality Comparison"
//
/// See section 11.9.3 of the ECMA 262 spec
ACTION_NEWEQUALS = 0x49,
ACTION_TONUMBER = 0x4A,
ACTION_TOSTRING = 0x4B,
ACTION_DUP = 0x4C,
ACTION_SWAP = 0x4D,
ACTION_GETMEMBER = 0x4E,
ACTION_SETMEMBER = 0x4F,
ACTION_INCREMENT = 0x50,
ACTION_DECREMENT = 0x51,
/// Pops the name of a method (can be the empty string),
/// pop an object, pop the number of arguments, pop each
/// argument, call the method (function) of the object,
/// push the returned value on the stack.
ACTION_CALLMETHOD = 0x52,
/// Pops the name of a method (can be the empty string),
/// pop an object (created with the Declare Object,)
/// pop the number of arguments, pop each argument,
/// create a new object, then call the specified method
/// (function) as the constructor function of the object,
/// push the returned value on the stack. This allows
/// for overloaded constructors as in C++.
ACTION_NEWMETHOD = 0x53,
/// Pops the name of a constructor (s1 - ie. "Color")
/// then the name of an object (s2). Checks whether the
/// named object is part of the class defined by the
/// constructor. If so, then true is push on the stack,
/// otherwise false. Since SWF version 7, it is possible
/// to cast an object to another using the Cast Object
/// action. This action returns a copy of the object or
/// Null, which in many cases can be much more practical.
ACTION_INSTANCEOF = 0x54,
/// Pops an object from the stack, push a null, then
/// push the name of each member on the stack.
ACTION_ENUM2 = 0x55,
ACTION_BITWISEAND = 0x60,
ACTION_BITWISEOR = 0x61,
ACTION_BITWISEXOR = 0x62,
ACTION_SHIFTLEFT = 0x63,
ACTION_SHIFTRIGHT = 0x64,
ACTION_SHIFTRIGHT2 = 0x65,
ACTION_STRICTEQ = 0x66,
/// Similar to Swap + Less Than. It checks whether the
/// second parameter is greater than the first and return
/// the boolean result on the stack.
ACTION_GREATER = 0x67,
/// Similar to Swap + String Less Than. It checks whether
/// the second string is greater than the first and
/// return the boolean result on the stack.
ACTION_STRINGGREATER = 0x68,
/// The Extends action will be used to define a new object
/// which extends another object. The declaration in
/// ActionScript is:
///
/// class A extends B;
///
/// In an SWF action script, you don't exactly declare
/// objects, you actually instantiate them and define their
/// functions. This action creates a new object named s2
/// which is an extension of the object s1.
///
/// Use this action whenever you need to inherit an object
/// without calling its constructor.
ACTION_EXTENDS = 0x69,
ACTION_CONSTANTPOOL = 0x88,
ACTION_DEFINEFUNCTION2 = 0x8E,
ACTION_TRY = 0x8F,
ACTION_WITH = 0x94,
ACTION_DEFINEFUNCTION = 0x9B,
ACTION_SETREGISTER = 0x87
};
std::ostream& operator<<(std::ostream& o, ActionType a);
enum abc_action_type
{
/// AS3 Actions go below here.
ABC_ACTION_END = 0x00,
/// Do: Enter the debugger if one has been invoked.
ABC_ACTION_BKPT = 0x01,
/// Do: Nothing.
ABC_ACTION_NOP = 0x02,
/// Stack In:
/// obj -- an object
/// Stack Out:
/// .
/// Do: Throw obj as an exception
/// Equivalent: ACTIONTHROW
ABC_ACTION_THROW = 0X03,
/// Stream:
/// name_id -- V32 index to multiname 'name'
/// Stack In:
/// obj -- an object
/// [ns [n]] -- Namespace stuff.
/// Stack Out:
/// super -- if obj.name is a method, the super of that method.
/// -- if obj.name is write-only data, throw ReferenceError.
/// -- if obj.name is readable, the return of the getter of super.
ABC_ACTION_GETSUPER = 0X04,
/// Stream: UV32 index to multiname 'name'
/// Stack In:
/// obj -- an object
/// val -- an object
/// [ns [n]] -- Namespace stuff.
/// Stack Out:
/// .
/// Do: Make val the super of obj.name ; throw ReferenceError if obj.name is
/// not writable.
ABC_ACTION_SETSUPER = 0X05,
/// Dynamically eXtend Name Space?
/// Stream: UV32 index to string pool 'nsname'
/// Do: Create a new public namespace with name nsname, enter the namespace.
ABC_ACTION_DXNS = 0X06,
/// Stack In:
/// nsname -- a string object
/// Stack Out:
/// .
/// Do: Create a new public namespace with name nsname, but don't enter it.
ABC_ACTION_DXNSLATE = 0X07,
/// Stream: UV32 frame pointer offset 'offset'
/// Frame:
/// Kill at offset
/// Equivalent: ACTION_DELETE
ABC_ACTION_KILL = 0X08,
/// Do: Unknown purpose, Tamarin does nothing.
ABC_ACTION_LABEL = 0X09,
ABC_ACTION_0x0A = 0X0A,
ABC_ACTION_0X0B = 0X0B,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If !(a < b) move by jump in stream, as ABC_ACTION_JUMP does.
ABC_ACTION_IFNLT = 0X0C,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If !(a <= b) move by jump in stream, as ABC_ACTION_JUMP does.
ABC_ACTION_IFNLE = 0X0D,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If !(a > b) move by jump in stream, as ABC_ACTION_JUMP does.
ABC_ACTION_IFNGT = 0X0E,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If !(a >= b) move by jump in stream, as ABC_ACTION_JUMP does.
ABC_ACTION_IFNGE = 0X0F,
/// Stream: S24 jump offset 'jump'
/// Do: If jump is negative, check for interrupts. Move by jump in stream.
/// Equivalent: ACTION_BRANCHALWAYS
ABC_ACTION_JUMP = 0X10,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// Stack Out:
/// .
/// Do: If a is 'true', move by jump in stream, as ABC_ACTION_JUMP does.
/// Equivalent: ACTION_BRANCHIFTRUE
ABC_ACTION_IFTRUE = 0X11,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// Stack Out:
/// .
/// Do: If a is 'false', move by jump in stream, as ABC_ACTION_JUMP does.
ABC_ACTION_IFFALSE = 0X12,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If a == b (weakly), move by jump in stream, as ABC_ACTION_JUMP does.
ABC_ACTION_IFEQ = 0x13,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If a != b (weakly), move by jump in stream, as ABC_ACTION_JUMP does.
ABC_ACTION_IFNE = 0X14,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If a < b move by jump in stream, as ABC_ACTION_JUMP does.
ABC_ACTION_IFLT = 0X15,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If a <= b move by jump in stream, as ABC_ACTION_JUMP does.
ABC_ACTION_IFLE = 0x16,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If a > b move by jump in stream, as ABC_ACTION_JUMP does.
ABC_ACTION_IFGT = 0x17,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If a >= b move by jump in stream, as ABC_ACTION_JUMP does.
ABC_ACTION_IFGE = 0x18,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If a == b (strictly), move by jump in stream, as ABC_ACTION_JUMP
ABC_ACTION_IFSTRICTEQ = 0x19,
/// Stream: S24 jump offset 'jump'
/// Stack In:
/// a -- an object
/// b -- an object
/// Stack Out:
/// .
/// Do: If a != b (strongly), move by jump in stream, as ABC_ACTION_JUMP
ABC_ACTION_IFSTRICTNE = 0x1A,
/// Stream: 3 bytes | V32 count as 'case_count - 1' | case_count of S24
/// as 'cases'
/// Stack In:
/// index -- an integer object
/// Stack Out:
/// .
/// Do: If index >= case_count, reset stream to position on op entry.
/// Otherwise, move by cases[index] - 1 from stream position on op entry.
ABC_ACTION_LOOKUPSWITCH = 0x1B,
/// Stack In:
/// scope -- a scope
/// Stack Out:
/// .
/// Do: Enter scope with previous scope as its base, unless it already had
/// a base, in which case leave that alone.
ABC_ACTION_PUSHWITH = 0x1C,
/// Do: exit current scope. Clear the base if the depth is now
/// shallower than the base's depth.
ABC_ACTION_POPSCOPE = 0x1D,
/// Stack In:
/// obj -- an object
/// index -- an integer object
/// Stack Out:
/// name -- the key name at index in obj (not next after index).
/// Do: If obj is a namespace index 1 is the uri of the namespace,
/// index 2 is the prefix of the namespace, and any other value is a
/// null string object. If obj is an immutable object, like a number,
/// operate on its prototype instead. If there is no such index,
/// name is null.
ABC_ACTION_NEXTNAME = 0x1E,
/// Stack In:
/// obj -- an object
/// index -- an integer object
/// Stack Out:
/// next_index -- next index after index in obj, or 0 if none.
/// Do: If there is a key/val pair after index, make next_index as it.
/// Otherwise, make next_index 0.
ABC_ACTION_HASNEXT = 0x1F,
/// Stack Out:
/// n -- a Null object.
ABC_ACTION_PUSHNULL = 0x20,
/// n -- an Undefined object.
ABC_ACTION_PUSHUNDEFINED = 0x21,
ABC_ACTION_0x22 = 0x22,
/// Stack In:
/// obj -- an object (namespaces okay)
/// index -- an integer object
/// Stack Out:
/// value -- the value of the key value pair in obj at index.
ABC_ACTION_NEXTVALUE = 0x23,
/// Stream: S8 as 'byte'
/// Stack Out:
/// byte -- as a raw byte
ABC_ACTION_PUSHBYTE = 0x24,
/// Stream: V32 as 'value'
/// Stack Out:
/// value -- as a raw integer
ABC_ACTION_PUSHSHORT = 0x25,
/// Stack Out:
/// true -- the True object
ABC_ACTION_PUSHTRUE = 0x26,
/// Stack Out:
/// false -- the False object
ABC_ACTION_PUSHFALSE = 0x27,
/// Stack Out:
/// NaN -- the NaN object
ABC_ACTION_PUSHNAN = 0x28,
/// Stack In:
/// a -- anything
/// Stack Out:
/// .
ABC_ACTION_POP = 0x29,
/// Stack In:
/// a -- anything
/// Stack Out:
/// a
/// a
ABC_ACTION_DUP = 0x2A,
/// Stack In:
/// a -- anything
/// b -- anything
/// Stack Out:
/// b
/// a
ABC_ACTION_SWAP = 0x2B,
/// Stream: V32 string pool index 'index'
/// Stack Out:
/// value -- String object from string_pool[index]
ABC_ACTION_PUSHSTRING = 0x2C,
/// Stream: V32 int pool index 'index'
/// Stack Out:
/// value -- Integer object from integer_pool[index]
ABC_ACTION_PUSHINT = 0x2D,
/// Stream: V32 uint pool index 'index'
/// Stack Out:
/// value -- Unsigned Integer object from unsigned_integer_pool[index]
ABC_ACTION_PUSHUINT = 0x2E,
/// Stream: V32 double pool index 'index'
/// Stack Out:
/// value -- Double object from double_pool[index]
ABC_ACTION_PUSHDOUBLE = 0x2F,
/// Stack In:
/// scope -- a scope
/// Stack Out:
/// .
/// Do: Enter scope without altering base.
ABC_ACTION_PUSHSCOPE = 0x30,
/// Stream: V32 namespace pool index 'index'
/// Stack Out:
/// ns -- Namespace object from namespace_pool[index]
ABC_ACTION_PUSHNAMESPACE = 0x31,
/// Stream: V32 frame location 'objloc' | V32 frame location 'indexloc'
/// Stack Out:
/// truth -- True if frame[objloc] has key/val pair after frame[indexloc],
/// following delagates (__proto__) objects if needed. False, otherwise.
/// Frame:
/// Change at objloc to object which possessed next value.
/// Change at indexloc to index (as object) of the next value.
ABC_ACTION_HASNEXT2 = 0x32,
ABC_ACTION_0x33 = 0x33,
ABC_ACTION_0x34 = 0x34,
ABC_ACTION_0x35 = 0x35,
ABC_ACTION_0x36 = 0x36,
ABC_ACTION_0x37 = 0x37,
ABC_ACTION_0x38 = 0x38,
ABC_ACTION_0x39 = 0x39,
ABC_ACTION_0x3A = 0x3A,
ABC_ACTION_0x3B = 0x3B,
ABC_ACTION_0x3C = 0x3C,
ABC_ACTION_0x3D = 0x3D,
ABC_ACTION_0x3E = 0x3E,
ABC_ACTION_0x3F = 0x3F,
/// Stream: V32 'index'
/// Stack Out:
/// func -- the function object
/// Do: Information about function is in the pool at index. Construct the
/// function from this information, current scope, and base of the scope.
ABC_ACTION_NEWFUNCTION = 0x40,
/// Stream: V32 'arg_count'
/// Stack In:
/// func -- the function to be called
/// obj -- the object to which the function belongs
/// arg1 ... argN -- the arg_count arguments to pass
/// Stack Out:
/// value -- the value returned by obj->func(arg1, ...., argN)
ABC_ACTION_CALL = 0x41,
/// Stream: V32 'arg_count'
/// Stack In:
/// obj -- the object to be constructed
/// arg1 ... argN -- the arg_count arguments to pass
/// Stack Out:
/// value -- obj after it has been constructed as obj(arg1, ..., argN)
ABC_ACTION_CONSTRUCT = 0x42,
/// Stream: V32 'method_id + 1' | V32 'arg_count'
/// Stack In:
/// obj -- the object to be called
/// arg1 ... argN -- the arg_count arguments to pass
/// Stack Out:
/// value -- the value returned by obj::'method_id'(arg1, ..., argN)
ABC_ACTION_CALLMETHOD = 0x43,
/// Stream: V32 'method_id' | V32 'arg_count'
/// Stack In:
/// obj -- the object to act as a receiver for the static call
/// arg1 ... argN -- the arg_count arguments to pass
/// Stack Out:
/// value -- the value returned by obj->ABC::'method_id'(arg1, ..., argN)
ABC_ACTION_CALLSTATIC = 0x44,
/// Stream: V32 'name_offset' | V32 'arg_count'
/// Stack In:
/// obj -- the object whose super is to be called
/// [ns [n]] -- Namespace stuff
/// arg1 ... argN -- the arg_count arguments to pass
/// Stack Out:
/// value -- the value returned by obj::(resolve)'name_offset'::super(arg1,
/// ..., argN)
ABC_ACTION_CALLSUPER = 0x45,
/// Stream: V32 'name_offset' | V32 'arg_count'
/// Stack In:
/// obj -- The object whose property is to be accessed.
/// [ns [n]] -- Namespace stuff
/// arg1 ... argN -- the arg_count arguments to pass
/// Stack Out:
/// value -- the value from obj::(resolve)'name_offset'(arg1, ..., argN)
/// NB: Calls getter/setter if they exist.
ABC_ACTION_CALLPROPERTY = 0x46,
/// Do: Return an Undefined object up the callstack.
ABC_ACTION_RETURNVOID = 0x47,
/// Stack In:
/// value -- value to be returned
/// Stack Out:
/// .
/// Do: Return value up the callstack.
ABC_ACTION_RETURNVALUE = 0x48,
/// Stream: V32 'arg_count'
/// Stack In:
/// obj -- the object whose super's constructor should be invoked
/// arg1 ... argN -- the arg_count arguments
/// Stack Out:
/// value -- obj after obj::super(arg1, ..., argN) has been invoked
ABC_ACTION_CONSTRUCTSUPER = 0x49,
/// Stream: V32 'name_offset' | V32 'arg_count'
/// Stack In:
/// obj -- the object whose property should be constructed
/// [ns [n]] -- Namespace stuff
/// arg1 ... argN -- the arg_count arguments to pass
/// Stack Out:
/// value -- the newly constructed prop from obj::(resolve)
/// 'name_offset'(arg1, ..., argN)
ABC_ACTION_CONSTRUCTPROP = 0x4A,
/// Do: Nothing, this is an intermediate code op, should not appear in ABC.
ABC_ACTION_CALLSUPERID = 0x4B,
/// Stream: V32 'name_offset' | V32 'arg_count'
/// Stack In:
/// obj -- The object whose property is to be accessed.
/// [ns [n]] -- Namespace stuff
/// arg1 ... argN -- the arg_count arguments to pass
/// Stack Out:
/// value -- the value from by obj::(resolve)'name_offset'(arg1, ..., argN)
/// NB: It seems like this does _not_ call getter/setter if they exist,
/// but is otherwise identical to ABC_ACTION_CALLPROPERTY
ABC_ACTION_CALLPROPLEX = 0x4C,
/// Do: Nothing, this is an intermediate code op, should not appear in ABC.
ABC_ACTION_CALLINTERFACE = 0x4D,
/// See: 0x45 (ABC_ACTION_CALLSUPER), but
/// Stack Out:
/// .
ABC_ACTION_CALLSUPERVOID = 0x4E,
/// See: 0x46 (ABC_ACTION_CALLPROPERTY), but
/// Stack Out:
/// .
ABC_ACTION_CALLPROPVOID = 0x4F,
ABC_ACTION_0x50 = 0x50,
ABC_ACTION_0x51 = 0x51,
ABC_ACTION_0x52 = 0x52,
ABC_ACTION_0x53 = 0x53,
ABC_ACTION_0x54 = 0x54,
/// Stream: V32 'arg_count'
/// Stack In:
/// prop_name_1 -- a string
/// prop_value_1 -- a value object
/// .
/// . (arg_count name/value pairs in all)
/// .
/// prop_name_n -- a string
/// prop_value_n -- a value object
/// Stack Out:
/// obj -- A new object which contains all of the given properties.
/// NB: This builds an object from its properties, it's not a constructor.
ABC_ACTION_NEWOBJECT = 0x55,
/// Stream: V32 'array_size'
/// Stack In:
/// value_1 -- a value
/// .
/// . (array_size of these)
/// .
/// value_n -- a value
/// Stack Out:
/// array -- an array { value_1, value_2, ..., value_n }
ABC_ACTION_NEWARRAY = 0x56,
/// Stack Out:
/// vtable -- A new virtual table, which has the previous one as a parent.
ABC_ACTION_NEWACTIVATION = 0x57,
/// Stream: V32 'class_id'
/// Stack In:
/// obj -- An object to be turned into a class
/// Stack Out:
/// class -- The newly made class, made from obj and the information at
/// cinits_pool[class_id]
/// NB: This depends on scope and scope base (to determine base class)
ABC_ACTION_NEWCLASS = 0x58,
/// Stream: V32 'name_id'
/// Stack In:
/// value -- Whose descendants to get
/// [ns [n]] -- Namespace stuff
/// Stack Out:
/// ?
/// NB: This op seems to always throw a TypeError in Tamarin, though I
/// assume that it ought to do something to yield a list of
/// descendants of a class.
ABC_ACTION_GETDESCENDANTS = 0x59,
/// Stream: V32 'catch_id'
/// Stack Out:
/// vtable -- vtable suitable to catch an exception of type in catch_id.
/// NB: Need more information on how exceptions are set up.
ABC_ACTION_NEWCATCH = 0x5A,
ABC_ACTION_0x5B = 0x5B,
ABC_ACTION_0x5C = 0x5C,
/// Stream: V32 'name_id'
/// Stack In:
/// [ns [n]] -- Namespace stuff
/// Stack Out:
/// owner -- object which owns property given by looking up the name_id,
/// or throw a ReferenceError if none exists.
ABC_ACTION_FINDPROPSTRICT = 0x5D,
/// Stream: V32 'name_id'
/// Stack In:
/// [ns [n]] -- Namespace stuff
/// Stack Out:
/// owner -- object which owns property given by looking up the name_id,
/// or an Undefined object if none exists.
ABC_ACTION_FINDPROPERTY = 0x5E,
/// Stream: V32 'name_id' (no ns expansion)
/// Stack Out:
/// def -- The definition of the name at name_id.
ABC_ACTION_FINDDEF = 0x5F,
/// Stream: V32 'name_id' (no ns expansion)
/// Stack Out:
/// property -- The result of 0x5D (ABC_ACTION_FINDPROPSTRICT)
/// + 0x66 (ABC_ACTION_GETPROPERTY)
ABC_ACTION_GETLEX = 0x60,
/// Stream: V32 'name_id'
/// Stack In:
/// obj -- The object whose property is to be set
/// [ns [n]] -- Namespace stuff
/// [key] -- Key name for property. Will not have both Namespace and key.
/// value -- The value to be used
/// Stack Out:
/// .
/// Do: Set obj::(resolve)'name_id' to value, or set obj::key to value.
/// NB: I'm not yet clear which should be used when. (Chad)
ABC_ACTION_SETPROPERTY = 0x61,
/// Stream: V32 'frame_index'
/// Frame: value at frame_index is needed
/// Stack Out:
/// value
ABC_ACTION_GETLOCAL = 0x62,
/// Stream: V32 'frame_index'
/// Frame: obj at frame_index is set to value
/// Stack In:
/// value
/// Stack Out:
/// .
ABC_ACTION_SETLOCAL = 0x63,
/// Stack Out:
/// global -- The global scope object
ABC_ACTION_GETGLOBALSCOPE = 0x64,
/// Stream: S8 'depth'
/// Stack Out:
/// scope -- The scope object at depth
ABC_ACTION_GETSCOPEOBJECT = 0x65,
/// Stream: V32 'name_id'
/// Stack In:
/// obj -- The object whose property is to be retrieved
/// [ns [n]] -- Namespace stuff
/// [key] -- Key name for property. Will not have both Namespace and key.
/// Stack Out:
/// prop -- The requested property.
/// NB: As with 0x61 (ABC_ACTION_SETPROPERTY) it's unclear to me when
/// key gets used and when the namespace (or nothing) is used.
ABC_ACTION_GETPROPERTY = 0x66,
ABC_ACTION_0x67 = 0x67,
/// Stream V32 'name_id'
/// Stack In:
/// obj -- The object whose property is to be initialized
/// [ns [n]] -- Namespace stuff
/// value -- The value to be put into the property.
/// Stack Out:
/// .
/// Do:
/// Set obj::(resolve)'name_id' to value, set bindings from the context.
ABC_ACTION_INITPROPERTY = 0x68,
ABC_ACTION_0x69 = 0x69,
/// Stream: V32 'name_id'
/// Stack In:
/// obj -- The object whose property should be deleted.
/// [ns [n]] -- Namespace stuff
/// Stack Out:
/// truth -- True if property was deleted or did not exist, else False.
ABC_ACTION_DELETEPROPERTY = 0x6A,
ABC_ACTION_0x6B = 0x6B,
/// Stream: V32 'slot_index + 1'
/// Stack In:
/// obj -- The object which owns the desired slot.
/// Stack Out:
/// slot -- obj.slots[slot_index]
ABC_ACTION_GETSLOT = 0x6C,
/// Stream: V32 'slot_index + 1'
/// Stack In:
/// obj -- The object whose slot should be set.
/// value -- The value intended for the slot.
/// Stack Out:
/// .
/// Do: obj.slots[slot_index] = value
ABC_ACTION_SETSLOT = 0x6D,
/// Stream: V32 'slot_index + 1'
/// Stack In:
/// .
/// Stack Out:
/// slot -- globals.slots[slot_index]
/// NB: Deprecated
ABC_ACTION_GETGLOBALSLOT = 0x6E,
/// Stream: V32 'slot_index + 1'
/// Stack In:
/// value -- The value to be placed into the slot.
/// Stack Out:
/// .
/// Do: globals[slot_index] = value
/// NB: Deprecated
ABC_ACTION_SETGLOBALSLOT = 0x6F,
/// Stack In:
/// value -- An object
/// Stack Out:
/// str_value -- value as a string
ABC_ACTION_CONVERT_S = 0x70,
/// Stack In:
/// value -- An object to be escaped
/// Stack Out:
/// str_value -- value as a string, escaped suitably for an XML element.
ABC_ACTION_ESC_XELEM = 0x71,
/// Stack In:
/// value -- An object to be escaped
/// Stack Out:
/// str_value -- value as a string, escaped suitably for an XML attribute.
ABC_ACTION_ESC_XATTR = 0x72,
/// Stack In:
/// value -- An object to be converted to Integer
/// Stack Out:
/// int_value -- value as an integer object
ABC_ACTION_CONVERT_I = 0x73,
/// Stack In:
/// value -- An object to be converted to unsigned integer
/// Stack Out:
/// int_value -- value as an unsigned integer object
ABC_ACTION_CONVERT_U = 0X74,
/// Stack In:
/// value -- An object to be converted to a double
/// Stack Out:
/// double_value -- value as a double object
ABC_ACTION_CONVERT_D = 0X75,
/// Stack In:
/// value -- An object to be converted to a boolean
/// Stack Out:
/// bool_value -- value as a boolean object
ABC_ACTION_CONVERT_B = 0X76,
/// Stack In:
/// obj -- An object
/// Stack Out:
/// obj -- An object
/// Do: If obj is Undefined or Null, throw TypeError
ABC_ACTION_CONVERT_O = 0X77,
/// Stack In:
/// obj -- An object
/// Stack Out:
/// obj -- An object
/// Do: If obj is not XML based, throw TypeError
ABC_ACTION_CHECKFILTER = 0x78,
ABC_ACTION_0x79 = 0x79,
ABC_ACTION_0x7A = 0x7A,
ABC_ACTION_0x7B = 0x7B,
ABC_ACTION_0x7C = 0x7C,
ABC_ACTION_0x7D = 0x7D,
ABC_ACTION_0x7E = 0x7E,
ABC_ACTION_0x7F = 0x7F,
/// Stream: V32 'name_index'
/// Stack In:
/// obj -- An object to be converted
/// Stack Out:
/// coerced_obj -- The object as the desired (resolve)'name_index' type.
ABC_ACTION_COERCE = 0x80,
/// See: 0x76 (ABC_ACTION_CONVERT_B)
/// NB: Deprecated
ABC_ACTION_COERCE_B = 0x81,
/// Stack In:
/// obj -- An object to be converted
/// Stack Out:
/// obj
/// Do: Nothing. (The 'a' is for atom, and this already is.)
ABC_ACTION_COERCE_A = 0x82,
/// See: 0x73 ABC_ACTION_CONVERT_I
/// NB: Deprecated
/// NOMING 20 Aug 2007
ABC_ACTION_COERCE_I = 0x83,
/// See: 0x75 ABC_ACTION_CONVERT_D
/// NB: Deprecated
/// NOMING 20 Aug 2007
ABC_ACTION_COERCE_D = 0x84,
/// Stack In:
/// obj -- An object to be converted
/// Stack Out:
/// str_obj -- obj as string. nullString object if obj is Null or Undefined
ABC_ACTION_COERCE_S = 0x85,
/// Stream: V32 'name_index' (no namespace)
/// Stack In:
/// obj -- An object to be checked
/// Stack Out:
/// cobj -- obj if obj is of type (resolve)'name_index', otherwise Null
ABC_ACTION_ASTYPE = 0x86,
/// Stack In:
/// obj -- An object to be checked
/// valid -- The object whose type is to be matched
/// Stack Out:
/// cobj -- obj if type of obj is type of valid, otherwise Null
ABC_ACTION_ASTYPELATE = 0x87,
/// See: 0x74 (ABC_ACTION_CONVERT_U)
/// NB: Deprecated
ABC_ACTION_COERCE_U = 0x88,
/// Stack In:
/// obj -- An object
/// Stack Out:
/// cobj -- obj if obj is not Undefined, otherwise Null
ABC_ACTION_COERCE_O = 0x89,
ABC_ACTION_0x8A = 0x8A,
ABC_ACTION_0x8B = 0x8B,
ABC_ACTION_0x8C = 0x8C,
ABC_ACTION_0x8D = 0x8D,
ABC_ACTION_0x8E = 0x8E,
ABC_ACTION_0x8F = 0x8F,
/// Stack In:
/// obj -- An object
/// Stack Out:
/// negdouble -- -1.0 * (double) obj
ABC_ACTION_NEGATE = 0x90,
/// Stack In:
/// num -- A number, integer or double
/// Stack Out:
/// num2 -- The same value, but new object.
/// Do:
/// num = num + 1 (post-increment)
ABC_ACTION_INCREMENT = 0x91,
/// Stream: V32 'frame_addr'
/// Frame: Load i from frame_addr. Store clone(i) at frame_addr. i = i + 1
/// (post-increment in frame)
ABC_ACTION_INCLOCAL = 0x92,
/// Stack In:
/// num -- A number, integer or double
/// Stack Out:
/// num2 -- The same value, but new object.
/// Do:
/// num = num - 1 (post-decrement)
ABC_ACTION_DECREMENT = 0x93,
/// Stream: V32 'frame_addr'
/// Frame: Load i from frame_addr. Store clone(i) at frame_addr. i = i - 1
/// (post-decrement in frame)
ABC_ACTION_DECLOCAL = 0x94,
/// Stack In:
/// obj -- An object
/// Stack Out:
/// type -- typeof(obj)
ABC_ACTION_ABC_TYPEOF = 0x95,
/// Stack In:
/// obj -- An object
/// Stack Out:
/// nobj -- A truth object with value !((Boolean) obj)
ABC_ACTION_NOT = 0x96,
/// Stack In:
/// obj -- An object
/// Stack Out:
/// nint -- ~((Int) obj)
ABC_ACTION_BITNOT = 0x97,
ABC_ACTION_0x98 = 0x98,
ABC_ACTION_0x99 = 0x99,
/// NB: It is an error for this to appear.
ABC_ACTION_CONCAT = 0x9A,
/// NB: It is an error for this to appear.
ABC_ACTION_ADD_D = 0x9B,
ABC_ACTION_0x9C = 0x9C,
ABC_ACTION_0x9D = 0x9D,
ABC_ACTION_0x9E = 0x9E,
ABC_ACTION_0x9F = 0x9F,
/// Stack In:
/// a
/// b
/// Stack Out:
/// a + b (double if numeric)
ABC_ACTION_ADD = 0xA0,
/// Stack In: /// Stack In:
/// a
/// b
/// Stack Out:
/// a - b (double)
ABC_ACTION_SUBTRACT = 0xA1,
/// Stack In:
/// a
/// b
/// Stack Out:
/// a * b (double)
ABC_ACTION_MULTIPLY = 0xA2,
/// Stack In:
/// a
/// b
/// Stack Out:
/// a / b (double)
ABC_ACTION_DIVIDE = 0xA3,
/// Stack In:
/// a
/// b
/// Stack Out:
/// a % b
ABC_ACTION_MODULO = 0xA4,
/// Stack In:
/// a
/// b
/// Stack Out:
/// a << b
ABC_ACTION_LSHIFT = 0xA5,
/// Stack In:
/// a
/// b
/// Stack Out:
/// a >> b
ABC_ACTION_RSHIFT = 0xA6,
/// Stack In:
/// a
/// b
/// Stack Out:
/// ((unsigned) a) >> b
ABC_ACTION_URSHIFT = 0xA7,
/// a
/// b
/// Stack Out:
/// a & b
ABC_ACTION_BITAND = 0xA8,
/// Stack In:
/// a
/// b
/// Stack Out:
/// a | b
ABC_ACTION_BITOR = 0xA9,
/// Stack In:
/// a
/// b
/// Stack Out:
/// a ^ b
ABC_ACTION_BITXOR = 0xAA,
/// Stack In:
/// a
/// b
/// Stack Out:
/// truth -- Truth of (a == b) (weakly)
ABC_ACTION_EQUALS = 0xAB,
/// Stack In:
/// a
/// b
/// Stack Out:
/// truth -- Truth of (a == b) (strongly, as in
/// 0x19 (ABC_ACTION_IFSTRICTEQ))
ABC_ACTION_STRICTEQUALS = 0xAC,
/// Stack In:
/// a
/// b
/// Stack Out:
/// truth -- Truth of (a < b)
ABC_ACTION_LESSTHAN = 0xAD,
/// Stack In:
/// a
/// b
/// Stack Out:
/// truth -- Truth of (a <= b)
ABC_ACTION_LESSEQUALS = 0xAE,
/// Stack In:
/// a
/// b
/// Stack Out:
/// truth -- Truth of (a > b)
ABC_ACTION_GREATERTHAN = 0xAF,
/// Stack In:
/// a
/// b
/// Stack Out:
/// truth -- Truth of (a >= b)
ABC_ACTION_GREATEREQUALS = 0xB0,
/// Stack In:
/// val -- An object
/// super -- An object
/// Stack Out:
/// truth -- Truth of "val is an instance of super"
ABC_ACTION_INSTANCEOF = 0xB1,
/// Stream: V32 'name_id'
/// Stack In:
/// obj -- An object
/// Stack Out:
/// truth -- Truth of "obj is of the type given in (resolve)'name_id'"
ABC_ACTION_ISTYPE = 0xB2,
/// Stack In:
/// obj -- An object
/// type -- A type to match
/// Stack Out:
/// truth -- Truth of "obj is of type"
ABC_ACTION_ISTYPELATE = 0xB3,
/// Stack In:
/// name -- The name to find
/// obj -- The object to search for it
/// Stack Out:
/// truth -- True if name is in current namespace or anywhere in object.
/// Don't look in the namespace if obj is a dictionary.
ABC_ACTION_IN = 0xB4,
ABC_ACTION_0xB5 = 0xB5,
ABC_ACTION_0xB6 = 0xB6,
ABC_ACTION_0xB7 = 0xB7,
ABC_ACTION_0xB8 = 0xB8,
ABC_ACTION_0xB9 = 0xB9,
ABC_ACTION_0xBA = 0xBA,
ABC_ACTION_0xBB = 0xBB,
ABC_ACTION_0xBC = 0xBC,
ABC_ACTION_0xBD = 0xBD,
ABC_ACTION_0xBE = 0xBE,
ABC_ACTION_0xBF = 0xBF,
/// See: 0x91 (ABC_ACTION_INCREMENT), but forces types to int, not double
ABC_ACTION_INCREMENT_I = 0xC0,
/// See: 0x93 (ABC_ACTION_DECREMENT), but forces types to int, not double
ABC_ACTION_DECREMENT_I = 0xC1,
/// See: 0x92 (ABC_ACTION_INCLOCAL), but forces types to int, not double
ABC_ACTION_INCLOCAL_I = 0xC2,
/// See: 0x94 (ABC_ACTION_DECLOCAL), but forces types to int, not double
ABC_ACTION_DECLOCAL_I = 0xC3,
/// See: 0x90 (ABC_ACTION_NEGATE), but forces type to int, not double
ABC_ACTION_NEGATE_I = 0xC4,
/// See: 0xA0 (ABC_ACTION_ADD), but forces type to int
ABC_ACTION_ADD_I = 0xC5,
/// See: 0xA1 (ABC_ACTION_SUBTRACT), but forces type to int
ABC_ACTION_SUBTRACT_I = 0xC6,
/// See: 0xA2 (ABC_ACTION_MULTIPLY), but forces type to int
ABC_ACTION_MULTIPLY_I = 0xC7,
ABC_ACTION_0xC8 = 0xC8,
ABC_ACTION_0xC9 = 0xC9,
ABC_ACTION_0xCA = 0xCA,
ABC_ACTION_0xCB = 0xCB,
ABC_ACTION_0xCC = 0xCC,
ABC_ACTION_0xCD = 0xCD,
ABC_ACTION_0xCE = 0xCE,
ABC_ACTION_0xCF = 0xCF,
/// Frame: Load frame[0] as val
/// Stack Out:
/// val
ABC_ACTION_GETLOCAL0 = 0xD0,
/// Frame: Load frame[1] as val
/// Stack Out:
/// val
ABC_ACTION_GETLOCAL1 = 0xD1,
/// Frame: Load frame[2] as val
/// Stack Out:
/// val
ABC_ACTION_GETLOCAL2 = 0xD2,
/// Frame: Load frame[3] as val
/// Stack Out:
/// val
ABC_ACTION_GETLOCAL3 = 0xD3,
/// Frame: Store val as frame[0]
/// Stack In:
/// val
/// Stack Out:
/// .
ABC_ACTION_SETLOCAL0 = 0xD4,
/// Frame: Store val as frame[1]
/// Stack In:
/// val
/// Stack Out:
/// .
ABC_ACTION_SETLOCAL1 = 0xD5,
/// Frame: Store val as frame[2]
/// Stack In:
/// val
/// Stack Out:
/// .
ABC_ACTION_SETLOCAL2 = 0xD6,
/// Frame: Store val as frame[3]
/// Stack In:
/// val
/// Stack Out:
/// .
ABC_ACTION_SETLOCAL3 = 0xD7,
ABC_ACTION_0xD8 = 0xD8,
ABC_ACTION_0xD9 = 0xD9,
ABC_ACTION_0xDA = 0xDA,
ABC_ACTION_0xDB = 0xDB,
ABC_ACTION_0xDC = 0xDC,
ABC_ACTION_0xDD = 0xDD,
ABC_ACTION_0xDE = 0xDE,
ABC_ACTION_0xDF = 0xDF,
ABC_ACTION_0xE0 = 0xE0,
ABC_ACTION_0xE1 = 0xE1,
ABC_ACTION_0xE2 = 0xE2,
ABC_ACTION_0xE3 = 0xE3,
ABC_ACTION_0xE4 = 0xE4,
ABC_ACTION_0xE5 = 0xE5,
ABC_ACTION_0xE6 = 0xE6,
ABC_ACTION_0xE7 = 0xE7,
ABC_ACTION_0xE8 = 0xE8,
ABC_ACTION_0xE9 = 0xE9,
ABC_ACTION_0xEA = 0xEA,
ABC_ACTION_0xEB = 0xEB,
ABC_ACTION_0xEC = 0xEC,
ABC_ACTION_0xED = 0xED,
/// NB: It is an error for this to appear.
ABC_ACTION_ABS_JUMP = 0xEE,
/// Stream: 7 bytes of unknown stuff to be skipped
/// Do: skip ahead 7 bytes in stream
ABC_ACTION_DEBUG = 0xEF,
/// Stream: V32 'line_number'
/// Do: Nothing, but line_number is for the debugger if wanted.
ABC_ACTION_DEBUGLINE = 0xF0,
/// Stream: V32 'name_offset'
/// Do: Nothing. 'name_offset' into string pool is the file name if wanted.
ABC_ACTION_DEBUGFILE = 0xF1,
/// Stream: V32 'line_number'
/// Do: Enter debugger if present, line_number is the line number in source.
ABC_ACTION_BKPTLINE = 0xF2,
/// Do: Nothing.
ABC_ACTION_TIMESTAMP = 0xF3,
ABC_ACTION_0xF4 = 0xF4,
/// NB: It seems an error for this to appear.
ABC_ACTION_VERIFYPASS = 0xF5,
/// NB: Error to appear in ABC
ABC_ACTION_ALLOC = 0xF6,
/// NB: Error to appear in ABC
ABC_ACTION_MARK = 0xF7,
/// NB: Error to appear in ABC
ABC_ACTION_WB = 0xF8,
/// NB: Error to appear in ABC
ABC_ACTION_PROLOGUE = 0xF9,
/// NB: Error to appear in ABC
ABC_ACTION_SENDENTER = 0xFA,
/// NB: Error to appear in ABC
ABC_ACTION_DOUBLETOATOM = 0xFB,
/// NB: Error to appear in ABC
ABC_ACTION_SWEEP = 0xFC,
/// NB: Error to appear in ABC
ABC_ACTION_CODEGENOP = 0xFD,
/// NB: Error to appear in ABC
ABC_ACTION_VERIFYOP = 0xFE
};
/// Output operator for abc_action_type
std::ostream& operator<< (std::ostream& os, const abc_action_type& typ);
/// SWF fill style types. Symbolic names copied from Ming.
//
/// For more info see:
/// http://sswf.sourceforge.net/SWFalexref.html#swf_FillStyle
enum FillType
{
FILL_SOLID = 0x00,
FILL_LINEAR_GRADIENT = 0x10,
FILL_RADIAL_GRADIENT = 0x12,
FILL_FOCAL_GRADIENT = 0x13,
FILL_TILED_BITMAP = 0x40,
FILL_CLIPPED_BITMAP = 0x41,
/// swf8 (alexis is wrong), non-smoothed / hard edges
FILL_TILED_BITMAP_HARD = 0x42,
/// swf8 (alexis is wrong), non-smoothed / hard edges
FILL_CLIPPED_BITMAP_HARD = 0x43
};
enum SpreadMode
{
GRADIENT_SPREAD_PAD,
GRADIENT_SPREAD_REFLECT,
GRADIENT_SPREAD_REPEAT
};
enum InterpolationMode
{
GRADIENT_INTERPOLATION_NORMAL,
GRADIENT_INTERPOLATION_LINEAR
};
} // namespace gnash::SWF
} // namespace gnash
#endif // GNASH_SWF_H
|