summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-10 10:00:15 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2022-11-10 10:00:16 -0800
commit354791c248d7e21d5b70ded7c548af954491e247 (patch)
tree1504031b53c5b181d14f23d9a03930f152eae27f /yjit.rb
parent8b3347950e6344474430ed08f5fa19f613883660 (diff)
downloadruby-354791c248d7e21d5b70ded7c548af954491e247.tar.gz
Remove inconsistency
I meant they should be also fixed in https://github.com/ruby/ruby/pull/6694#discussion_r1019445575
Diffstat (limited to 'yjit.rb')
-rw-r--r--yjit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit.rb b/yjit.rb
index 595faa1bb3..caa3a035d3 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -269,11 +269,11 @@ module RubyVM::YJIT
$stderr.puts "side_exit_count: " + ("%10d" % stats[:side_exit_count])
$stderr.puts "total_exit_count: " + ("%10d" % stats[:side_exit_count])
$stderr.puts "total_insns_count: " + ("%10d" % stats[:total_exit_count])
- if stats.has_key?(:vm_insns_count)
+ if stats.key?(:vm_insns_count)
$stderr.puts "vm_insns_count: " + ("%10d" % stats[:vm_insns_count])
end
$stderr.puts "yjit_insns_count: " + ("%10d" % stats[:exec_instruction])
- if stats.has_key?(:ratio_in_yjit)
+ if stats.key?(:ratio_in_yjit)
$stderr.puts "ratio_in_yjit: " + ("%9.1f" % stats[:ratio_in_yjit]) + "%"
end
$stderr.puts "avg_len_in_yjit: " + ("%10.1f" % stats[:avg_len_in_yjit])