Drop bc field in GCproto since the bytecode is colocated.

This commit is contained in:
Mike Pall
2010-02-08 20:17:34 +01:00
parent 2ddea3838d
commit d5a46621f9
7 changed files with 23 additions and 29 deletions

View File

@@ -210,7 +210,7 @@ LJLIB_CF(jit_util_funcbc)
GCproto *pt = check_Lproto(L, 0);
BCPos pc = (BCPos)lj_lib_checkint(L, 2) - 1;
if (pc < pt->sizebc) {
BCIns ins = proto_ins(pt, pc);
BCIns ins = proto_bc(pt)[pc];
BCOp op = bc_op(ins);
lua_assert(op < BC__MAX);
setintV(L->top, ins);