From bee5af407d194672d4971e70b0d232698c071f6d Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Fri, 23 Dec 2022 14:02:23 -0800 Subject: Rename InsnCompiler to Codegen because I'm not gonna limit this to insns anymore. --- lib/ruby_vm/mjit/compiler.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/ruby_vm') diff --git a/lib/ruby_vm/mjit/compiler.rb b/lib/ruby_vm/mjit/compiler.rb index 098e478835..67ece44624 100644 --- a/lib/ruby_vm/mjit/compiler.rb +++ b/lib/ruby_vm/mjit/compiler.rb @@ -1,4 +1,4 @@ -require 'mjit/insn_compiler' +require 'mjit/codegen' require 'mjit/instruction' require 'mjit/x86_assembler' @@ -19,7 +19,7 @@ module RubyVM::MJIT def initialize(mem_block) @mem_block = mem_block @write_pos = 0 - @insn_compiler = InsnCompiler.new + @codegen = Codegen.new end # @param iseq [RubyVM::MJIT::CPointer::Struct] @@ -77,8 +77,8 @@ module RubyVM::MJIT def compile_insn(asm, insn) case insn.name - when :putnil then @insn_compiler.putnil(asm) - #when :leave then @insn_compiler.leave(asm) + when :putnil then @codegen.putnil(asm) + #when :leave then @codegen.leave(asm) else CantCompile end end -- cgit v1.2.3