summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2021-04-08 14:31:27 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:33 -0400
commit7108da16e9ec39d682572c47ac3e99035c0683f0 (patch)
tree884015d58f561983261a839b9a631104dbec5144 /yjit.rb
parent04243533fc3f9b1ac71160dbe235da9995a994ea (diff)
Fix two stats bugs, refactor stats code, add total_insn_count print
Diffstat (limited to 'yjit.rb')
-rw-r--r--yjit.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/yjit.rb b/yjit.rb
index e1d9c16417..a0ff8d11d2 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -30,7 +30,7 @@ module YJIT
comment_idx = 0
cs.disasm(block.code, block.address).each do |i|
while (comment = comments[comment_idx]) && comment.address <= i.address
- str << " ;#{highlight.call(comment.comment)}\n"
+ str << " ; #{highlight.call(comment.comment)}\n"
comment_idx += 1
end
@@ -81,8 +81,8 @@ module YJIT
$stderr.puts("***YJIT: Printing runtime counters from yjit.rb***")
- $stderr.puts "Number of bindings allocated: %d\n" % counters[:binding_allocation_count]
- $stderr.puts "Number of locals modified through binding: %d\n" % counters[:local_variable_set_count]
+ $stderr.puts "Number of bindings allocated: %d\n" % counters[:binding_allocations]
+ $stderr.puts "Number of locals modified through binding: %d\n" % counters[:binding_set]
print_counters(counters, prefix: 'oswb_', prompt: 'opt_send_without_block exit reasons: ')
print_counters(counters, prefix: 'leave_', prompt: 'leave exit reasons: ')