• ahaas's avatar
    [turbofan] Change TruncateFloat64ToUint64 to TryTruncateFloatToUint64. · c343f309
    ahaas authored
    This operator now provides a second output which indicates whether the conversion from float64 to uint64 was successful or not. The second output returns 0 if the conversion fails, or something else if the conversion succeeds.
    
    The second output can be ignored, which means that the operator can be used the same as the original operator.
    
    I implement the new operator on x64 and arm64. @v8-mips-ports and @v8-ppc-ports, can you please take care of the mips64 and ppc64 implementation of the second output?
    
    R=titzer@chromium.org, v8-arm-ports@googlegroups.com
    
    Review URL: https://codereview.chromium.org/1507703002
    
    Cr-Commit-Position: refs/heads/master@{#32705}
    c343f309
code-generator-arm64.cc 54.9 KB