mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
50640bdb81
On IA32 arguments are passed in registers. When a struct is returned by value, a pointer is passed in on the stack containing the address to which the return value is written. We did not account for this pointer in the stack-height calculation. This problem only surfaced when there are no arguments to the function. Because if an argument is passed it has a higher stack height than the pointer for the result being passed in. Fix in: runtime/vm/compiler/ffi/native_calling_convention.cc TEST=runtime/vm/compiler/ffi/native_calling_convention_test.cc TEST=tests/ffi/regress_46127_test.dart Closes: https://github.com/dart-lang/sdk/issues/46127 Change-Id: Ia78fe07cc7e3a3c8625143d491935a959b4a7895 Cq-Include-Trybots: luci.dart.try:vm-kernel-linux-debug-ia32-try,vm-kernel-nnbd-linux-debug-ia32-try,vm-precomp-ffi-qemu-linux-release-arm-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/201269 Reviewed-by: Clement Skau <cskau@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com> |
||
---|---|---|
.. | ||
co19 | ||
co19_2 | ||
corelib | ||
corelib_2 | ||
dartdevc | ||
dartdevc_2 | ||
ffi | ||
ffi_2 | ||
language | ||
language_2 | ||
lib | ||
lib_2 | ||
modular | ||
standalone | ||
standalone_2 | ||
web | ||
web_2 | ||
legacy_status_dart2js.csv | ||
README.md |
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.