• Thibaud Michaud's avatar
    [wasm] Fix wasm stack segment iterator · a8d4ff7d
    Thibaud Michaud authored
    Only initialize the superclass fields initially. The constructor was
    using an overload of the same class's constructor instead. In most cases
    this still behaved as expected because the {frame_} field would be
    overwritten with the right value inside the constructor. But when the
    stack segment is empty we would keep the wrong value from the
    ThreadLocalTop info instead of {nullptr}.
    
    R=jkummerow@chromium.org
    
    Bug: v8:12191, v8:12485
    Change-Id: Iff6a7ea7c8501deaee9ac9f95cd066d965ddbe09
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3326241Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
    Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#78319}
    a8d4ff7d
frames.cc 94.7 KB