FFI: Compile array/struct copies.

This commit is contained in:
Mike Pall 2012-10-09 21:50:09 +02:00
parent a7d1dbacb1
commit 4a97faef7e
2 changed files with 3 additions and 4 deletions

View File

@ -1140,7 +1140,6 @@ The following operations are currently not compiled and may exhibit
suboptimal performance, especially when used in inner loops:
</p>
<ul>
<li>Array/<tt>struct</tt> copies and bulk initializations.</li>
<li>Bitfield accesses and initializations.</li>
<li>Vector operations.</li>
<li>Table initializers.</li>

View File

@ -526,11 +526,11 @@ static TRef crec_ct_ct(jit_State *J, CType *d, CType *s, TRef dp, TRef sp,
/* Destination is an array. */
case CCX(A, A):
goto err_nyi;
/* Destination is a struct/union. */
case CCX(S, S):
goto err_nyi;
if (dp == 0) goto err_conv;
crec_copy(J, dp, sp, lj_ir_kint(J, dsize), d);
break;
default:
err_conv: