Author: Antonio Cuni <[email protected]>
Branch: virtual-raw-mallocs
Changeset: r59688:e07c123a9879
Date: 2013-01-03 18:37 +0100
http://bitbucket.org/pypy/pypy/changeset/e07c123a9879/

Log:    we cannot move these methods here, else we get an annotation error

diff --git a/pypy/jit/metainterp/resume.py b/pypy/jit/metainterp/resume.py
--- a/pypy/jit/metainterp/resume.py
+++ b/pypy/jit/metainterp/resume.py
@@ -453,9 +453,6 @@
                 return self.liveboxes_from_env[box]
             return self.liveboxes[box]
 
-class WrongVirtualKind(Exception):
-    pass
-
 class AbstractVirtualInfo(object):
     kind = REF
     #def allocate(self, decoder, index):
@@ -468,14 +465,6 @@
 
     def debug_prints(self):
         raise NotImplementedError
-
-    # subclasses should override one and only one of these two methods,
-    # depending on the kind
-    def allocate(self, decoder, index):
-        raise WrongVirtualKind
-
-    def allocate_int(self, decoder, index):
-        raise WrongVirtualKind
         
 
 class AbstractVirtualStructInfo(AbstractVirtualInfo):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to