summaryrefslogtreecommitdiff
path: root/lib/ruby_vm
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-13 20:40:24 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-13 20:42:19 -0700
commitd8344559b224a701caa80a2f72e0798ded80bcd7 (patch)
tree953e0e87b4624dc77b1e7ed105e2280143965b21 /lib/ruby_vm
parent1c8e69d602eb368cbfdff17954f7c04c3c070641 (diff)
RJIT: Simplify how Capstone is used in tests
Diffstat (limited to 'lib/ruby_vm')
-rw-r--r--lib/ruby_vm/rjit/code_block.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ruby_vm/rjit/code_block.rb b/lib/ruby_vm/rjit/code_block.rb
index 196e42d6a8..6260ec8b4b 100644
--- a/lib/ruby_vm/rjit/code_block.rb
+++ b/lib/ruby_vm/rjit/code_block.rb
@@ -58,8 +58,8 @@ module RubyVM::RJIT
(@mem_block...(@mem_block + @mem_size)).include?(addr)
end
- def dump_disasm(from, to, io: STDOUT, color: true)
- C.dump_disasm(from, to).each do |address, mnemonic, op_str|
+ def dump_disasm(from, to, io: STDOUT, color: true, test: false)
+ C.dump_disasm(from, to, test:).each do |address, mnemonic, op_str|
@comments.fetch(address, []).each do |comment|
io.puts colorize(" # #{comment}", bold: true, color:)
end