def post_constant_string(env, loc, const): block = Block(loc) block.result = VReg() block.op(['string', block.result, const.value]) return block
def post_function(env, loc, body): closure = new_closure(env, body) block = Block(loc) block.result = VReg() block.op(['closure', block.result, closure]) return block
def post_constant_int(env, loc, const): block = Block(loc) block.result = VReg() block.op(['int32', block.result, int(const.value)]) return block