summaryrefslogtreecommitdiff
path: root/lib/ruby_vm/mjit/jit_state.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-02-16 22:29:58 -0800
committerTakashi Kokubun <[email protected]>2023-03-05 23:28:59 -0800
commit2cc4f506bac0748277b41a4a5eb6f0ec41dd7344 (patch)
tree447fda3d7e563383f04292504b526d786475b906 /lib/ruby_vm/mjit/jit_state.rb
parent2603d7a0b7b0e698bed8910a8ad5edefe236de77 (diff)
Implement optimized send
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7448
Diffstat (limited to 'lib/ruby_vm/mjit/jit_state.rb')
-rw-r--r--lib/ruby_vm/mjit/jit_state.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/ruby_vm/mjit/jit_state.rb b/lib/ruby_vm/mjit/jit_state.rb
index b90d2f8020..3e5fe996fa 100644
--- a/lib/ruby_vm/mjit/jit_state.rb
+++ b/lib/ruby_vm/mjit/jit_state.rb
@@ -1,12 +1,13 @@
module RubyVM::MJIT
class JITState < Struct.new(
- :iseq, # @param `RubyVM::MJIT::CPointer::Struct_rb_iseq_t`
- :pc, # @param [Integer] The JIT target PC
- :cfp, # @param `RubyVM::MJIT::CPointer::Struct_rb_control_frame_t` The JIT source CFP (before MJIT is called)
- :block, # @param [RubyVM::MJIT::Block]
- :side_exits, # @param [Hash{ Integer => Integer }] { PC => address }
+ :iseq, # @param `RubyVM::MJIT::CPointer::Struct_rb_iseq_t`
+ :pc, # @param [Integer] The JIT target PC
+ :cfp, # @param `RubyVM::MJIT::CPointer::Struct_rb_control_frame_t` The JIT source CFP (before MJIT is called)
+ :block, # @param [RubyVM::MJIT::Block]
+ :side_exits, # @param [Hash{ Integer => Integer }] { PC => address }
+ :record_boundary_patch_point, # @param [TrueClass,FalseClass]
)
- def initialize(side_exits: {}, **) = super
+ def initialize(side_exits: {}, record_boundary_patch_point: false, **) = super
def insn
Compiler.decode_insn(C.VALUE.new(pc).*)