Commits

Sven Hager committed c00c0dc

(bivab, hager): fix interface access after merge

  • Participants
  • Parent commits 23ce292
  • Branches ppc-jit-backend

Comments (0)

Files changed (1)

File pypy/jit/backend/ppc/ppcgen/ppc_assembler.py

         self.datablockwrapper = None
         self.memcpy_addr = 0
         self.fail_boxes_count = 0
+        self.current_clt = None
 
     def load_imm(self, rD, word):
         if word <= 32767 and word >= -32768:
                 self.regalloc_mov(r.r0, loc)
 
     def setup(self, looptoken, operations):
+        assert self.memcpy_addr != 0
+        self.current_clt = looptoken.compiled_loop_token 
         operations = self.cpu.gc_ll_descr.rewrite_assembler(self.cpu, 
-                                                            operations)
-        assert self.memcpy_addr != 0
-        self.current_clt = looptoken.compiled_loop_token
+                operations, self.current_clt.allgcrefs)
         self.mc = PPCBuilder()
         self.pending_guards = []
         assert self.datablockwrapper is None
     def assemble_loop(self, inputargs, operations, looptoken, log):
 
         clt = CompiledLoopToken(self.cpu, looptoken.number)
+        clt.allgcrefs = []
         looptoken.compiled_loop_token = clt
 
         self.setup(looptoken, operations)