Author: Maciej Fijalkowski <[email protected]>
Branch: better-jit-hooks
Changeset: r51059:6895bfac2d92
Date: 2012-01-06 11:52 +0200
http://bitbucket.org/pypy/pypy/changeset/6895bfac2d92/
Log: be slightly more abstract
diff --git a/pypy/module/pypyjit/interp_resop.py
b/pypy/module/pypyjit/interp_resop.py
--- a/pypy/module/pypyjit/interp_resop.py
+++ b/pypy/module/pypyjit/interp_resop.py
@@ -81,11 +81,13 @@
@unwrap_spec(no=int)
def new_resop(space, w_tp, no):
+ from pypy.jit.metainterp.history import AbstractValue, AbstractDescr
# this is mostly an annotation hint
if NonConstant(True):
raise OperationError(space.w_ValueError,
space.wrap("for annotation only"))
- op = ResOperation(no, [], None)
+ op = ResOperation(no, [AbstractValue()], AbstractValue(),
+ descr=AbstractDescr())
return space.wrap(WrappedOp(op, NonConstant(13), NonConstant('repr')))
class WrappedOp(Wrappable):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit