[pypy-commit] pypy optresult: be more specific, I'm sure we have more of those
fijal
noreply at buildbot.pypy.org
Tue Jun 9 11:31:27 CEST 2015
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: optresult
Changeset: r77985:9e9f0e4f0d29
Date: 2015-06-09 11:31 +0200
http://bitbucket.org/pypy/pypy/changeset/9e9f0e4f0d29/
Log: be more specific, I'm sure we have more of those
diff --git a/rpython/jit/metainterp/resoperation.py b/rpython/jit/metainterp/resoperation.py
--- a/rpython/jit/metainterp/resoperation.py
+++ b/rpython/jit/metainterp/resoperation.py
@@ -1,9 +1,12 @@
-import weakref
+import weakref, os
from rpython.rlib.objectmodel import we_are_translated, specialize
from rpython.rlib.objectmodel import compute_identity_hash
from rpython.rtyper.lltypesystem import lltype, llmemory
from rpython.jit.codewriter import longlong
+class SettingForwardedOnAbstractValue(Exception):
+ pass
+
class AbstractValue(object):
_repr_memo = weakref.WeakKeyDictionary()
is_info_class = False
@@ -25,7 +28,8 @@
return None
def set_forwarded(self, forwarded_to):
- raise Exception("oups")
+ os.write(2, "setting forwarded on: " + self.__class__.__name__)
+ raise SettingForwardedOnAbstractValue()
def get_box_replacement(op):
orig_op = op
More information about the pypy-commit
mailing list