fhdl/tracer: recognize LOAD_DEREF opcode
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 12 Mar 2013 09:31:56 +0000 (10:31 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 12 Mar 2013 09:31:56 +0000 (10:31 +0100)
migen/fhdl/tracer.py

index 2b1bafd9226cfe4b25649473872b307481a59d7c..53cc3663411a83d10996cc31f86e4e2f568b7050 100644 (file)
@@ -19,7 +19,7 @@ def get_var_name(frame):
                elif opc == "STORE_DEREF":
                        name_index = int(code.co_code[index+1])
                        return code.co_cellvars[name_index]
-               elif opc == "LOAD_GLOBAL" or opc == "LOAD_ATTR" or opc == "LOAD_FAST":
+               elif opc == "LOAD_GLOBAL" or opc == "LOAD_ATTR" or opc == "LOAD_FAST" or opc == "LOAD_DEREF":
                        index += 3
                elif opc == "DUP_TOP":
                        index += 1