Author: Armin Rigo <[email protected]>
Branch: stm-thread-2
Changeset: r57317:aba73006fe80
Date: 2012-09-12 22:20 +0200
http://bitbucket.org/pypy/pypy/changeset/aba73006fe80/
Log: Call it the "category" consistently.
diff --git a/pypy/translator/stm/funcgen.py b/pypy/translator/stm/funcgen.py
--- a/pypy/translator/stm/funcgen.py
+++ b/pypy/translator/stm/funcgen.py
@@ -15,11 +15,11 @@
return 'stm_nogc_stop_transaction();'
def stm_barrier(funcgen, op):
- level = op.args[0].value
- assert type(level) is str
+ category_change = op.args[0].value
+ assert type(category_change) is str and len(category_change) == 3 # "x2y"
arg = funcgen.expr(op.args[1])
result = funcgen.expr(op.result)
- return '%s = STM_BARRIER_%s(%s);' % (result, level, arg)
+ return '%s = STM_BARRIER_%s(%s);' % (result, category_change, arg)
def stm_ptr_eq(funcgen, op):
arg0 = funcgen.expr(op.args[0])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit