• 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...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...