[pypy-commit] pypy disable-unroll-for-short-loops: try to attack the problem differently, a bit unclear how to test the beast

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: disable-unroll-for-short-loops Changeset: r77925:655b7c16bafd Date: 2015-06-05 21:20 +0200 http://bitbucket.org/pypy/pypy/changeset/655b7c16bafd/ Log:try to attack the problem differently, a bit unclear how to test the beast diff --git a/rpython/jit

[pypy-commit] pypy py3k: bytes(obj) should call obj.__index__() instead of obj.__int__().

2015-06-05 Thread mjacob
Author: Manuel Jacob Branch: py3k Changeset: r77924:6caeb8d4c376 Date: 2015-06-05 20:32 +0200 http://bitbucket.org/pypy/pypy/changeset/6caeb8d4c376/ Log:bytes(obj) should call obj.__index__() instead of obj.__int__(). Fixes #1964 diff --git a/pypy/objspace/std/bytesobject.py b/pypy/

[pypy-commit] pypy py3k: Back out changeset b84f64795e2b because I referred the wrong issue in the commit message.

2015-06-05 Thread mjacob
Author: Manuel Jacob Branch: py3k Changeset: r77923:5ddb9db14d38 Date: 2015-06-05 20:29 +0200 http://bitbucket.org/pypy/pypy/changeset/5ddb9db14d38/ Log:Back out changeset b84f64795e2b because I referred the wrong issue in the commit message. diff --git a/pypy/objspace/std/bytesobjec

[pypy-commit] pypy py3k: bytes(obj) should call obj.__index__() instead of obj.__int__().

2015-06-05 Thread mjacob
Author: Manuel Jacob Branch: py3k Changeset: r77922:b84f64795e2b Date: 2015-06-05 19:38 +0200 http://bitbucket.org/pypy/pypy/changeset/b84f64795e2b/ Log:bytes(obj) should call obj.__index__() instead of obj.__int__(). Fixes #1957. diff --git a/pypy/objspace/std/bytesobject.py b/pypy

[pypy-commit] pypy vecopt: extract instructions sse4 had some wrong parameters in assembler

2015-06-05 Thread plan_rich
Author: Richard Plangger Branch: vecopt Changeset: r77921:3c733c6463df Date: 2015-06-05 19:40 +0200 http://bitbucket.org/pypy/pypy/changeset/3c733c6463df/ Log:extract instructions sse4 had some wrong parameters in assembler added test case for that diff --git a/pypy/module/micronumpy

[pypy-commit] pypy unicode-dtype: Enable np.unicode_

2015-06-05 Thread rlamy
Author: Ronan Lamy Branch: unicode-dtype Changeset: r77919:9d0ebecde2ab Date: 2015-06-05 01:03 +0100 http://bitbucket.org/pypy/pypy/changeset/9d0ebecde2ab/ Log:Enable np.unicode_ diff --git a/pypy/module/micronumpy/boxes.py b/pypy/module/micronumpy/boxes.py --- a/pypy/module/micronumpy/boxes

[pypy-commit] pypy unicode-dtype: Reimplement W_UnicodeBox as a simple wrapper around an interp-level unicode object

2015-06-05 Thread rlamy
Author: Ronan Lamy Branch: unicode-dtype Changeset: r77920:fdc675061202 Date: 2015-06-05 18:29 +0100 http://bitbucket.org/pypy/pypy/changeset/fdc675061202/ Log:Reimplement W_UnicodeBox as a simple wrapper around an interp-level unicode object diff --git a/pypy/module/micronumpy/boxes

[pypy-commit] pypy disable-unroll-for-short-loops: an attempt to disable unrolling if we hit a certain threshold

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: disable-unroll-for-short-loops Changeset: r77918:bdf385bc3c7c Date: 2015-06-05 18:57 +0200 http://bitbucket.org/pypy/pypy/changeset/bdf385bc3c7c/ Log:an attempt to disable unrolling if we hit a certain threshold diff --git a/rpython/jit/metainterp/compile.p

[pypy-commit] pypy py3k: Expose the __class__ cell to Python code.

2015-06-05 Thread mjacob
Author: Manuel Jacob Branch: py3k Changeset: r77917:070a2053d3fe Date: 2015-06-05 18:42 +0200 http://bitbucket.org/pypy/pypy/changeset/070a2053d3fe/ Log:Expose the __class__ cell to Python code. This fixes issue #1930. diff --git a/pypy/interpreter/astcompiler/codegen.py b/pypy/int

[pypy-commit] pypy py3k: Make this test, which involves threads and signals, more likely to pass.

2015-06-05 Thread mjacob
Author: Manuel Jacob Branch: py3k Changeset: r77916:585e0e6ae1c2 Date: 2015-06-05 17:45 +0200 http://bitbucket.org/pypy/pypy/changeset/585e0e6ae1c2/ Log:Make this test, which involves threads and signals, more likely to pass. diff --git a/pypy/module/thread/test/test_thread.py b/pyp

[pypy-commit] pypy optresult: backout an attempt on heapcache, does not seem to help

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77915:078c342333aa Date: 2015-06-05 17:25 +0200 http://bitbucket.org/pypy/pypy/changeset/078c342333aa/ Log:backout an attempt on heapcache, does not seem to help diff --git a/rpython/jit/metainterp/compile.py b/rpython/jit/metainterp/

[pypy-commit] pypy optresult: write a comment

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77914:ebc5c19f748d Date: 2015-06-05 16:57 +0200 http://bitbucket.org/pypy/pypy/changeset/ebc5c19f748d/ Log:write a comment diff --git a/pypy/module/__pypy__/__init__.py b/pypy/module/__pypy__/__init__.py --- a/pypy/module/__pypy__/__in

[pypy-commit] pypy optresult: disable those features in favor of having a working --fork-before for now

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77913:61b5d0427757 Date: 2015-06-05 16:52 +0200 http://bitbucket.org/pypy/pypy/changeset/61b5d0427757/ Log:disable those features in favor of having a working --fork-before for now diff --git a/pypy/module/__pypy__/__init__.py

[pypy-commit] cffi default: Add comments in the C source that will hopefully be printed by the C

2015-06-05 Thread arigo
Author: Armin Rigo Branch: Changeset: r2162:e33302548e71 Date: 2015-06-05 16:43 +0200 http://bitbucket.org/cffi/cffi/changeset/e33302548e71/ Log:Add comments in the C source that will hopefully be printed by the C compiler in case something is wrong on that line diff --git a/cffi/re

[pypy-commit] pypy optresult: an attempt to make heapcache use new mechanism of tracking stuff

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77911:d217ec5f41a7 Date: 2015-06-05 16:35 +0200 http://bitbucket.org/pypy/pypy/changeset/d217ec5f41a7/ Log:an attempt to make heapcache use new mechanism of tracking stuff diff --git a/rpython/jit/metainterp/compile.py b/rpython/jit/m

[pypy-commit] pypy optresult: of course

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77912:301b8b6b16f3 Date: 2015-06-05 16:37 +0200 http://bitbucket.org/pypy/pypy/changeset/301b8b6b16f3/ Log:of course diff --git a/rpython/jit/metainterp/heapcache.py b/rpython/jit/metainterp/heapcache.py --- a/rpython/jit/metainterp/h

[pypy-commit] pypy optresult: the specialization seems to be an overkill

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77910:f03f53422028 Date: 2015-06-05 15:12 +0200 http://bitbucket.org/pypy/pypy/changeset/f03f53422028/ Log:the specialization seems to be an overkill diff --git a/rpython/jit/backend/llsupport/rewrite.py b/rpython/jit/backend/llsuppor

[pypy-commit] stmgc c8-gil-like: typos

2015-06-05 Thread arigo
Author: Armin Rigo Branch: c8-gil-like Changeset: r1791:98218b34a5ee Date: 2015-06-05 14:47 +0200 http://bitbucket.org/pypy/stmgc/changeset/98218b34a5ee/ Log:typos diff --git a/c8/CALL_RELEASE_GIL b/c8/CALL_RELEASE_GIL --- a/c8/CALL_RELEASE_GIL +++ b/c8/CALL_RELEASE_GIL @@ -73,7 +73,7 @@

[pypy-commit] pypy optresult: another oops

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77909:106ab253738e Date: 2015-06-05 14:27 +0200 http://bitbucket.org/pypy/pypy/changeset/106ab253738e/ Log:another oops diff --git a/rpython/jit/backend/llsupport/rewrite.py b/rpython/jit/backend/llsupport/rewrite.py --- a/rpython/jit

[pypy-commit] pypy optresult: pfff

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77908:3d5076890948 Date: 2015-06-05 14:20 +0200 http://bitbucket.org/pypy/pypy/changeset/3d5076890948/ Log:pfff diff --git a/rpython/jit/backend/llsupport/rewrite.py b/rpython/jit/backend/llsupport/rewrite.py --- a/rpython/jit/backend

[pypy-commit] pypy optresult: oops

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77907:7f75733a01dd Date: 2015-06-05 14:16 +0200 http://bitbucket.org/pypy/pypy/changeset/7f75733a01dd/ Log:oops diff --git a/rpython/jit/metainterp/resoperation.py b/rpython/jit/metainterp/resoperation.py --- a/rpython/jit/metainterp/

[pypy-commit] pypy optresult: fix for running tests

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77906:3bbfaffdc9ba Date: 2015-06-05 14:11 +0200 http://bitbucket.org/pypy/pypy/changeset/3bbfaffdc9ba/ Log:fix for running tests diff --git a/rpython/jit/codewriter/heaptracker.py b/rpython/jit/codewriter/heaptracker.py --- a/rpython/

[pypy-commit] pypy optresult: an experiment in specialization

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77905:96d560350883 Date: 2015-06-05 13:56 +0200 http://bitbucket.org/pypy/pypy/changeset/96d560350883/ Log:an experiment in specialization diff --git a/rpython/jit/backend/llsupport/rewrite.py b/rpython/jit/backend/llsupport/rewrite.p

[pypy-commit] pypy optresult: one potential stupid segfault

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77904:40cba7408802 Date: 2015-06-05 13:35 +0200 http://bitbucket.org/pypy/pypy/changeset/40cba7408802/ Log:one potential stupid segfault diff --git a/rpython/jit/metainterp/optimizeopt/rewrite.py b/rpython/jit/metainterp/optimizeopt/r

[pypy-commit] pypy vecopt: updating the input type. when items are packed their count changes, thus the input and output type must be updated

2015-06-05 Thread plan_rich
Author: Richard Plangger Branch: vecopt Changeset: r77903:9f502085659b Date: 2015-06-05 13:14 +0200 http://bitbucket.org/pypy/pypy/changeset/9f502085659b/ Log:updating the input type. when items are packed their count changes, thus the input and output type must be updated diff --git

[pypy-commit] pypy vecopt: int expansion for int16 and int8 added, int32/16 test added first already passes

2015-06-05 Thread plan_rich
Author: Richard Plangger Branch: vecopt Changeset: r77902:eb3cc9cf75f4 Date: 2015-06-05 12:59 +0200 http://bitbucket.org/pypy/pypy/changeset/eb3cc9cf75f4/ Log:int expansion for int16 and int8 added, int32/16 test added first already passes diff --git a/pypy/module/micronumpy/test/tes

[pypy-commit] pypy optresult: missed a None here

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77901:b4b7db4c6656 Date: 2015-06-05 12:46 +0200 http://bitbucket.org/pypy/pypy/changeset/b4b7db4c6656/ Log:missed a None here diff --git a/rpython/jit/metainterp/pyjitpl.py b/rpython/jit/metainterp/pyjitpl.py --- a/rpython/jit/metaint

[pypy-commit] pypy optresult: fix the spelling

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77900:ef3f82932eea Date: 2015-06-05 12:43 +0200 http://bitbucket.org/pypy/pypy/changeset/ef3f82932eea/ Log:fix the spelling diff --git a/rpython/jit/codewriter/heaptracker.py b/rpython/jit/codewriter/heaptracker.py --- a/rpython/jit/c

[pypy-commit] pypy optresult: fix

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77899:c19969e54850 Date: 2015-06-05 12:38 +0200 http://bitbucket.org/pypy/pypy/changeset/c19969e54850/ Log:fix diff --git a/rpython/jit/metainterp/pyjitpl.py b/rpython/jit/metainterp/pyjitpl.py --- a/rpython/jit/metainterp/pyjitpl.py

[pypy-commit] pypy optresult: a bit blindly implement direct_call_release_gil

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77898:bbf72f83ccb5 Date: 2015-06-05 12:29 +0200 http://bitbucket.org/pypy/pypy/changeset/bbf72f83ccb5/ Log:a bit blindly implement direct_call_release_gil diff --git a/rpython/jit/metainterp/pyjitpl.py b/rpython/jit/metainterp/pyjitpl

[pypy-commit] pypy optresult: do it that way

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77897:b16250fb7832 Date: 2015-06-05 12:17 +0200 http://bitbucket.org/pypy/pypy/changeset/b16250fb7832/ Log:do it that way diff --git a/rpython/jit/codewriter/heaptracker.py b/rpython/jit/codewriter/heaptracker.py --- a/rpython/jit/cod

[pypy-commit] pypy optresult: try to fix annotation

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77896:4c25326069a6 Date: 2015-06-05 12:13 +0200 http://bitbucket.org/pypy/pypy/changeset/4c25326069a6/ Log:try to fix annotation diff --git a/rpython/jit/backend/llsupport/descr.py b/rpython/jit/backend/llsupport/descr.py --- a/rpytho

[pypy-commit] pypy optresult: random fix

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77895:99069ececc7c Date: 2015-06-05 11:59 +0200 http://bitbucket.org/pypy/pypy/changeset/99069ececc7c/ Log:random fix diff --git a/rpython/jit/codewriter/heaptracker.py b/rpython/jit/codewriter/heaptracker.py --- a/rpython/jit/codewri

[pypy-commit] pypy default: Add a test similar to test_rclass.test_flatten_convert_const, passes

2015-06-05 Thread arigo
Author: Armin Rigo Branch: Changeset: r77894:f296c1fbe753 Date: 2015-06-05 10:05 +0100 http://bitbucket.org/pypy/pypy/changeset/f296c1fbe753/ Log:Add a test similar to test_rclass.test_flatten_convert_const, passes diff --git a/rpython/translator/c/test/test_newgc.py b/rpython/translator/c

[pypy-commit] pypy optresult: did not help, revert

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77893:b2df1768946d Date: 2015-06-05 11:04 +0200 http://bitbucket.org/pypy/pypy/changeset/b2df1768946d/ Log:did not help, revert diff --git a/rpython/jit/backend/llsupport/test/zrpy_gc_test.py b/rpython/jit/backend/llsupport/test/zrpy_

[pypy-commit] pypy optresult: try to collect a few more times to see if it's a problem

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77892:5a8c401e9d0b Date: 2015-06-05 10:54 +0200 http://bitbucket.org/pypy/pypy/changeset/5a8c401e9d0b/ Log:try to collect a few more times to see if it's a problem diff --git a/rpython/jit/backend/llsupport/test/zrpy_gc_test.py b/rpyt

[pypy-commit] pypy optresult: Add and use a helper module that delays recursive calls, to turn them

2015-06-05 Thread arigo
Author: Armin Rigo Branch: optresult Changeset: r77890:b3cb86b784a3 Date: 2015-06-05 10:36 +0200 http://bitbucket.org/pypy/pypy/changeset/b3cb86b784a3/ Log:Add and use a helper module that delays recursive calls, to turn them non-recursive. diff --git a/rpython/annotator/bookkeeper.p

[pypy-commit] pypy optresult: Turn this class into a thread-local storage, to fix issues in case

2015-06-05 Thread arigo
Author: Armin Rigo Branch: optresult Changeset: r77891:02ec14154667 Date: 2015-06-05 10:39 +0200 http://bitbucket.org/pypy/pypy/changeset/02ec14154667/ Log:Turn this class into a thread-local storage, to fix issues in case it's used by multiple threads diff --git a/rpython/tool/flatt

[pypy-commit] pypy default: Add and use a helper module that delays recursive calls, to turn them

2015-06-05 Thread arigo
Author: Armin Rigo Branch: Changeset: r77887:0c7bf923862f Date: 2015-06-05 10:36 +0200 http://bitbucket.org/pypy/pypy/changeset/0c7bf923862f/ Log:Add and use a helper module that delays recursive calls, to turn them non-recursive. diff --git a/rpython/annotator/bookkeeper.py b/rpyth

[pypy-commit] pypy default: Turn this class into a thread-local storage, to fix issues in case

2015-06-05 Thread arigo
Author: Armin Rigo Branch: Changeset: r77888:741893a5757c Date: 2015-06-05 10:39 +0200 http://bitbucket.org/pypy/pypy/changeset/741893a5757c/ Log:Turn this class into a thread-local storage, to fix issues in case it's used by multiple threads diff --git a/rpython/tool/flattenrec.py

[pypy-commit] pypy default: merge heads

2015-06-05 Thread arigo
Author: Armin Rigo Branch: Changeset: r77889:7c18d4c2934f Date: 2015-06-05 09:49 +0100 http://bitbucket.org/pypy/pypy/changeset/7c18d4c2934f/ Log:merge heads diff --git a/pypy/module/micronumpy/concrete.py b/pypy/module/micronumpy/concrete.py --- a/pypy/module/micronumpy/concrete.py +++ b/

[pypy-commit] pypy optresult: fix

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77886:630f68685f3e Date: 2015-06-05 10:47 +0200 http://bitbucket.org/pypy/pypy/changeset/630f68685f3e/ Log:fix diff --git a/rpython/jit/metainterp/pyjitpl.py b/rpython/jit/metainterp/pyjitpl.py --- a/rpython/jit/metainterp/pyjitpl.py

[pypy-commit] pypy optresult: comment out unused function

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77885:817653b602e3 Date: 2015-06-05 10:45 +0200 http://bitbucket.org/pypy/pypy/changeset/817653b602e3/ Log:comment out unused function diff --git a/rpython/jit/metainterp/optimizeopt/info.py b/rpython/jit/metainterp/optimizeopt/info.p

[pypy-commit] pypy optresult: whack at test_resume until it passes

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77884:143291527023 Date: 2015-06-05 10:43 +0200 http://bitbucket.org/pypy/pypy/changeset/143291527023/ Log:whack at test_resume until it passes diff --git a/rpython/jit/metainterp/resume.py b/rpython/jit/metainterp/resume.py --- a/rpyt

[pypy-commit] pypy optresult: fix fix fix

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77883:6745a522e616 Date: 2015-06-05 10:07 +0200 http://bitbucket.org/pypy/pypy/changeset/6745a522e616/ Log:fix fix fix diff --git a/rpython/jit/metainterp/optimizeopt/info.py b/rpython/jit/metainterp/optimizeopt/info.py --- a/rpython/

[pypy-commit] pypy optresult: fix all the llsupport tests

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77882:d2d6134391d3 Date: 2015-06-05 09:54 +0200 http://bitbucket.org/pypy/pypy/changeset/d2d6134391d3/ Log:fix all the llsupport tests diff --git a/rpython/jit/backend/llsupport/assembler.py b/rpython/jit/backend/llsupport/assembler.p

[pypy-commit] pypy optresult: give up on integrating rewrite_consptr. we allow stuff to be modified in place in this simple case

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77881:e7a2ace43aac Date: 2015-06-05 09:49 +0200 http://bitbucket.org/pypy/pypy/changeset/e7a2ace43aac/ Log:give up on integrating rewrite_consptr. we allow stuff to be modified in place in this simple case diff --git a/rpython/

[pypy-commit] pypy optresult: a test, explanation and update TODO

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77880:93f24053fbe7 Date: 2015-06-05 09:35 +0200 http://bitbucket.org/pypy/pypy/changeset/93f24053fbe7/ Log:a test, explanation and update TODO diff --git a/rpython/jit/metainterp/optimizeopt/TODO b/rpython/jit/metainterp/optimizeopt/T

[pypy-commit] pypy optresult: start fighting with unrolling

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77877:06323de370d7 Date: 2015-06-05 09:18 +0200 http://bitbucket.org/pypy/pypy/changeset/06323de370d7/ Log:start fighting with unrolling diff --git a/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py b/rpython/jit/metainterp

[pypy-commit] pypy optresult: a test and a fix

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77879:8b21abbf1e11 Date: 2015-06-05 09:32 +0200 http://bitbucket.org/pypy/pypy/changeset/8b21abbf1e11/ Log:a test and a fix diff --git a/rpython/jit/metainterp/optimizeopt/TODO b/rpython/jit/metainterp/optimizeopt/TODO --- a/rpython/j

[pypy-commit] pypy optresult: redisable unrolling - let's get everything else going first

2015-06-05 Thread fijal
Author: Maciej Fijalkowski Branch: optresult Changeset: r77878:e48479cbf6f8 Date: 2015-06-05 09:19 +0200 http://bitbucket.org/pypy/pypy/changeset/e48479cbf6f8/ Log:redisable unrolling - let's get everything else going first diff --git a/rpython/jit/metainterp/optimizeopt/__init__.py b/rpyth