1
0
Fork 0
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:
matz 2007-01-29 15:11:32 +00:00
parent 883f34f777
commit 24b92a848c
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Mon Jan 29 23:52:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* tool/compile.rb: replace YARVCore by VM class.
Mon Jan 29 21:32:37 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
* ext/win32ole/win32ole.c: add WIN32OLE.locale=, WIN32OLE.locale,

View file

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