1.1 --- a/micropython/__init__.py Sun Feb 22 22:31:21 2009 +0100
1.2 +++ b/micropython/__init__.py Sat Feb 28 01:49:33 2009 +0100
1.3 @@ -260,26 +260,26 @@
1.4 for item in self.code:
1.5
1.6 if isinstance(item, micropython.data.Attr):
1.7 - self.raw_code += item.as_raw(objtable)
1.8 + self.raw_code += item.as_raw(objtable, paramtable)
1.9
1.10 elif isinstance(item, Block):
1.11 assert item.location == len(self.raw_code)
1.12 - self.raw_code += item.as_raw(objtable)
1.13 + self.raw_code += item.as_raw(objtable, paramtable)
1.14
1.15 # Using classcode, attrcode, codeaddr, codedetails, instance.
1.16
1.17 elif isinstance(item, micropython.data.Class):
1.18 assert item.instance_template_location == len(self.raw_code)
1.19 - self.raw_code += item.as_raw(objtable)
1.20 + self.raw_code += item.as_raw(objtable, paramtable)
1.21 assert item.location == len(self.raw_code) - 1
1.22
1.23 elif isinstance(item, micropython.data.Const):
1.24 assert item.location == len(self.raw_code)
1.25 - self.raw_code += item.as_raw(objtable)
1.26 + self.raw_code += item.as_raw(objtable, paramtable)
1.27
1.28 elif isinstance(item, micropython.data.Function):
1.29 assert item.location == len(self.raw_code)
1.30 - self.raw_code += item.as_raw(objtable)
1.31 + self.raw_code += item.as_raw(objtable, paramtable)
1.32
1.33 # Check the code location only where the code has been generated.
1.34
1.35 @@ -288,7 +288,7 @@
1.36
1.37 elif isinstance(item, micropython.data.Module):
1.38 assert item.location == len(self.raw_code)
1.39 - self.raw_code += item.as_raw(objtable)
1.40 + self.raw_code += item.as_raw(objtable, paramtable)
1.41
1.42 else:
1.43 self.raw_code.append(item)