Lines Matching refs:code
9 * 1. Redistributions of source code must retain the above copyright
74 * If not zero, indicates that the code of this method must be copied from
75 * the ClassReader associated to this writer in <code>cw.cr</code>. More
77 * <code>cw.cr.b</code>.
82 * If not zero, indicates that the code of this method must be copied from
83 * the ClassReader associated to this writer in <code>cw.cr</code>. More
85 * <code>cw.cr.b</code>.
141 private ByteVector code = new ByteVector();
199 * The non standard attributes of the method's code.
282 // code to generate the above string
640 code.putByte(opcode);
655 code.put12(opcode, operand);
657 code.put11(opcode, operand);
700 code.putByte(opt);
702 code.putByte(196 /* WIDE */).put12(opcode, var);
704 code.put11(opcode, var);
719 code.put12(opcode, cw.newClass(desc));
754 code.put12(opcode, cw.newField(owner, name, desc));
802 code.put12(Opcodes.INVOKEINTERFACE, i.index).put11(argSize >> 2, 0);
804 code.put12(opcode, i.index);
832 if (label.resolved && label.position - code.length < Short.MIN_VALUE) {
841 code.putByte(200); // GOTO_W
843 code.putByte(201); // JSR_W
845 code.putByte(opcode <= 166
848 code.putShort(8); // jump offset
849 code.putByte(200); // GOTO_W
851 label.put(this, code, code.length - 1, true);
859 code.putByte(opcode);
860 label.put(this, code, code.length - 1, false);
878 resize |= label.resolve(this, code.length, code.data);
900 code.put12(20 /* LDC2_W */, index);
902 code.put12(19 /* LDC_W */, index);
904 code.put11(Opcodes.LDC, index);
918 code.putByte(196 /* WIDE */)
922 code.putByte(Opcodes.IINC).put11(var, increment);
946 int source = code.length;
947 code.putByte(Opcodes.TABLESWITCH);
948 while (code.length % 4 != 0) {
949 code.putByte(0);
951 dflt.put(this, code, source, true);
952 code.putInt(min).putInt(max);
954 labels[i].put(this, code, source, true);
977 int source = code.length;
978 code.putByte(Opcodes.LOOKUPSWITCH);
979 while (code.length % 4 != 0) {
980 code.putByte(0);
982 dflt.put(this, code, source, true);
983 code.putInt(labels.length);
985 code.putInt(keys[i]);
986 labels[i].put(this, code, source, true);
997 code.put12(Opcodes.MULTIANEWARRAY, cw.newClass(desc)).putByte(dims);
1199 if (code.length > 0) {
1201 size += 18 + code.length + 8 * catchCount;
1216 code.data,
1217 code.length,
1296 if (code.length > 0) {
1340 if (code.length > 0) {
1341 int size = 12 + code.length + 8 * catchCount;
1353 code.data,
1354 code.length,
1360 out.putInt(code.length).putByteArray(code.data, 0, code.length);
1402 cattrs.put(cw, code.data, code.length, maxLocals, maxStack, out);
1489 * this method must be filled in "manually" in {@link #code code}
1501 byte[] b = code.data; // bytecode of the method
1509 * instructions that need to be resized, without modifying the code.
1512 * Parse the code to find the jump instructions whose offset will need
1537 resize = new boolean[code.length];
1687 ByteVector newCode = new ByteVector(code.length);
1690 while (u < code.length) {
1894 code = newCode;