diff options
author | Jemma Issroff <jemmaissroff@gmail.com> | 2022-06-06 10:48:42 -0400 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2022-07-18 12:44:01 -0700 |
commit | ecff3349953e17491630ef7b68c5ac6b095d39bf (patch) | |
tree | 084ea5e0c33bd4597d09ae9e45cae791513c8049 /yjit | |
parent | f240e28dfe373bee30a170fd78d11cc5d71ef945 (diff) |
Extract vm_ic_entry API to mimic vm_cc behavior
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5978
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/cruby_bindings.inc.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/yjit/src/cruby_bindings.inc.rs b/yjit/src/cruby_bindings.inc.rs index b9c239cd23..fed132588c 100644 --- a/yjit/src/cruby_bindings.inc.rs +++ b/yjit/src/cruby_bindings.inc.rs @@ -657,6 +657,18 @@ extern "C" { cfp: *const rb_control_frame_t, ) -> *const rb_callable_method_entry_t; } +#[repr(C)] +pub struct rb_iv_index_tbl_entry { + pub index: u32, + pub class_serial: rb_serial_t, + pub class_value: VALUE, +} +#[repr(C)] +pub struct rb_cvar_class_tbl_entry { + pub index: u32, + pub global_cvar_state: rb_serial_t, + pub class_value: VALUE, +} pub const VM_CALL_ARGS_SPLAT_bit: vm_call_flag_bits = 0; pub const VM_CALL_ARGS_BLOCKARG_bit: vm_call_flag_bits = 1; pub const VM_CALL_FCALL_bit: vm_call_flag_bits = 2; @@ -714,18 +726,6 @@ extern "C" { pub fn rb_vm_insn_decode(encoded: VALUE) -> ::std::os::raw::c_int; } #[repr(C)] -pub struct rb_iv_index_tbl_entry { - pub index: u32, - pub class_serial: rb_serial_t, - pub class_value: VALUE, -} -#[repr(C)] -pub struct rb_cvar_class_tbl_entry { - pub index: u32, - pub global_cvar_state: rb_serial_t, - pub class_value: VALUE, -} -#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct rb_builtin_function { pub func_ptr: *const ::std::os::raw::c_void, |