• bmeurer's avatar
    [stubs] Introduce a proper ToBooleanStub. · d1df58e8
    bmeurer authored
    Rename the existing (patching) ToBooleanStub to ToBooleanICStub to match
    our naming convention, and add a new TurboFan-powered ToBooleanStub,
    which just does the ToBoolean conversion without any runtime call or
    code patching, so we can use it for Ignition (and TurboFan).
    
    Drive-by-fix: Add an Oddball::to_boolean field similar to the ones we
    already have for to_string and to_number, so we don't need to actually
    dispatch on the concrete Oddball at all.
    
    R=epertoso@chromium.org, rmcilroy@chromium.org, yangguo@chromium.org
    
    Review URL: https://codereview.chromium.org/1744163002
    
    Cr-Commit-Position: refs/heads/master@{#34361}
    d1df58e8
code-factory.cc 10.9 KB