Author: Armin Rigo <[email protected]>
Branch:
Changeset: r96946:589aba948fbb
Date: 2019-07-04 12:33 +0200
http://bitbucket.org/pypy/pypy/changeset/589aba948fbb/
Log: Add a comment in case somebody else copies get_gcmap() from the arm
backend
diff --git a/rpython/jit/backend/arm/regalloc.py
b/rpython/jit/backend/arm/regalloc.py
--- a/rpython/jit/backend/arm/regalloc.py
+++ b/rpython/jit/backend/arm/regalloc.py
@@ -373,6 +373,10 @@
if box.type == REF and self.rm.is_still_alive(box):
assert not noregs
assert loc.is_core_reg()
+ #val = self.cpu.all_reg_indexes[loc.value]
+ # ^^^ That is the correct way to write it down, but as a
+ # special case in the arm backend only, this is equivalent
+ # to just the line below:
val = loc.value
gcmap[val // WORD // 8] |= r_uint(1) << (val % (WORD * 8))
for box, loc in self.fm.bindings.iteritems():
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit