Commits

Lars Wassermann committed d87e880

STORE_STACKP-primitive: the check for a shadow is already done when calling store, so we can skip the test at this point...

Comments (0)

Files changed (1)

spyvm/primitives.py

     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])