• Leszek Swirski's avatar
    [compiler-dispatcher] Port to Jobs API · 15b1ce39
    Leszek Swirski authored
    Port the CompilerDispatcher to use the Jobs API, instead of its own
    hand-rolled worker management.
    
    This required some re-thinking of how testing is handled, since the
    tests want to be able to
    
      a) Defer calls to PostTask/Job, to actuall post the jobs later. This
         was easy enough with PostTask, since we could simply store the task
         in a list and no-op, but PostJob has to return a JobHandle. The
         tests now have a DelayedJobHandleWrapper, which defers all method
         calls on itself, and because of all the unique_ptrs, there's also
         now a SharedJobHandleWrapper.
    
      b) Wait until tasks/jobs complete. Returning from a Task meant that
         the task had completed, but this isn't necessarily the case with
         JobTasks; e.g. a job might be asked to yield. This patch hacks
         around this by Posting and Joining a non-owning copy of the
         requested JobTask, and then re-posting it once Join returns.
    
    Change-Id: If867b4122af52758ffabcfb78a6701f0f95d896d
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2563664
    Auto-Submit: Leszek Swirski <leszeks@chromium.org>
    Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#77618}
    15b1ce39
Name
Last commit
Last update
..
api Loading commit data...
asmjs Loading commit data...
assembler Loading commit data...
base Loading commit data...
codegen Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
date Loading commit data...
debug Loading commit data...
diagnostics Loading commit data...
execution Loading commit data...
heap Loading commit data...
interpreter Loading commit data...
libplatform Loading commit data...
logging Loading commit data...
numbers Loading commit data...
objects Loading commit data...
parser Loading commit data...
profiler Loading commit data...
regexp Loading commit data...
regress Loading commit data...
runtime Loading commit data...
security Loading commit data...
strings Loading commit data...
tasks Loading commit data...
torque Loading commit data...
utils Loading commit data...
wasm Loading commit data...
zone Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
avoid-windows-h-includes.cc Loading commit data...
run-all-unittests.cc Loading commit data...
test-helpers.cc Loading commit data...
test-helpers.h Loading commit data...
test-utils.cc Loading commit data...
test-utils.h Loading commit data...
testcfg.py Loading commit data...
unittests.status Loading commit data...