diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-29 15:11:32 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-29 15:11:32 +0000 |
| commit | 07e82013b55496bfb7fcdc340f97000b15972c91 (patch) | |
| tree | 9b1578973f59cb9bd6585327b231b3a7f7f69252 | |
| parent | 086b44661454be895f5e87201837d8537cf66ce9 (diff) | |
| download | ruby-07e82013b55496bfb7fcdc340f97000b15972c91.tar.gz ruby-07e82013b55496bfb7fcdc340f97000b15972c91.tar.xz ruby-07e82013b55496bfb7fcdc340f97000b15972c91.zip | |
* tool/compile.rb: replace YARVCore by VM class.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | tool/compile.rb | 6 |
2 files changed, 7 insertions, 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> * ext/win32ole/win32ole.c: add WIN32OLE.locale=, WIN32OLE.locale, diff --git a/tool/compile.rb b/tool/compile.rb index 5798b8113..66960f985 100644 --- a/tool/compile.rb +++ b/tool/compile.rb @@ -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' |
