[pypy-commit] pypy pypy-jitdriver-greenkeys: slightly simplify for the jit, for the common non-tracing case

cfbolz pypy.commits at gmail.com
Tue Feb 11 08:13:31 EST 2020


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: pypy-jitdriver-greenkeys
Changeset: r98694:cf5ffe13453c
Date: 2020-02-11 14:08 +0100
http://bitbucket.org/pypy/pypy/changeset/cf5ffe13453c/

Log:	slightly simplify for the jit, for the common non-tracing case

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -147,10 +147,12 @@
         while True:
             self.last_instr = intmask(next_instr)
             if jit.we_are_jitted():
-                ec.bytecode_only_trace(self)
+                if self.debugdata:
+                    ec.bytecode_only_trace(self)
+                    next_instr = r_uint(self.last_instr)
             else:
                 ec.bytecode_trace(self)
-            next_instr = r_uint(self.last_instr)
+                next_instr = r_uint(self.last_instr)
             opcode = ord(co_code[next_instr])
             next_instr += 1
 


More information about the pypy-commit mailing list