[pypy-svn] pypy 32ptr-on-64bit: Add comments.
arigo
commits-noreply at bitbucket.org
Sat Apr 16 23:10:14 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: 32ptr-on-64bit
Changeset: r43410:32f1206b8852
Date: 2011-04-16 22:37 +0200
http://bitbucket.org/pypy/pypy/changeset/32f1206b8852/
Log: Add comments.
diff --git a/pypy/translator/c/funcgen.py b/pypy/translator/c/funcgen.py
--- a/pypy/translator/c/funcgen.py
+++ b/pypy/translator/c/funcgen.py
@@ -594,12 +594,15 @@
def OP_PTR_NONZERO(self, op):
+ # equivalent to (%s != NULL), but works also for HiddenGcRef32
return '%s = !!%s;' % (self.expr(op.result),
self.expr(op.args[0]))
+
def OP_PTR_ISZERO(self, op):
+ # equivalent to (%s == NULL), but works also for HiddenGcRef32
return '%s = !%s;' % (self.expr(op.result),
self.expr(op.args[0]))
-
+
def OP_PTR_EQ(self, op):
return '%s = (%s == %s);' % (self.expr(op.result),
self.expr(op.args[0]),
More information about the Pypy-commit
mailing list