v8/test
Vaclav Brozek be5cfb2295 Fix array.indexOf for negative fromIndex
Array.indexOf accepts an optional fromIndex argument. When non-negative,
this argument restricts the searched indices to those starting at
fromIndex:
[1, 2, 1].indexOf(1,1) == 2
When negative, it is meant to be added to the array length to provide
such initial index for the search:
[1, 2, 1].indexOf(1, -2) == 2

This transformation has been done by the non-optimised builtin but not
by the reducer. The CL adds this construction to the reducer.

Bug: chromium:842612
Change-Id: I0ff089997f4ebb4dc3c2923e52c382a8a96cd711
Reviewed-on: https://chromium-review.googlesource.com/1059628
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Vaclav Brozek <vabr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53197}
2018-05-16 07:31:46 +00:00
..
benchmarks Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
cctest Implementing Intl.Locale proposal. 2018-05-15 22:25:02 +00:00
common [wasm] Make wasm::ValueType independent of the MachineRepresentation 2018-05-07 11:54:56 +00:00
debugger [wasm] Create module object in async compilation earlier. 2018-05-09 07:54:56 +00:00
fuzzer [wasm] Make wasm::ValueType independent of the MachineRepresentation 2018-05-07 11:54:56 +00:00
inspector [inspector] implement console.countReset() 2018-05-09 14:59:04 +00:00
intl Implementing Intl.Locale proposal. 2018-05-15 22:25:02 +00:00
js-perf-test Add a first performance test for DataView 2018-05-15 08:45:54 +00:00
memory Revert "[tools] Add benchmark owners to the config" 2018-05-14 09:52:33 +00:00
message [builtins] Fix error message in Proxy set trap 2018-05-14 16:37:20 +00:00
mjsunit Fix array.indexOf for negative fromIndex 2018-05-16 07:31:46 +00:00
mkgrokdump Disable embedded builtins 2018-05-08 11:21:37 +00:00
mozilla [test] Reverse sense of wasm_traps variant 2018-05-08 17:49:14 +00:00
preparser Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
test262 [test] Reverse sense of wasm_traps variant 2018-05-08 17:49:14 +00:00
torque [torque] Emit labels only if they are used. 2018-05-15 08:29:33 +00:00
unittests [turbofan] Optimize array destructuring 2018-05-08 06:21:37 +00:00
wasm-spec-tests [wasm] Update spec tests 2018-04-25 12:02:21 +00:00
webkit [test] Reverse sense of wasm_traps variant 2018-05-08 17:49:14 +00:00
BUILD.gn Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00