reduce method return type to type and introduce a single instruction for instance get

This commit is contained in:
Torsten Ruger
2014-07-14 21:28:21 +03:00
parent b1893482ff
commit b59a9da34e
11 changed files with 51 additions and 19 deletions

View File

@ -2,7 +2,9 @@ module Ast
class IfExpression < Expression
# attr_reader :cond, :if_true, :if_false
def compile frame , method
return nil
Virtual::Reference
end
def old
f = context.function
# to execute the logic as the if states it, the blocks are the other way around
# so we can the jump over the else if true ,and the else joins unconditionally after the true_block