• Miran.Karic's avatar
    MIPS: Use JIC/JIALC offset when possible · fe916cd2
    Miran.Karic authored
    Until now JIC and JIALC compact branches were emited without using their
    offset. Here we optimize their use by using offset after addition and/or
    load immediate operations.
    
    The CL also fixes a problem with deserialization that occurs when a code
    object ends with an optimized LUI/AUI and JIC/JIALC instruction pair.
    Deserializer processed these instruction pairs by moving to a location
    immediately after it, but when this location is the end of the object it
    would finish with the current object before doing relocation. This is
    fixed by moving the deserializer one instruction before the location of
    the instruction pair end.
    
    BUG=
    
    Review-Url: https://codereview.chromium.org/2542403002
    Cr-Commit-Position: refs/heads/master@{#44841}
    fe916cd2
builtins-mips.cc 110 KB