aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* add ascii fast paths to the tolower/toupper functions of the unicode dbs tooCarl Friedrich Bolz-Tereick2021-03-0210-570/+162
| | | | | (the part of the diff around special casing is due to c6650aed42e0 not regenerating *all* unicodedb versions, only unicodedb_5_2_0)
* Implement vmprof support for aarch64fijal2021-03-017-11/+76
|\
| * hopefully add vmprof support to pypy on aarch64Maciej Fijalkowski2021-03-014-12/+36
| |
| * use the real way to do itfijal2021-03-011-1/+1
| |
| * seems sometimes we have mc sometimes we dontfijal2021-03-011-5/+5
| |
| * an attempt to get vmprof going on aarch64fijal2021-03-011-0/+36
| |
| * actually enable vmprof on aarch64Maciej Fijalkowski2021-02-231-2/+4
| |
| * Start a new branch to get support for vmprof on aarch64Maciej Fijalkowski2021-02-232-2/+5
| |
* | remove pdbCarl Friedrich Bolz-Tereick2021-02-261-2/+0
| |
* | maxsplit -> maxcount for replace functionsCarl Friedrich Bolz-Tereick2021-02-261-29/+29
| |
* | remove code duplication with rstr by having the real implementation of searchCarl Friedrich Bolz-Tereick2021-02-262-110/+19
| | | | | | | | only live in rlib/rstring.py
* | follow what cpython is doing more systematically:Carl Friedrich Bolz-Tereick2021-02-262-29/+117
| | | | | | | | | | add similar cases, stop using StringBuilder, make a correctly sized llstr directly. needs a refactoring
* | add a random test for findingCarl Friedrich Bolz-Tereick2021-02-251-1/+21
| |
* | fix a tiny performance bug in our string search that we ported from cpython.Carl Friedrich Bolz-Tereick2021-02-253-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | the condition is a bit complicated: - we need a last character that is unique in the string - we are at a position in the string that matches the last character, but a previous char is a mismatch - the next char in the haystack is in the bloom filter if all this is met, we want to skip a whole needle length, not len(needle) - 1 this was pointed out by Tim Peters here: https://bugs.python.org/msg378301
* | second optimization: have a fast path in replace for single character stringsCarl Friedrich Bolz-Tereick2021-02-251-0/+30
| | | | | | | | here too
* | copy an optimization from CPython: when the search string of str.replace andCarl Friedrich Bolz-Tereick2021-02-252-1/+18
|/ | | | str.split doesn't occur in the string, don't create a copy but just reuse self.
* update the files for vmprof-pythonMaciej Fijalkowski2021-02-232-1/+5
|
* merge intbount-improvements-3Carl Friedrich Bolz-Tereick2021-02-216-84/+251
|\ | | | | | | | | refactor the intbounds analyzer a little bit, add some optimizations for int_neg and int_invert
| * Backed out changeset f1c2880a6b49Carl Friedrich Bolz-Tereick2021-02-153-141/+5
| | | | | | | | (some test fails weirdly, trying to see what caused it)
| * fix type-unsafe testCarl Friedrich Bolz-Tereick2020-04-281-5/+6
| |
| * better reasoning about upper bounds of or and xor, and about lower bounds of orCarl Friedrich Bolz-Tereick2020-04-293-5/+141
| |
| * make the JIT reason about int_invert and int_negCarl Friedrich Bolz-Tereick2020-04-265-0/+163
| |
| * kill unnecessary importsCarl Friedrich Bolz-Tereick2021-02-042-4/+2
| |
| * more of sameCarl Friedrich Bolz-Tereick2021-02-043-19/+37
| |
| * call more appropriate methods a bit everywhereCarl Friedrich Bolz-Tereick2021-02-043-58/+45
| |
* | workaround for a crash when running test_recursive_pickle in test_functools onCarl Friedrich Bolz-Tereick2021-02-191-2/+19
| | | | | | | | | | | | | | | | | | the py3.7 branch The test produces stack overflows intentionally, and if we blackhole at the wrong stack depth then an vmprof frame is not popped correctly for some reason. unfortunately I was not able to find the reason, but this mitigation at least prevents the vm from crashing.
* | randomly fix broken targetCarl Friedrich Bolz-Tereick2021-02-191-6/+7
| |
* | fix C warning, lltype.Signed is a long, not an intCarl Friedrich Bolz-Tereick2021-02-171-2/+2
|/
* use low-level interface where applicable, add at least a minimal hypothesis ↵Carl Friedrich Bolz-Tereick2021-02-042-13/+21
| | | | test for make_...
* remove unreachable code(?)Carl Friedrich Bolz-Tereick2021-02-031-4/+0
|
* add a comment about something that I have to re-learn every time I read this ↵Carl Friedrich Bolz-Tereick2020-04-291-0/+6
| | | | code
* remove copy-pasted commentCarl Friedrich Bolz-Tereick2020-04-291-2/+0
|
* express the make_le/ge/gt/lt methods in terms of their _const variantsCarl Friedrich Bolz-Tereick2020-04-291-8/+32
|
* merge defaultCarl Friedrich Bolz-Tereick2021-02-018-15/+75
|\
| * merge headsMatti Picus2021-02-018-15/+75
| |\
| | * remerge fixes from rpython-never-allocateMatti Picus2021-01-284-12/+12
| | |\
| | | * unify 'hints' and '_hints' to '_hints'Matti Picus2021-01-284-12/+12
| | | |
| | * | re-apply backed out changes from rpython-never-allocateMatti Picus2021-01-284-3/+63
| | | |
* | | | merge defaultCarl Friedrich Bolz-Tereick2021-01-312-0/+30
|\| | |
| * | | optimize chains of longlong2float(float2longlong(x)) and vice versaCarl Friedrich Bolz-Tereick2021-01-312-0/+30
| |/ /
| * | Backed out changes from rpython-never-allocate since it is not ready yetMatti Picus2021-01-224-63/+3
| | |
| * | Merge branch 'branch/rpython-never-allocate' into 'branch/default'Antonio Cuni2021-01-214-3/+63
| |\| | | | | | | | | | | | | | | | introduce a @never_allocate class decorator See merge request pypy/pypy!764
| | * improve the test to check that if we constant-fold the MyClass malloc(), ↵Antonio Cuni2020-10-021-6/+19
| | | | | | | | | | | | everything works
| | * introduce a @never_allocate class decorator, which ensure that a certain ↵Antonio Cuni2020-10-024-3/+50
| | | | | | | | | | | | RPython class is never actually instantiated at runtime. Useful to ensure that e.g. it's always constant-folded away
* | | merge defaultCarl Friedrich Bolz-Tereick2021-01-196-16/+33
|\| |
| * | fix a bug in the heapcache around nonstandard virtualizables (it doesn't occurCarl Friedrich Bolz-Tereick2021-01-183-11/+21
| | | | | | | | | | | | | | | | | | | | | | | | in pypy, but I had it in another jit recently): in some rare weird circumstances the nonstandard virtualizable can be a constant! also rename is_nonstandard_virtualizable to the more precise is_known_nonstandard_virtualizable
| * | add str2constcharp for testsMatti Picus2021-01-041-0/+7
| | |
| * | test, fix parsing "inf" and friends in PyOS_string_to_double (issue 3375)Matti Picus2021-01-031-2/+2
| | | | | | | | | | | | also fix "const char *" in dg_strtod
| * | happy new yearMatti Picus2021-01-011-3/+3
| | |
* | | store everything erasedCarl Friedrich Bolz-Tereick2020-12-291-0/+1
|/ /