[pypy-commit] lang-smalltalk default: integer are immutable -> tell the jit
lwassermann
noreply at buildbot.pypy.org
Mon Mar 4 17:40:56 CET 2013
Author: Lars Wassermann <lars.wassermann at gmail.com>
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
More information about the pypy-commit
mailing list