• mvstanton's avatar
    [turbofan] Don't propagate truncations if output is tagged. · 8af781ea
    mvstanton authored
    Disable the propagation of truncations through Phi, Select or TypeGuard
    if the output representation is tagged, because when the truncations are
    taken we don't necessarily reflect this in the types and therefore we
    might end up in a situation where we produce a word32 value, the type
    says Number, and now we need to change that to tagged, which is not
    possible since we don't know how to interpret the bits, i.e. whether the
    value is Signed32 or Unsigned32.
    
    BUG=chromium:644048
    
    Review-Url: https://codereview.chromium.org/2311903002
    Cr-Commit-Position: refs/heads/master@{#39186}
    8af781ea
regress-644048.js 321 Bytes