mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 14:05:02 +02:00
Use the term "compile" in different places
This commit is contained in:
parent
c51baf9404
commit
7abff797b4
4 changed files with 16 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue