[pypy-commit] pypy jit-ordereddict: Skip optimizing the standard string oopspec'ed operations if we try to
arigo
noreply at buildbot.pypy.org
Thu Dec 26 00:14:00 CET 2013
Author: Armin Rigo <arigo at tunes.org>
Branch: jit-ordereddict
Changeset: r68554:69dbe74ad96b
Date: 2013-12-26 00:09 +0100
http://bitbucket.org/pypy/pypy/changeset/69dbe74ad96b/
Log: Skip optimizing the standard string oopspec'ed operations if we try
to do them on bytearrays.
diff --git a/rpython/jit/codewriter/jtransform.py b/rpython/jit/codewriter/jtransform.py
--- a/rpython/jit/codewriter/jtransform.py
+++ b/rpython/jit/codewriter/jtransform.py
@@ -1732,6 +1732,8 @@
"stroruni.copy_string_to_raw": EffectInfo.OS_UNI_COPY_TO_RAW
}
CHR = lltype.UniChar
+ elif SoU.TO == rbytearray.BYTEARRAY:
+ raise NotSupported("bytearray operation")
else:
assert 0, "args[0].concretetype must be STR or UNICODE"
#
More information about the pypy-commit
mailing list