[turboshaft] unpark scope when tracing reductions

Bug: v8:12783
Change-Id: I950c3a882c7a848d71f6ca5cd3da445b9c370823
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4042662
Commit-Queue: Darius Mercadier <dmercadier@chromium.org>
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#84389}
This commit is contained in:
Darius M 2022-11-21 11:55:57 +01:00 committed by V8 LUCI CQ
parent 2c3b02cc91
commit 1d90a41cf2

View File

@ -3043,6 +3043,9 @@ bool PipelineImpl::OptimizeGraph(Linkage* linkage) {
ComputeScheduledGraph();
if (v8_flags.turboshaft) {
UnparkedScopeIfNeeded scope(data->broker(),
v8_flags.turboshaft_trace_reduction);
if (base::Optional<BailoutReason> bailout =
Run<BuildTurboshaftPhase>(linkage)) {
info()->AbortOptimization(*bailout);