summaryrefslogtreecommitdiff
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
commit24b92a848cd707cb903f097fda97a4027ca2c928 (patch)
tree9b1578973f59cb9bd6585327b231b3a7f7f69252 /tool
parent883f34f7776b68f9c0090ce59f03923a5ee66fbe (diff)
* 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
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 5798b81139..66960f9851 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'