[pypy-commit] pypy jit-resizable-list: No-ops.

Armin Rigo noreply at buildbot.pypy.org
Fri Jun 3 12:22:46 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: jit-resizable-list
Changeset: r44658:abd1869631c9
Date: 2011-06-03 11:39 +0200
http://bitbucket.org/pypy/pypy/changeset/abd1869631c9/

Log:	No-ops.

diff --git a/pypy/jit/codewriter/effectinfo.py b/pypy/jit/codewriter/effectinfo.py
--- a/pypy/jit/codewriter/effectinfo.py
+++ b/pypy/jit/codewriter/effectinfo.py
@@ -74,9 +74,8 @@
     OS_LLONG_FROM_UINT          = 93
     #
     OS_MATH_SQRT                = 100
-
-    OS_LIST_RESIZE_GE           = 120
-    OS_LIST_RESIZE_LE           = 121
+    OS_LIST_RESIZE_GE           = 101
+    OS_LIST_RESIZE_LE           = 102
 
     def __new__(cls, readonly_descrs_fields,
                 write_descrs_fields, write_descrs_arrays,
diff --git a/pypy/jit/metainterp/optimizeopt/virtualize.py b/pypy/jit/metainterp/optimizeopt/virtualize.py
--- a/pypy/jit/metainterp/optimizeopt/virtualize.py
+++ b/pypy/jit/metainterp/optimizeopt/virtualize.py
@@ -501,7 +501,9 @@
 
         if list_value.is_virtual() and newsize_box:
             # XXX: EVIL HACKS BEGIN HERE
-            length_descr, items_descr = list_value._get_field_descr_list()
+            lst = list_value._get_field_descr_list()
+            assert len(lst) == 2
+            length_descr, items_descr = lst
             # XXX: EVIL HACKS END HERE
             arrayitems = list_value.getfield(items_descr, None)
             if arrayitems and arrayitems.is_virtual():
@@ -511,7 +513,8 @@
                 list_value.setfield(length_descr, newsize_value)
                 return True
         return False
-    _optimize_CALL_LIST_RESIZE_LE = _optimize_CALL_LIST_RESIZE_GE = _optimize_CALL_LIST_RESIZE
+    _optimize_CALL_LIST_RESIZE_LE = _optimize_CALL_LIST_RESIZE
+    _optimize_CALL_LIST_RESIZE_GE = _optimize_CALL_LIST_RESIZE
 
     def propagate_forward(self, op):
         opnum = op.getopnum()


More information about the pypy-commit mailing list