comparison python/ir/instruction.py @ 222:c3f1ce8b638f

Fixup of parser
author Windel Bouwman
date Tue, 09 Jul 2013 17:36:31 +0200
parents 848c4b15fd0b
children 88a1e0baef65
comparison
equal deleted inserted replaced
221:848c4b15fd0b 222:c3f1ce8b638f
94 94
95 class Alloc(Instruction): 95 class Alloc(Instruction):
96 """ Allocates space on the stack """ 96 """ Allocates space on the stack """
97 def __init__(self, value): 97 def __init__(self, value):
98 super().__init__() 98 super().__init__()
99 assert isinstance(value, Value)
99 self.value = value 100 self.value = value
100 self.addDef(value) 101 self.addDef(value)
101 def __repr__(self): 102 def __repr__(self):
102 return '{0} = alloc'.format(self.value) 103 return '{0} = alloc'.format(self.value)
103 104