[pypy-commit] pypy default: Trying out with a promote_string() here...
arigo
noreply at buildbot.pypy.org
Wed Apr 30 22:57:37 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r71106:fc261cbeb029
Date: 2014-04-30 22:56 +0200
http://bitbucket.org/pypy/pypy/changeset/fc261cbeb029/
Log: Trying out with a promote_string() here...
diff --git a/pypy/module/_lsprof/interp_lsprof.py b/pypy/module/_lsprof/interp_lsprof.py
--- a/pypy/module/_lsprof/interp_lsprof.py
+++ b/pypy/module/_lsprof/interp_lsprof.py
@@ -343,6 +343,7 @@
def _enter_builtin_call(self, key):
self = jit.promote(self)
+ key = jit.promote_string(key)
entry = self._get_or_make_builtin_entry(key)
self.current_context = ProfilerContext(self, entry)
@@ -351,6 +352,7 @@
if context is None:
return
self = jit.promote(self)
+ key = jit.promote_string(key)
try:
entry = self._get_or_make_builtin_entry(key, False)
except KeyError:
More information about the pypy-commit
mailing list