Author: Ronan Lamy <ronan.l...@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 + _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit