mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-25 16:23:46 +02:00
![]() To stop Ruby's garbage collector from freeing Ruby `VALUE`s while we're in the middle of using them in libretro builds, we need to make sure all the `VALUE`s we use are on the sandbox's stack. Also, to allow Ruby to recognize `VALUE`s on the sandbox's stack on big-endian targets, I've changed the serialization of `VALUE`s. Before, any `VALUE`s returned by a sandbox function were always converted to the target's endian, and any `VALUE`s passed to sandbox functions as argument were then converted back to WebAssembly's endianness, little-endian. Now, `VALUE`s are always little-endian; they are no longer converted to the target's endianness. That should be fine since `VALUE`s are supposed to be opaque values. |
||
---|---|---|
.. | ||
binding-sandbox.h | ||
core.h | ||
sandbox.cpp | ||
sandbox.h | ||
types.h | ||
wasi.cpp | ||
wasi.h |