[pypy-svn] r62838 - in pypy/trunk/pypy: rpython rpython/lltypesystem translator
arigo at codespeak.net
arigo at codespeak.net
Wed Mar 11 11:01:32 CET 2009
Author: arigo
Date: Wed Mar 11 11:01:32 2009
New Revision: 62838
Modified:
pypy/trunk/pypy/rpython/llinterp.py
pypy/trunk/pypy/rpython/lltypesystem/llmemory.py
pypy/trunk/pypy/translator/exceptiontransform.py
Log:
Properly revert fijal's hack. Fijal, please try to use "svn merge" or
some other tool to revert, instead of using techniques that leave behind
a few minor changes.
Modified: pypy/trunk/pypy/rpython/llinterp.py
==============================================================================
--- pypy/trunk/pypy/rpython/llinterp.py (original)
+++ pypy/trunk/pypy/rpython/llinterp.py Wed Mar 11 11:01:32 2009
@@ -1181,9 +1181,6 @@
def op_oohash(self, s):
return ootype.oohash(s)
- def op_raise_exc_value(self, etype, evalue):
- raise LLException(etype, evalue)
-
class Tracer(object):
Counter = 0
file = None
Modified: pypy/trunk/pypy/rpython/lltypesystem/llmemory.py
==============================================================================
--- pypy/trunk/pypy/rpython/lltypesystem/llmemory.py (original)
+++ pypy/trunk/pypy/rpython/lltypesystem/llmemory.py Wed Mar 11 11:01:32 2009
@@ -411,10 +411,8 @@
def __nonzero__(self):
return self.ptr is not None
- def __hash__(self):
- if not self._fixup().ptr:
- return 0
- return hash(self._fixup().ptr._obj)
+ #def __hash__(self):
+ # raise TypeError("don't put addresses in a prebuilt dictionary")
def __eq__(self, other):
if isinstance(other, fakeaddress):
Modified: pypy/trunk/pypy/translator/exceptiontransform.py
==============================================================================
--- pypy/trunk/pypy/translator/exceptiontransform.py (original)
+++ pypy/trunk/pypy/translator/exceptiontransform.py Wed Mar 11 11:01:32 2009
@@ -170,7 +170,7 @@
n_gen_exc_checks = 0
for block in list(graph.iterblocks()):
self.replace_stack_unwind(block)
- self.replace_fetch_restore_operations(graph, block)
+ self.replace_fetch_restore_operations(block)
need_exc_matching, gen_exc_checks = self.transform_block(graph, block)
n_need_exc_matching_blocks += need_exc_matching
n_gen_exc_checks += gen_exc_checks
@@ -189,7 +189,7 @@
block.operations[i].opname = "direct_call"
block.operations[i].args = [self.rpyexc_raise_runtime_error_ptr]
- def replace_fetch_restore_operations(self, graph, block):
+ def replace_fetch_restore_operations(self, block):
# the gctransformer will create these operations. It looks as if the
# order of transformations is important - but the gctransformer will
# put them in a new graph, so all transformations will run again.
More information about the Pypy-commit
mailing list