summaryrefslogtreecommitdiff
path: root/tool/ruby_vm/views/lib/ruby_vm/mjit/instruction.rb.erb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/ruby_vm/views/lib/ruby_vm/mjit/instruction.rb.erb')
-rw-r--r--tool/ruby_vm/views/lib/ruby_vm/mjit/instruction.rb.erb40
1 files changed, 0 insertions, 40 deletions
diff --git a/tool/ruby_vm/views/lib/ruby_vm/mjit/instruction.rb.erb b/tool/ruby_vm/views/lib/ruby_vm/mjit/instruction.rb.erb
deleted file mode 100644
index 4b20e896a2..0000000000
--- a/tool/ruby_vm/views/lib/ruby_vm/mjit/instruction.rb.erb
+++ /dev/null
@@ -1,40 +0,0 @@
-module RubyVM::MJIT # :nodoc: all
- Instruction = Struct.new(
- :name,
- :bin,
- :len,
- :expr,
- :declarations,
- :preamble,
- :opes,
- :pops,
- :rets,
- :always_leaf?,
- :leaf_without_check_ints?,
- :handles_sp?,
- )
-
- INSNS = {
-% RubyVM::Instructions.each_with_index do |insn, i|
-% next if insn.name.start_with?('trace_')
- <%= i %> => Instruction.new(
- name: :<%= insn.name %>,
- bin: <%= i %>, # BIN(<%= insn.name %>)
- len: <%= insn.width %>, # insn_len
- expr: <<-EXPR,
-<%= insn.expr.expr.dump.sub(/\A"/, '').sub(/"\z/, '').gsub(/\\n/, "\n").gsub(/\\t/, ' ' * 8) %>
- EXPR
- declarations: <%= insn.declarations.inspect %>,
- preamble: <%= insn.preamble.map(&:expr).inspect %>,
- opes: <%= insn.opes.inspect %>,
- pops: <%= insn.pops.inspect %>,
- rets: <%= insn.rets.inspect %>,
- always_leaf?: <%= insn.always_leaf? %>,
- leaf_without_check_ints?: <%= insn.leaf_without_check_ints? %>,
- handles_sp?: <%= insn.handles_sp? %>,
- ),
-% end
- }
-
- private_constant(*constants)
-end