summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-29 15:11:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-29 15:11:32 +0000
commit07e82013b55496bfb7fcdc340f97000b15972c91 (patch)
tree9b1578973f59cb9bd6585327b231b3a7f7f69252 /tool
parent086b44661454be895f5e87201837d8537cf66ce9 (diff)
downloadruby-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
Diffstat (limited to 'tool')
-rw-r--r--tool/compile.rb6
1 files changed, 3 insertions, 3 deletions
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'