• Benedikt Meurer's avatar
    [turbofan] Improve typing of ToNumeric and ToNumber. · b8981122
    Benedikt Meurer authored
    The previous typing rules for ToNumeric and ToNumber didn't match on the
    NonBigIntPrimitive input set, which causes trouble when we morph ToNumeric
    nodes into ToNumber nodes, and generally lead to worse typings in the
    graph, and thus worse code generation. This change improves the existing
    typing rules and turns ToNumber into a chokepoint again.
    
    Bug: chromium:879898, v8:8015
    Change-Id: I4a7ff0e9c420c5dcfdb2b96884e019a5943828a4
    Reviewed-on: https://chromium-review.googlesource.com/1201522Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#55595}
    b8981122
operation-typer.cc 40.8 KB