Author: Armin Rigo <[email protected]>
Branch: stm
Changeset: r51767:de5b100916b6
Date: 2012-01-25 21:36 +0100
http://bitbucket.org/pypy/pypy/changeset/de5b100916b6/
Log: Comment out this, as it doesn't work reliably.
diff --git a/pypy/translator/stm/transform.py b/pypy/translator/stm/transform.py
--- a/pypy/translator/stm/transform.py
+++ b/pypy/translator/stm/transform.py
@@ -44,7 +44,7 @@
return
newoperations = []
self.current_block = block
- self.access_directly = set()
+ #self.access_directly = set()
for i, op in enumerate(block.operations):
self.current_op_index = i
try:
@@ -66,7 +66,7 @@
assert res is None
block.operations = newoperations
self.current_block = None
- self.access_directly = None
+ #self.access_directly = None
def transform_graph(self, graph):
for block in graph.iterblocks():
@@ -118,14 +118,14 @@
elif STRUCT._immutable_field(op.args[1].value):
op1 = op
elif 'stm_access_directly' in STRUCT._hints:
- try:
- immfld = STRUCT._hints['immutable_fields']
- except KeyError:
- pass
- else:
- rank = immfld._fields.get(op.args[1].value, None)
- if rank is rclass.IR_MUTABLE_OWNED:
- self.access_directly.add(op.result)
+ #try:
+ # immfld = STRUCT._hints['immutable_fields']
+ #except KeyError:
+ # pass
+ #else:
+ # rank = immfld._fields.get(op.args[1].value, None)
+ # if rank is rclass.IR_MUTABLE_OWNED:
+ # self.access_directly.add(op.result)
op1 = op
elif STRUCT._gckind == 'raw':
turn_inevitable(newoperations, "getfield-raw")
@@ -154,8 +154,8 @@
op1 = op
elif ARRAY._immutable_field():
op1 = op
- elif op.args[0] in self.access_directly:
- op1 = op
+ #elif op.args[0] in self.access_directly:
+ # op1 = op
elif ARRAY._gckind == 'raw':
turn_inevitable(newoperations, "getarrayitem-raw")
op1 = op
@@ -169,8 +169,8 @@
op1 = op
elif ARRAY._immutable_field():
op1 = op
- elif op.args[0] in self.access_directly:
- op1 = op
+ #elif op.args[0] in self.access_directly:
+ # op1 = op
elif ARRAY._gckind == 'raw':
turn_inevitable(newoperations, "setarrayitem-raw")
op1 = op
@@ -235,12 +235,12 @@
## self.seen_gc_stack_bottom = True
newoperations.append(op)
- def stt_same_as(self, newoperations, op):
- if op.args[0] in self.access_directly:
- self.access_directly.add(op.result)
- newoperations.append(op)
-
- stt_cast_pointer = stt_same_as
+ #def stt_same_as(self, newoperations, op):
+ # if op.args[0] in self.access_directly:
+ # self.access_directly.add(op.result)
+ # newoperations.append(op)
+ #
+ #stt_cast_pointer = stt_same_as
def transform_graph(graph):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit