mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Compile array/struct copies.
This commit is contained in:
parent
a7d1dbacb1
commit
4a97faef7e
@ -1140,7 +1140,6 @@ The following operations are currently not compiled and may exhibit
|
|||||||
suboptimal performance, especially when used in inner loops:
|
suboptimal performance, especially when used in inner loops:
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Array/<tt>struct</tt> copies and bulk initializations.</li>
|
|
||||||
<li>Bitfield accesses and initializations.</li>
|
<li>Bitfield accesses and initializations.</li>
|
||||||
<li>Vector operations.</li>
|
<li>Vector operations.</li>
|
||||||
<li>Table initializers.</li>
|
<li>Table initializers.</li>
|
||||||
|
@ -526,11 +526,11 @@ static TRef crec_ct_ct(jit_State *J, CType *d, CType *s, TRef dp, TRef sp,
|
|||||||
|
|
||||||
/* Destination is an array. */
|
/* Destination is an array. */
|
||||||
case CCX(A, A):
|
case CCX(A, A):
|
||||||
goto err_nyi;
|
|
||||||
|
|
||||||
/* Destination is a struct/union. */
|
/* Destination is a struct/union. */
|
||||||
case CCX(S, S):
|
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:
|
default:
|
||||||
err_conv:
|
err_conv:
|
||||||
|
Loading…
Reference in New Issue
Block a user