1.1 --- a/micropython/ast.py Mon May 19 00:22:00 2008 +0200
1.2 +++ b/micropython/ast.py Sat Jun 07 21:55:24 2008 +0200
1.3 @@ -105,8 +105,8 @@
1.4 self.code = []
1.5 self.temp_position = self.unit.stack_local_usage
1.6
1.7 - if unit.node is not None:
1.8 - self.dispatch(unit.node)
1.9 + if unit.astnode is not None:
1.10 + self.dispatch(unit.astnode)
1.11
1.12 self.calculate_stack_usage()
1.13 return self.code
1.14 @@ -511,14 +511,15 @@
1.15
1.16 for pos in range(nargs_min, nargs_max):
1.17 if pos not in employed_positions:
1.18 - self.new_op(LoadConst(target))
1.19 - self.new_op(LoadAttr(target.default_attrs[pos - nargs_min]))
1.20 + #self.new_op(LoadConst(target))
1.21 + #self.new_op(LoadAttr(target.default_attrs[pos - nargs_min]))
1.22 + self.new_op(LoadAddress(target.default_attrs[pos - nargs_min]))
1.23
1.24 - # If the position corresponds to the current frame element,
1.25 - # skip generating the instruction.
1.26 + # If the position corresponds to the current frame element,
1.27 + # skip generating the instruction.
1.28
1.29 - if frame_pos != pos:
1.30 - self.new_op(StoreFrame(pos))
1.31 + if frame_pos != pos:
1.32 + self.new_op(StoreFrame(pos))
1.33
1.34 frame_pos += 1
1.35