• 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...
build Loading commit data...
include Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...