[pypy-commit] lang-smalltalk default: these are safe

cfbolz noreply at buildbot.pypy.org
Wed Feb 20 15:57:26 CET 2013


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: 
Changeset: r72:2708bf50a548
Date: 2013-02-20 15:54 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/2708bf50a548/

Log:	these are safe

diff --git a/spyvm/shadow.py b/spyvm/shadow.py
--- a/spyvm/shadow.py
+++ b/spyvm/shadow.py
@@ -526,6 +526,7 @@
     def stackdepth(self):
         return rarithmetic.intmask(self._stack_ptr - self.tempsize())
 
+    @jit.unroll_safe
     def pop_and_return_n(self, n):
         result = [self.peek(i) for i in range(n - 1, -1, -1)]
         self.pop_n(n)
@@ -637,6 +638,7 @@
         ContextPartShadow.__init__(self, space, w_self)
 
     @staticmethod
+    @jit.unroll_safe
     def make_context(space, w_method, w_receiver,
                      arguments, w_sender=None):
         # From blue book: normal mc have place for 12 temps+maxstack


More information about the pypy-commit mailing list