[pypy-commit] pypy jit-leaner-frontend: add a missing helper
fijal
pypy.commits at gmail.com
Mon Mar 14 15:15:57 EDT 2016
Author: fijal
Branch: jit-leaner-frontend
Changeset: r83054:552f750cc26b
Date: 2016-03-14 21:15 +0200
http://bitbucket.org/pypy/pypy/changeset/552f750cc26b/
Log: add a missing helper
diff --git a/rpython/jit/metainterp/resoperation.py b/rpython/jit/metainterp/resoperation.py
--- a/rpython/jit/metainterp/resoperation.py
+++ b/rpython/jit/metainterp/resoperation.py
@@ -1294,6 +1294,19 @@
return rop.CALL_MAY_FORCE_N
@staticmethod
+ def call_release_gil_for_descr(descr):
+ tp = descr.get_normalized_result_type()
+ if tp == 'i':
+ return rop.CALL_RELEASE_GIL_I
+ # no such thing
+ #elif tp == 'r':
+ # return rop.CALL_RELEASE_GIL_R
+ elif tp == 'f':
+ return rop.CALL_RELEASE_GIL_F
+ assert tp == 'v'
+ return rop.CALL_RELEASE_GIL_N
+
+ @staticmethod
def call_assembler_for_descr(descr):
tp = descr.get_normalized_result_type()
if tp == 'i':
More information about the pypy-commit
mailing list