• bjaideep's avatar
    PPC/s390: Inline Array.prototype.forEach in TurboFan · 0732cbee
    bjaideep authored
    Port 90c3a2d5
    
    Original Commit Message:
    
        This CL contains a few pieces:
    
        - A new mechanism to create "BuiltinContinuation" checkpoints in TurboFan
          graphs, which--when triggered--swizzle the values in the the FrameState to be
          parameters to a typically TF-generated builtin that resumes execution to finish
          the slow-case functionality.
        - Continuation builtins that have special handling in the deoptimizer and their own
          new frame type to ensure that the values they need to begin executing can be stashed
          away and restored immediately before the builtin is called via a trampoline that runs
          when the continuation builtin's frame execution resumes.
        - An implementation of Array.prototype.forEach in TurboFan that can be used to
          inline it. The inlined forEach implementation uses the checkpoints mechanism
          described above to deopt in the middle of the forEach in the cases that optimization
          invariants are violated. There is a slightly different continuation stub for each
          deopt point in the forEach implementation to ensure the correct side-effects, i.e.
          that the deopt of the builtin isn't programmatically observable.
    
    R=danno@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
    BUG=
    LOG=N
    
    Review-Url: https://codereview.chromium.org/2926043005
    Cr-Commit-Position: refs/heads/master@{#45798}
    0732cbee
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm 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...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...