[pypy-commit] pypy default: more variables
fijal
noreply at buildbot.pypy.org
Fri Sep 16 18:22:01 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r47297:1f8c15ea0098
Date: 2011-09-14 10:34 +0200
http://bitbucket.org/pypy/pypy/changeset/1f8c15ea0098/
Log: more variables
diff --git a/pypy/objspace/std/stringobject.py b/pypy/objspace/std/stringobject.py
--- a/pypy/objspace/std/stringobject.py
+++ b/pypy/objspace/std/stringobject.py
@@ -362,7 +362,8 @@
from pypy.rlib.jit import JitDriver
one = JitDriver(greens = [], reds = ['size', 'reslen', 'self', 'list_w'])
-two = JitDriver(greens = [], reds = ['i', 'list_w', 'sb', 'self'])
+two = JitDriver(greens = [], reds = ['i', 'list_w', 'size', 'sb', 'self',
+ 'w_self'])
def _str_join_compute_reslen(space, self, list_w, size):
reslen = len(self) * (size - 1)
@@ -393,7 +394,8 @@
sb = StringBuilder(reslen)
for i in range(size):
- two.jit_merge_point(i=i, sb=sb, list_w=list_w, self=self)
+ two.jit_merge_point(size=size, i=i, sb=sb, list_w=list_w, self=self,
+ w_self=w_self)
if self and i != 0:
sb.append(self)
sb.append(space.str_w(list_w[i]))
More information about the pypy-commit
mailing list