Commits

Anonymous committed 59ecc20

(edelsohn, arigato): Save and restore r3 around wb_slowpath call in
cond_call_gc_wb if used to remap loc_base.

Comments (0)

Files changed (1)

pypy/jit/backend/ppc/opassembler.py

             assert self.wb_slowpath[helper_num] != 0
         #
         if loc_base is not r.r3:
+            self.mc.store(r.r3.value, r.SP.value, 24)
             remap_frame_layout(self, [loc_base], [r.r3], r.SCRATCH)
         addr = self.wb_slowpath[helper_num]
         func = rffi.cast(lltype.Signed, addr)
         self.mc.bl_abs(func)
+        if loc_base is not r.r3:
+            self.mc.load(r.r3.value, r.SP.value, 24)
 
         # if GCFLAG_CARDS_SET, then we can do the whole thing that would
         # be done in the CALL above with just four instructions, so here
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.