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

@ -11,7 +11,8 @@ module Ast
puts "compiling if condition #{cond}"
cond_val = cond.compile(context , into)
into.b true_block , condition_code: cond_val.operator
into.branch = true_block
if_false.each do |part|
puts "compiling in if false #{part}"
last = part.compile(context , false_block )