Files
node/deps
Leszek SwirskiandGuillaume Lagrange 82a02336aa deps: V8: backport d259a9e2ead7
Original commit message:

    [maglev] Add source position collection

    This change adds support for collecting source positions in Maglev for
    profiling. It wires a SourcePositionTableBuilder through the code
    generator and uses the existing source positions from the graph
    labeller.

    Fixed: 436575053
    Change-Id: I64fa1e8829b036e498fa1d756c996716d16fb2a8
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6897146
    Reviewed-by: Victor Gomes <victorgomes@chromium.org>
    Auto-Submit: Leszek Swirski <leszeks@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#102119}

Before this change Maglev attached an empty source position table to its
generated Code objects (set_empty_source_position_table()). As a result,
when profiling with `--perf-prof --interpreted-frames-native-stack`
(linux perf / samply), Maglev-optimized frames carried no line/inlining
information in the jitdump, so inlined call chains were lost in the
resulting flamegraphs (baseline and TurboFan code were unaffected). This
backport restores per-pc source positions for Maglev code, matching V8
>= 15.x and newer Node.js.

The change is gated on collect_source_positions() (enabled by
--detailed-line-info / profiling); the steady-state generated machine
code is unchanged and there is no extra cost when not profiling.

Adaptations for V8 13.6 (node): the graph-labeller creation in
MaglevCompiler::Compile is added as a separate condition because node's
13.6 tree creates the labeller in a differently-shaped block than
upstream; the rest is a direct cherry-pick.

Refs: https://github.com/v8/v8/commit/d259a9e2ead784181aac206a40674eb0c173d71e
Fixes: https://github.com/nodejs/node/issues/63816
PR-URL: https://github.com/nodejs/node/pull/63865
Co-authored-by: Guillaume Lagrange <guillaume@codspeed.io>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-08-19 11:32:02 +02:00
..
2026-08-06 16:00:24 +02:00
2026-08-06 16:00:18 +02:00
2026-08-06 15:35:12 +02:00
2026-08-06 15:35:01 +02:00
2026-05-20 15:10:10 +02:00
2026-08-06 15:35:09 +02:00
2026-02-22 23:16:10 +01:00
2026-07-27 19:51:50 -03:00
2026-04-08 23:52:58 +02:00
2026-05-07 15:41:39 +02:00
2026-08-06 16:00:24 +02:00
2026-08-07 12:44:44 +02:00
2026-08-06 16:00:25 +02:00
2026-08-06 16:00:24 +02:00
2026-08-06 15:35:16 +02:00
2026-07-27 19:51:49 -03:00
2026-07-30 13:51:28 +02:00
2025-09-09 08:40:54 +02:00
2026-08-19 11:32:02 +02:00
2025-05-02 17:06:38 -03:00