[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] 80bc70: SqueakFFIPrims source as per VMMaker.oscog-mt.3181

Marcel Taeumel noreply at github.com
Wed Apr 13 09:20:57 UTC 2022


  Branch: refs/heads/Cog
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: 80bc7019d2fd35a364edc23da5c8ea9c75b6c123
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/80bc7019d2fd35a364edc23da5c8ea9c75b6c123
  Author: Marcel Taeumel <marcel.taeumel at hpi.de>
  Date:   2022-04-13 (Wed, 13 Apr 2022)

  Changed paths:
    M src/plugins/SqueakFFIPrims/ARM32FFIPlugin.c
    M src/plugins/SqueakFFIPrims/ARM64AppleFFIPlugin.c
    M src/plugins/SqueakFFIPrims/ARM64FFIPlugin.c
    M src/plugins/SqueakFFIPrims/IA32FFIPlugin.c
    M src/plugins/SqueakFFIPrims/X64SysVFFIPlugin.c
    M src/plugins/SqueakFFIPrims/X64Win64FFIPlugin.c

  Log Message:
  -----------
  SqueakFFIPrims source as per VMMaker.oscog-mt.3181

In the FFI plugin, fixes a regression in int64_t support on 32-bit builds, which was due to a mix-up between int64_t and intptr_t.

Note that the current design only supports up to 64-bit integer types. If we want to support, for example, 128-bit integer types on a 64-bit machine, we would have to think about a replacement for 'usqLong'. Or even better, we find a way to specialize #ffiArgByValue:in: in subclasses of ThreadedFFIPlugin to use the stack more efficiently.




More information about the Vm-dev mailing list