Commit 6b9f9037 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Some trivial nodes to new temps

parent eaebdfa3
...@@ -1424,7 +1424,7 @@ class NameNode(AtomicNewTempExprNode): ...@@ -1424,7 +1424,7 @@ class NameNode(AtomicNewTempExprNode):
else: else:
code.annotate(pos, AnnotationItem('c_call', 'c function', size=len(self.name))) code.annotate(pos, AnnotationItem('c_call', 'c function', size=len(self.name)))
class BackquoteNode(ExprNode): class BackquoteNode(NewTempExprNode):
# `expr` # `expr`
# #
# arg ExprNode # arg ExprNode
...@@ -1452,7 +1452,7 @@ class BackquoteNode(ExprNode): ...@@ -1452,7 +1452,7 @@ class BackquoteNode(ExprNode):
class ImportNode(ExprNode): class ImportNode(NewTempExprNode):
# Used as part of import statement implementation. # Used as part of import statement implementation.
# Implements result = # Implements result =
# __import__(module_name, globals(), None, name_list) # __import__(module_name, globals(), None, name_list)
...@@ -2600,7 +2600,7 @@ class GeneralCallNode(CallNode): ...@@ -2600,7 +2600,7 @@ class GeneralCallNode(CallNode):
code.put_gotref(self.py_result()) code.put_gotref(self.py_result())
class AsTupleNode(ExprNode): class AsTupleNode(NewTempExprNode):
# Convert argument to tuple. Used for normalising # Convert argument to tuple. Used for normalising
# the * argument of a function call. # the * argument of a function call.
# #
...@@ -3610,7 +3610,7 @@ class ClassNode(ExprNode): ...@@ -3610,7 +3610,7 @@ class ClassNode(ExprNode):
code.put_gotref(self.py_result()) code.put_gotref(self.py_result())
class UnboundMethodNode(ExprNode): class UnboundMethodNode(NewTempExprNode):
# Helper class used in the implementation of Python # Helper class used in the implementation of Python
# class definitions. Constructs an unbound method # class definitions. Constructs an unbound method
# object from a class and a function. # object from a class and a function.
...@@ -3670,7 +3670,7 @@ compile_time_unary_operators = { ...@@ -3670,7 +3670,7 @@ compile_time_unary_operators = {
'+': operator.pos, '+': operator.pos,
} }
class UnopNode(ExprNode): class UnopNode(NewTempExprNode):
# operator string # operator string
# operand ExprNode # operand ExprNode
# #
...@@ -3746,7 +3746,7 @@ class UnopNode(ExprNode): ...@@ -3746,7 +3746,7 @@ class UnopNode(ExprNode):
self.type = PyrexTypes.error_type self.type = PyrexTypes.error_type
class NotNode(ExprNode): class NotNode(NewTempExprNode):
# 'not' operator # 'not' operator
# #
# operand ExprNode # operand ExprNode
...@@ -3824,7 +3824,7 @@ class TildeNode(UnopNode): ...@@ -3824,7 +3824,7 @@ class TildeNode(UnopNode):
return "(~%s)" % self.operand.result() return "(~%s)" % self.operand.result()
class AmpersandNode(ExprNode): class AmpersandNode(NewTempExprNode):
# The C address-of operator. # The C address-of operator.
# #
# operand ExprNode # operand ExprNode
...@@ -3950,7 +3950,7 @@ class TypecastNode(NewTempExprNode): ...@@ -3950,7 +3950,7 @@ class TypecastNode(NewTempExprNode):
code.put_incref(self.result(), self.ctype()) code.put_incref(self.result(), self.ctype())
class SizeofNode(ExprNode): class SizeofNode(NewTempExprNode):
# Abstract base class for sizeof(x) expression nodes. # Abstract base class for sizeof(x) expression nodes.
type = PyrexTypes.c_size_t_type type = PyrexTypes.c_size_t_type
......
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