[pypy-commit] pypy gc_no_cleanup_nursery: add a field name to the repr of FieldDescr
fijal
noreply at buildbot.pypy.org
Mon Sep 8 18:19:18 CEST 2014
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: gc_no_cleanup_nursery
Changeset: r73375:4af5a49f9130
Date: 2014-09-08 10:18 -0600
http://bitbucket.org/pypy/pypy/changeset/4af5a49f9130/
Log: add a field name to the repr of FieldDescr
diff --git a/rpython/jit/backend/llsupport/descr.py b/rpython/jit/backend/llsupport/descr.py
--- a/rpython/jit/backend/llsupport/descr.py
+++ b/rpython/jit/backend/llsupport/descr.py
@@ -95,6 +95,9 @@
self.field_size = field_size
self.flag = flag
+ def __repr__(self):
+ return 'FieldDescr<%s:%d>' % (self.name, self.offset)
+
def is_pointer_field(self):
return self.flag == FLAG_POINTER
More information about the pypy-commit
mailing list