v8/test
peterwmwong 986aa36b1f [builtins] Add Array.p.join fastpath for single element array.
This is resurrecting an optimization from the pre-torque version.
Avoid allocating another sequential string for the result when there's only one
element, just return the ToString-ed element.  This not only saves time writing
to this destination string, but also reduce GC pressure.

The System Health Memory Benchmark (load:media:google_images) exposed this missing
optimization with a 15% regression in memory usage.  Very large external strings
were being copied into V8's heap as sequential string.

Bug: chromium:896612
Change-Id: Ieb61906f64100cdc15bf96f3ebcccb1207f75356
Reviewed-on: https://chromium-review.googlesource.com/c/1316620
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Peter Wong <peter.wm.wong@gmail.com>
Cr-Commit-Position: refs/heads/master@{#57241}
2018-11-05 14:45:34 +00:00
..
benchmarks [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
cctest [wasm] Remove test-only {RelocInfo::JS_TO_WASM_CALL}. 2018-11-05 13:49:18 +00:00
common [wasm] Rename GrowMemory to MemoryGrow 2018-10-29 14:06:24 +00:00
debugger [test] Skip slow tests on arm simulators 2018-10-17 08:52:47 +00:00
fuzzer [wasm] Rename GrowMemory to MemoryGrow 2018-10-29 14:06:24 +00:00
inspector [builtins] Add Array.p.join fastpath for single element array. 2018-11-05 14:45:34 +00:00
intl [Intl] Fix order of DateTimeFormat resolvedOptions 2018-11-01 21:07:12 +00:00
js-perf-test Add non-COW inputs to Array.from benchmarks. 2018-11-02 11:41:06 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message Reland "[parser] Optimize directive parsing especially for preparser" 2018-11-02 17:41:51 +00:00
mjsunit Reland "Add fast paths to Array.from." 2018-11-05 14:24:04 +00:00
mkgrokdump [cleanup] Cleanup IMMORTAL_IMMOVABLE_ROOT_LIST 2018-10-09 09:05:37 +00:00
mozilla [test] Add more test suites to Android testing 2018-09-07 09:53:15 +00:00
preparser [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
test262 [Intl] Fix order of DateTimeFormat resolvedOptions 2018-11-01 21:07:12 +00:00
torque [torque] allow qualified access to different modules/namespaces 2018-11-05 13:34:03 +00:00
unittests Remove GTEST_HAS_COMBINE 2018-10-31 23:03:51 +00:00
wasm-js Reland "[wasm] Add a new wasm-js testsuite to run js-api tests" 2018-10-18 20:18:55 +00:00
wasm-spec-tests [wasm] Update wasm spec tests 2018-10-23 08:57:08 +00:00
webkit [class] Ship instance and static public class fields 2018-10-18 18:14:52 +00:00
BUILD.gn Reland "[wasm] Add a new wasm-js testsuite to run js-api tests" 2018-10-18 20:18:55 +00:00