File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ extern bool rb_zjit_enabled_p;
1414extern uint64_t rb_zjit_call_threshold ;
1515extern uint64_t rb_zjit_profile_threshold ;
1616void rb_zjit_compile_iseq (const rb_iseq_t * iseq , rb_execution_context_t * ec , bool jit_exception );
17- void rb_zjit_profile_insn (enum ruby_vminsn_type insn , rb_execution_context_t * ec );
17+ void rb_zjit_profile_insn (uint32_t insn , rb_execution_context_t * ec );
1818void rb_zjit_profile_enable (const rb_iseq_t * iseq );
1919void rb_zjit_bop_redefined (int redefined_flag , enum ruby_basic_operators bop );
2020void rb_zjit_cme_invalidate (const rb_callable_method_entry_t * cme );
@@ -26,7 +26,7 @@ void rb_zjit_before_ractor_spawn(void);
2626#else
2727#define rb_zjit_enabled_p false
2828static inline void rb_zjit_compile_iseq (const rb_iseq_t * iseq , rb_execution_context_t * ec , bool jit_exception ) {}
29- static inline void rb_zjit_profile_insn (enum ruby_vminsn_type insn , rb_execution_context_t * ec ) {}
29+ static inline void rb_zjit_profile_insn (uint32_t insn , rb_execution_context_t * ec ) {}
3030static inline void rb_zjit_profile_enable (const rb_iseq_t * iseq ) {}
3131static inline void rb_zjit_bop_redefined (int redefined_flag , enum ruby_basic_operators bop ) {}
3232static inline void rb_zjit_cme_invalidate (const rb_callable_method_entry_t * cme ) {}
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ impl Profiler {
3939
4040/// API called from zjit_* instruction. opcode is the bare (non-zjit_*) instruction.
4141#[ unsafe( no_mangle) ]
42- pub extern "C" fn rb_zjit_profile_insn ( bare_opcode : ruby_vminsn_type , ec : EcPtr ) {
42+ pub extern "C" fn rb_zjit_profile_insn ( bare_opcode : u32 , ec : EcPtr ) {
4343 with_vm_lock ( src_loc ! ( ) , || {
4444 let mut profiler = Profiler :: new ( ec) ;
45- profile_insn ( & mut profiler, bare_opcode) ;
45+ profile_insn ( & mut profiler, bare_opcode as ruby_vminsn_type ) ;
4646 } ) ;
4747}
4848
You can’t perform that action at this time.
0 commit comments