• bmeurer's avatar
    [turbofan] Unify Math.floor / Math.ceil optimization. · 022ea7e0
    bmeurer authored
    Provide an intrinsic %MathFloor / %_MathFloor that is used to optimize
    both Math.ceil and Math.floor, and use the JS inlining mechanism to
    inline Math.ceil into TurboFan code. Although we need to touch code
    outside of TurboFan to make this work, this does not affect the way we
    handle Math.ceil and/or Math.floor in CrankShaft, because for CrankShaft
    the old-style builtin function id based inlining still kicks in first.
    
    Once this solution is stabilized, we can use it for Math.floor as well.
    And once that is settled, we can establish it as the unified way to
    inline builtins, and get rid of the specialized builtin function id
    based inlining at some point.
    
    Note that "builtin" applies to basically every piece of internal
    JavaScript/intrinsics based code, so this also applies to the yet to be
    defined JavaScript based code stubs and handlers.
    
    BUG=v8:3953
    LOG=n
    R=yangguo@chromium.org,svenpanne@chromium.org
    
    Review URL: https://codereview.chromium.org/990963003
    
    Cr-Commit-Position: refs/heads/master@{#27086}
    022ea7e0
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
test262 Loading commit data...
test262-es6 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...