Author: Lars Wassermann <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit