v8/test
Leszek Swirski c869d40d5a [ignition] Single-switch generator bytecode
Currently, yields and awaits inside loops compile to bytecode which
switches to the top of the loop header, and switch again once inside the
loop. This is to make loops reducible.

This replaces this switching logic with a single switch bytecode that
directly jumps to the bytecode being resumed. Among other things, this
allows us to no longer maintain the generator state after the switch at
the top of the function, and avoid having to track loop suspend counts.

TurboFan still needs to have reducible loops, so we now insert loop
header switches during bytecode graph building, for suspends that are
discovered to be inside loops during bytecode analysis. We do, however,
do some environment magic across loop headers since we know that we will
continue switching if and only if we reached that loop header via a
generator resume. This allows us to generate fewer phis and tighten
liveness.

Change-Id: Id2720ce1d6955be9a48178322cc209b3a4b8d385
Reviewed-on: https://chromium-review.googlesource.com/866734
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50804}
2018-01-23 14:27:02 +00:00
..
benchmarks [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
cctest [ignition] Single-switch generator bytecode 2018-01-23 14:27:02 +00:00
common [wasm] Move SyncCompile* and AsyncCompile* methods to WasmEngine 2018-01-18 13:27:46 +00:00
debugger [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
fuzzer [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
inspector [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
intl [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
js-perf-test [test] Add JSTest benchmark for array literal spread. 2018-01-23 05:39:30 +00:00
memory [snapshot] add tracking for builtin snapshot size. 2017-08-31 07:29:31 +00:00
message [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
mjsunit [wasm] Fix cloned deserialization of JS-to-WASM wrappers. 2018-01-23 12:38:47 +00:00
mkgrokdump [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
mozilla [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
preparser [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
test262 [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
unittests [ignition] Single-switch generator bytecode 2018-01-23 14:27:02 +00:00
wasm-spec-tests [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
webkit [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
bot_default.gyp [test] Add a d8_default test suite collection 2018-01-12 15:18:04 +00:00
bot_default.isolate [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
BUILD.gn [test] Add a d8_default test suite collection 2018-01-12 15:18:04 +00:00
d8_default.gyp [test] Add a d8_default test suite collection 2018-01-12 15:18:04 +00:00
d8_default.isolate [test] Add a d8_default test suite collection 2018-01-12 15:18:04 +00:00
default.gyp [test] Add a d8_default test suite collection 2018-01-12 15:18:04 +00:00
default.isolate [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
optimize_for_size.gyp [test] Add a d8_default test suite collection 2018-01-12 15:18:04 +00:00
optimize_for_size.isolate [debugger] basic test infrastructure for new debugger test api. 2016-10-21 06:38:05 +00:00
perf.gyp [gyp] move gyp files from src to gypfiles. 2018-01-23 09:54:36 +00:00
perf.isolate Reland "Reland "[test] Creating command before execution phase."" 2017-12-04 13:40:29 +00:00