[pypy-commit] pypy default: Rewrite the algorithm of readlines() based on the hypothesis that

2011-11-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r48726:c98931f5191b Date: 2011-11-04 10:35 +0100 http://bitbucket.org/pypy/pypy/changeset/c98931f5191b/ Log:Rewrite the algorithm of readlines() based on the hypothesis that it is equivalent to read() followed by splitting after each '\n'. I

[pypy-commit] pypy default: these loops are unrolled anyway, directly access the correct attribute instead

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48727:6418ef5bfbf7 Date: 2011-11-03 20:09 +0100 http://bitbucket.org/pypy/pypy/changeset/6418ef5bfbf7/ Log:these loops are unrolled anyway, directly access the correct attribute instead of going through a switch again. diff --git a/pyp

[pypy-commit] pypy default: similarly, no need to call length here

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48728:c15bbb59c756 Date: 2011-11-03 20:11 +0100 http://bitbucket.org/pypy/pypy/changeset/c15bbb59c756/ Log:similarly, no need to call length here diff --git a/pypy/objspace/std/smalltupleobject.py b/pypy/objspace/std/smalltupleobject.py --- a

[pypy-commit] pypy default: reduce code duplication

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48729:7c022d2fff84 Date: 2011-11-03 20:29 +0100 http://bitbucket.org/pypy/pypy/changeset/7c022d2fff84/ Log:reduce code duplication diff --git a/pypy/objspace/std/slicetype.py b/pypy/objspace/std/slicetype.py --- a/pypy/objspace/std/slicetype.p

[pypy-commit] pypy default: reuse the new helper here too

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48731:81222f34969f Date: 2011-11-03 21:03 +0100 http://bitbucket.org/pypy/pypy/changeset/81222f34969f/ Log:reuse the new helper here too diff --git a/pypy/objspace/std/slicetype.py b/pypy/objspace/std/slicetype.py --- a/pypy/objspace/std/slice

[pypy-commit] pypy default: some of the _convert_idx_params implementations are rather nonsensical (and of

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48730:c0f86162108b Date: 2011-11-03 20:50 +0100 http://bitbucket.org/pypy/pypy/changeset/c0f86162108b/ Log:some of the _convert_idx_params implementations are rather nonsensical (and of course they are copied here and there, with

[pypy-commit] pypy default: more places

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48732:843cfd1d8ce5 Date: 2011-11-03 21:07 +0100 http://bitbucket.org/pypy/pypy/changeset/843cfd1d8ce5/ Log:more places diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py --- a/pypy/objspace/std/listobject.py +++ b/p

[pypy-commit] pypy default: simplify _convert_idx_params

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48733:257c829ce3c1 Date: 2011-11-03 21:29 +0100 http://bitbucket.org/pypy/pypy/changeset/257c829ce3c1/ Log:simplify _convert_idx_params diff --git a/pypy/objspace/std/stringobject.py b/pypy/objspace/std/stringobject.py --- a/pypy/objspace/std

[pypy-commit] pypy default: rename this function to be non-official. it can lead to bugs because the caller

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48735:2e617066124d Date: 2011-11-03 21:48 +0100 http://bitbucket.org/pypy/pypy/changeset/2e617066124d/ Log:rename this function to be non-official. it can lead to bugs because the caller has to check for None diff --git a/pypy/objspace

[pypy-commit] pypy default: a test that now passes, after the refactorings. however, it fails on cpython

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48734:bd1e2ea19fa3 Date: 2011-11-03 21:47 +0100 http://bitbucket.org/pypy/pypy/changeset/bd1e2ea19fa3/ Log:a test that now passes, after the refactorings. however, it fails on cpython diff --git a/pypy/objspace/std/test/test_listobject

[pypy-commit] pypy default: woops, wrong class

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48737:7e5b7f49a9f0 Date: 2011-11-04 10:13 +0100 http://bitbucket.org/pypy/pypy/changeset/7e5b7f49a9f0/ Log:woops, wrong class diff --git a/pypy/objspace/std/test/test_listobject.py b/pypy/objspace/std/test/test_listobject.py --- a/pypy/objspa

[pypy-commit] pypy default: I knew that running a translation first was a good idea

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48738:54f86b92c275 Date: 2011-11-04 10:24 +0100 http://bitbucket.org/pypy/pypy/changeset/54f86b92c275/ Log:I knew that running a translation first was a good idea diff --git a/pypy/objspace/std/stringobject.py b/pypy/objspace/std/stringobject

[pypy-commit] pypy default: merge

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48740:ff9f3efc4c62 Date: 2011-11-04 10:47 +0100 http://bitbucket.org/pypy/pypy/changeset/ff9f3efc4c62/ Log:merge diff --git a/pypy/module/_file/interp_file.py b/pypy/module/_file/interp_file.py --- a/pypy/module/_file/interp_file.py +++ b/pypy

[pypy-commit] pypy default: replace other two specialize calls as well

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48739:ba2d6fdc947d Date: 2011-11-04 10:31 +0100 http://bitbucket.org/pypy/pypy/changeset/ba2d6fdc947d/ Log:replace other two specialize calls as well diff --git a/pypy/objspace/std/stringobject.py b/pypy/objspace/std/stringobject.py --- a/pyp

[pypy-commit] pypy ppc-jit-backend: If functions with many (> 8) arguments are called,

2011-11-04 Thread hager
Author: hager Branch: ppc-jit-backend Changeset: r48741:724de1b4f87e Date: 2011-11-04 11:28 +0100 http://bitbucket.org/pypy/pypy/changeset/724de1b4f87e/ Log:If functions with many (> 8) arguments are called, pass every parameter ove the 8th on the stack. diff --git a/pypy/jit/backend

[pypy-commit] pypy default: Attempt to fix generally the issue of VStringPlainValue that can

2011-11-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r48742:4c8fd4b0ca57 Date: 2011-11-04 11:43 +0100 http://bitbucket.org/pypy/pypy/changeset/4c8fd4b0ca57/ Log:Attempt to fix generally the issue of VStringPlainValue that can be forced before being fully built --- e.g. because it's a target of a

[pypy-commit] pypy default: merge heads

2011-11-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r48743:122e57eb1d74 Date: 2011-11-04 11:48 +0100 http://bitbucket.org/pypy/pypy/changeset/122e57eb1d74/ Log:merge heads diff --git a/pypy/objspace/std/bytearrayobject.py b/pypy/objspace/std/bytearrayobject.py --- a/pypy/objspace/std/bytearrayobject.py

[pypy-commit] pypy ppc-jit-backend: Handle stack alignment in emit_call

2011-11-04 Thread hager
Author: hager Branch: ppc-jit-backend Changeset: r48744:8157df3c66e8 Date: 2011-11-04 12:18 +0100 http://bitbucket.org/pypy/pypy/changeset/8157df3c66e8/ Log:Handle stack alignment in emit_call diff --git a/pypy/jit/backend/ppc/ppcgen/opassembler.py b/pypy/jit/backend/ppc/ppcgen/opassembler.

[pypy-commit] pypy ppc-jit-backend: Do sanity check

2011-11-04 Thread hager
Author: hager Branch: ppc-jit-backend Changeset: r48745:044df512a0f2 Date: 2011-11-04 12:19 +0100 http://bitbucket.org/pypy/pypy/changeset/044df512a0f2/ Log:Do sanity check diff --git a/pypy/jit/backend/ppc/ppcgen/regalloc.py b/pypy/jit/backend/ppc/ppcgen/regalloc.py --- a/pypy/jit/backend/

[pypy-commit] pypy arm-backend-2: add condition codes for unsigned lower and unsigned higher or same

2011-11-04 Thread bivab
Author: David Schneider Branch: arm-backend-2 Changeset: r48746:efc0bc4d9ef5 Date: 2011-11-04 12:09 +0100 http://bitbucket.org/pypy/pypy/changeset/efc0bc4d9ef5/ Log:add condition codes for unsigned lower and unsigned higher or same diff --git a/pypy/jit/backend/arm/conditions.py b/pypy/jit/

[pypy-commit] pypy arm-backend-2: add some more tests for intergers and guards to cover unary and unsigned cmp ops

2011-11-04 Thread bivab
Author: David Schneider Branch: arm-backend-2 Changeset: r48747:7cb3b3ddfee2 Date: 2011-11-04 12:11 +0100 http://bitbucket.org/pypy/pypy/changeset/7cb3b3ddfee2/ Log:add some more tests for intergers and guards to cover unary and unsigned cmp ops diff --git a/pypy/jit/backend/test/run

[pypy-commit] pypy arm-backend-2: remove the inverse argument for the register allocation of cmp operations and use the correct correct condition flags for uint operations

2011-11-04 Thread bivab
Author: David Schneider Branch: arm-backend-2 Changeset: r48748:518a528ba0b8 Date: 2011-11-04 12:13 +0100 http://bitbucket.org/pypy/pypy/changeset/518a528ba0b8/ Log:remove the inverse argument for the register allocation of cmp operations and use the correct correct condition flags fo

[pypy-commit] pypy arm-backend-2: refactor a bit the generation of functions that emit code for cmp operations

2011-11-04 Thread bivab
Author: David Schneider Branch: arm-backend-2 Changeset: r48749:b797d85e31a7 Date: 2011-11-04 12:14 +0100 http://bitbucket.org/pypy/pypy/changeset/b797d85e31a7/ Log:refactor a bit the generation of functions that emit code for cmp operations diff --git a/pypy/jit/backend/arm/helper/a

[pypy-commit] extradoc extradoc: Planning.

2011-11-04 Thread arigo
Author: Armin Rigo Branch: extradoc Changeset: r3959:93a337edf716 Date: 2011-11-04 12:58 +0100 http://bitbucket.org/pypy/extradoc/changeset/93a337edf716/ Log:Planning. diff --git a/sprintinfo/gothenburg-2011-2/planning.txt b/sprintinfo/gothenburg-2011-2/planning.txt new file mode 100644 ---

[pypy-commit] extradoc extradoc: merge heads

2011-11-04 Thread arigo
Author: Armin Rigo Branch: extradoc Changeset: r3960:8831869b67ff Date: 2011-11-04 12:58 +0100 http://bitbucket.org/pypy/extradoc/changeset/8831869b67ff/ Log:merge heads diff --git a/talk/iwtc11/benchmarks/iter/generator.py b/talk/iwtc11/benchmarks/iter/generator.py --- a/talk/iwtc11/benchm

[pypy-commit] pypy default: similarly simplify some unicode code

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48750:256f96157565 Date: 2011-11-04 14:08 +0100 http://bitbucket.org/pypy/pypy/changeset/256f96157565/ Log:similarly simplify some unicode code diff --git a/pypy/objspace/std/unicodeobject.py b/pypy/objspace/std/unicodeobject.py --- a/pypy/ob

[pypy-commit] pypy win64_gborg: disabled errno check on win64 and py 2.7.2 - ctypes bug

2011-11-04 Thread ctismer
Author: Christian Tismer Branch: win64_gborg Changeset: r48751:96b9f3051fa4 Date: 2011-11-04 14:44 +0100 http://bitbucket.org/pypy/pypy/changeset/96b9f3051fa4/ Log:disabled errno check on win64 and py 2.7.2 - ctypes bug diff --git a/pypy/rpython/lltypesystem/ll2ctypes.py b/pypy/rpython/llty

[pypy-commit] pypy default: also add a test for indices4

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48753:20285b132dca Date: 2011-11-04 15:28 +0100 http://bitbucket.org/pypy/pypy/changeset/20285b132dca/ Log:also add a test for indices4 diff --git a/pypy/objspace/std/test/test_sliceobject.py b/pypy/objspace/std/test/test_sliceobject.py --- a

[pypy-commit] pypy default: Add asserts and fix a test. The main point of the asserts is to

2011-11-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r48755:02a2ce422c4c Date: 2011-11-04 16:09 +0100 http://bitbucket.org/pypy/pypy/changeset/02a2ce422c4c/ Log:Add asserts and fix a test. The main point of the asserts is to catch obscure cases where we generate a residual operation STRSETI

[pypy-commit] pypy default: (arigato mostly) fix optimizeopt tests that had the arguments to copystrcontent in the wrong order

2011-11-04 Thread alex_gaynor
Author: Alex Gaynor Branch: Changeset: r48754:0bfda46664f9 Date: 2011-11-04 11:10 -0400 http://bitbucket.org/pypy/pypy/changeset/0bfda46664f9/ Log:(arigato mostly) fix optimizeopt tests that had the arguments to copystrcontent in the wrong order diff --git a/pypy/jit/metainterp/opti

[pypy-commit] pypy default: merge heads

2011-11-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r48756:a42afd412616 Date: 2011-11-04 16:12 +0100 http://bitbucket.org/pypy/pypy/changeset/a42afd412616/ Log:merge heads diff --git a/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py b/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py ---

[pypy-commit] pypy default: negative bools??!

2011-11-04 Thread cfbolz
Author: Carl Friedrich Bolz Branch: Changeset: r48757:43676b026018 Date: 2011-11-04 16:34 +0100 http://bitbucket.org/pypy/pypy/changeset/43676b026018/ Log:negative bools??! diff --git a/pypy/objspace/std/boolobject.py b/pypy/objspace/std/boolobject.py --- a/pypy/objspace/std/boolobject.py +

[pypy-commit] pypy win64_gborg: added file to memorize things to do.

2011-11-04 Thread ctismer
Author: Christian Tismer Branch: win64_gborg Changeset: r48758:ac60a3708bc3 Date: 2011-11-04 19:08 +0100 http://bitbucket.org/pypy/pypy/changeset/ac60a3708bc3/ Log:added file to memorize things to do. diff --git a/pypy/doc/discussion/win64_todo.txt b/pypy/doc/discussion/win64_todo.txt new f

[pypy-commit] pypy win64_gborg: temporarily disabled import of rwin32

2011-11-04 Thread ctismer
Author: Christian Tismer Branch: win64_gborg Changeset: r48759:4acfd6f8e884 Date: 2011-11-04 19:12 +0100 http://bitbucket.org/pypy/pypy/changeset/4acfd6f8e884/ Log:temporarily disabled import of rwin32 diff --git a/pypy/rpython/module/ll_os.py b/pypy/rpython/module/ll_os.py --- a/pypy/rpytho

[pypy-commit] pypy default: Change VStringPlainValue, refactoring and giving a long

2011-11-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r48760:23f5428f3b52 Date: 2011-11-04 18:07 +0100 http://bitbucket.org/pypy/pypy/changeset/23f5428f3b52/ Log:Change VStringPlainValue, refactoring and giving a long explanation of the meaning of '_chars' and when it contains None values. It

[pypy-commit] pypy default: Another case: strgetitem on a VStringConcatValue can be resolved

2011-11-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r48761:98bf21b80fc5 Date: 2011-11-04 20:56 +0100 http://bitbucket.org/pypy/pypy/changeset/98bf21b80fc5/ Log:Another case: strgetitem on a VStringConcatValue can be resolved if we know statically on which half of the two-parts string it is done.

[pypy-commit] pypy jit-targets: hg merge default

2011-11-04 Thread hakanardo
Author: Hakan Ardo Branch: jit-targets Changeset: r48762:67b1506999f5 Date: 2011-11-04 07:43 +0100 http://bitbucket.org/pypy/pypy/changeset/67b1506999f5/ Log:hg merge default diff --git a/pypy/module/__builtin__/functional.py b/pypy/module/__builtin__/functional.py --- a/pypy/module/__built

[pypy-commit] pypy jit-targets: refactor unrolling to use the new target resop

2011-11-04 Thread hakanardo
Author: Hakan Ardo Branch: jit-targets Changeset: r48763:9ef690e84b21 Date: 2011-11-04 21:14 +0100 http://bitbucket.org/pypy/pypy/changeset/9ef690e84b21/ Log:refactor unrolling to use the new target resop diff --git a/pypy/jit/metainterp/history.py b/pypy/jit/metainterp/history.py --- a/pypy

[pypy-commit] pypy list-strategies: fix from merge

2011-11-04 Thread alex_gaynor
Author: Alex Gaynor Branch: list-strategies Changeset: r48765:a7d33918047a Date: 2011-11-04 16:40 -0400 http://bitbucket.org/pypy/pypy/changeset/a7d33918047a/ Log:fix from merge diff --git a/pypy/objspace/std/test/test_listobject.py b/pypy/objspace/std/test/test_listobject.py --- a/pypy/obj