LGTM
Awesome! Are there any other of these variable stack adjustment opcodes, or is
this all?
We could alter the way we generate IR to use only GEPs from the base stack
pointer if this is the case, but it would be a lot of work and would disrupt the
similarity between the JIT's opcode dispatch and the eval loop's. Hopefully
LLVM will just fold away the redundant stack pointer GEPs now that there are no
phi nodes in the way.
We should also check if this produces a speedup or slowdown, but I wouldn't
expect it to have much impact.
http://codereview.appspot.com/1863048/diff/2001/3003
File Python/eval.cc (right):
http://codereview.appspot.com/1863048/diff/2001/3003#newcode3125
Python/eval.cc:3125: else
The Python style is:
...
}
else {
...
Not that it really matters. :)
Issue 1863048: Make WITH_CLEANUP have a determinstic effect on stack level.
(Closed)
Created 15 years ago by ebo
Modified 15 years ago
Reviewers: Reid Kleckner
Base URL: http://unladen-swallow.googlecode.com/svn/trunk/
Comments: 1