[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-svn
Subject:    [pypy-commit] pypy stmgc-c7: next improvement
From:       arigo <noreply () buildbot ! pypy ! org>
Date:       2015-01-31 20:06:30
Message-ID: 20150131200630.6C0B61C028E () cobra ! cs ! uni-duesseldorf ! de
[Download RAW message or body]

Author: Armin Rigo <arigo@tunes.org>
Branch: stmgc-c7
Changeset: r75615:e0d26d687dd1
Date: 2015-01-31 21:06 +0100
http://bitbucket.org/pypy/pypy/changeset/e0d26d687dd1/

Log:	next improvement

diff --git a/rpython/annotator/bookkeeper.py b/rpython/annotator/bookkeeper.py
--- a/rpython/annotator/bookkeeper.py
+++ b/rpython/annotator/bookkeeper.py
@@ -131,11 +131,12 @@
             for call_op in call_sites():
                 self.consider_call_site(call_op)
 
-            for pbc, args_s in self.emulated_pbc_calls.itervalues():
-                args = simple_args(args_s)
-                self.consider_call_site_for_pbc(pbc, args,
-                                                s_ImpossibleValue, None)
-            self.emulated_pbc_calls = {}
+            if self.emulated_pbc_calls:
+                for pbc, args_s in self.emulated_pbc_calls.itervalues():
+                    args = simple_args(args_s)
+                    self.consider_call_site_for_pbc(pbc, args,
+                                                    s_ImpossibleValue, None)
+                self.emulated_pbc_calls.clear()
         finally:
             self.leave()
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic