Author: Lars Wassermann <[email protected]>
Branch:
Changeset: r381:d87e8807dd80
Date: 2013-05-07 10:51 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/d87e8807dd80/
Log: STORE_STACKP-primitive: the check for a shadow is already done when
calling store, so we can skip the test at this point...
diff --git a/spyvm/primitives.py b/spyvm/primitives.py
--- a/spyvm/primitives.py
+++ b/spyvm/primitives.py
@@ -487,11 +487,7 @@
assert stackp >= 0
if not isinstance(w_frame, model.W_PointersObject):
raise PrimitiveFailedError
- if w_frame.has_shadow():
- s_frame = w_frame.as_context_get_shadow(interp.space)
- s_frame.store_stackpointer(stackp)
- else:
- w_frame.store(interp.space, constants.CTXPART_STACKP_INDEX, stackp)
+ w_frame.store(interp.space, constants.CTXPART_STACKP_INDEX,
interp.space.wrap_int(stackp))
return w_frame
@expose_primitive(SOME_INSTANCE, unwrap_spec=[object])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit