Commit 857ff5f8 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

CondExprNode over to new temps

parent 1b78c83c
...@@ -4505,7 +4505,7 @@ class BoolBinopNode(NewTempExprNode): ...@@ -4505,7 +4505,7 @@ class BoolBinopNode(NewTempExprNode):
return (test_result, self.type.is_pyobject) return (test_result, self.type.is_pyobject)
class CondExprNode(ExprNode): class CondExprNode(NewTempExprNode):
# Short-circuiting conditional expression. # Short-circuiting conditional expression.
# #
# test ExprNode # test ExprNode
...@@ -4570,7 +4570,7 @@ class CondExprNode(ExprNode): ...@@ -4570,7 +4570,7 @@ class CondExprNode(ExprNode):
# subexpr allocation strategy than the default, so override evaluation_code. # subexpr allocation strategy than the default, so override evaluation_code.
code.mark_pos(self.pos) code.mark_pos(self.pos)
#self.allocate_temp_result(code) # uncomment this when we switch to new temps self.allocate_temp_result(code)
self.test.generate_evaluation_code(code) self.test.generate_evaluation_code(code)
code.putln("if (%s) {" % self.test.result() ) code.putln("if (%s) {" % self.test.result() )
self.eval_and_get(code, self.true_val) self.eval_and_get(code, self.true_val)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment