fold last of the virtual into register

This commit is contained in:
Torsten Ruger
2015-10-22 18:16:29 +03:00
parent f658ecf425
commit dcbd3c7091
67 changed files with 161 additions and 227 deletions

View File

@ -1,11 +1,11 @@
require_relative "compiler_helper"
module Virtual
module Register
class TestCall < MiniTest::Test
include CompilerHelper
def setup
Virtual.machine.boot
Register.machine.boot
@root = :call_site
@output = Register::RegisterValue
end
@ -31,7 +31,7 @@ module Virtual
end
def test_call_main_op
Virtual.machine.space.get_main.ensure_local(:bar , :Integer)
Register.machine.space.get_main.ensure_local(:bar , :Integer)
@string_input = 'main( bar )'
check
end