1.1 --- a/micropython/trans.py Sun Jun 12 22:14:36 2011 +0200
1.2 +++ b/micropython/trans.py Mon Jun 13 00:18:13 2011 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Translate the AST of a Python program into a more interpretable representation.
1.6
1.7 -Copyright (C) 2007, 2008, 2009, 2010 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2007, 2008, 2009, 2010, 2011 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -1012,7 +1012,7 @@
1.13 # raise an exception.
1.14
1.15 self.new_op(DropFrame())
1.16 - self.new_op(LoadResult())
1.17 + self.new_op(LoadResultIntoValue())
1.18
1.19 self.make_exception("TypeError", node)
1.20 self.new_op(StoreException())
1.21 @@ -1051,7 +1051,7 @@
1.22
1.23 self.new_op(DropFrame())
1.24 if load_result:
1.25 - self.new_op(LoadResult())
1.26 + self.new_op(LoadResultIntoValue())
1.27
1.28 # Discard any temporary storage instructions.
1.29
1.30 @@ -1156,7 +1156,7 @@
1.31 if not fn.is_lambda():
1.32 self.dispatch(compiler.ast.Name("None"))
1.33
1.34 - self.new_op(StoreResult())
1.35 + self.new_op(LoadValueIntoResult())
1.36 self.new_op(Return())
1.37
1.38 # Make sure that enough frame space is reserved from the start.