Source

pypy / pypy / tool / pydis.py

Author Commit Message Labels Comments Date
rxe
Ensure works for both CPython code objects and pypy code objects. Add a repr method for interpreter level repr_with_space().
holger krekel
merge of the dist-interpapp branch where Samuele Armin and me worked for 9 days (summing up to a hundred commits, as you may have noticed in your inbox). Major results (apart from little stuff here and there) are: - a new app2interp mechanism that is now indepedent from the interp2app implementation - a new way to do "mixed modules" which contain applevel and interplevel definitions. We also ported the builtin and sys module and they now live as packages/directory structures. in pypy/module/sys2/__init__.py and pypy/module/builtin/__i…
holger krekel
fix for traceinteractive to work with new co_consts_w scheme
Armin Rigo
Moved the branch back into the trunk.
Michael Hudson-Doyle
remove a bunch of unused imports
holger krekel
fixed Stefan's somewhat optimistic test.py -> testit.py renaming. Actually we have a lot of references to our test module (in all of our test files) so they need fixing. And i don't like the "testit" name so i will change that soon, i guess.
holger krekel
- fxied traceop and traceobjspace and ... - wrote trivial.round - fixed some tests good morning :-)
holger krekel
Well. The main reason for this commit is that we want to have a break. Luckily the new traceobjspace passes its tests which means it basically captures the execution of bytecodes and the operations as they happen to the underlying "traced" object space. Also the new 'pydis.py' module is there to provide disassembling of code objects in a programmatic way (i.e. it doesn't do print statements but returns a queryable result). note that pydis.py only works with Python 2.3 (michael knows why ...)
holger krekel
rewrote the python-2.3 dis.dis module, which is now in pypy/tool/pydis.py and will return a DisResult instance on invoking "pydis.pydis(object)" This allows to programmatically access the results of dissassembled byte code and will be used from the trace object space. (Holger, Richard)
Tomek Meka
intermiedate check-in
Tomek Meka
We have (Tomek and Richard) written an initial version of TraceObjectSpace. We inherit from an existing object space, and provide tracing for bytecodes and space operation. Now we will try to write a proxy object for an existing object space, so that we can take an existing object space and provide tracing for it at the runtime.