[pypy-commit] pypy stmgc-c7: Fix
arigo
noreply at buildbot.pypy.org
Mon May 12 21:57:27 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
Branch: stmgc-c7
Changeset: r71475:f9b64722c5dc
Date: 2014-05-12 20:08 +0200
http://bitbucket.org/pypy/pypy/changeset/f9b64722c5dc/
Log: Fix
diff --git a/rpython/translator/stm/readbarrier.py b/rpython/translator/stm/readbarrier.py
--- a/rpython/translator/stm/readbarrier.py
+++ b/rpython/translator/stm/readbarrier.py
@@ -10,15 +10,6 @@
def is_gc_ptr(T):
return isinstance(T, lltype.Ptr) and T.TO._gckind == 'gc'
-def unwraplist(list_v):
- for v in list_v:
- if isinstance(v, Constant):
- yield v.value
- elif isinstance(v, Variable):
- yield None # unknown
- else:
- raise AssertionError(v)
-
def insert_stm_read_barrier(transformer, graph):
# We need to put enough 'stm_read' in the graph so that any
diff --git a/rpython/translator/stm/support.py b/rpython/translator/stm/support.py
--- a/rpython/translator/stm/support.py
+++ b/rpython/translator/stm/support.py
@@ -17,3 +17,12 @@
if op.opname == 'raw_store':
return False
raise AssertionError(op)
+
+def unwraplist(list_v):
+ for v in list_v:
+ if isinstance(v, Constant):
+ yield v.value
+ elif isinstance(v, Variable):
+ yield None # unknown
+ else:
+ raise AssertionError(v)
More information about the pypy-commit
mailing list