Commits

Author Commit Message Labels Comments Date
Armin Rigo
Clarify.
Alex Gaynor
merged upstream.
Alex Gaynor
use functools.wrap here, should maintain some more of the functions attributes this way.
Armin Rigo
merge heads: support @elidable functions that raise
Armin Rigo
Put @elidable on calls to identityhash() only.
Armin Rigo
Backed out changeset a3001c18a307: oups, that was wrong. @elidable turns the function call into a residual call.
Armin Rigo
Add a number of @elidable, now that they can raise.
Armin Rigo
A reasonable fix: "ll_int_str() -> string" is pure, but if left in the trace, we should check that it doesn't raise MemoryError.
Armin Rigo
Support elidable functions that can raise.
Armin Rigo
Add a test (it was already passing, thanks to optimizeopt).
Armin Rigo
Remove a guard_no_exception() at the start of the loop too.
Armin Rigo
The recent rewrite of crash_in_jit() lost the original traceback in non-translated versions.
Armin Rigo
Test and comment for elidable functions that can raise.
Antonio Cuni
don't raise a warning if the restype is not set, and add a test to check that we hit the fastpath even in that case
Antonio Cuni
if the automatic conversion from str to c_wchar_p does not work, fallback to the slow path
Antonio Cuni
add one passing assert
Antonio Cuni
free the temp buffers created by the _ffi function. Also, thanks to the new automatic string conversion in _ffi, passing a python string is now supported by the fast path
Antonio Cuni
we cannot immediately free the temp buffers that we allocate to convert strings, because the caller needs to have a chance to play with them in case they have been returned; instead, the temp buffers are owned by the function itself, and needs to be explicitly freed
Armin Rigo
Missing import.
Alex Gaynor
Move the memcpy function to rffi.py.
Alex Gaynor
Use the new context manager allocators, much nicer. Also update a comment.
Alex Gaynor
merged upstream
Alex Gaynor
Introduce StringBuilder.append_charpsize, which takes a char* and a size and adds that to the builder, then use this in a few plcaes.
Justin Peel
Small speed-up for stream output buffers
Alex Gaynor
rename this function so it doesn't look like something we copied out of the CPython C-API
Antonio Cuni
rpython fix
Antonio Cuni
merge default
Antonio Cuni
also support automatic conversion of unicode to unichar_p
Antonio Cuni
special case the type "pointer to char", and allow automatic conversion of strings to it
Armin Rigo
Merge 0cdaf4c98369, moving regalloc.py to a general tool in pypy/tool/algo/.
  1. Prev
  2. Next