comparison python/outstream.py @ 258:04c19282a5aa

Added register allocator
author Windel Bouwman
date Mon, 05 Aug 2013 19:46:11 +0200
parents f5fba5b554d7
children ac603eb66b63
comparison
equal deleted inserted replaced
257:703321743e8a 258:04c19282a5aa
22 addr = i.address 22 addr = i.address
23 insword = i.encode() 23 insword = i.encode()
24 assert type(insword) is bytes 24 assert type(insword) is bytes
25 d.extend(insword) 25 d.extend(insword)
26 return bytes(d) 26 return bytes(d)
27
28 @property
29 def Size(self):
30 return len(self.to_bytes())
27 31
28 def debugInfos(self): 32 def debugInfos(self):
29 di = [i for i in self.instructions if isinstance(i, DebugInfo)] 33 di = [i for i in self.instructions if isinstance(i, DebugInfo)]
30 return di 34 return di
31 35