• dusan.simicic's avatar
    MIPS: Fix trampoline emission after switch table generation · d735f3ab
    dusan.simicic authored
    Trampolines are generated when the value of pc_offset is greater than
    next_buffer_check_ (attribute from Assembler class). This value
    shouldn't be incremented in bind_to() method when internal reference
    label is bound, because it is not decremented when the switch table is
    generated (dd() method from Assemler class).
    
    This patch fixes this problem. Regression test are also included for
    mips and mips64 arch.
    
    BUG=
    
    Review-Url: https://codereview.chromium.org/2530143002
    Cr-Commit-Position: refs/heads/master@{#41423}
    d735f3ab
assembler-mips64.h 55.3 KB