You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Constants.java 42KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810
  1. package org.aspectj.apache.bcel;
  2. /* ====================================================================
  3. * The Apache Software License, Version 1.1
  4. *
  5. * Copyright (c) 2001 The Apache Software Foundation. All rights
  6. * reserved.
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted provided that the following conditions
  10. * are met:
  11. *
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. *
  15. * 2. Redistributions in binary form must reproduce the above copyright
  16. * notice, this list of conditions and the following disclaimer in
  17. * the documentation and/or other materials provided with the
  18. * distribution.
  19. *
  20. * 3. The end-user documentation included with the redistribution,
  21. * if any, must include the following acknowledgment:
  22. * "This product includes software developed by the
  23. * Apache Software Foundation (http://www.apache.org/)."
  24. * Alternately, this acknowledgment may appear in the software itself,
  25. * if and wherever such third-party acknowledgments normally appear.
  26. *
  27. * 4. The names "Apache" and "Apache Software Foundation" and
  28. * "Apache BCEL" must not be used to endorse or promote products
  29. * derived from this software without prior written permission. For
  30. * written permission, please contact apache@apache.org.
  31. *
  32. * 5. Products derived from this software may not be called "Apache",
  33. * "Apache BCEL", nor may "Apache" appear in their name, without
  34. * prior written permission of the Apache Software Foundation.
  35. *
  36. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  37. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  38. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  39. * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  40. * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  41. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  42. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  43. * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  44. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  45. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  46. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  47. * SUCH DAMAGE.
  48. * ====================================================================
  49. *
  50. * This software consists of voluntary contributions made by many
  51. * individuals on behalf of the Apache Software Foundation. For more
  52. * information on the Apache Software Foundation, please see
  53. * <http://www.apache.org/>.
  54. */
  55. /**
  56. * Constants for the project, mostly defined in the JVM specification.
  57. *
  58. * @version $Id: Constants.java,v 1.3 2006/05/04 11:28:26 aclement Exp $
  59. * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
  60. */
  61. public interface Constants {
  62. /** Major and minor version of the code.
  63. */
  64. public final static short MAJOR_1_1 = 45;
  65. public final static short MINOR_1_1 = 3;
  66. public final static short MAJOR_1_2 = 46;
  67. public final static short MINOR_1_2 = 0;
  68. public final static short MAJOR_1_3 = 47;
  69. public final static short MINOR_1_3 = 0;
  70. public final static short MAJOR_1_4 = 48;
  71. public final static short MINOR_1_4 = 0;
  72. public final static short MAJOR_1_5 = 49;
  73. public final static short MINOR_1_5 = 0;
  74. public final static short MAJOR_1_6 = 50;
  75. public final static short MINOR_1_6 = 0;
  76. public final static short MAJOR = MAJOR_1_1; // Defaults
  77. public final static short MINOR = MINOR_1_1;
  78. /** Maximum value for an unsigned short.
  79. */
  80. public final static int MAX_SHORT = 65535; // 2^16 - 1
  81. /** Maximum value for an unsigned byte.
  82. */
  83. public final static int MAX_BYTE = 255; // 2^8 - 1
  84. /** Access flags for classes, fields and methods.
  85. */
  86. public final static short ACC_PUBLIC = 0x0001;
  87. public final static short ACC_PRIVATE = 0x0002;
  88. public final static short ACC_PROTECTED = 0x0004;
  89. public final static short ACC_STATIC = 0x0008;
  90. public final static short ACC_FINAL = 0x0010;
  91. public final static short ACC_SYNCHRONIZED = 0x0020;
  92. public final static short ACC_VOLATILE = 0x0040;
  93. public final static short ACC_TRANSIENT = 0x0080;
  94. public final static short ACC_NATIVE = 0x0100;
  95. public final static short ACC_INTERFACE = 0x0200;
  96. public final static short ACC_ABSTRACT = 0x0400;
  97. public final static short ACC_STRICT = 0x0800;
  98. // J5SUPPORT:
  99. public final static short ACC_ANNOTATION = 0x2000;
  100. public final static short ACC_ENUM = 0x4000;
  101. public final static short ACC_BRIDGE = 0x0040;
  102. public final static short ACC_VARARGS = 0x0080;
  103. // Applies to classes compiled by new compilers only
  104. public final static short ACC_SUPER = 0x0020;
  105. public final static short MAX_ACC_FLAG = ACC_STRICT;
  106. public final static String[] ACCESS_NAMES = {
  107. "public", "private", "protected", "static", "final", "synchronized",
  108. "volatile", "transient", "native", "interface", "abstract", "strictfp"
  109. };
  110. /** Tags in constant pool to denote type of constant.
  111. */
  112. public final static byte CONSTANT_Utf8 = 1;
  113. public final static byte CONSTANT_Integer = 3;
  114. public final static byte CONSTANT_Float = 4;
  115. public final static byte CONSTANT_Long = 5;
  116. public final static byte CONSTANT_Double = 6;
  117. public final static byte CONSTANT_Class = 7;
  118. public final static byte CONSTANT_Fieldref = 9;
  119. public final static byte CONSTANT_String = 8;
  120. public final static byte CONSTANT_Methodref = 10;
  121. public final static byte CONSTANT_InterfaceMethodref = 11;
  122. public final static byte CONSTANT_NameAndType = 12;
  123. public final static String[] CONSTANT_NAMES = {
  124. "", "CONSTANT_Utf8", "", "CONSTANT_Integer",
  125. "CONSTANT_Float", "CONSTANT_Long", "CONSTANT_Double",
  126. "CONSTANT_Class", "CONSTANT_String", "CONSTANT_Fieldref",
  127. "CONSTANT_Methodref", "CONSTANT_InterfaceMethodref",
  128. "CONSTANT_NameAndType" };
  129. /** The name of the static initializer, also called &quot;class
  130. * initialization method&quot; or &quot;interface initialization
  131. * method&quot;. This is &quot;&lt;clinit&gt;&quot;.
  132. */
  133. public final static String STATIC_INITIALIZER_NAME = "<clinit>";
  134. /** The name of every constructor method in a class, also called
  135. * &quot;instance initialization method&quot;. This is &quot;&lt;init&gt;&quot;.
  136. */
  137. public final static String CONSTRUCTOR_NAME = "<init>";
  138. /** The names of the interfaces implemented by arrays */
  139. public final static String[] INTERFACES_IMPLEMENTED_BY_ARRAYS = {"java.lang.Cloneable", "java.io.Serializable"};
  140. /**
  141. * Limitations of the Java Virtual Machine.
  142. * See The Java Virtual Machine Specification, Second Edition, page 152, chapter 4.10.
  143. */
  144. public static final int MAX_CP_ENTRIES = 65535;
  145. public static final int MAX_CODE_SIZE = 65536; //bytes
  146. /** Java VM opcodes.
  147. */
  148. public static final short NOP = 0;
  149. public static final short ACONST_NULL = 1;
  150. public static final short ICONST_M1 = 2;
  151. public static final short ICONST_0 = 3;
  152. public static final short ICONST_1 = 4;
  153. public static final short ICONST_2 = 5;
  154. public static final short ICONST_3 = 6;
  155. public static final short ICONST_4 = 7;
  156. public static final short ICONST_5 = 8;
  157. public static final short LCONST_0 = 9;
  158. public static final short LCONST_1 = 10;
  159. public static final short FCONST_0 = 11;
  160. public static final short FCONST_1 = 12;
  161. public static final short FCONST_2 = 13;
  162. public static final short DCONST_0 = 14;
  163. public static final short DCONST_1 = 15;
  164. public static final short BIPUSH = 16;
  165. public static final short SIPUSH = 17;
  166. public static final short LDC = 18;
  167. public static final short LDC_W = 19;
  168. public static final short LDC2_W = 20;
  169. public static final short ILOAD = 21;
  170. public static final short LLOAD = 22;
  171. public static final short FLOAD = 23;
  172. public static final short DLOAD = 24;
  173. public static final short ALOAD = 25;
  174. public static final short ILOAD_0 = 26;
  175. public static final short ILOAD_1 = 27;
  176. public static final short ILOAD_2 = 28;
  177. public static final short ILOAD_3 = 29;
  178. public static final short LLOAD_0 = 30;
  179. public static final short LLOAD_1 = 31;
  180. public static final short LLOAD_2 = 32;
  181. public static final short LLOAD_3 = 33;
  182. public static final short FLOAD_0 = 34;
  183. public static final short FLOAD_1 = 35;
  184. public static final short FLOAD_2 = 36;
  185. public static final short FLOAD_3 = 37;
  186. public static final short DLOAD_0 = 38;
  187. public static final short DLOAD_1 = 39;
  188. public static final short DLOAD_2 = 40;
  189. public static final short DLOAD_3 = 41;
  190. public static final short ALOAD_0 = 42;
  191. public static final short ALOAD_1 = 43;
  192. public static final short ALOAD_2 = 44;
  193. public static final short ALOAD_3 = 45;
  194. public static final short IALOAD = 46;
  195. public static final short LALOAD = 47;
  196. public static final short FALOAD = 48;
  197. public static final short DALOAD = 49;
  198. public static final short AALOAD = 50;
  199. public static final short BALOAD = 51;
  200. public static final short CALOAD = 52;
  201. public static final short SALOAD = 53;
  202. public static final short ISTORE = 54;
  203. public static final short LSTORE = 55;
  204. public static final short FSTORE = 56;
  205. public static final short DSTORE = 57;
  206. public static final short ASTORE = 58;
  207. public static final short ISTORE_0 = 59;
  208. public static final short ISTORE_1 = 60;
  209. public static final short ISTORE_2 = 61;
  210. public static final short ISTORE_3 = 62;
  211. public static final short LSTORE_0 = 63;
  212. public static final short LSTORE_1 = 64;
  213. public static final short LSTORE_2 = 65;
  214. public static final short LSTORE_3 = 66;
  215. public static final short FSTORE_0 = 67;
  216. public static final short FSTORE_1 = 68;
  217. public static final short FSTORE_2 = 69;
  218. public static final short FSTORE_3 = 70;
  219. public static final short DSTORE_0 = 71;
  220. public static final short DSTORE_1 = 72;
  221. public static final short DSTORE_2 = 73;
  222. public static final short DSTORE_3 = 74;
  223. public static final short ASTORE_0 = 75;
  224. public static final short ASTORE_1 = 76;
  225. public static final short ASTORE_2 = 77;
  226. public static final short ASTORE_3 = 78;
  227. public static final short IASTORE = 79;
  228. public static final short LASTORE = 80;
  229. public static final short FASTORE = 81;
  230. public static final short DASTORE = 82;
  231. public static final short AASTORE = 83;
  232. public static final short BASTORE = 84;
  233. public static final short CASTORE = 85;
  234. public static final short SASTORE = 86;
  235. public static final short POP = 87;
  236. public static final short POP2 = 88;
  237. public static final short DUP = 89;
  238. public static final short DUP_X1 = 90;
  239. public static final short DUP_X2 = 91;
  240. public static final short DUP2 = 92;
  241. public static final short DUP2_X1 = 93;
  242. public static final short DUP2_X2 = 94;
  243. public static final short SWAP = 95;
  244. public static final short IADD = 96;
  245. public static final short LADD = 97;
  246. public static final short FADD = 98;
  247. public static final short DADD = 99;
  248. public static final short ISUB = 100;
  249. public static final short LSUB = 101;
  250. public static final short FSUB = 102;
  251. public static final short DSUB = 103;
  252. public static final short IMUL = 104;
  253. public static final short LMUL = 105;
  254. public static final short FMUL = 106;
  255. public static final short DMUL = 107;
  256. public static final short IDIV = 108;
  257. public static final short LDIV = 109;
  258. public static final short FDIV = 110;
  259. public static final short DDIV = 111;
  260. public static final short IREM = 112;
  261. public static final short LREM = 113;
  262. public static final short FREM = 114;
  263. public static final short DREM = 115;
  264. public static final short INEG = 116;
  265. public static final short LNEG = 117;
  266. public static final short FNEG = 118;
  267. public static final short DNEG = 119;
  268. public static final short ISHL = 120;
  269. public static final short LSHL = 121;
  270. public static final short ISHR = 122;
  271. public static final short LSHR = 123;
  272. public static final short IUSHR = 124;
  273. public static final short LUSHR = 125;
  274. public static final short IAND = 126;
  275. public static final short LAND = 127;
  276. public static final short IOR = 128;
  277. public static final short LOR = 129;
  278. public static final short IXOR = 130;
  279. public static final short LXOR = 131;
  280. public static final short IINC = 132;
  281. public static final short I2L = 133;
  282. public static final short I2F = 134;
  283. public static final short I2D = 135;
  284. public static final short L2I = 136;
  285. public static final short L2F = 137;
  286. public static final short L2D = 138;
  287. public static final short F2I = 139;
  288. public static final short F2L = 140;
  289. public static final short F2D = 141;
  290. public static final short D2I = 142;
  291. public static final short D2L = 143;
  292. public static final short D2F = 144;
  293. public static final short I2B = 145;
  294. public static final short INT2BYTE = 145; // Old notion
  295. public static final short I2C = 146;
  296. public static final short INT2CHAR = 146; // Old notion
  297. public static final short I2S = 147;
  298. public static final short INT2SHORT = 147; // Old notion
  299. public static final short LCMP = 148;
  300. public static final short FCMPL = 149;
  301. public static final short FCMPG = 150;
  302. public static final short DCMPL = 151;
  303. public static final short DCMPG = 152;
  304. public static final short IFEQ = 153;
  305. public static final short IFNE = 154;
  306. public static final short IFLT = 155;
  307. public static final short IFGE = 156;
  308. public static final short IFGT = 157;
  309. public static final short IFLE = 158;
  310. public static final short IF_ICMPEQ = 159;
  311. public static final short IF_ICMPNE = 160;
  312. public static final short IF_ICMPLT = 161;
  313. public static final short IF_ICMPGE = 162;
  314. public static final short IF_ICMPGT = 163;
  315. public static final short IF_ICMPLE = 164;
  316. public static final short IF_ACMPEQ = 165;
  317. public static final short IF_ACMPNE = 166;
  318. public static final short GOTO = 167;
  319. public static final short JSR = 168;
  320. public static final short RET = 169;
  321. public static final short TABLESWITCH = 170;
  322. public static final short LOOKUPSWITCH = 171;
  323. public static final short IRETURN = 172;
  324. public static final short LRETURN = 173;
  325. public static final short FRETURN = 174;
  326. public static final short DRETURN = 175;
  327. public static final short ARETURN = 176;
  328. public static final short RETURN = 177;
  329. public static final short GETSTATIC = 178;
  330. public static final short PUTSTATIC = 179;
  331. public static final short GETFIELD = 180;
  332. public static final short PUTFIELD = 181;
  333. public static final short INVOKEVIRTUAL = 182;
  334. public static final short INVOKESPECIAL = 183;
  335. public static final short INVOKENONVIRTUAL = 183; // Old name in JDK 1.0
  336. public static final short INVOKESTATIC = 184;
  337. public static final short INVOKEINTERFACE = 185;
  338. public static final short NEW = 187;
  339. public static final short NEWARRAY = 188;
  340. public static final short ANEWARRAY = 189;
  341. public static final short ARRAYLENGTH = 190;
  342. public static final short ATHROW = 191;
  343. public static final short CHECKCAST = 192;
  344. public static final short INSTANCEOF = 193;
  345. public static final short MONITORENTER = 194;
  346. public static final short MONITOREXIT = 195;
  347. public static final short WIDE = 196;
  348. public static final short MULTIANEWARRAY = 197;
  349. public static final short IFNULL = 198;
  350. public static final short IFNONNULL = 199;
  351. public static final short GOTO_W = 200;
  352. public static final short JSR_W = 201;
  353. /**
  354. * Non-legal opcodes, may be used by JVM internally.
  355. */
  356. public static final short BREAKPOINT = 202;
  357. public static final short LDC_QUICK = 203;
  358. public static final short LDC_W_QUICK = 204;
  359. public static final short LDC2_W_QUICK = 205;
  360. public static final short GETFIELD_QUICK = 206;
  361. public static final short PUTFIELD_QUICK = 207;
  362. public static final short GETFIELD2_QUICK = 208;
  363. public static final short PUTFIELD2_QUICK = 209;
  364. public static final short GETSTATIC_QUICK = 210;
  365. public static final short PUTSTATIC_QUICK = 211;
  366. public static final short GETSTATIC2_QUICK = 212;
  367. public static final short PUTSTATIC2_QUICK = 213;
  368. public static final short INVOKEVIRTUAL_QUICK = 214;
  369. public static final short INVOKENONVIRTUAL_QUICK = 215;
  370. public static final short INVOKESUPER_QUICK = 216;
  371. public static final short INVOKESTATIC_QUICK = 217;
  372. public static final short INVOKEINTERFACE_QUICK = 218;
  373. public static final short INVOKEVIRTUALOBJECT_QUICK = 219;
  374. public static final short NEW_QUICK = 221;
  375. public static final short ANEWARRAY_QUICK = 222;
  376. public static final short MULTIANEWARRAY_QUICK = 223;
  377. public static final short CHECKCAST_QUICK = 224;
  378. public static final short INSTANCEOF_QUICK = 225;
  379. public static final short INVOKEVIRTUAL_QUICK_W = 226;
  380. public static final short GETFIELD_QUICK_W = 227;
  381. public static final short PUTFIELD_QUICK_W = 228;
  382. public static final short IMPDEP1 = 254;
  383. public static final short IMPDEP2 = 255;
  384. /**
  385. * For internal purposes only.
  386. */
  387. public static final short PUSH = 4711;
  388. public static final short SWITCH = 4712;
  389. /**
  390. * Illegal codes
  391. */
  392. public static final short UNDEFINED = -1;
  393. public static final short UNPREDICTABLE = -2;
  394. public static final short RESERVED = -3;
  395. public static final String ILLEGAL_OPCODE = "<illegal opcode>";
  396. public static final String ILLEGAL_TYPE = "<illegal type>";
  397. public static final byte T_BOOLEAN = 4;
  398. public static final byte T_CHAR = 5;
  399. public static final byte T_FLOAT = 6;
  400. public static final byte T_DOUBLE = 7;
  401. public static final byte T_BYTE = 8;
  402. public static final byte T_SHORT = 9;
  403. public static final byte T_INT = 10;
  404. public static final byte T_LONG = 11;
  405. public static final byte T_VOID = 12; // Non-standard
  406. public static final byte T_ARRAY = 13;
  407. public static final byte T_OBJECT = 14;
  408. public static final byte T_REFERENCE = 14; // Deprecated
  409. public static final byte T_UNKNOWN = 15;
  410. public static final byte T_ADDRESS = 16;
  411. /** The primitive type names corresponding to the T_XX constants,
  412. * e.g., TYPE_NAMES[T_INT] = "int"
  413. */
  414. public static final String[] TYPE_NAMES = {
  415. ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE,
  416. "boolean", "char", "float", "double", "byte", "short", "int", "long",
  417. "void", "array", "object", "unknown" // Non-standard
  418. };
  419. /** The primitive class names corresponding to the T_XX constants,
  420. * e.g., CLASS_TYPE_NAMES[T_INT] = "java.lang.Integer"
  421. */
  422. public static final String[] CLASS_TYPE_NAMES = {
  423. ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE,
  424. "java.lang.Boolean", "java.lang.Character", "java.lang.Float",
  425. "java.lang.Double", "java.lang.Byte", "java.lang.Short",
  426. "java.lang.Integer", "java.lang.Long", "java.lang.Void",
  427. ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE
  428. };
  429. /** The signature characters corresponding to primitive types,
  430. * e.g., SHORT_TYPE_NAMES[T_INT] = "I"
  431. */
  432. public static final String[] SHORT_TYPE_NAMES = {
  433. ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE,
  434. "Z", "C", "F", "D", "B", "S", "I", "J",
  435. "V", ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE
  436. };
  437. /**
  438. * Number of byte code operands, i.e., number of bytes after the tag byte
  439. * itself.
  440. */
  441. public static final short[] NO_OF_OPERANDS = {
  442. 0/*nop*/, 0/*aconst_null*/, 0/*iconst_m1*/, 0/*iconst_0*/,
  443. 0/*iconst_1*/, 0/*iconst_2*/, 0/*iconst_3*/, 0/*iconst_4*/,
  444. 0/*iconst_5*/, 0/*lconst_0*/, 0/*lconst_1*/, 0/*fconst_0*/,
  445. 0/*fconst_1*/, 0/*fconst_2*/, 0/*dconst_0*/, 0/*dconst_1*/,
  446. 1/*bipush*/, 2/*sipush*/, 1/*ldc*/, 2/*ldc_w*/, 2/*ldc2_w*/,
  447. 1/*iload*/, 1/*lload*/, 1/*fload*/, 1/*dload*/, 1/*aload*/,
  448. 0/*iload_0*/, 0/*iload_1*/, 0/*iload_2*/, 0/*iload_3*/,
  449. 0/*lload_0*/, 0/*lload_1*/, 0/*lload_2*/, 0/*lload_3*/,
  450. 0/*fload_0*/, 0/*fload_1*/, 0/*fload_2*/, 0/*fload_3*/,
  451. 0/*dload_0*/, 0/*dload_1*/, 0/*dload_2*/, 0/*dload_3*/,
  452. 0/*aload_0*/, 0/*aload_1*/, 0/*aload_2*/, 0/*aload_3*/,
  453. 0/*iaload*/, 0/*laload*/, 0/*faload*/, 0/*daload*/,
  454. 0/*aaload*/, 0/*baload*/, 0/*caload*/, 0/*saload*/,
  455. 1/*istore*/, 1/*lstore*/, 1/*fstore*/, 1/*dstore*/,
  456. 1/*astore*/, 0/*istore_0*/, 0/*istore_1*/, 0/*istore_2*/,
  457. 0/*istore_3*/, 0/*lstore_0*/, 0/*lstore_1*/, 0/*lstore_2*/,
  458. 0/*lstore_3*/, 0/*fstore_0*/, 0/*fstore_1*/, 0/*fstore_2*/,
  459. 0/*fstore_3*/, 0/*dstore_0*/, 0/*dstore_1*/, 0/*dstore_2*/,
  460. 0/*dstore_3*/, 0/*astore_0*/, 0/*astore_1*/, 0/*astore_2*/,
  461. 0/*astore_3*/, 0/*iastore*/, 0/*lastore*/, 0/*fastore*/,
  462. 0/*dastore*/, 0/*aastore*/, 0/*bastore*/, 0/*castore*/,
  463. 0/*sastore*/, 0/*pop*/, 0/*pop2*/, 0/*dup*/, 0/*dup_x1*/,
  464. 0/*dup_x2*/, 0/*dup2*/, 0/*dup2_x1*/, 0/*dup2_x2*/, 0/*swap*/,
  465. 0/*iadd*/, 0/*ladd*/, 0/*fadd*/, 0/*dadd*/, 0/*isub*/,
  466. 0/*lsub*/, 0/*fsub*/, 0/*dsub*/, 0/*imul*/, 0/*lmul*/,
  467. 0/*fmul*/, 0/*dmul*/, 0/*idiv*/, 0/*ldiv*/, 0/*fdiv*/,
  468. 0/*ddiv*/, 0/*irem*/, 0/*lrem*/, 0/*frem*/, 0/*drem*/,
  469. 0/*ineg*/, 0/*lneg*/, 0/*fneg*/, 0/*dneg*/, 0/*ishl*/,
  470. 0/*lshl*/, 0/*ishr*/, 0/*lshr*/, 0/*iushr*/, 0/*lushr*/,
  471. 0/*iand*/, 0/*land*/, 0/*ior*/, 0/*lor*/, 0/*ixor*/, 0/*lxor*/,
  472. 2/*iinc*/, 0/*i2l*/, 0/*i2f*/, 0/*i2d*/, 0/*l2i*/, 0/*l2f*/,
  473. 0/*l2d*/, 0/*f2i*/, 0/*f2l*/, 0/*f2d*/, 0/*d2i*/, 0/*d2l*/,
  474. 0/*d2f*/, 0/*i2b*/, 0/*i2c*/, 0/*i2s*/, 0/*lcmp*/, 0/*fcmpl*/,
  475. 0/*fcmpg*/, 0/*dcmpl*/, 0/*dcmpg*/, 2/*ifeq*/, 2/*ifne*/,
  476. 2/*iflt*/, 2/*ifge*/, 2/*ifgt*/, 2/*ifle*/, 2/*if_icmpeq*/,
  477. 2/*if_icmpne*/, 2/*if_icmplt*/, 2/*if_icmpge*/, 2/*if_icmpgt*/,
  478. 2/*if_icmple*/, 2/*if_acmpeq*/, 2/*if_acmpne*/, 2/*goto*/,
  479. 2/*jsr*/, 1/*ret*/, UNPREDICTABLE/*tableswitch*/, UNPREDICTABLE/*lookupswitch*/,
  480. 0/*ireturn*/, 0/*lreturn*/, 0/*freturn*/,
  481. 0/*dreturn*/, 0/*areturn*/, 0/*return*/,
  482. 2/*getstatic*/, 2/*putstatic*/, 2/*getfield*/,
  483. 2/*putfield*/, 2/*invokevirtual*/, 2/*invokespecial*/, 2/*invokestatic*/,
  484. 4/*invokeinterface*/, UNDEFINED, 2/*new*/,
  485. 1/*newarray*/, 2/*anewarray*/,
  486. 0/*arraylength*/, 0/*athrow*/, 2/*checkcast*/,
  487. 2/*instanceof*/, 0/*monitorenter*/,
  488. 0/*monitorexit*/, UNPREDICTABLE/*wide*/, 3/*multianewarray*/,
  489. 2/*ifnull*/, 2/*ifnonnull*/, 4/*goto_w*/,
  490. 4/*jsr_w*/, 0/*breakpoint*/, UNDEFINED,
  491. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  492. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  493. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  494. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  495. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  496. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  497. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  498. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  499. UNDEFINED, UNDEFINED, RESERVED/*impdep1*/, RESERVED/*impdep2*/
  500. };
  501. /**
  502. * How the byte code operands are to be interpreted.
  503. */
  504. public static final short[][] TYPE_OF_OPERANDS = {
  505. {}/*nop*/, {}/*aconst_null*/, {}/*iconst_m1*/, {}/*iconst_0*/,
  506. {}/*iconst_1*/, {}/*iconst_2*/, {}/*iconst_3*/, {}/*iconst_4*/,
  507. {}/*iconst_5*/, {}/*lconst_0*/, {}/*lconst_1*/, {}/*fconst_0*/,
  508. {}/*fconst_1*/, {}/*fconst_2*/, {}/*dconst_0*/, {}/*dconst_1*/,
  509. {T_BYTE}/*bipush*/, {T_SHORT}/*sipush*/, {T_BYTE}/*ldc*/,
  510. {T_SHORT}/*ldc_w*/, {T_SHORT}/*ldc2_w*/,
  511. {T_BYTE}/*iload*/, {T_BYTE}/*lload*/, {T_BYTE}/*fload*/,
  512. {T_BYTE}/*dload*/, {T_BYTE}/*aload*/, {}/*iload_0*/,
  513. {}/*iload_1*/, {}/*iload_2*/, {}/*iload_3*/, {}/*lload_0*/,
  514. {}/*lload_1*/, {}/*lload_2*/, {}/*lload_3*/, {}/*fload_0*/,
  515. {}/*fload_1*/, {}/*fload_2*/, {}/*fload_3*/, {}/*dload_0*/,
  516. {}/*dload_1*/, {}/*dload_2*/, {}/*dload_3*/, {}/*aload_0*/,
  517. {}/*aload_1*/, {}/*aload_2*/, {}/*aload_3*/, {}/*iaload*/,
  518. {}/*laload*/, {}/*faload*/, {}/*daload*/, {}/*aaload*/,
  519. {}/*baload*/, {}/*caload*/, {}/*saload*/, {T_BYTE}/*istore*/,
  520. {T_BYTE}/*lstore*/, {T_BYTE}/*fstore*/, {T_BYTE}/*dstore*/,
  521. {T_BYTE}/*astore*/, {}/*istore_0*/, {}/*istore_1*/,
  522. {}/*istore_2*/, {}/*istore_3*/, {}/*lstore_0*/, {}/*lstore_1*/,
  523. {}/*lstore_2*/, {}/*lstore_3*/, {}/*fstore_0*/, {}/*fstore_1*/,
  524. {}/*fstore_2*/, {}/*fstore_3*/, {}/*dstore_0*/, {}/*dstore_1*/,
  525. {}/*dstore_2*/, {}/*dstore_3*/, {}/*astore_0*/, {}/*astore_1*/,
  526. {}/*astore_2*/, {}/*astore_3*/, {}/*iastore*/, {}/*lastore*/,
  527. {}/*fastore*/, {}/*dastore*/, {}/*aastore*/, {}/*bastore*/,
  528. {}/*castore*/, {}/*sastore*/, {}/*pop*/, {}/*pop2*/, {}/*dup*/,
  529. {}/*dup_x1*/, {}/*dup_x2*/, {}/*dup2*/, {}/*dup2_x1*/,
  530. {}/*dup2_x2*/, {}/*swap*/, {}/*iadd*/, {}/*ladd*/, {}/*fadd*/,
  531. {}/*dadd*/, {}/*isub*/, {}/*lsub*/, {}/*fsub*/, {}/*dsub*/,
  532. {}/*imul*/, {}/*lmul*/, {}/*fmul*/, {}/*dmul*/, {}/*idiv*/,
  533. {}/*ldiv*/, {}/*fdiv*/, {}/*ddiv*/, {}/*irem*/, {}/*lrem*/,
  534. {}/*frem*/, {}/*drem*/, {}/*ineg*/, {}/*lneg*/, {}/*fneg*/,
  535. {}/*dneg*/, {}/*ishl*/, {}/*lshl*/, {}/*ishr*/, {}/*lshr*/,
  536. {}/*iushr*/, {}/*lushr*/, {}/*iand*/, {}/*land*/, {}/*ior*/,
  537. {}/*lor*/, {}/*ixor*/, {}/*lxor*/, {T_BYTE, T_BYTE}/*iinc*/,
  538. {}/*i2l*/, {}/*i2f*/, {}/*i2d*/, {}/*l2i*/, {}/*l2f*/, {}/*l2d*/,
  539. {}/*f2i*/, {}/*f2l*/, {}/*f2d*/, {}/*d2i*/, {}/*d2l*/, {}/*d2f*/,
  540. {}/*i2b*/, {}/*i2c*/,{}/*i2s*/, {}/*lcmp*/, {}/*fcmpl*/,
  541. {}/*fcmpg*/, {}/*dcmpl*/, {}/*dcmpg*/, {T_SHORT}/*ifeq*/,
  542. {T_SHORT}/*ifne*/, {T_SHORT}/*iflt*/, {T_SHORT}/*ifge*/,
  543. {T_SHORT}/*ifgt*/, {T_SHORT}/*ifle*/, {T_SHORT}/*if_icmpeq*/,
  544. {T_SHORT}/*if_icmpne*/, {T_SHORT}/*if_icmplt*/,
  545. {T_SHORT}/*if_icmpge*/, {T_SHORT}/*if_icmpgt*/,
  546. {T_SHORT}/*if_icmple*/, {T_SHORT}/*if_acmpeq*/,
  547. {T_SHORT}/*if_acmpne*/, {T_SHORT}/*goto*/, {T_SHORT}/*jsr*/,
  548. {T_BYTE}/*ret*/, {}/*tableswitch*/, {}/*lookupswitch*/,
  549. {}/*ireturn*/, {}/*lreturn*/, {}/*freturn*/, {}/*dreturn*/,
  550. {}/*areturn*/, {}/*return*/, {T_SHORT}/*getstatic*/,
  551. {T_SHORT}/*putstatic*/, {T_SHORT}/*getfield*/,
  552. {T_SHORT}/*putfield*/, {T_SHORT}/*invokevirtual*/,
  553. {T_SHORT}/*invokespecial*/, {T_SHORT}/*invokestatic*/,
  554. {T_SHORT, T_BYTE, T_BYTE}/*invokeinterface*/, {},
  555. {T_SHORT}/*new*/, {T_BYTE}/*newarray*/,
  556. {T_SHORT}/*anewarray*/, {}/*arraylength*/, {}/*athrow*/,
  557. {T_SHORT}/*checkcast*/, {T_SHORT}/*instanceof*/,
  558. {}/*monitorenter*/, {}/*monitorexit*/, {T_BYTE}/*wide*/,
  559. {T_SHORT, T_BYTE}/*multianewarray*/, {T_SHORT}/*ifnull*/,
  560. {T_SHORT}/*ifnonnull*/, {T_INT}/*goto_w*/, {T_INT}/*jsr_w*/,
  561. {}/*breakpoint*/, {}, {}, {}, {}, {}, {}, {},
  562. {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {},
  563. {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {},
  564. {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {},
  565. {}/*impdep1*/, {}/*impdep2*/
  566. };
  567. /**
  568. * Names of opcodes.
  569. */
  570. public static final String[] OPCODE_NAMES = {
  571. "nop", "aconst_null", "iconst_m1", "iconst_0", "iconst_1",
  572. "iconst_2", "iconst_3", "iconst_4", "iconst_5", "lconst_0",
  573. "lconst_1", "fconst_0", "fconst_1", "fconst_2", "dconst_0",
  574. "dconst_1", "bipush", "sipush", "ldc", "ldc_w", "ldc2_w", "iload",
  575. "lload", "fload", "dload", "aload", "iload_0", "iload_1", "iload_2",
  576. "iload_3", "lload_0", "lload_1", "lload_2", "lload_3", "fload_0",
  577. "fload_1", "fload_2", "fload_3", "dload_0", "dload_1", "dload_2",
  578. "dload_3", "aload_0", "aload_1", "aload_2", "aload_3", "iaload",
  579. "laload", "faload", "daload", "aaload", "baload", "caload", "saload",
  580. "istore", "lstore", "fstore", "dstore", "astore", "istore_0",
  581. "istore_1", "istore_2", "istore_3", "lstore_0", "lstore_1",
  582. "lstore_2", "lstore_3", "fstore_0", "fstore_1", "fstore_2",
  583. "fstore_3", "dstore_0", "dstore_1", "dstore_2", "dstore_3",
  584. "astore_0", "astore_1", "astore_2", "astore_3", "iastore", "lastore",
  585. "fastore", "dastore", "aastore", "bastore", "castore", "sastore",
  586. "pop", "pop2", "dup", "dup_x1", "dup_x2", "dup2", "dup2_x1",
  587. "dup2_x2", "swap", "iadd", "ladd", "fadd", "dadd", "isub", "lsub",
  588. "fsub", "dsub", "imul", "lmul", "fmul", "dmul", "idiv", "ldiv",
  589. "fdiv", "ddiv", "irem", "lrem", "frem", "drem", "ineg", "lneg",
  590. "fneg", "dneg", "ishl", "lshl", "ishr", "lshr", "iushr", "lushr",
  591. "iand", "land", "ior", "lor", "ixor", "lxor", "iinc", "i2l", "i2f",
  592. "i2d", "l2i", "l2f", "l2d", "f2i", "f2l", "f2d", "d2i", "d2l", "d2f",
  593. "i2b", "i2c", "i2s", "lcmp", "fcmpl", "fcmpg",
  594. "dcmpl", "dcmpg", "ifeq", "ifne", "iflt", "ifge", "ifgt", "ifle",
  595. "if_icmpeq", "if_icmpne", "if_icmplt", "if_icmpge", "if_icmpgt",
  596. "if_icmple", "if_acmpeq", "if_acmpne", "goto", "jsr", "ret",
  597. "tableswitch", "lookupswitch", "ireturn", "lreturn", "freturn",
  598. "dreturn", "areturn", "return", "getstatic", "putstatic", "getfield",
  599. "putfield", "invokevirtual", "invokespecial", "invokestatic",
  600. "invokeinterface", ILLEGAL_OPCODE, "new", "newarray", "anewarray",
  601. "arraylength", "athrow", "checkcast", "instanceof", "monitorenter",
  602. "monitorexit", "wide", "multianewarray", "ifnull", "ifnonnull",
  603. "goto_w", "jsr_w", "breakpoint", ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  604. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  605. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  606. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  607. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  608. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  609. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  610. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  611. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  612. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  613. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  614. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  615. ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE, ILLEGAL_OPCODE,
  616. ILLEGAL_OPCODE, "impdep1", "impdep2"
  617. };
  618. /**
  619. * Number of words consumed on operand stack by instructions.
  620. */
  621. public static final int[] CONSUME_STACK = {
  622. 0/*nop*/, 0/*aconst_null*/, 0/*iconst_m1*/, 0/*iconst_0*/, 0/*iconst_1*/,
  623. 0/*iconst_2*/, 0/*iconst_3*/, 0/*iconst_4*/, 0/*iconst_5*/, 0/*lconst_0*/,
  624. 0/*lconst_1*/, 0/*fconst_0*/, 0/*fconst_1*/, 0/*fconst_2*/, 0/*dconst_0*/,
  625. 0/*dconst_1*/, 0/*bipush*/, 0/*sipush*/, 0/*ldc*/, 0/*ldc_w*/, 0/*ldc2_w*/, 0/*iload*/,
  626. 0/*lload*/, 0/*fload*/, 0/*dload*/, 0/*aload*/, 0/*iload_0*/, 0/*iload_1*/, 0/*iload_2*/,
  627. 0/*iload_3*/, 0/*lload_0*/, 0/*lload_1*/, 0/*lload_2*/, 0/*lload_3*/, 0/*fload_0*/,
  628. 0/*fload_1*/, 0/*fload_2*/, 0/*fload_3*/, 0/*dload_0*/, 0/*dload_1*/, 0/*dload_2*/,
  629. 0/*dload_3*/, 0/*aload_0*/, 0/*aload_1*/, 0/*aload_2*/, 0/*aload_3*/, 2/*iaload*/,
  630. 2/*laload*/, 2/*faload*/, 2/*daload*/, 2/*aaload*/, 2/*baload*/, 2/*caload*/, 2/*saload*/,
  631. 1/*istore*/, 2/*lstore*/, 1/*fstore*/, 2/*dstore*/, 1/*astore*/, 1/*istore_0*/,
  632. 1/*istore_1*/, 1/*istore_2*/, 1/*istore_3*/, 2/*lstore_0*/, 2/*lstore_1*/,
  633. 2/*lstore_2*/, 2/*lstore_3*/, 1/*fstore_0*/, 1/*fstore_1*/, 1/*fstore_2*/,
  634. 1/*fstore_3*/, 2/*dstore_0*/, 2/*dstore_1*/, 2/*dstore_2*/, 2/*dstore_3*/,
  635. 1/*astore_0*/, 1/*astore_1*/, 1/*astore_2*/, 1/*astore_3*/, 3/*iastore*/, 4/*lastore*/,
  636. 3/*fastore*/, 4/*dastore*/, 3/*aastore*/, 3/*bastore*/, 3/*castore*/, 3/*sastore*/,
  637. 1/*pop*/, 2/*pop2*/, 1/*dup*/, 2/*dup_x1*/, 3/*dup_x2*/, 2/*dup2*/, 3/*dup2_x1*/,
  638. 4/*dup2_x2*/, 2/*swap*/, 2/*iadd*/, 4/*ladd*/, 2/*fadd*/, 4/*dadd*/, 2/*isub*/, 4/*lsub*/,
  639. 2/*fsub*/, 4/*dsub*/, 2/*imul*/, 4/*lmul*/, 2/*fmul*/, 4/*dmul*/, 2/*idiv*/, 4/*ldiv*/,
  640. 2/*fdiv*/, 4/*ddiv*/, 2/*irem*/, 4/*lrem*/, 2/*frem*/, 4/*drem*/, 1/*ineg*/, 2/*lneg*/,
  641. 1/*fneg*/, 2/*dneg*/, 2/*ishl*/, 3/*lshl*/, 2/*ishr*/, 3/*lshr*/, 2/*iushr*/, 3/*lushr*/,
  642. 2/*iand*/, 4/*land*/, 2/*ior*/, 4/*lor*/, 2/*ixor*/, 4/*lxor*/, 0/*iinc*/,
  643. 1/*i2l*/, 1/*i2f*/, 1/*i2d*/, 2/*l2i*/, 2/*l2f*/, 2/*l2d*/, 1/*f2i*/, 1/*f2l*/,
  644. 1/*f2d*/, 2/*d2i*/, 2/*d2l*/, 2/*d2f*/, 1/*i2b*/, 1/*i2c*/, 1/*i2s*/,
  645. 4/*lcmp*/, 2/*fcmpl*/, 2/*fcmpg*/, 4/*dcmpl*/, 4/*dcmpg*/, 1/*ifeq*/, 1/*ifne*/,
  646. 1/*iflt*/, 1/*ifge*/, 1/*ifgt*/, 1/*ifle*/, 2/*if_icmpeq*/, 2/*if_icmpne*/, 2/*if_icmplt*/,
  647. 2 /*if_icmpge*/, 2/*if_icmpgt*/, 2/*if_icmple*/, 2/*if_acmpeq*/, 2/*if_acmpne*/,
  648. 0/*goto*/, 0/*jsr*/, 0/*ret*/, 1/*tableswitch*/, 1/*lookupswitch*/, 1/*ireturn*/,
  649. 2/*lreturn*/, 1/*freturn*/, 2/*dreturn*/, 1/*areturn*/, 0/*return*/, 0/*getstatic*/,
  650. UNPREDICTABLE/*putstatic*/, 1/*getfield*/, UNPREDICTABLE/*putfield*/,
  651. UNPREDICTABLE/*invokevirtual*/, UNPREDICTABLE/*invokespecial*/,
  652. UNPREDICTABLE/*invokestatic*/,
  653. UNPREDICTABLE/*invokeinterface*/, UNDEFINED, 0/*new*/, 1/*newarray*/, 1/*anewarray*/,
  654. 1/*arraylength*/, 1/*athrow*/, 1/*checkcast*/, 1/*instanceof*/, 1/*monitorenter*/,
  655. 1/*monitorexit*/, 0/*wide*/, UNPREDICTABLE/*multianewarray*/, 1/*ifnull*/, 1/*ifnonnull*/,
  656. 0/*goto_w*/, 0/*jsr_w*/, 0/*breakpoint*/, UNDEFINED, UNDEFINED,
  657. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  658. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  659. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  660. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  661. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  662. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  663. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  664. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  665. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  666. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  667. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  668. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  669. UNDEFINED, UNPREDICTABLE/*impdep1*/, UNPREDICTABLE/*impdep2*/
  670. };
  671. /**
  672. * Number of words produced onto operand stack by instructions.
  673. */
  674. public static final int[] PRODUCE_STACK = {
  675. 0/*nop*/, 1/*aconst_null*/, 1/*iconst_m1*/, 1/*iconst_0*/, 1/*iconst_1*/,
  676. 1/*iconst_2*/, 1/*iconst_3*/, 1/*iconst_4*/, 1/*iconst_5*/, 2/*lconst_0*/,
  677. 2/*lconst_1*/, 1/*fconst_0*/, 1/*fconst_1*/, 1/*fconst_2*/, 2/*dconst_0*/,
  678. 2/*dconst_1*/, 1/*bipush*/, 1/*sipush*/, 1/*ldc*/, 1/*ldc_w*/, 2/*ldc2_w*/, 1/*iload*/,
  679. 2/*lload*/, 1/*fload*/, 2/*dload*/, 1/*aload*/, 1/*iload_0*/, 1/*iload_1*/, 1/*iload_2*/,
  680. 1/*iload_3*/, 2/*lload_0*/, 2/*lload_1*/, 2/*lload_2*/, 2/*lload_3*/, 1/*fload_0*/,
  681. 1/*fload_1*/, 1/*fload_2*/, 1/*fload_3*/, 2/*dload_0*/, 2/*dload_1*/, 2/*dload_2*/,
  682. 2/*dload_3*/, 1/*aload_0*/, 1/*aload_1*/, 1/*aload_2*/, 1/*aload_3*/, 1/*iaload*/,
  683. 2/*laload*/, 1/*faload*/, 2/*daload*/, 1/*aaload*/, 1/*baload*/, 1/*caload*/, 1/*saload*/,
  684. 0/*istore*/, 0/*lstore*/, 0/*fstore*/, 0/*dstore*/, 0/*astore*/, 0/*istore_0*/,
  685. 0/*istore_1*/, 0/*istore_2*/, 0/*istore_3*/, 0/*lstore_0*/, 0/*lstore_1*/,
  686. 0/*lstore_2*/, 0/*lstore_3*/, 0/*fstore_0*/, 0/*fstore_1*/, 0/*fstore_2*/,
  687. 0/*fstore_3*/, 0/*dstore_0*/, 0/*dstore_1*/, 0/*dstore_2*/, 0/*dstore_3*/,
  688. 0/*astore_0*/, 0/*astore_1*/, 0/*astore_2*/, 0/*astore_3*/, 0/*iastore*/, 0/*lastore*/,
  689. 0/*fastore*/, 0/*dastore*/, 0/*aastore*/, 0/*bastore*/, 0/*castore*/, 0/*sastore*/,
  690. 0/*pop*/, 0/*pop2*/, 2/*dup*/, 3/*dup_x1*/, 4/*dup_x2*/, 4/*dup2*/, 5/*dup2_x1*/,
  691. 6/*dup2_x2*/, 2/*swap*/, 1/*iadd*/, 2/*ladd*/, 1/*fadd*/, 2/*dadd*/, 1/*isub*/, 2/*lsub*/,
  692. 1/*fsub*/, 2/*dsub*/, 1/*imul*/, 2/*lmul*/, 1/*fmul*/, 2/*dmul*/, 1/*idiv*/, 2/*ldiv*/,
  693. 1/*fdiv*/, 2/*ddiv*/, 1/*irem*/, 2/*lrem*/, 1/*frem*/, 2/*drem*/, 1/*ineg*/, 2/*lneg*/,
  694. 1/*fneg*/, 2/*dneg*/, 1/*ishl*/, 2/*lshl*/, 1/*ishr*/, 2/*lshr*/, 1/*iushr*/, 2/*lushr*/,
  695. 1/*iand*/, 2/*land*/, 1/*ior*/, 2/*lor*/, 1/*ixor*/, 2/*lxor*/,
  696. 0/*iinc*/, 2/*i2l*/, 1/*i2f*/, 2/*i2d*/, 1/*l2i*/, 1/*l2f*/, 2/*l2d*/, 1/*f2i*/,
  697. 2/*f2l*/, 2/*f2d*/, 1/*d2i*/, 2/*d2l*/, 1/*d2f*/,
  698. 1/*i2b*/, 1/*i2c*/, 1/*i2s*/, 1/*lcmp*/, 1/*fcmpl*/, 1/*fcmpg*/,
  699. 1/*dcmpl*/, 1/*dcmpg*/, 0/*ifeq*/, 0/*ifne*/, 0/*iflt*/, 0/*ifge*/, 0/*ifgt*/, 0/*ifle*/,
  700. 0/*if_icmpeq*/, 0/*if_icmpne*/, 0/*if_icmplt*/, 0/*if_icmpge*/, 0/*if_icmpgt*/,
  701. 0/*if_icmple*/, 0/*if_acmpeq*/, 0/*if_acmpne*/, 0/*goto*/, 1/*jsr*/, 0/*ret*/,
  702. 0/*tableswitch*/, 0/*lookupswitch*/, 0/*ireturn*/, 0/*lreturn*/, 0/*freturn*/,
  703. 0/*dreturn*/, 0/*areturn*/, 0/*return*/, UNPREDICTABLE/*getstatic*/, 0/*putstatic*/,
  704. UNPREDICTABLE/*getfield*/, 0/*putfield*/, UNPREDICTABLE/*invokevirtual*/,
  705. UNPREDICTABLE/*invokespecial*/, UNPREDICTABLE/*invokestatic*/,
  706. UNPREDICTABLE/*invokeinterface*/, UNDEFINED, 1/*new*/, 1/*newarray*/, 1/*anewarray*/,
  707. 1/*arraylength*/, 1/*athrow*/, 1/*checkcast*/, 1/*instanceof*/, 0/*monitorenter*/,
  708. 0/*monitorexit*/, 0/*wide*/, 1/*multianewarray*/, 0/*ifnull*/, 0/*ifnonnull*/,
  709. 0/*goto_w*/, 1/*jsr_w*/, 0/*breakpoint*/, UNDEFINED, UNDEFINED,
  710. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  711. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  712. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  713. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  714. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  715. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  716. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  717. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  718. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  719. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  720. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  721. UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED,
  722. UNDEFINED, UNPREDICTABLE/*impdep1*/, UNPREDICTABLE/*impdep2*/
  723. };
  724. /** Attributes and their corresponding names.
  725. */
  726. public static final byte ATTR_UNKNOWN = -1;
  727. public static final byte ATTR_SOURCE_FILE = 0;
  728. public static final byte ATTR_CONSTANT_VALUE = 1;
  729. public static final byte ATTR_CODE = 2;
  730. public static final byte ATTR_EXCEPTIONS = 3;
  731. public static final byte ATTR_LINE_NUMBER_TABLE = 4;
  732. public static final byte ATTR_LOCAL_VARIABLE_TABLE = 5;
  733. public static final byte ATTR_INNER_CLASSES = 6;
  734. public static final byte ATTR_SYNTHETIC = 7;
  735. public static final byte ATTR_DEPRECATED = 8;
  736. public static final byte ATTR_PMG = 9;
  737. public static final byte ATTR_SIGNATURE = 10; //J5TODO: Is this the same as a Java5 signature attribute?
  738. public static final byte ATTR_STACK_MAP = 11;
  739. // J5SUPPORT:
  740. public static final byte ATTR_RUNTIME_VISIBLE_ANNOTATIONS = 12;
  741. public static final byte ATTR_RUNTIME_INVISIBLE_ANNOTATIONS = 13;
  742. public static final byte ATTR_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS = 14;
  743. public static final byte ATTR_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS = 15;
  744. public static final byte ATTR_LOCAL_VARIABLE_TYPE_TABLE = 16;
  745. public static final byte ATTR_ENCLOSING_METHOD = 17;
  746. public static final byte ATTR_ANNOTATION_DEFAULT = 18;
  747. public static final short KNOWN_ATTRIBUTES = 19;
  748. public static final String[] ATTRIBUTE_NAMES = {
  749. "SourceFile", "ConstantValue", "Code", "Exceptions",
  750. "LineNumberTable", "LocalVariableTable",
  751. "InnerClasses", "Synthetic", "Deprecated",
  752. "PMGClass", "Signature", "StackMap",
  753. // J5SUPPORT:
  754. "RuntimeVisibleAnnotations","RuntimeInvisibleAnnotations",
  755. "RuntimeVisibleParameterAnnotations","RuntimeInvisibleParameterAnnotations",
  756. "LocalVariableTypeTable","EnclosingMethod","AnnotationDefault"
  757. };
  758. /** Constants used in the StackMap attribute.
  759. */
  760. public static final byte ITEM_Bogus = 0;
  761. public static final byte ITEM_Integer = 1;
  762. public static final byte ITEM_Float = 2;
  763. public static final byte ITEM_Double = 3;
  764. public static final byte ITEM_Long = 4;
  765. public static final byte ITEM_Null = 5;
  766. public static final byte ITEM_InitObject = 6;
  767. public static final byte ITEM_Object = 7;
  768. public static final byte ITEM_NewObject = 8;
  769. public static final String[] ITEM_NAMES = {
  770. "Bogus", "Integer", "Float", "Double", "Long",
  771. "Null", "InitObject", "Object", "NewObject"
  772. };
  773. }