Armin Rigo avatar Armin Rigo committed de5b100

Comment out this, as it doesn't work reliably.

Comments (0)

Files changed (1)

pypy/translator/stm/transform.py

             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:
                 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():
         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")
             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
             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
 ##        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):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.