escargot icon indicating copy to clipboard operation
escargot copied to clipboard

Implement tail call optimization (TCO) for simple function calls

Open clover2123 opened this issue 2 years ago • 1 comments

  • replace simple tail calls by TCO
  • CallFunction or CallFunctionWithReceiver bytecode located in tail call position is optimized

Signed-off-by: HyukWoo Park [email protected]

clover2123 avatar Apr 01 '22 05:04 clover2123

octane score 2302 -> 2321 But, this is still in draft mode (need more adjustment)

Origin
Richards: 1213
DeltaBlue: 979
Crypto: 1851
RayTrace: 1257
EarleyBoyer: 1786
RegExp: 328
Splay: 962
SplayLatency: 1933
NavierStokes: 2007
PdfJS: 4840
Mandreel: 899
MandreelLatency: 5671
Gameboy: 7831
CodeLoad: 17326
Box2D: 4167
zlib: 2031
Typescript: 8360
Score (version 9): 2302
TCO
Richards: 1230
DeltaBlue: 1001
Crypto: 1800
RayTrace: 1305
EarleyBoyer: 1826
RegExp: 359
Splay: 964
SplayLatency: 1965
NavierStokes: 1975
PdfJS: 4939
Mandreel: 919
MandreelLatency: 5790
Gameboy: 7857
CodeLoad: 17495
Box2D: 4183
zlib: 1980
Typescript: 7780
Score (version 9): 2321

clover2123 avatar Apr 01 '22 05:04 clover2123

Too old patch to update. I'll re-push a new patch.

clover2123 avatar Apr 16 '23 14:04 clover2123