diff options
author | Takashi Kokubun <[email protected]> | 2022-12-30 22:05:53 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-05 22:11:20 -0800 |
commit | 7abff797b434ead0653c89f5429490bd0f716f88 (patch) | |
tree | c3c73a306fa2b00d981ce0f5f4170e2f9a0859fc /lib/ruby_vm/mjit/code_block.rb | |
parent | c51baf9404373c8cb37a1fb887c50c0216576186 (diff) |
Use the term "compile" in different places
Diffstat (limited to 'lib/ruby_vm/mjit/code_block.rb')
-rw-r--r-- | lib/ruby_vm/mjit/code_block.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ruby_vm/mjit/code_block.rb b/lib/ruby_vm/mjit/code_block.rb index e47f5fbc0a..17e2a0053d 100644 --- a/lib/ruby_vm/mjit/code_block.rb +++ b/lib/ruby_vm/mjit/code_block.rb @@ -10,14 +10,14 @@ module RubyVM::MJIT end # @param asm [RubyVM::MJIT::X86Assembler] - def compile(asm) + def write(asm) return 0 if @write_pos + asm.size >= @mem_size start_addr = write_addr # Write machine code C.mjit_mark_writable - @write_pos += asm.compile(start_addr) + @write_pos += asm.assemble(start_addr) C.mjit_mark_executable end_addr = write_addr |