Use the term "compile" in different places

This commit is contained in:
Takashi Kokubun 2022-12-30 22:05:53 -08:00
parent c51baf9404
commit 7abff797b4
4 changed files with 16 additions and 8 deletions

View file

@ -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