1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/yjit
Kevin Newton 8864691bde
Better label refs (https://github.com/Shopify/ruby/pull/310)
Previously we were using a `Box<dyn FnOnce>` to support patching the
code when jumping to labels. We needed to do this because some of the
closures that were being used to patch needed to capture local variables
(on both X86 and ARM it was the type of condition for the conditional
jumps).

To get around that, we can instead use const generics since the
condition codes are always known at compile-time. This means that the
closures go from polymorphic to monomorphic, which means they can be
represented as an `fn` instead of a `Box<dyn FnOnce>`, which means they
can fall back to a plain function pointer. This simplifies the storage
of the `LabelRef` structs and should hopefully be a better default
going forward.
2022-08-29 08:46:59 -07:00
..
bindgen add --yjit-dump-iseqs param (https://github.com/Shopify/ruby/pull/332) 2022-08-24 10:42:45 -07:00
src Better label refs (https://github.com/Shopify/ruby/pull/310) 2022-08-29 08:46:59 -07:00
.gitignore
Cargo.lock
Cargo.toml Add --enable-yjit=dev_nodebug configure option 2022-07-29 16:32:14 -07:00
yjit.mk Add --enable-yjit=dev_nodebug configure option 2022-07-29 16:32:14 -07:00