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':
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to