[pypy-commit] pypy framestate: kill BytecodeGraph.pendingblocks
rlamy
noreply at buildbot.pypy.org
Mon Nov 24 17:29:46 CET 2014
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: framestate
Changeset: r74677:14bbfa87a0eb
Date: 2014-05-11 15:18 +0100
http://bitbucket.org/pypy/pypy/changeset/14bbfa87a0eb/
Log: kill BytecodeGraph.pendingblocks
diff --git a/rpython/flowspace/bytecode.py b/rpython/flowspace/bytecode.py
--- a/rpython/flowspace/bytecode.py
+++ b/rpython/flowspace/bytecode.py
@@ -67,15 +67,14 @@
for i, j in zip([0] + cuts, cuts + [len(self.co_code)])]
graph = self.graph = BytecodeGraph(pendingblocks[0])
- graph.pendingblocks = pendingblocks
for block in pendingblocks:
for i, op in enumerate(block.operations):
graph.pos_index[op.offset] = block, i
graph.next_pos = dict([(offsets[i], offsets[i+1])
for i in range(len(offsets) - 1)])
graph.next_pos[offsets[-1]] = len(self.co_code)
- while graph.pendingblocks:
- block = graph.next_block()
+ while pendingblocks:
+ block = pendingblocks.pop()
for i, op in enumerate(block.operations):
op.bc_flow(block, graph)
@@ -183,10 +182,6 @@
self.entry = EntryBlock()
self.entry.set_exits([startblock])
self.pos_index = {}
- self.pendingblocks = [startblock]
-
- def next_block(self):
- return self.pendingblocks.pop()
class BytecodeBlock(object):
More information about the pypy-commit
mailing list