• svenpanne's avatar
    Detect simple tail calls · 4b122b75
    svenpanne authored
    This CL contains the first steps towards tail call optimization:
    
      * Structurally detect tail calls during instruction selection,
        looking for special return/call combinations.
    
      * Added new architecture-specific instructions for tail calls which
        jump instead of call and take care of frame adjustment.
    
      * Moved some code around.
    
    Currently we restrict tail calls to callees which only use registers
    for arguments/return value and to call sites which are explicitly
    marked as being OK for tail calls. This excludes, among other things,
    call sites in sloppy JS functions and our IC machinery (both need in
    general to be able to access the caller's frame).
    
    All this is behind a flag --turbo-tail-calls, which is currently off
    by default, so it can easily be toggled.
    
    Review URL: https://codereview.chromium.org/1108563002
    
    Cr-Commit-Position: refs/heads/master@{#28150}
    4b122b75
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...