Source

pypy / pypy / interpreter / nestedscope.py

Author Commit Message Labels Comments Date
Armin Rigo
Backout part of 9dc6cd01cad3, looks like checked in by mistake.
Maciej Fijalkowski
fix termios tests
Maciej Fijalkowski
kill now-dead code
Carl Friedrich Bolz
after discussion with armin: cannot use a quasiimmutable field for cells after all. the main reason is that this is a very subtle problem when we introduce py3 (which has the nonlocal keyword).
Branches
faster-nested-scopes
Carl Friedrich Bolz
now that cells are part of the virtualizable, we need to init them with a list, not None
Branches
faster-nested-scopes
Carl Friedrich Bolz
make Cell.w_value quasi-immutable. This is useful for inner functions that survive their defining scope.
Branches
faster-nested-scopes
Carl Friedrich Bolz
make Function.closure a quasi-immutable array. Pass it into createframe, so that the reading of the cells is constant-folded.
Branches
faster-nested-scopes
Armin Rigo
Replace the two lists on PyFrame, 'fastlocals_w' and 'valuestack_w', with a single unified list 'locals_stack_w' that stores first the locals and then the stack item.
Branches
store-sink-array
Benjamin Peterson
some rarely used frame methods which we don't have to look inside
Armin Rigo
Uh? This code contains a NameError (n).
Carl Friedrich Bolz
make MAKE_CLOSURE a bit faster (and more JIT-friendly)
Amaury Forgeot d'Arc
GetSetProperty now accept arguments in both order: (space, self) or (self, space) Use the more natural order when the getter is a class method
Branches
improve-unwrap_spec
Amaury Forgeot d'Arc
Fix a crash in cell objects comparison
Benjamin Peterson
fix one of my stupider mistakes; don't mutate co_cellvars, ever
Branches
fast-forward
Benjamin Peterson
prevent locals() from leaking outer scopes into classes
Branches
fast-forward
Maciej Fijalkowski
Remove getclosure, I don't think anyone is using it (grepping did not reveal) Simplify handling of cellvars - now it's a non-resizable list
Maciej Fijalkowski
avoid pointless copy in case we don't have anything to add
Maciej Fijalkowski
mark MAKE_CLOSURE as unroll_safe
Carl Friedrich Bolz
forgot an unroll_safe here
Carl Friedrich Bolz
(cfbolz, pedronis): prevent-silly-unrolling branch merge
Carl Friedrich Bolz
kill some beautiful code from revision 1263
Maciej Fijalkowski
move a hints a bit around, change the way things are called to pass args instead of attributes on self
Carl Friedrich Bolz
implement cell_contents attribute on Cells.
Armin Rigo
Merging the astcompilertests branch: * made the AST compiler tests saner; * added a bytecode optimization pass, performed at the AST level (opt.py); * rewrote pyassem.py to be simpler and saner; * fixed (hopefully) the stack depth computation in pyassem.py.
Armin Rigo
Remove usage of the Stack class for the valuestack and the blockstack of the frames. They didn't really make the code clearer, and they introduced an extra indirection that we could make without.
Armin Rigo
(pedronis, arigo) Intermediate check-in #2. More seriously, we rewrote the interpreter main loop in a style that should be easier for the JIT to grasp, but also -- possibly -- easier for human beings to grasp. A bit. Many levels of wrapping of stuff into other stuff are avoided now, and the PyFrame class hierarchy was completely removed. There is a possibly nice way to add opcodes from outside, with config opti…
Armin Rigo
Trying to generally fix id() issues.
Eric van Riet Paap
(pedronis, ericvrp) Added support for pickling code objects. (commiting to test translation on faster machine)
Eric van Riet Paap
(pedronis, ericvrp) Fix for annotation problem we had with _pickle_support mixedmodule.
Eric van Riet Paap
(pedronis, ericvrp) Added Cell pickling! We had to jump though a few loops but all-in-all it was not too hard. Added Cell.__eq__ as well.
  1. Prev
  2. 1
  3. 2
  4. Next