Remove obsoleted insn_may_depend_on_sp_or_pc()

which was for MJIT
This commit is contained in:
Takashi Kokubun 2025-03-05 16:23:20 -08:00
parent 0d03183748
commit e8f8565dc2
4 changed files with 1 additions and 31 deletions

View File

@ -1181,8 +1181,7 @@ $(srcs_vpath)insns.inc: $(tooldir)/ruby_vm/views/insns.inc.erb $(inc_common_head
$(srcs_vpath)insns_info.inc: $(tooldir)/ruby_vm/views/insns_info.inc.erb $(inc_common_headers) \
$(tooldir)/ruby_vm/views/_insn_type_chars.erb $(tooldir)/ruby_vm/views/_insn_name_info.erb \
$(tooldir)/ruby_vm/views/_insn_len_info.erb $(tooldir)/ruby_vm/views/_insn_operand_info.erb \
$(tooldir)/ruby_vm/views/_attributes.erb $(tooldir)/ruby_vm/views/_comptime_insn_stack_increase.erb \
$(tooldir)/ruby_vm/views/_insn_sp_pc_dependency.erb
$(tooldir)/ruby_vm/views/_attributes.erb $(tooldir)/ruby_vm/views/_comptime_insn_stack_increase.erb
$(srcs_vpath)vmtc.inc: $(tooldir)/ruby_vm/views/vmtc.inc.erb $(inc_common_headers)
$(srcs_vpath)vm.inc: $(tooldir)/ruby_vm/views/vm.inc.erb $(inc_common_headers) \
$(tooldir)/ruby_vm/views/_insn_entry.erb $(tooldir)/ruby_vm/views/_trace_instruction.erb

View File

@ -642,7 +642,6 @@ $(INSNS): $(srcdir)/insns.def vm_opts.h \
$(tooldir)/ruby_vm/views/_insn_len_info.erb \
$(tooldir)/ruby_vm/views/_insn_name_info.erb \
$(tooldir)/ruby_vm/views/_insn_operand_info.erb \
$(tooldir)/ruby_vm/views/_insn_sp_pc_dependency.erb \
$(tooldir)/ruby_vm/views/_insn_type_chars.erb \
$(tooldir)/ruby_vm/views/_leaf_helpers.erb \
$(tooldir)/ruby_vm/views/_notice.erb \

View File

@ -1,27 +0,0 @@
%# -*- C -*-
%# Copyright (c) 2019 Takashi Kokubun. All rights reserved.
%#
%# This file is a part of the programming language Ruby. Permission is hereby
%# granted, to either redistribute and/or modify this file, provided that the
%# conditions mentioned in the file COPYING are met. Consult the file for
%# details.
%#
PUREFUNC(MAYBE_UNUSED(static bool insn_may_depend_on_sp_or_pc(int insn, const VALUE *opes)));
static bool
insn_may_depend_on_sp_or_pc(int insn, const VALUE *opes)
{
switch (insn) {
% RubyVM::Instructions.each do |insn|
% # handles_sp?: If true, it requires to move sp in JIT
% # always_leaf?: If false, it may call an arbitrary method. pc should be moved
% # before the call, and the method may refer to caller's pc (lineno).
% unless !insn.is_a?(RubyVM::TraceInstructions) && !insn.handles_sp? && insn.always_leaf?
case <%= insn.bin %>:
% end
% end
return true;
default:
return false;
}
}

View File

@ -19,4 +19,3 @@
<%= render 'sp_inc_helpers' %>
<%= render 'attributes' %>
<%= render 'comptime_insn_stack_increase' %>
<%= render 'insn_sp_pc_dependency' %>