@@ -370,7 +370,7 @@ fn gen_insn(cb: &mut CodeBlock, jit: &mut JITState, asm: &mut Assembler, functio
370370 gen_send_without_block ( jit, asm, * cd, & function. frame_state ( * state) ) ,
371371 Insn :: SendWithoutBlockDirect { cme, iseq, recv, args, state, .. } => gen_send_without_block_direct ( cb, jit, asm, * cme, * iseq, opnd ! ( recv) , opnds ! ( args) , & function. frame_state ( * state) ) ,
372372 & Insn :: InvokeSuper { cd, blockiseq, state, .. } => gen_invokesuper ( jit, asm, cd, blockiseq, & function. frame_state ( state) ) ,
373- Insn :: InvokeBlock { cd, state, .. } => gen_invoke_block ( jit, asm, * cd, & function. frame_state ( * state) ) ,
373+ Insn :: InvokeBlock { cd, state, .. } => gen_invokeblock ( jit, asm, * cd, & function. frame_state ( * state) ) ,
374374 // Ensure we have enough room fit ec, self, and arguments
375375 // TODO remove this check when we have stack args (we can use Time.new to test it)
376376 Insn :: InvokeBuiltin { bf, state, .. } if bf. argc + 2 > ( C_ARG_OPNDS . len ( ) as i32 ) => return Err ( * state) ,
@@ -981,6 +981,7 @@ fn gen_send(
981981 state : & FrameState ,
982982) -> lir:: Opnd {
983983 gen_incr_counter ( asm, Counter :: dynamic_send_count) ;
984+ gen_incr_counter ( asm, Counter :: dynamic_send_type_send) ;
984985
985986 // Save PC and SP
986987 gen_prepare_call_with_gc ( asm, state) ;
@@ -1008,6 +1009,7 @@ fn gen_send_without_block(
10081009 state : & FrameState ,
10091010) -> lir:: Opnd {
10101011 gen_incr_counter ( asm, Counter :: dynamic_send_count) ;
1012+ gen_incr_counter ( asm, Counter :: dynamic_send_type_send_without_block) ;
10111013
10121014 // Note that it's incorrect to use this frame state to side exit because
10131015 // the state might not be on the boundary of an interpreter instruction.
@@ -1108,13 +1110,14 @@ fn gen_send_without_block_direct(
11081110}
11091111
11101112/// Compile for invokeblock
1111- fn gen_invoke_block (
1113+ fn gen_invokeblock (
11121114 jit : & mut JITState ,
11131115 asm : & mut Assembler ,
11141116 cd : * const rb_call_data ,
11151117 state : & FrameState ,
11161118) -> lir:: Opnd {
11171119 gen_incr_counter ( asm, Counter :: dynamic_send_count) ;
1120+ gen_incr_counter ( asm, Counter :: dynamic_send_type_invokeblock) ;
11181121
11191122 // Save PC and SP, spill locals and stack
11201123 gen_prepare_call_with_gc ( asm, state) ;
@@ -1141,6 +1144,7 @@ fn gen_invokesuper(
11411144 state : & FrameState ,
11421145) -> lir:: Opnd {
11431146 gen_incr_counter ( asm, Counter :: dynamic_send_count) ;
1147+ gen_incr_counter ( asm, Counter :: dynamic_send_type_invokesuper) ;
11441148
11451149 // Save PC and SP
11461150 gen_prepare_call_with_gc ( asm, state) ;
0 commit comments