[pypy-commit] pypy default: add missing file

rlamy noreply at buildbot.pypy.org
Sun Jan 26 20:16:28 CET 2014


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: 
Changeset: r68954:a7ccd77bc726
Date: 2014-01-26 19:15 +0000
http://bitbucket.org/pypy/pypy/changeset/a7ccd77bc726/

Log:	add missing file

diff --git a/rpython/rtyper/llannotation.py b/rpython/rtyper/llannotation.py
new file mode 100644
--- /dev/null
+++ b/rpython/rtyper/llannotation.py
@@ -0,0 +1,26 @@
+"""
+Code for annotating low-level thingies.
+"""
+from rpython.annotator.model import SomeObject
+
+class SomeAddress(SomeObject):
+    immutable = True
+
+    def can_be_none(self):
+        return False
+
+    def is_null_address(self):
+        return self.is_immutable_constant() and not self.const
+
+class SomeTypedAddressAccess(SomeObject):
+    """This class is used to annotate the intermediate value that
+    appears in expressions of the form:
+    addr.signed[offset] and addr.signed[offset] = value
+    """
+
+    def __init__(self, type):
+        self.type = type
+
+    def can_be_none(self):
+        return False
+


More information about the pypy-commit mailing list