• Tobias Tebbi's avatar
    [turbofan] Masking/poisoning in codegen (optimized code, arm) · 25799516
    Tobias Tebbi authored
    This introduces masking of loads with speculation bit during code generation.
    At the moment, this is done only under the
    --branch-load-poisoning flag, and this CL enlarges the set of supported
    platforms from {x64} to {x64, arm}.
    
    Overview of changes:
    - new register configuration configuration with one register reserved for
      the speculation poison/mask (kSpeculationPoisonRegister).
    - in codegen, we introduce an update to the poison register at the starts
      of all successors of branches (and deopts) that are marked as safety
      branches (deopts).
    - in memory optimizer, we lower all field and element loads to PoisonedLoads.
    - poisoned loads are then masked in codegen with the poison register.
      * only integer loads are masked at the moment.
    
    Bug: chromium:798964
    Change-Id: I37f5531fd18a96038ea8b059641e3dfc852c2d34
    Reviewed-on: https://chromium-review.googlesource.com/913354
    Commit-Queue: Michael Stanton <mvstanton@chromium.org>
    Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#51374}
    25799516
macro-assembler-arm.h 36.3 KB