1.1 --- a/encoders.py Mon Dec 12 17:05:59 2016 +0100
1.2 +++ b/encoders.py Mon Dec 12 18:00:17 2016 +0100
1.3 @@ -174,6 +174,10 @@
1.4 "__test_common_instance", "__test_common_object", "__test_common_type",
1.5 )
1.6
1.7 +type_ops = (
1.8 + "__test_specific_instance", "__test_specific_object", "__test_specific_type",
1.9 + )
1.10 +
1.11 static_ops = (
1.12 "__load_static",
1.13 )
1.14 @@ -229,6 +233,11 @@
1.15 a[1] = encode_symbol("pos", arg)
1.16 a.insert(2, encode_symbol("code", arg))
1.17
1.18 + # Obtain addresses of type arguments.
1.19 +
1.20 + elif op in type_ops:
1.21 + a[1] = "&%s" % a[1]
1.22 +
1.23 # Obtain addresses of static objects.
1.24
1.25 elif op in static_ops: