summaryrefslogtreecommitdiff
path: root/tool/ruby_vm/views/_leaf_helpers.erb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/ruby_vm/views/_leaf_helpers.erb')
-rw-r--r--tool/ruby_vm/views/_leaf_helpers.erb25
1 files changed, 0 insertions, 25 deletions
diff --git a/tool/ruby_vm/views/_leaf_helpers.erb b/tool/ruby_vm/views/_leaf_helpers.erb
index ac35df64f4..f740107a0a 100644
--- a/tool/ruby_vm/views/_leaf_helpers.erb
+++ b/tool/ruby_vm/views/_leaf_helpers.erb
@@ -10,31 +10,6 @@
#include "iseq.h"
-extern const bool rb_vm_insn_leaf_p[];
-
-#ifdef RUBY_VM_INSNS_INFO
-const bool rb_vm_insn_leaf_p[] = {
-% RubyVM::Instructions.each_slice(20) do |insns|
- <%= insns.map do |insn|
- if insn.is_a?(RubyVM::BareInstructions)
- insn.always_leaf? ? '1' : '0'
- else
- '0'
- end
- end.join(', ')
- %>,
-% end
-};
-#endif
-
-CONSTFUNC(MAYBE_UNUSED(static bool insn_leaf_p(VALUE insn)));
-
-bool
-insn_leaf_p(VALUE insn)
-{
- return rb_vm_insn_leaf_p[insn];
-}
-
// This is used to tell RJIT that this insn would be leaf if CHECK_INTS didn't exist.
// It should be used only when RUBY_VM_CHECK_INTS is directly written in insns.def.
static bool leafness_of_check_ints = false;