[pypy-svn] r49971 - pypy/dist/pypy/jit/hintannotator
antocuni at codespeak.net
antocuni at codespeak.net
Thu Dec 20 21:50:56 CET 2007
Author: antocuni
Date: Thu Dec 20 21:50:55 2007
New Revision: 49971
Modified:
pypy/dist/pypy/jit/hintannotator/model.py
Log:
(arigo)
propagate deepfrozen only when it's a method, else the first argument
it's not a "self", i.e. no special role
Modified: pypy/dist/pypy/jit/hintannotator/model.py
==============================================================================
--- pypy/dist/pypy/jit/hintannotator/model.py (original)
+++ pypy/dist/pypy/jit/hintannotator/model.py Thu Dec 20 21:50:55 2007
@@ -730,7 +730,8 @@
return SomeLLAbstractConstant(RESULT, d,
eager_concrete = False, # probably
myorigin = myorigin)
- return variableoftype(RESULT, deepfrozen=args_hs[0].deepfrozen)
+ deepfrozen = ismethod and args_hs[0].deepfrozen # if self is deepfrozen, the result is it too
+ return variableoftype(RESULT, deepfrozen=deepfrozen)
def handle_highlevel_operation(bookkeeper, ll_func, *args_hs):
More information about the Pypy-commit
mailing list