Commit b9c2853f authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

All exprnodes over; NewTempExprNode folded into ExprNode

parent a1f3d113
This diff is collapsed.
...@@ -3084,10 +3084,8 @@ class InPlaceAssignmentNode(AssignmentNode): ...@@ -3084,10 +3084,8 @@ class InPlaceAssignmentNode(AssignmentNode):
import ExprNodes import ExprNodes
self.rhs.generate_evaluation_code(code) self.rhs.generate_evaluation_code(code)
self.dup.generate_subexpr_evaluation_code(code) self.dup.generate_subexpr_evaluation_code(code)
if isinstance(self.dup, ExprNodes.NewTempExprNode): if self.dup.is_temp:
# This is because we're manually messing with subexpr nodes self.dup.allocate_temp_result(code)
if self.dup.is_temp:
self.dup.allocate_temp_result(code)
# self.dup.generate_result_code is run only if it is not buffer access # self.dup.generate_result_code is run only if it is not buffer access
if self.operator == "**": if self.operator == "**":
extra = ", Py_None" extra = ", Py_None"
......
...@@ -142,7 +142,7 @@ class ResultRefNode(AtomicExprNode): ...@@ -142,7 +142,7 @@ class ResultRefNode(AtomicExprNode):
pass pass
class EvalWithTempExprNode(ExprNodes.NewTempExprNode): class EvalWithTempExprNode(ExprNodes.ExprNode):
# A wrapper around a subexpression that moves an expression into a # A wrapper around a subexpression that moves an expression into a
# temp variable and provides it to the subexpression. # temp variable and provides it to the subexpression.
......
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