summaryrefslogtreecommitdiff
path: root/yjit/src/cruby.rs
diff options
context:
space:
mode:
authorDave Schwantes <dorkrawk@github.com>2022-06-30 09:26:46 -0500
committerGitHub <noreply@github.com>2022-06-30 10:26:46 -0400
commitb6f6fc6e870d00e5151647f3f14eaa16b8fe145b (patch)
tree6fe1d84b950b12bddcb39968db528a6f63c75e56 /yjit/src/cruby.rs
parent2366e14976cd875e0b98321eb339d23016268b72 (diff)
downloadruby-b6f6fc6e870d00e5151647f3f14eaa16b8fe145b.tar.gz
YJIT: Refactor gen_opt_mod (#6078)
Refactor gen_opt_mod in YJIT
Diffstat (limited to 'yjit/src/cruby.rs')
-rw-r--r--yjit/src/cruby.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/yjit/src/cruby.rs b/yjit/src/cruby.rs
index 51ba9c1531..8cebfd58a5 100644
--- a/yjit/src/cruby.rs
+++ b/yjit/src/cruby.rs
@@ -235,6 +235,9 @@ extern "C" {
#[link_name = "rb_yarv_ary_entry_internal"]
pub fn rb_ary_entry_internal(ary: VALUE, offset: c_long) -> VALUE;
+ #[link_name = "rb_yarv_fix_mod_fix"]
+ pub fn rb_fix_mod_fix(recv: VALUE, obj: VALUE) -> VALUE;
+
#[link_name = "rb_FL_TEST"]
pub fn FL_TEST(obj: VALUE, flags: VALUE) -> VALUE;
@@ -255,7 +258,6 @@ extern "C" {
// Ruby only defines these in vm_insnhelper.c, not in any header.
// Parsing it would result in a lot of duplicate definitions.
- pub fn rb_vm_opt_mod(recv: VALUE, obj: VALUE) -> VALUE;
pub fn rb_vm_splat_array(flag: VALUE, ary: VALUE) -> VALUE;
pub fn rb_vm_defined(
ec: EcPtr,