new register allocation generates good looking push/pop

This commit is contained in:
Torsten Ruger
2014-06-09 19:24:09 +03:00
parent b66c4157d5
commit d7a60f2803
7 changed files with 85 additions and 41 deletions

View File

@@ -7,6 +7,8 @@ module Ast
puts "compiling while condition #{condition}"
cond_val = condition.compile(context , while_block)
while_block.b ret , condition_code: cond_val.not_operator
while_block.branch = ret
last = nil
body.each do |part|
puts "compiling in while #{part}"