summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-09-25 21:07:18 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-09-26 00:41:16 +1300
commit22af2e9084d869b0d1eb24e4c11bc1fd62b7c50d (patch)
tree3dc85492cfb7dd846612ebb8635b8b4cc4874862 /lib
parent75cf29f60d87b298edfd75611bfe272a92289cee (diff)
Rework vm_core to use `int first_lineno` struct member.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6430
Diffstat (limited to 'lib')
-rw-r--r--lib/mjit/compiler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mjit/compiler.rb b/lib/mjit/compiler.rb
index 254ecc885f..49f28ab690 100644
--- a/lib/mjit/compiler.rb
+++ b/lib/mjit/compiler.rb
@@ -785,8 +785,8 @@ module RubyVM::MJIT
if C.mjit_opts.verbose >= 1 # print beforehand because ISeq may be GCed during copy job.
child_location = child_iseq.body.location
- $stderr.puts "JIT inline: #{child_location.label}@#{C.rb_iseq_path(child_iseq)}:#{child_location.first_lineno} " \
- "=> #{iseq.body.location.label}@#{C.rb_iseq_path(iseq)}:#{iseq.body.location.first_lineno}"
+ $stderr.puts "JIT inline: #{child_location.label}@#{C.rb_iseq_path(child_iseq)}:#{C.rb_iseq_first_lineno(child_iseq)} " \
+ "=> #{iseq.body.location.label}@#{C.rb_iseq_path(iseq)}:#{C.rb_iseq_first_lineno(iseq)}"
end
if !precompile_inlinable_child_iseq(f, child_iseq, status, ci, cc, pos)
return false