# HG changeset patch # User Paul Boddie # Date 1216593774 -7200 # Node ID f21cc9738695b41871fbd6960ac0954b816b6837 # Parent ff6235ff830d7dcf8634212679854d5963ea0fac Made LoadResult a suitable temporary storage access replacement. Made the attribute name output more helpful for unnamed Attr instances. diff -r ff6235ff830d -r f21cc9738695 micropython/ast.py --- a/micropython/ast.py Mon Jul 21 00:24:00 2008 +0200 +++ b/micropython/ast.py Mon Jul 21 00:42:54 2008 +0200 @@ -372,7 +372,7 @@ to a temporary variable retaining the result of the last instruction. """ - return isinstance(self.active, (LoadName, LoadTemp, LoadAddress, LoadConst)) + return isinstance(self.active, (LoadName, LoadTemp, LoadAddress, LoadConst, LoadResult)) # Optimisation methods. See the supported_optimisations class attribute. diff -r ff6235ff830d -r f21cc9738695 micropython/rsvp.py --- a/micropython/rsvp.py Mon Jul 21 00:24:00 2008 +0200 +++ b/micropython/rsvp.py Mon Jul 21 00:42:54 2008 +0200 @@ -33,9 +33,9 @@ def name(attr): if isinstance(attr, Attr): - return attr.name + return attr.name or "" else: - return attr + return attr or "" class Instruction: