Author: Richard Plangger <r...@pasra.at>
Branch: vecopt-merge
Changeset: r79038:13d3acac4d6a
Date: 2015-08-18 14:00 +0200
http://bitbucket.org/pypy/pypy/changeset/13d3acac4d6a/

Log:    removed last usage of STR_PARAMS

diff --git a/rpython/rlib/jit.py b/rpython/rlib/jit.py
--- a/rpython/rlib/jit.py
+++ b/rpython/rlib/jit.py
@@ -967,7 +967,9 @@
     def compute_result_annotation(self, s_driver, s_name, s_value):
         from rpython.annotator import model as annmodel
         assert s_name.is_constant()
-        if s_name.const in STR_PARAMETERS:
+        if s_name.const == 'enable_opts':
+            assert annmodel.SomeString(can_be_None=True).contains(s_value)
+        elif s_name.const == 'vec_params':
             assert annmodel.SomeString(can_be_None=True).contains(s_value)
         else:
             assert (s_value == annmodel.s_None or
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to