mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 01:55:44 +00:00
052726b68e
I think recent Christopher suggestions about tail call elimination is worth to consider, as it would allow to cut invocation cost of script functions quite nicely in many cases. Plus I am thinking of not creating Object[] array to pass arguments to callee if it is another interpreted function as it can directly access the caller stack. But first I decided to make some preparation work to simplify an implementation of these features later. The attached patch includes: 1. Moving all code to setup scope from InterpretedFunction.call/InterpretedFunction.call to Interpreter.interpret so the call method simply calls Interpreter.interpret. It would make tail call elimination code much simple. I also hope this simplifies changes Christopher needs for the continuations support (but I have strong reservation about possibility to implement it corectly). 2. Moving all declaration of temporary variables used only during processing of the single ICODE to the case blocks. 3. Interpreter loop termination only in RETURN icodes, not when pc exceeds icode size, so there is no need to check for this condition on each icode. (Scripts are handled via the special END_ICODE token). |
||
---|---|---|
.. | ||
benchmarks | ||
jsd | ||
jsdj | ||
jsj | ||
macbuild | ||
ref | ||
rhino | ||
src | ||
tests | ||
.cvsignore | ||
landbranch.pl | ||
Makefile.in | ||
makefile.win |