v8/test
Simon Zünd 6df0af84e2 Fix flaky Array#reduce mjsunit test
This CL fixes a flaky mjsunit test, that exercises Array#reduce with
sealed arrays in TurboFan. The flake was caused by temporary objects,
whos maps didn't live long enough. The code object of the function
under test holds weakly onto this maps. With a low enough gc interval,
the maps, and thus the code object, get cleaned up before the
{assertOptimized} can execute.

The fix is simply to assign these temporary objects to variables.

Bug: v8:9374
Change-Id: I43da8ba6b0194872b176e27617d9ca7fbfe43ec2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1666989
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62269}
2019-06-19 07:26:09 +00:00
..
benchmarks [test] Skip flaky test on predictable mode 2019-05-07 13:57:18 +00:00
cctest [regexp] Remove unused DispatchTable and ZoneSplayTree 2019-06-19 07:19:38 +00:00
common [turbofan] JSHeapBroker logging respects --trace-turbo-filter 2019-06-12 11:02:38 +00:00
debugger [cleanup] Add %PrepareFunctionForOptimize for tests that use %OptimizeOsr 2019-06-18 16:47:29 +00:00
fuzzer [regexp] Further narrow public API and restrict includes to regexp.h 2019-06-18 12:23:16 +00:00
inspector Fix inspector preview for detached JSTypedArray 2019-06-18 20:26:48 +00:00
intl [Intl] Fix RegExp [\W] with i flag 2019-06-12 06:18:08 +00:00
js-perf-test add micro-benchmark for proxy trap getPrototypeOf 2019-06-17 18:16:11 +00:00
memory Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
message [WeakRefs] Make unregister spec compliant 2019-06-13 08:48:16 +00:00
mjsunit Fix flaky Array#reduce mjsunit test 2019-06-19 07:26:09 +00:00
mkgrokdump [cleanup][heap] Improve heap iterator naming 2019-06-17 14:38:02 +00:00
mozilla Reland "[array] Move Array#sort pre-processing to Torque" 2019-05-24 12:13:17 +00:00
preparser Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
test262 Roll test262 2019-06-14 00:56:50 +00:00
torque [torque] Address remaining usages of @noVerifier in base.tq 2019-06-18 22:44:58 +00:00
unittests [torque] Address remaining usages of @noVerifier in base.tq 2019-06-18 22:44:58 +00:00
wasm-api-tests [wasm-c-api] Fix signature deserialization 2019-06-14 09:03:47 +00:00
wasm-js Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
wasm-spec-tests [wasm] Update spec tests 2019-05-22 14:58:45 +00:00
webkit Add quotes around unexpected token SyntaxError 2019-06-11 06:11:58 +00:00
BUILD.gn [wasm-c-api] Add tests and fixes 2019-05-28 09:57:04 +00:00
OWNERS [owners] Make test/ owned by COMMON_OWNERS 2019-06-06 20:56:09 +00:00