mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/compile.rb: replace YARVCore by VM class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
883f34f777
commit
24b92a848c
2 changed files with 7 additions and 3 deletions
|
@ -14,10 +14,10 @@ OutputCompileOption = {
|
|||
}
|
||||
|
||||
def compile_to_rb infile, outfile
|
||||
iseq = YARVCore::InstructionSequence.compile_file(infile, OutputCompileOption)
|
||||
iseq = VM::InstructionSequence.compile_file(infile, OutputCompileOption)
|
||||
|
||||
open(outfile, 'w'){|f|
|
||||
f.puts "YARVCore::InstructionSequence.load(" +
|
||||
f.puts "VM::InstructionSequence.load(" +
|
||||
"Marshal.load(<<EOS____.unpack('m*')[0])).eval"
|
||||
f.puts [Marshal.dump(iseq.to_a)].pack('m*')
|
||||
f.puts "EOS____"
|
||||
|
@ -25,7 +25,7 @@ def compile_to_rb infile, outfile
|
|||
end
|
||||
|
||||
def compile_to_rbc infile, outfile, type
|
||||
iseq = YARVCore::InstructionSequence.compile_file(infile, OutputCompileOption)
|
||||
iseq = VM::InstructionSequence.compile_file(infile, OutputCompileOption)
|
||||
|
||||
case type
|
||||
when 'm'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue