[pypy-svn] r65404 - pypy/branch/pyjitpl5-experiments/pypy/jit/backend/x86
fijal at codespeak.net
fijal at codespeak.net
Mon May 25 07:07:51 CEST 2009
Author: fijal
Date: Mon May 25 07:07:49 2009
New Revision: 65404
Modified:
pypy/branch/pyjitpl5-experiments/pypy/jit/backend/x86/assembler.py
Log:
for unclear reason this sometimes explodes when annotating
(saying that it cannot run compute_unique_id on None).
Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/backend/x86/assembler.py (original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/backend/x86/assembler.py Mon May 25 07:07:49 2009
@@ -188,7 +188,11 @@
if op.is_guard():
self.eventually_log_operations(None, op.suboperations, memo)
if operations[-1].opnum == rop.JUMP:
- jump_target = compute_unique_id(operations[-1].jump_target)
+ if operations[-1].jump_target is not None:
+ jump_target = compute_unique_id(operations[-1].jump_target)
+ else:
+ # XXX hack for the annotator
+ jump_target = 13
os.write(self._log_fd, 'JUMPTO:%s\n' % jump_target)
if inputargs is None:
os.write(self._log_fd, "END\n")
More information about the Pypy-commit
mailing list