v8/test
Caitlin Potter b6f7ea5805 [runtime] use new CloneObject bytecode for some ObjectLiteralSpread cases
As discussed in
https://docs.google.com/document/d/1sBdGe8RHgeYP850cKSSgGABTyfMdvaEWLy-vertuTCo/edit?ts=5b3ba5cc#,

this CL introduces a new bytecode (CloneObject), and a new IC type.

In this prototype implementation, the type feedback looks like the
following:

Uninitialized case:
  { uninitialized_sentinel, uninitialized_sentinel }
Monomorphic case:
  { weak 'source' map, strong 'result' map }
Polymorphic case:
  { WeakFixedArray with { weak 'source' map, strong 'result' map }, cleared value }
Megamorphic case:
  { megamorphic_sentinel, cleared_Value }

In the fast case, Object cloning is done by allocating an object with
the saved result map, and a shallow clone of the fast properties from
the source object, as well as cloned fast elements from the source object.
If at any point the fast case can't be taken, the IC transitions to the
slow case and remains there.

This prototype CL does not include any TurboFan optimization, and the
CloneObject operation is merely reduced to a stub call.

It may still be possible to get some further improvements by somehow
incorporating compile-time boilerplate elements into the cloned object,
or simplifying how the boilerplate elements are inserted into the
object.

In terms of performance, we improve the ObjectSpread score in JSTests/ObjectLiteralSpread/
by about 8x, with substantial improvements over the Babel and ObjectAssign scores.

R=gsathya@chromium.org, mvstanton@chromium.org, rmcilroy@chromium.org, neis@chromium.org, bmeurer@chromium.org
BUG=v8:7611

Change-Id: I79e1796eb77016fb4feba0e1d3bb9abb348c183e
Reviewed-on: https://chromium-review.googlesource.com/1127472
Commit-Queue: Caitlin Potter <caitp@igalia.com>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Michael Stanton <mvstanton@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54595}
2018-07-20 16:48:59 +00:00
..
benchmarks
cctest [turboassembler] Introduce hard-abort mode 2018-07-20 14:44:29 +00:00
common [turboassembler] Introduce hard-abort mode 2018-07-20 14:44:29 +00:00
debugger [liveedit] Fix patching functions with start position zero 2018-07-18 16:20:22 +00:00
fuzzer [wasm][fuzzer] Do not execute code with potential non-determinism 2018-07-19 08:55:55 +00:00
inspector [inspector] Fix memory leaks in inspector test 2018-07-20 07:22:15 +00:00
intl [Intl] Implement Intl.RelativeTimeFormat.prototype.{format, formatToParts} 2018-07-18 12:49:22 +00:00
js-perf-test Revert "[turbofan] Inline Number constructor in certain cases" 2018-07-19 09:13:26 +00:00
memory [builtins] Add embedded stats to --serialization-statistics 2018-07-05 12:33:26 +00:00
message [wasm] Make the output of --wasm-trace-memory more understandable 2018-07-19 09:49:36 +00:00
mjsunit [runtime] use new CloneObject bytecode for some ObjectLiteralSpread cases 2018-07-20 16:48:59 +00:00
mkgrokdump [explicit isolates] Move remaining roots to ReadOnyRoots 2018-07-03 15:26:04 +00:00
mozilla Roll ICU to ICU 62.1 2018-07-11 10:24:26 +00:00
preparser
test262 [Intl] Implement Intl.RelativeTimeFormat.prototype.{format, formatToParts} 2018-07-18 12:49:22 +00:00
torque [torque]: Implement structs 2018-07-17 17:04:55 +00:00
unittests [runtime] use new CloneObject bytecode for some ObjectLiteralSpread cases 2018-07-20 16:48:59 +00:00
wasm-spec-tests [wasm] Update spec tests 2018-07-10 11:18:19 +00:00
webkit
BUILD.gn Reland "Update GN configs for v8_perf target to allow running perf tests in swarming" 2018-07-17 08:40:17 +00:00