• eholk's avatar
    [wasm] Use PC after EnsureSpace in RecordProtectedInstruction · c9e83ebc
    eholk authored
    Previously we captured the PC before calling EnsureSpace in
    RecordProtectedInstruction. Sometimes EnsureSpace would resize and move
    the buffer, which would invalidate the previously captured PC and trip an
    assert when writing RelocInfo. With this change, we do not capture the PC
    until after we've ensured there's enough space, which ensures the PC will
    be valid.
    
    BUG=
    
    Review-Url: https://codereview.chromium.org/2690523003
    Cr-Commit-Position: refs/heads/master@{#43202}
    c9e83ebc
Name
Last commit
Last update
..
code-generator-x64.cc Loading commit data...
instruction-codes-x64.h Loading commit data...
instruction-scheduler-x64.cc Loading commit data...
instruction-selector-x64.cc Loading commit data...
unwinding-info-writer-x64.cc Loading commit data...
unwinding-info-writer-x64.h Loading commit data...