• Clemens Backes's avatar
    [wasm] Use new OOM API for passing details · 7e14a41c
    Clemens Backes authored
    In particular use the same "location" in any call site to make grouping
    OOMs easier. Move the detail information into the new OOMDetails struct.
    
    Since we cannot construct OOMDetails via "{.detail = ...}" yet (C++20),
    we add another variants of FatalProcessOutOfMemory which receives the
    detail string and internally stores it in an OOMDetails struct.
    
    R=jkummerow@chromium.org
    CC=mlippautz@chromium.org
    
    Bug: chromium:1323177
    Change-Id: Ie10cde8dd060867515fab4c61c15030f9c3ccff9
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3652298Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#80612}
    7e14a41c
v8.h 2.04 KB