diff options
Diffstat (limited to 'lib/ruby_vm/mjit/jit_state.rb')
-rw-r--r-- | lib/ruby_vm/mjit/jit_state.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ruby_vm/mjit/jit_state.rb b/lib/ruby_vm/mjit/jit_state.rb index ff48c2c107..1f888a02ae 100644 --- a/lib/ruby_vm/mjit/jit_state.rb +++ b/lib/ruby_vm/mjit/jit_state.rb @@ -20,9 +20,9 @@ module RubyVM::MJIT pc == cfp.pc.to_i end - def peek_at_stack(offset_from_top) + def peek_at_stack(depth_from_top) raise 'not at current insn' unless at_current_insn? - offset = -(1 + offset_from_top) + offset = -(1 + depth_from_top) value = (cfp.sp + offset).* C.to_ruby(value) end |