• Benedikt Meurer's avatar
    [turbofan] Introduce SameValue operator. · c78a98bb
    Benedikt Meurer authored
    We now represent the SameValue operation explicitly in TurboFan and the
    operation can thus participate in all kinds of optimizations. Especially
    we get rid of the JSCall node in the general case, which blocks several
    optimizations across the call. The general, baseline performance is now
    always on par with StrictEqual.
    
    Once the StrictEqual operator is also a simplified operator, we should
    start unifying the type based optimizations in SimplifiedLowering.
    
    In the micro-benchmark we go from
    
      testStrictEqual: 1422 ms.
      testObjectIs: 1520 ms.
      testManualSameValue: 1759 ms.
    
    to
    
      testStrictEqual: 1426 ms.
      testObjectIs: 1357 ms.
      testManualSameValue: 1766 ms.
    
    which gives the expected result.
    
    Bug: v8:7007
    Change-Id: I0de3ff6ff6209ab4c3edb69de6a16e387295a9c8
    Reviewed-on: https://chromium-review.googlesource.com/741228Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#48994}
    c78a98bb
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...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython 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...