[pypy-commit] pypy ffistruct: fix the _ffi module to use the new interface exposed by libffi

2011-09-09 Thread antocuni
Author: Antonio Cuni Branch: ffistruct Changeset: r47180:1d749ac82a53 Date: 2011-09-09 11:51 +0200 http://bitbucket.org/pypy/pypy/changeset/1d749ac82a53/ Log:fix the _ffi module to use the new interface exposed by libffi diff --git a/pypy/module/_ffi/interp_struct.py b/pypy/module/_ffi/inte

[pypy-commit] pypy ffistruct: merge heads

2011-09-09 Thread antocuni
Author: Antonio Cuni Branch: ffistruct Changeset: r47181:7bcdee76d84b Date: 2011-09-09 11:52 +0200 http://bitbucket.org/pypy/pypy/changeset/7bcdee76d84b/ Log:merge heads diff --git a/pypy/module/_ffi/interp_struct.py b/pypy/module/_ffi/interp_struct.py --- a/pypy/module/_ffi/interp_struct.p

[pypy-commit] pypy ffistruct: refactor the interface for struct_{get, set}field. Now we pass the ffitype at runtime, and the values are handled as lltype.Signed. struct_{get, set}field take care of do

2011-09-09 Thread antocuni
Author: Antonio Cuni Branch: ffistruct Changeset: r47179:4003bd45c5ff Date: 2011-09-09 11:46 +0200 http://bitbucket.org/pypy/pypy/changeset/4003bd45c5ff/ Log:refactor the interface for struct_{get,set}field. Now we pass the ffitype at runtime, and the values are handled as lltype.Sign

[pypy-commit] pypy ffistruct: add a JIT optimization which turns calls to libffi.struct_{get, set}field_* into {SET, GET}FIELD_RAW. optimizeopt unit test are coming in the next checkin

2011-09-09 Thread antocuni
Author: Antonio Cuni Branch: ffistruct Changeset: r47183:a86930b6e9ff Date: 2011-09-08 16:57 +0200 http://bitbucket.org/pypy/pypy/changeset/a86930b6e9ff/ Log:add a JIT optimization which turns calls to libffi.struct_{get,set}field_* into {SET,GET}FIELD_RAW. optimizeopt unit te

[pypy-commit] pypy ffistruct: implement fielddescrof_dynamic for the llgraph backend

2011-09-09 Thread antocuni
Author: Antonio Cuni Branch: ffistruct Changeset: r47182:f86c80625b41 Date: 2011-09-09 11:49 +0200 http://bitbucket.org/pypy/pypy/changeset/f86c80625b41/ Log:implement fielddescrof_dynamic for the llgraph backend diff --git a/pypy/jit/backend/llgraph/llimpl.py b/pypy/jit/backend/llgraph/lli

[pypy-commit] pypy ffistruct: add optimizeopt unit test for the struct_{get, set}field optimization

2011-09-09 Thread antocuni
Author: Antonio Cuni Branch: ffistruct Changeset: r47184:00cacb3f4be4 Date: 2011-09-09 15:32 +0200 http://bitbucket.org/pypy/pypy/changeset/00cacb3f4be4/ Log:add optimizeopt unit test for the struct_{get,set}field optimization diff --git a/pypy/jit/metainterp/optimizeopt/test/test_optimizeff

[pypy-commit] pypy ffistruct: another unit test for when not to optimize

2011-09-09 Thread antocuni
Author: Antonio Cuni Branch: ffistruct Changeset: r47185:3acdc8abbdc4 Date: 2011-09-09 15:35 +0200 http://bitbucket.org/pypy/pypy/changeset/3acdc8abbdc4/ Log:another unit test for when not to optimize diff --git a/pypy/jit/metainterp/optimizeopt/test/test_optimizefficall.py b/pypy/jit/metai

[pypy-commit] pypy ffistruct: implement fielddescrof_dynamic for the ll backends

2011-09-09 Thread antocuni
Author: Antonio Cuni Branch: ffistruct Changeset: r47186:4e3a2c7b46cb Date: 2011-09-09 16:49 +0200 http://bitbucket.org/pypy/pypy/changeset/4e3a2c7b46cb/ Log:implement fielddescrof_dynamic for the ll backends diff --git a/pypy/jit/backend/llsupport/descr.py b/pypy/jit/backend/llsupport/desc

[pypy-commit] pypy ffistruct: fix translation by iterating only on the types which are known to be integers

2011-09-09 Thread antocuni
Author: Antonio Cuni Branch: ffistruct Changeset: r47187:108d00ff4edd Date: 2011-09-09 16:49 +0200 http://bitbucket.org/pypy/pypy/changeset/108d00ff4edd/ Log:fix translation by iterating only on the types which are known to be integers diff --git a/pypy/rlib/clibffi.py b/pypy/rlib/cl

[pypy-commit] pypy ffistruct: merge heads

2011-09-09 Thread antocuni
Author: Antonio Cuni Branch: ffistruct Changeset: r47188:5219d5921d77 Date: 2011-09-09 16:51 +0200 http://bitbucket.org/pypy/pypy/changeset/5219d5921d77/ Log:merge heads diff --git a/pypy/jit/backend/llgraph/llimpl.py b/pypy/jit/backend/llgraph/llimpl.py --- a/pypy/jit/backend/llgraph/llimp

[pypy-commit] pypy default: Make getwindowsversion return a sructseq, rather than a tuple. (untested, not ata windows machine)

2011-09-09 Thread alex_gaynor
Author: Alex Gaynor Branch: Changeset: r47189:101130586a1a Date: 2011-09-09 09:00 -0700 http://bitbucket.org/pypy/pypy/changeset/101130586a1a/ Log:Make getwindowsversion return a sructseq, rather than a tuple. (untested, not ata windows machine) diff --git a/pypy/module/sys/test/tes

[pypy-commit] pypy unsigned-dtypes: fixed jit codewriter problem, but blackhole still complains about there not being a cast from ulonglong to float

2011-09-09 Thread justinpeel
Author: Justin Peel Branch: unsigned-dtypes Changeset: r47190:a74952455bd7 Date: 2011-09-09 20:01 + http://bitbucket.org/pypy/pypy/changeset/a74952455bd7/ Log:fixed jit codewriter problem, but blackhole still complains about there not being a cast from ulonglong to float diff --g

[pypy-commit] pypy unsigned-dtypes: put in cast_ulonglong_to_float. Now translates on 32-bit as well.

2011-09-09 Thread justinpeel
Author: Justin Peel Branch: unsigned-dtypes Changeset: r47191:0a94e1a139da Date: 2011-09-09 20:45 + http://bitbucket.org/pypy/pypy/changeset/0a94e1a139da/ Log:put in cast_ulonglong_to_float. Now translates on 32-bit as well. diff --git a/pypy/jit/codewriter/jtransform.py b/pypy/jit/code

[pypy-commit] pypy reflex-support: object identity conservation

2011-09-09 Thread wlav
Author: Wim Lavrijsen Branch: reflex-support Changeset: r47192:2aee950f746f Date: 2011-09-09 14:25 -0700 http://bitbucket.org/pypy/pypy/changeset/2aee950f746f/ Log:object identity conservation diff --git a/pypy/module/cppyy/capi/__init__.py b/pypy/module/cppyy/capi/__init__.py --- a/pypy/mo

[pypy-commit] pypy default: More fields for getwindowsversion (can't test, no windows).

2011-09-09 Thread alex_gaynor
Author: Alex Gaynor Branch: Changeset: r47193:ca11f6ae93ae Date: 2011-09-09 22:59 -0700 http://bitbucket.org/pypy/pypy/changeset/ca11f6ae93ae/ Log:More fields for getwindowsversion (can't test, no windows). diff --git a/pypy/module/sys/test/test_sysmodule.py b/pypy/module/sys/test/test_sys