[pypy-svn] pypy jit-lsprofile: make jit-friendlier

cfbolz commits-noreply at bitbucket.org
Tue Jan 4 01:13:07 CET 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: jit-lsprofile
Changeset: r40361:d0ebd089a167
Date: 2011-01-03 23:06 +0100
http://bitbucket.org/pypy/pypy/changeset/d0ebd089a167/

Log:	make jit-friendlier

diff --git a/pypy/interpreter/executioncontext.py b/pypy/interpreter/executioncontext.py
--- a/pypy/interpreter/executioncontext.py
+++ b/pypy/interpreter/executioncontext.py
@@ -287,8 +287,11 @@
 
         # Profile cases
         if self.profilefunc is not None:
-            if event not in ['leaveframe', 'call', 'c_call',
-                             'c_return', 'c_exception']:
+            if not (event == 'leaveframe' or
+                    event == 'call' or
+                    event == 'c_call' or
+                    event == 'c_return' or
+                    event == 'c_exception'):
                 return
 
             last_exception = frame.last_exception


More information about the Pypy-commit mailing list