Author: Armin Rigo <ar...@tunes.org>
Branch: py3.6
Changeset: r96047:1a39bb272421
Date: 2019-02-18 10:41 +0100
http://bitbucket.org/pypy/pypy/changeset/1a39bb272421/

Log:    We no longer get the dummy getfield_gc_r

diff --git a/pypy/module/pypyjit/test_pypy_c/test_instance.py 
b/pypy/module/pypyjit/test_pypy_c/test_instance.py
--- a/pypy/module/pypyjit/test_pypy_c/test_instance.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_instance.py
@@ -105,10 +105,7 @@
         # -------------------------------
         entry_bridge, = log.loops_by_filename(self.filepath, 
is_entry_bridge=True)
         ops = entry_bridge.ops_by_id('mutate', opcode='LOAD_ATTR')
-        # in PyPy3 we get a dummy getfield_gc_r (*) for
-        # W_UnicodeObject._utf8, which is usually removed by the backend
         assert log.opnames(ops) == ['guard_value',
-                                    'getfield_gc_r',  # <= (*)
                                     'guard_not_invalidated',
                                     'getfield_gc_i']
         # the STORE_ATTR is folded away
@@ -157,10 +154,7 @@
         # -------------------------------
         entry_bridge, = log.loops_by_filename(self.filepath, 
is_entry_bridge=True)
         ops = entry_bridge.ops_by_id('mutate', opcode='LOAD_ATTR')
-        # in PyPy3 we get a dummy getfield_gc_r (*) for
-        # W_UnicodeObject._utf8, which is usually removed by the backend
         assert log.opnames(ops) == ['guard_value',
-                                    'getfield_gc_r',   # <= (*)
                                     'guard_not_invalidated',
                                     'getfield_gc_r', 'guard_nonnull_class',
                                     'getfield_gc_r', 'guard_value', # type 
check on the attribute
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to