YJIT: Add a counter for invokebuiltin exits (#9696)

This commit is contained in:
Takashi Kokubun 2024-01-25 08:23:26 -08:00 committed by GitHub
parent 1301422dfe
commit d4cc77e7b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 0 deletions

View file

@ -271,6 +271,7 @@ module RubyVM::YJIT
branchunless
definedivar
expandarray
invokebuiltin
jump
leave
objtostring

View file

@ -8786,6 +8786,7 @@ fn gen_invokebuiltin(
// ec, self, and arguments
if bf_argc + 2 > C_ARG_OPNDS.len() {
incr_counter!(invokebuiltin_too_many_args);
return None;
}
@ -8825,6 +8826,7 @@ fn gen_opt_invokebuiltin_delegate(
// ec, self, and arguments
if bf_argc + 2 > (C_ARG_OPNDS.len() as i32) {
incr_counter!(invokebuiltin_too_many_args);
return None;
}

View file

@ -468,6 +468,8 @@ make_counters! {
setlocal_wb_required,
invokebuiltin_too_many_args,
opt_plus_overflow,
opt_minus_overflow,
opt_mult_overflow,