[pypy-commit] lang-smalltalk default: added CTXT at:, at:put:, size primitives the same way they are added in COG, by using the AT, AT_PUT, SIZE primitive functions which should dispatch onto the W_Object methods.
lwassermann
noreply at buildbot.pypy.org
Mon Apr 22 14:07:29 CEST 2013
Author: Lars Wassermann <lars.wassermann at gmail.com>
Branch:
Changeset: r306:913316b6cb4c
Date: 2013-04-21 13:36 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/913316b6cb4c/
Log: added CTXT at:, at:put:, size primitives the same way they are added
in COG, by using the AT, AT_PUT, SIZE primitive functions which
should dispatch onto the W_Object methods. The result is that
infinite debugger loops are replaced by an out-of-bounds access ...
diff --git a/spyvm/primitives.py b/spyvm/primitives.py
--- a/spyvm/primitives.py
+++ b/spyvm/primitives.py
@@ -1288,6 +1288,9 @@
CTXT_AT_PUT = 211
CTXT_SIZE = 212
+prim_table[CTXT_AT] = prim_table[AT]
+prim_table[CTXT_AT_PUT] = prim_table[AT_PUT]
+prim_table[CTXT_SIZE] = prim_table[SIZE]
# ___________________________________________________________________________
# Drawing
More information about the pypy-commit
mailing list