static boolean validBytecode(int bytecode) { return validIcode(bytecode) || validTokenCode(bytecode); } }
static String bytecodeName(int bytecode) if (!validBytecode(bytecode)) { throw new IllegalArgumentException(String.valueOf(bytecode)); if (validTokenCode(bytecode)) { return Token.name(bytecode);
private void addIcode(int icode) { if (!Icode.validIcode(icode)) throw Kit.codeBug(); // Write negative icode as uint8 bits addUint8(icode & 0xFF); }
private void addToken(int token) { if (!Icode.validTokenCode(token)) throw Kit.codeBug(); addUint8(token); }
private void addIndexOp(int op, int index) { addIndexPrefix(index); if (Icode.validIcode(op)) { addIcode(op); } else { addToken(op); } }
private void addStringOp(int op, String str) { addStringPrefix(str); if (Icode.validIcode(op)) { addIcode(op); } else { addToken(op); } }