ruby/lib/ruby_vm/mjit/context.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
369 B
Ruby
Raw Normal View History

2022-12-23 14:17:32 -08:00
class RubyVM::MJIT::Context < Struct.new(
2022-12-31 13:41:32 -08:00
:stack_size, # @param [Integer] The number of values on the stack
:sp_offset, # @param [Integer] JIT sp offset relative to the interpreter's sp
2022-12-23 14:17:32 -08:00
)
def initialize(*)
super
self.stack_size ||= 0
2022-12-31 13:41:32 -08:00
self.sp_offset ||= 0
end
def stack_push(size)
self.stack_size += size
self.sp_offset += size
2022-12-23 14:17:32 -08:00
end
end