mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
YJIT: Add a counter for invokebuiltin exits (#9696)
This commit is contained in:
parent
1301422dfe
commit
d4cc77e7b6
3 changed files with 5 additions and 0 deletions
1
yjit.rb
1
yjit.rb
|
@ -271,6 +271,7 @@ module RubyVM::YJIT
|
|||
branchunless
|
||||
definedivar
|
||||
expandarray
|
||||
invokebuiltin
|
||||
jump
|
||||
leave
|
||||
objtostring
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -468,6 +468,8 @@ make_counters! {
|
|||
|
||||
setlocal_wb_required,
|
||||
|
||||
invokebuiltin_too_many_args,
|
||||
|
||||
opt_plus_overflow,
|
||||
opt_minus_overflow,
|
||||
opt_mult_overflow,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue