private void readAll() throws Exception { lir_.entry_pc = pc_; if (readOp() != SPOpcode.proc) throw new Exception("invalid method, first op must be PROC"); while (pc_ < (long) file_.code().bytes().length) { current_pc_ = pc_; SPOpcode op = readOp(); if (op == SPOpcode.proc) break; add(readInstruction(op)); } lir_.exit_pc = pc_; }