FFI: Add support for cdata constants to IR.

This commit is contained in:
Mike Pall
2011-01-02 22:21:10 +01:00
parent 331b148737
commit b2c74c52cc
2 changed files with 57 additions and 13 deletions

View File

@@ -1563,6 +1563,11 @@ void lj_record_ins(jit_State *J)
J->base[ra++] = TREF_NIL;
if (rc >= J->maxslot) J->maxslot = rc+1;
break;
#if LJ_HASFFI
case BC_KCDATA:
rc = lj_ir_kgc(J, proto_kgc(J->pt, ~(ptrdiff_t)rc), IRT_CDATA);
break;
#endif
/* -- Upvalue and function ops ------------------------------------------ */