[pypy-commit] pypy default: Missing import.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46036:692c06726aea Date: 2011-07-28 10:56 +0200 http://bitbucket.org/pypy/pypy/changeset/692c06726aea/ Log:Missing import. diff --git a/pypy/rpython/memory/gctransform/shadowstack.py b/pypy/rpython/memory/gctransform/shadowstack.py --- a/pypy/rpython/

[pypy-commit] pypy default: 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

2011-07-28 Thread antocuni
Author: Antonio Cuni Branch: Changeset: r46037:ddc4544bf357 Date: 2011-07-28 14:03 +0200 http://bitbucket.org/pypy/pypy/changeset/ddc4544bf357/ Log:we cannot immediately free the temp buffers that we allocate to convert strings, because the caller needs to have a chance to play

[pypy-commit] pypy default: 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

2011-07-28 Thread antocuni
Author: Antonio Cuni Branch: Changeset: r46038:f65745081f3b Date: 2011-07-28 15:14 +0200 http://bitbucket.org/pypy/pypy/changeset/f65745081f3b/ Log:free the temp buffers created by the _ffi function. Also, thanks to the new automatic string conversion in _ffi, passing a python string

[pypy-commit] pypy default: add one passing assert

2011-07-28 Thread antocuni
Author: Antonio Cuni Branch: Changeset: r46039:764ca7f1f901 Date: 2011-07-28 15:23 +0200 http://bitbucket.org/pypy/pypy/changeset/764ca7f1f901/ Log:add one passing assert diff --git a/pypy/module/_ffi/test/test__ffi.py b/pypy/module/_ffi/test/test__ffi.py --- a/pypy/module/_ffi/test/test__

[pypy-commit] pypy default: if the automatic conversion from str to c_wchar_p does not work, fallback to the slow path

2011-07-28 Thread antocuni
Author: Antonio Cuni Branch: Changeset: r46040:10359ec64a51 Date: 2011-07-28 15:24 +0200 http://bitbucket.org/pypy/pypy/changeset/10359ec64a51/ Log:if the automatic conversion from str to c_wchar_p does not work, fallback to the slow path diff --git a/lib_pypy/_ctypes/function.py b/

[pypy-commit] pypy default: 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

2011-07-28 Thread antocuni
Author: Antonio Cuni Branch: Changeset: r46041:9d98198682de Date: 2011-07-28 16:12 +0200 http://bitbucket.org/pypy/pypy/changeset/9d98198682de/ Log: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 diff --git a/lib_py

[pypy-commit] extradoc extradoc: talk as given

2011-07-28 Thread cfbolz
Author: Carl Friedrich Bolz Branch: extradoc Changeset: r3842:e50a1115d4af Date: 2011-07-27 18:15 +0100 http://bitbucket.org/pypy/extradoc/changeset/e50a1115d4af/ Log:talk as given diff --git a/talk/icooolps2011/talk/figures/map.svg b/talk/icooolps2011/talk/figures/map.svg --- a/talk/icoool

[pypy-commit] pypy default: Test and comment for elidable functions that can raise.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46042:37f74b79d119 Date: 2011-07-28 10:05 +0200 http://bitbucket.org/pypy/pypy/changeset/37f74b79d119/ Log:Test and comment for elidable functions that can raise. diff --git a/pypy/jit/metainterp/test/test_ajit.py b/pypy/jit/metainterp/test/test_ajit.

[pypy-commit] pypy default: The recent rewrite of crash_in_jit() lost the original traceback

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46043:e02ef353c3c8 Date: 2011-07-28 10:22 +0200 http://bitbucket.org/pypy/pypy/changeset/e02ef353c3c8/ Log:The recent rewrite of crash_in_jit() lost the original traceback in non-translated versions. diff --git a/pypy/jit/metainterp/warmspot.py

[pypy-commit] pypy default: Remove a guard_no_exception() at the start of the loop too.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46044:2cfe0f51122b Date: 2011-07-28 11:14 +0200 http://bitbucket.org/pypy/pypy/changeset/2cfe0f51122b/ Log:Remove a guard_no_exception() at the start of the loop too. diff --git a/pypy/jit/metainterp/optimizeopt/__init__.py b/pypy/jit/metainterp/optim

[pypy-commit] pypy default: Add a test (it was already passing, thanks to optimizeopt).

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46045:7f452cc5f50d Date: 2011-07-28 11:28 +0200 http://bitbucket.org/pypy/pypy/changeset/7f452cc5f50d/ Log:Add a test (it was already passing, thanks to optimizeopt). diff --git a/pypy/jit/metainterp/test/test_string.py b/pypy/jit/metainterp/test/test

[pypy-commit] pypy default: Support elidable functions that can raise.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46046:7d31a6bafd88 Date: 2011-07-28 11:30 +0200 http://bitbucket.org/pypy/pypy/changeset/7d31a6bafd88/ Log:Support elidable functions that can raise. diff --git a/pypy/jit/codewriter/call.py b/pypy/jit/codewriter/call.py --- a/pypy/jit/codewriter/call.

[pypy-commit] pypy default: A reasonable fix: "ll_int_str() -> string" is pure, but if left in the trace,

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46047:7e2413d8482c Date: 2011-07-28 11:42 +0200 http://bitbucket.org/pypy/pypy/changeset/7e2413d8482c/ Log:A reasonable fix: "ll_int_str() -> string" is pure, but if left in the trace, we should check that it doesn't raise MemoryError. diff --g

[pypy-commit] pypy default: Add a number of @elidable, now that they can raise.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46048:a3001c18a307 Date: 2011-07-28 11:52 +0200 http://bitbucket.org/pypy/pypy/changeset/a3001c18a307/ Log:Add a number of @elidable, now that they can raise. diff --git a/pypy/jit/codewriter/support.py b/pypy/jit/codewriter/support.py --- a/pypy/jit/c

[pypy-commit] pypy default: Put @elidable on calls to identityhash() only.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46050:88f51d44dcd9 Date: 2011-07-28 11:58 +0200 http://bitbucket.org/pypy/pypy/changeset/88f51d44dcd9/ Log:Put @elidable on calls to identityhash() only. diff --git a/pypy/jit/codewriter/support.py b/pypy/jit/codewriter/support.py --- a/pypy/jit/codewr

[pypy-commit] pypy default: Backed out changeset a3001c18a307: oups, that was wrong.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46049:2bbb9f022bf7 Date: 2011-07-28 11:57 +0200 http://bitbucket.org/pypy/pypy/changeset/2bbb9f022bf7/ Log:Backed out changeset a3001c18a307: oups, that was wrong. @elidable turns the function call into a residual call. diff --git a/pypy/jit/co

[pypy-commit] pypy default: merge heads: support @elidable functions that raise

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46051:4f19b0b10c0f Date: 2011-07-28 17:58 +0200 http://bitbucket.org/pypy/pypy/changeset/4f19b0b10c0f/ Log:merge heads: support @elidable functions that raise diff --git a/pypy/jit/codewriter/call.py b/pypy/jit/codewriter/call.py --- a/pypy/jit/codewri

[pypy-commit] pypy default: use functools.wrap here, should maintain some more of the functions attributes this way.

2011-07-28 Thread alex_gaynor
Author: Alex Gaynor Branch: Changeset: r46052:da9f3c16b424 Date: 2011-07-28 09:05 -0700 http://bitbucket.org/pypy/pypy/changeset/da9f3c16b424/ Log:use functools.wrap here, should maintain some more of the functions attributes this way. diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.p

[pypy-commit] pypy default: merged upstream.

2011-07-28 Thread alex_gaynor
Author: Alex Gaynor Branch: Changeset: r46053:25e36db72459 Date: 2011-07-28 09:07 -0700 http://bitbucket.org/pypy/pypy/changeset/25e36db72459/ Log:merged upstream. diff --git a/pypy/jit/codewriter/call.py b/pypy/jit/codewriter/call.py --- a/pypy/jit/codewriter/call.py +++ b/pypy/jit/codewri

[pypy-commit] pypy default: Clarify.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r46054:86f2dedf6790 Date: 2011-07-28 18:17 +0200 http://bitbucket.org/pypy/pypy/changeset/86f2dedf6790/ Log:Clarify. diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.py --- a/pypy/rlib/jit.py +++ b/pypy/rlib/jit.py @@ -20,8 +20,8 @@ Most importantly

[pypy-commit] pypy default: Make this function do what was intended.

2011-07-28 Thread alex_gaynor
Author: Alex Gaynor Branch: Changeset: r46055:2d6634aa99eb Date: 2011-07-28 11:23 -0700 http://bitbucket.org/pypy/pypy/changeset/2d6634aa99eb/ Log:Make this function do what was intended. diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.py --- a/pypy/rlib/jit.py +++ b/pypy/rlib/jit.py @@ -95,8

[pypy-commit] pypy default: Rollback the use of functools here, I want to be sure I didn't break stuff.

2011-07-28 Thread alex_gaynor
Author: Alex Gaynor Branch: Changeset: r46056:129b4f6d202e Date: 2011-07-28 11:32 -0700 http://bitbucket.org/pypy/pypy/changeset/129b4f6d202e/ Log:Rollback the use of functools here, I want to be sure I didn't break stuff. diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.py --- a/pypy/

[pypy-commit] pypy jit-singlefloat: A branch in which to support singlefloats in the JIT.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46057:3f9d39062ded Date: 2011-07-28 21:46 +0200 http://bitbucket.org/pypy/pypy/changeset/3f9d39062ded/ Log:A branch in which to support singlefloats in the JIT. ___ pypy-commit mailing list pyp

[pypy-commit] pypy jit-singlefloat: Add byte-by-byte conversion between ints and singlefloats.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46058:619cf7b82467 Date: 2011-07-28 15:42 +0200 http://bitbucket.org/pypy/pypy/changeset/619cf7b82467/ Log:Add byte-by-byte conversion between ints and singlefloats. diff --git a/pypy/rlib/longlong2float.py b/pypy/rlib/longlong2float.py

[pypy-commit] pypy jit-singlefloat: Front-end support for singlefloats.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46059:af30af85a7b1 Date: 2011-07-28 15:52 +0200 http://bitbucket.org/pypy/pypy/changeset/af30af85a7b1/ Log:Front-end support for singlefloats. diff --git a/pypy/jit/backend/llgraph/runner.py b/pypy/jit/backend/llgraph/runner.py --- a/py

[pypy-commit] pypy jit-singlefloat: Support for singlefloats in the x86 backend.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46060:8f707b9d14a7 Date: 2011-07-28 16:12 +0200 http://bitbucket.org/pypy/pypy/changeset/8f707b9d14a7/ Log:Support for singlefloats in the x86 backend. diff --git a/pypy/jit/backend/x86/assembler.py b/pypy/jit/backend/x86/assembler.py -

[pypy-commit] pypy jit-singlefloat: Progress.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46061:6d025e690834 Date: 2011-07-28 16:49 +0200 http://bitbucket.org/pypy/pypy/changeset/6d025e690834/ Log:Progress. diff --git a/pypy/jit/backend/llsupport/descr.py b/pypy/jit/backend/llsupport/descr.py --- a/pypy/jit/backend/llsupport

[pypy-commit] pypy jit-singlefloat: Support no-thread environments.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46062:78ad8b3ddc9e Date: 2011-07-28 17:43 +0200 http://bitbucket.org/pypy/pypy/changeset/78ad8b3ddc9e/ Log:Support no-thread environments. diff --git a/pypy/rpython/lltypesystem/ll2ctypes.py b/pypy/rpython/lltypesystem/ll2ctypes.py ---

[pypy-commit] pypy jit-singlefloat: In-progress: calls returning SingleFloats.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46063:5c768cc0e4bd Date: 2011-07-28 18:05 +0200 http://bitbucket.org/pypy/pypy/changeset/5c768cc0e4bd/ Log:In-progress: calls returning SingleFloats. diff --git a/pypy/jit/backend/llsupport/llmodel.py b/pypy/jit/backend/llsupport/llmode

[pypy-commit] pypy jit-singlefloat: In-progress for 64-bit. It's actually a mess because some arguments

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46064:cddbdea9da49 Date: 2011-07-28 18:44 +0200 http://bitbucket.org/pypy/pypy/changeset/cddbdea9da49/ Log:In-progress for 64-bit. It's actually a mess because some arguments may also have to be passed in the 32 lower bits of xmm

[pypy-commit] pypy jit-singlefloat: Fix the calls with singlefloat arguments on 64-bit.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46065:72d6f3a2e9a9 Date: 2011-07-28 21:23 +0200 http://bitbucket.org/pypy/pypy/changeset/72d6f3a2e9a9/ Log:Fix the calls with singlefloat arguments on 64-bit. diff --git a/pypy/jit/backend/x86/assembler.py b/pypy/jit/backend/x86/assembl

[pypy-commit] pypy streamio-bufinput: Revamped BufferingInputStream to be faster.

2011-07-28 Thread justinpeel
Author: Justin Peel Branch: streamio-bufinput Changeset: r46066:4d206523194f Date: 2011-07-28 13:55 -0600 http://bitbucket.org/pypy/pypy/changeset/4d206523194f/ Log:Revamped BufferingInputStream to be faster. diff --git a/pypy/rlib/streamio.py b/pypy/rlib/streamio.py --- a/pypy/rlib/streamio

[pypy-commit] pypy jit-singlefloat: Fix tests.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46070:4936b4ec981c Date: 2011-07-28 23:44 +0200 http://bitbucket.org/pypy/pypy/changeset/4936b4ec981c/ Log:Fix tests. diff --git a/pypy/jit/backend/llgraph/llimpl.py b/pypy/jit/backend/llgraph/llimpl.py --- a/pypy/jit/backend/llgraph/ll

[pypy-commit] pypy jit-singlefloat: Oups, fix test.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46071:e131bb0832ae Date: 2011-07-28 23:46 +0200 http://bitbucket.org/pypy/pypy/changeset/e131bb0832ae/ Log:Oups, fix test. diff --git a/pypy/jit/backend/llsupport/test/test_descr.py b/pypy/jit/backend/llsupport/test/test_descr.py --- a/

[pypy-commit] pypy jit-singlefloat: Fix test.

2011-07-28 Thread arigo
Author: Armin Rigo Branch: jit-singlefloat Changeset: r46072:08faa59c30c9 Date: 2011-07-28 23:48 +0200 http://bitbucket.org/pypy/pypy/changeset/08faa59c30c9/ Log:Fix test. diff --git a/pypy/jit/metainterp/test/test_warmspot.py b/pypy/jit/metainterp/test/test_warmspot.py --- a/pypy/jit/metai

[pypy-commit] pypy default: Preallocate the result for str.__repr__ more appropriately, use len(self) + 2, which will be correct in the common case of "no special characgters".

2011-07-28 Thread alex_gaynor
Author: Alex Gaynor Branch: Changeset: r46073:7982de091965 Date: 2011-07-28 15:39 -0700 http://bitbucket.org/pypy/pypy/changeset/7982de091965/ Log:Preallocate the result for str.__repr__ more appropriately, use len(self) + 2, which will be correct in the common case of "no sp

[pypy-commit] [OPEN] Pull request #5 for pypy: arcsin, arccos and arctan for numpy

2011-07-28 Thread Bitbucket
A new pull request has been opened by cgerum. cgerum/pypy has changes to be pulled into pypy/pypy. https://bitbucket.org/pypy/pypy/pull-request/5/arcsin-arccos-and-arctan-for-numpy Title: arcsin, arccos and arctan for numpy This pull request implements arcsin, arccos and arctan for numpy. Chan

[pypy-commit] [ACCEPTED] Pull request #5 for pypy: arcsin, arccos and arctan for numpy

2011-07-28 Thread Bitbucket
Pull request #5 has been accepted by Alex Gaynor. Changes in cgerum/pypy have been pulled into pypy/pypy. https://bitbucket.org/pypy/pypy/pull-request/5/arcsin-arccos-and-arctan-for-numpy -- This is an issue notification from bitbucket.org. You are receiving this either because you are the partic

[pypy-commit] pypy numpy-ufunc-trig: numpy: Added ufuncs for arcsin, arccos, arctan

2011-07-28 Thread cgerum
Author: Christoph Gerum Branch: numpy-ufunc-trig Changeset: r46074:cf2905d0 Date: 2011-07-29 00:28 +0200 http://bitbucket.org/pypy/pypy/changeset/cf2905d0/ Log:numpy: Added ufuncs for arcsin, arccos, arctan diff --git a/pypy/module/micronumpy/__init__.py b/pypy/module/micronumpy/__i

[pypy-commit] pypy numpy-ufunc-trig: numpy: Added inf and -inf to test of arctan ufunc

2011-07-28 Thread cgerum
Author: Christoph Gerum Branch: numpy-ufunc-trig Changeset: r46075:c823c8aa0b57 Date: 2011-07-29 01:00 +0200 http://bitbucket.org/pypy/pypy/changeset/c823c8aa0b57/ Log:numpy: Added inf and -inf to test of arctan ufunc diff --git a/pypy/module/micronumpy/test/test_ufuncs.py b/pypy/module/mic

[pypy-commit] pypy default: fix handling of inf in jvm's frexp

2011-07-28 Thread pjenvey
Author: Philip Jenvey Branch: Changeset: r46078:4d824e4fcf57 Date: 2011-07-28 18:32 -0700 http://bitbucket.org/pypy/pypy/changeset/4d824e4fcf57/ Log:fix handling of inf in jvm's frexp diff --git a/pypy/translator/jvm/src/pypy/PyPy.java b/pypy/translator/jvm/src/pypy/PyPy.java --- a/pypy/tr

[pypy-commit] pypy unroll-if-alt: A branch to implement a generic unroll-if decorator, as well as a jit.isconstant predicate.

2011-07-28 Thread alex_gaynor
Author: Alex Gaynor Branch: unroll-if-alt Changeset: r46079:6159c9aad995 Date: 2011-07-28 19:44 -0700 http://bitbucket.org/pypy/pypy/changeset/6159c9aad995/ Log:A branch to implement a generic unroll-if decorator, as well as a jit.isconstant predicate. ___

[pypy-commit] pypy unroll-if-alt: Implement this mostly. unroll_if does simple python code gen, and isconstant has an oopspec so it's recognized by jtransform, which creates a spaceop for it. Pretty

2011-07-28 Thread alex_gaynor
Author: Alex Gaynor Branch: unroll-if-alt Changeset: r46080:184d7477fc30 Date: 2011-07-28 20:22 -0700 http://bitbucket.org/pypy/pypy/changeset/184d7477fc30/ Log:Implement this mostly. unroll_if does simple python code gen, and isconstant has an oopspec so it's recognized by jtransform

[pypy-commit] pypy default: numpy: fix slices of virtual arrays

2011-07-28 Thread justinpeel
Author: Justin Peel Branch: Changeset: r46081:8077531fdd4e Date: 2011-07-28 21:53 -0600 http://bitbucket.org/pypy/pypy/changeset/8077531fdd4e/ Log:numpy: fix slices of virtual arrays diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py --- a/py

[pypy-commit] pypy unroll-if-alt: Use a closure, makes both gutworth and I happy. Also start messing with pypyjit.

2011-07-28 Thread alex_gaynor
Author: Alex Gaynor Branch: unroll-if-alt Changeset: r46082:db578c6cbc4b Date: 2011-07-28 21:29 -0700 http://bitbucket.org/pypy/pypy/changeset/db578c6cbc4b/ Log:Use a closure, makes both gutworth and I happy. Also start messing with pypyjit. diff --git a/pypy/jit/tl/pypyjit.py b/pypy