koffi 1.2.0-alpha.1 → 1.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/abi_riscv64.cc +1 -1
- package/src/abi_x64_sysv.cc +2 -2
package/package.json
CHANGED
package/src/abi_riscv64.cc
CHANGED
|
@@ -774,7 +774,7 @@ void CallData::Relay(Size idx, uint8_t *own_sp, uint8_t *caller_sp, BackRegister
|
|
|
774
774
|
return;
|
|
775
775
|
out_reg->a0 = (uint64_t)return_ptr;
|
|
776
776
|
} else if (proto->ret.vec_count) { // HFA
|
|
777
|
-
PushObject(obj, type, (uint8_t *)&out_reg->fa0, 8)
|
|
777
|
+
PushObject(obj, type, (uint8_t *)&out_reg->fa0, 8);
|
|
778
778
|
} else {
|
|
779
779
|
PushObject(obj, type, (uint8_t *)&out_reg->a0);
|
|
780
780
|
}
|
package/src/abi_x64_sysv.cc
CHANGED
|
@@ -809,7 +809,7 @@ void CallData::Relay(Size idx, uint8_t *own_sp, uint8_t *caller_sp, BackRegister
|
|
|
809
809
|
return;
|
|
810
810
|
out_reg->rax = (uint64_t)return_ptr;
|
|
811
811
|
} else {
|
|
812
|
-
RG_ASSERT(
|
|
812
|
+
RG_ASSERT(type->size <= 16);
|
|
813
813
|
|
|
814
814
|
uint8_t buf[16] = {};
|
|
815
815
|
if (!PushObject(obj, type, buf))
|
|
@@ -825,7 +825,7 @@ void CallData::Relay(Size idx, uint8_t *own_sp, uint8_t *caller_sp, BackRegister
|
|
|
825
825
|
memcpy(&out_reg->xmm0, buf + 0, 8);
|
|
826
826
|
memcpy(&out_reg->xmm1, buf + 8, 8);
|
|
827
827
|
} else {
|
|
828
|
-
memcpy(&out_reg->
|
|
828
|
+
memcpy(&out_reg->xmm0, buf + 0, 8);
|
|
829
829
|
memcpy(&out_reg->rax, buf + 8, 8);
|
|
830
830
|
}
|
|
831
831
|
}
|