Author: Lars Wassermann <[email protected]>
Branch: 
Changeset: r117:c38b0994784c
Date: 2013-03-04 17:38 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/c38b0994784c/

Log:    integer are immutable -> tell the jit

diff --git a/spyvm/model.py b/spyvm/model.py
--- a/spyvm/model.py
+++ b/spyvm/model.py
@@ -113,6 +113,7 @@
     """Boxed integer value"""
     # TODO can we tell pypy that its never larger then 31-bit?
     __slots__ = ('value',)     # the only allowed slot here
+    _immutable_fields_ = ["value"]
 
     def __init__(self, value):
         self.value = value
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to