• Pierre Langlois's avatar
    [turbofan] Fix tracing when compiling JS. · d826adf6
    Pierre Langlois authored
    The PipelineRunScope scope is live on every Run() phase and it isn't
    allowed to nest. This means we cannot open a new PipelineRunScope during
    TraceScheduleAndVerify() because it can be called in the middle of a
    Run(), which we do during effect-control-linearization in the JS
    pipeline.
    
    We can fix this by directly using a RuntimeCallTimerScope and a tracing
    event, instead of relying on PipelineRunScope to do that.
    
    Change-Id: I3c17b2c0a58ff3cac0d1dcc796f54d29b3444468
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3132506
    Auto-Submit: Pierre Langlois <pierre.langlois@arm.com>
    Commit-Queue: Georg Neis <neis@chromium.org>
    Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#76603}
    d826adf6
pipeline-statistics.cc 3.58 KB