[前][次][番号順一覧][スレッド一覧]

ruby-changes:74436

From: Takashi <ko1@a...>
Date: Fri, 11 Nov 2022 03:01:07 +0900 (JST)
Subject: [ruby-changes:74436] 354791c248 (master): Remove inconsistency

https://git.ruby-lang.org/ruby.git/commit/?id=354791c248

From 354791c248d7e21d5b70ded7c548af954491e247 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Thu, 10 Nov 2022 10:00:15 -0800
Subject: Remove inconsistency

I meant they should be also fixed in
https://github.com/ruby/ruby/pull/6694#discussion_r1019445575
---
 yjit.rb | 4 ++--
 1 file 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 https://github.com/ruby/ruby/blob/trunk/yjit.rb#L269
       $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])
-- 
cgit v1.2.3


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]