v8/test/cctest/wasm
Andreas Haas 2c3fae967b [wasm] Allow to restart background tasks during streaming compilation
In a certain scenario streaming compilation got stuck and did never
finish. This CL fixes this issue.

Scenario:
* Streaming compilation starts
* The compilation tasks execute all compiation units in the working
  queue and set the finished_ flag to true.
* New data arrives over streaming
* The compilation tasks compile so fast that the executed_units_ queue
  gets full. The compilation tasks stop executing and wait for the
  finisher task to restart them.
* The finisher task does not restart the compilation tasks because the
  finished_ flag is set.

With this CL I remove the finished flag and instead look at the size
of the working queue directly.

In addition I added a test which does not actually reproduce this
scenario but seems good to have anyways.

R=mtrofin@chromium.org

Change-Id: I44560c43e51be13c4461208368e21137b115656c
Reviewed-on: https://chromium-review.googlesource.com/824523
Reviewed-by: Mircea Trofin <mtrofin@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50090}
2017-12-13 19:51:36 +00:00
..
OWNERS Add eholk to Wasm-related OWNERS files 2017-08-10 18:58:00 +00:00
test-c-wasm-entry.cc [wasm] W^X mechanism for WasmCodeManager. 2017-12-04 17:22:31 +00:00
test-run-wasm-64.cc [wasm] First step of refactoring trap handling to be per module. 2017-12-07 01:00:55 +00:00
test-run-wasm-asmjs.cc [wasm] Introduce the WasmContext 2017-09-28 16:14:03 +00:00
test-run-wasm-atomics.cc [wasm] Add Atomic Load, Store Ops to the interpreter 2017-12-01 23:03:02 +00:00
test-run-wasm-interpreter.cc [wasm] [cleanup] Rename tests 2017-11-02 14:34:13 +00:00
test-run-wasm-js.cc [jumbo] drop duplicate BUILD macro from test-run-wasm-js.cc 2017-09-22 11:15:08 +00:00
test-run-wasm-module.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
test-run-wasm-relocation.cc Annotate all sites that still mutate {Code} objects. 2017-11-06 16:35:46 +00:00
test-run-wasm-simd.cc [wasm] Implement wasm SIMD F32x4 Ops 2017-12-11 22:14:34 +00:00
test-run-wasm.cc [wasm] First step of refactoring trap handling to be per module. 2017-12-07 01:00:55 +00:00
test-streaming-compilation.cc [wasm] Allow to restart background tasks during streaming compilation 2017-12-13 19:51:36 +00:00
test-wasm-breakpoints.cc [bigint] Fix abstract equality with junk strings 2017-10-25 20:56:09 +00:00
test-wasm-codegen.cc Add capability to handle CSP 'wasm-eval' in V8 2017-11-09 00:40:42 +00:00
test-wasm-interpreter-entry.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
test-wasm-stack.cc [wasm] Enable tests for Liftoff 2017-10-25 13:14:56 +00:00
test-wasm-trap-position.cc [jumbo] add test namespaces for cctest 2017-09-21 08:46:16 +00:00
wasm-run-utils.cc [wasm] cleanup after https://crrev.com/c/802322 2017-12-09 00:55:04 +00:00
wasm-run-utils.h [wasm] s/wasm-heap/wasm-code-manager 2017-12-05 16:30:06 +00:00