lp:~mwhudson/pypy/imported-pypy-genc

Created by Michael Hudson-Doyle and last modified
Get this branch:
bzr branch lp:~mwhudson/pypy/imported-pypy-genc
Only Michael Hudson-Doyle can upload to this branch. If you are Michael Hudson-Doyle please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Michael Hudson-Doyle
Project:
PyPy
Status:
Development

Recent revisions

1888. By arigo

Some more tweaking reference counters. The resulting C code looks reasonable
now -- it tries hard to minimize the Py_{INC,DEC}REF().

Moved a couple of private tests to test_ctrans.py. I'll try to figure out
later why you cannot call two test functions 'fn' without the two Translator
instances getting confused.

 --This line, and those below, will be ignored--

M translator/test/test_ctrans.py
M translator/typer.py

1887. By arigo

Copied into the branch the tool from Richard (rxe), before the branch and the
trunk are swapped.

1886. By arigo

* Reorganization of reference counters code.
* Support for tuples.

1885. By arigo

Replaced the combination genc_class.h/formatter.py with classtyper.py which
preprocesses class definitions into simple structures and support functions.
The support functions are generated by producing a control flow graph, which
is then translated into a C function by genc.py like all user-defined
functions.

 --This line, and those below, will be ignored--

A translator/classtyper.py
M translator/genc_typeset.py
D translator/genc_class.h
M translator/typer.py
D translator/formatter.py
M translator/genc.h
M translator/genc.py

1884. By arigo

More messiness, but a lot of tests pass. Checked in for reference before
things get cleaned up in a different way.

1883. By arigo

Generate C structs with correctly typed fields. (This is getting messy. As
these check-ins are actually a replay of what I did last week, I know what's
coming next, so don't look too closely here: genc_class.h and formatter.py
will soon be deleted again!)

 --This line, and those below, will be ignored--

M translator/genc_typeset.py
M translator/genc_class.h
A translator/formatter.py
M translator/genc.py

1882. By arigo

Translating simple classes to C structs and a PyTypeObject declaration.
Moved the CTypeSet class to its own file.

1881. By arigo

Implement and use static global constants for constant PyObjects.

1880. By arigo

Bug fix.

1879. By arigo

- OP_NEWSLICE_oooo().
- Bug fix: "g_IntObj_-1" is not a valid C identifier.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:pypy
This branch contains Public information 
Everyone can see this information.