Author: Lars Wassermann <[email protected]>
Branch:
Changeset: r286:6135571784b6
Date: 2013-04-16 16:18 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/6135571784b6/
Log: added primitive 129: return the special objects array which is used
by VM the primitive is needed when printing methods in the
mini.image
diff --git a/spyvm/primitives.py b/spyvm/primitives.py
--- a/spyvm/primitives.py
+++ b/spyvm/primitives.py
@@ -813,6 +813,7 @@
# ___________________________________________________________________________
# Squeak Miscellaneous Primitives (128-134)
BECOME = 128
+SPECIAL_OBJECTS_ARRAY = 129
FULL_GC = 130
INC_GC = 131
INTERRUPT_SEMAPHORE = 134
@@ -838,6 +839,10 @@
def fake_bytes_left(interp):
return interp.space.wrap_int(2**20) # XXX we don't know how to do this :-(
+@expose_primitive(SPECIAL_OBJECTS_ARRAY, unwrap_spec=[object])
+def func(interp, s_frame, w_rcvr):
+ return interp.space.wrap_list(interp.image.special_objects)
+
@expose_primitive(INC_GC, unwrap_spec=[object])
@expose_primitive(FULL_GC, unwrap_spec=[object])
@jit.dont_look_inside
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit