removing passes (before arm)
collector becomes a function minimizer unused
This commit is contained in:
@ -9,6 +9,7 @@ class HelloTest < MiniTest::Test
|
||||
statements = machine.parse_and_compile @string_input
|
||||
output_at = "Register::CallImplementation"
|
||||
#{}"Register::CallImplementation"
|
||||
machine.collect
|
||||
machine.run_before output_at
|
||||
#puts Sof.write(machine.space)
|
||||
machine.run_after output_at
|
||||
|
@ -5,7 +5,7 @@ class AddTest < MiniTest::Test
|
||||
include Ticker
|
||||
|
||||
def setup
|
||||
Virtual.machine.boot
|
||||
machine = Virtual.machine.boot
|
||||
code = s(:class, :Object,
|
||||
s(:derives, nil),
|
||||
s(:statements,
|
||||
@ -19,7 +19,7 @@ class AddTest < MiniTest::Test
|
||||
s(:int, 7)))))))
|
||||
|
||||
Phisol::Compiler.compile( code )
|
||||
Virtual.machine.run_before "Register::CallImplementation"
|
||||
machine.collect
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Virtual.machine.init
|
||||
end
|
||||
|
@ -48,15 +48,14 @@ class Object
|
||||
end
|
||||
end
|
||||
HERE
|
||||
Virtual.machine.boot
|
||||
machine = Virtual.machine.boot
|
||||
syntax = Parser::Salama.new.parse_with_debug(@string_input)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
#puts parts.inspect
|
||||
Phisol::Compiler.compile( parts )
|
||||
|
||||
machine.collect
|
||||
# statements = Virtual.machine.boot.parse_and_compile @string_input
|
||||
# Phisol::Compiler.compile( statements , Virtual.machine.space.get_main )
|
||||
Virtual.machine.run_before "Register::CallImplementation"
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Virtual.machine.init
|
||||
#show_ticks # get output of what is
|
||||
|
@ -4,7 +4,7 @@ class TestPuts < MiniTest::Test
|
||||
include AST::Sexp
|
||||
include Ticker
|
||||
def setup
|
||||
Virtual.machine.boot
|
||||
machine = Virtual.machine.boot
|
||||
code = s(:class, :Object,
|
||||
s(:derives, nil),
|
||||
s(:statements,
|
||||
@ -19,7 +19,7 @@ class TestPuts < MiniTest::Test
|
||||
s(:string, "Hello again")))))))
|
||||
|
||||
Phisol::Compiler.compile( code )
|
||||
Virtual.machine.run_before "Register::CallImplementation"
|
||||
machine.collect
|
||||
@interpreter = Interpreter::Interpreter.new
|
||||
@interpreter.start Virtual.machine.init
|
||||
end
|
||||
|
Reference in New Issue
Block a user