diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-11-28 21:59:00 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-11-28 22:03:16 -0800 |
commit | bb6f933d51ae4c663a1d768508fc840c56be07a3 (patch) | |
tree | 5685d22571d9bee5bc6ff0f1c56e529ead188bcc /lib | |
parent | 9c13fc614c2de0ca4aa8b6ecdd84033ef689b542 (diff) |
MJIT: Get rid of is_entries copy
MJIT worker no longer exists, so we don't need this safeguard anymore.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mjit/compiler.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/mjit/compiler.rb b/lib/mjit/compiler.rb index a21b3298fd..98d82ac507 100644 --- a/lib/mjit/compiler.rb +++ b/lib/mjit/compiler.rb @@ -330,10 +330,10 @@ class RubyVM::MJIT::Compiler end def compile_ivar(insn_name, stack_size, pos, status, operands, body) - ic_copy = (status.is_entries + (C.iseq_inline_storage_entry.new(operands[1]) - body.is_entries)).iv_cache - dest_shape_id = ic_copy.value >> C.SHAPE_FLAG_SHIFT + iv_cache = C.iseq_inline_storage_entry.new(operands[1]).iv_cache + dest_shape_id = iv_cache.value >> C.SHAPE_FLAG_SHIFT source_shape_id = parent_shape_id(dest_shape_id) - attr_index = ic_copy.value & ((1 << C.SHAPE_FLAG_SHIFT) - 1) + attr_index = iv_cache.value & ((1 << C.SHAPE_FLAG_SHIFT) - 1) src = +'' if !status.compile_info.disable_ivar_cache && source_shape_id != C.INVALID_SHAPE_ID @@ -769,9 +769,6 @@ class RubyVM::MJIT::Compiler status.inlined_iseqs[i] = nil end end - if ISEQ_IS_SIZE(body) > 0 - status.is_entries = Fiddle.malloc(C.iseq_inline_storage_entry.sizeof * ISEQ_IS_SIZE(body)) - end if body.ci_size > 0 status.cc_entries_index = C.mjit_capture_cc_entries(status.compiled_iseq, body) else @@ -790,8 +787,6 @@ class RubyVM::MJIT::Compiler end def init_ivar_compile_status(body, status) - C.mjit_capture_is_entries(body, status.is_entries) - pos = 0 while pos < body.iseq_size |