[pypy-commit] pypy framestate: cleanup
rlamy
noreply at buildbot.pypy.org
Mon Nov 24 17:30:23 CET 2014
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: framestate
Changeset: r74708:9219b6d856ab
Date: 2014-11-24 03:54 +0000
http://bitbucket.org/pypy/pypy/changeset/9219b6d856ab/
Log: cleanup
diff --git a/rpython/flowspace/bytecode.py b/rpython/flowspace/bytecode.py
--- a/rpython/flowspace/bytecode.py
+++ b/rpython/flowspace/bytecode.py
@@ -194,19 +194,17 @@
self.needs_new_block = True
def build_flow(self, code):
- offsets = []
self.pending_blocks = {}
self.blocks = [SimpleBlock([])]
self.curr_block = self.blocks[0]
self.needs_new_block = False
self.graph = graph = BytecodeGraph(self.blocks[0])
for instr in self._iter_instr(code):
- offsets.append(instr.offset)
block = self.curr_block
graph.pos_index[instr.offset] = block, len(block.operations)
instr.bc_flow(self)
- graph._next_pos[offsets[-1]] = len(code.co_code)
+ graph._next_pos[instr.offset] = len(code.co_code)
for b in self.blocks:
for x in b._exits:
assert x in self.blocks
More information about the pypy-commit
mailing list