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
|
@ -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>
|
Mon Jan 29 21:32:37 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||||
|
|
||||||
* ext/win32ole/win32ole.c: add WIN32OLE.locale=, WIN32OLE.locale,
|
* ext/win32ole/win32ole.c: add WIN32OLE.locale=, WIN32OLE.locale,
|
||||||
|
|
|
@ -14,10 +14,10 @@ OutputCompileOption = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def compile_to_rb infile, outfile
|
def compile_to_rb infile, outfile
|
||||||
iseq = YARVCore::InstructionSequence.compile_file(infile, OutputCompileOption)
|
iseq = VM::InstructionSequence.compile_file(infile, OutputCompileOption)
|
||||||
|
|
||||||
open(outfile, 'w'){|f|
|
open(outfile, 'w'){|f|
|
||||||
f.puts "YARVCore::InstructionSequence.load(" +
|
f.puts "VM::InstructionSequence.load(" +
|
||||||
"Marshal.load(<<EOS____.unpack('m*')[0])).eval"
|
"Marshal.load(<<EOS____.unpack('m*')[0])).eval"
|
||||||
f.puts [Marshal.dump(iseq.to_a)].pack('m*')
|
f.puts [Marshal.dump(iseq.to_a)].pack('m*')
|
||||||
f.puts "EOS____"
|
f.puts "EOS____"
|
||||||
|
@ -25,7 +25,7 @@ def compile_to_rb infile, outfile
|
||||||
end
|
end
|
||||||
|
|
||||||
def compile_to_rbc infile, outfile, type
|
def compile_to_rbc infile, outfile, type
|
||||||
iseq = YARVCore::InstructionSequence.compile_file(infile, OutputCompileOption)
|
iseq = VM::InstructionSequence.compile_file(infile, OutputCompileOption)
|
||||||
|
|
||||||
case type
|
case type
|
||||||
when 'm'
|
when 'm'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue