FFI: Parse complex and 64 bit integer literals.

This commit is contained in:
Mike Pall
2010-12-24 01:31:39 +01:00
parent 4850865c57
commit 461bf77331
14 changed files with 305 additions and 112 deletions

View File

@@ -3795,6 +3795,15 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop, int cmov, int sse)
| mov [BASE+RA*8], RD
| ins_next
break;
case BC_KCDATA:
#if LJ_HASFFI
| ins_AND // RA = dst, RD = cdata const (~)
| mov RD, [KBASE+RD*4]
| mov dword [BASE+RA*8+4], LJ_TCDATA
| mov [BASE+RA*8], RD
| ins_next
#endif
break;
case BC_KSHORT:
| ins_AD // RA = dst, RD = signed int16 literal
if (sse) {