Author: Tim Felgentreff <[email protected]>
Branch:
Changeset: r140:43be3cfa850d
Date: 2013-03-07 23:43 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/43be3cfa850d/
Log: result of primitive SUSPEND is new frame
diff --git a/spyvm/primitives.py b/spyvm/primitives.py
--- a/spyvm/primitives.py
+++ b/spyvm/primitives.py
@@ -968,7 +968,7 @@
w_frame = interp.space.unwrap_pointersobject(w_frame)
return w_frame.as_context_get_shadow(interp.space)
-@expose_primitive(SUSPEND, unwrap_spec=[object])
+@expose_primitive(SUSPEND, unwrap_spec=[object], result_is_new_frame=True)
def func(interp, s_frame, w_rcvr, result_is_new_frame=True):
# XXX we might want to disable this check
if not w_rcvr.getclass(interp.space).is_same_object(
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit