• 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
..
assembler-x64-inl.h Loading commit data...
assembler-x64.cc Loading commit data...
assembler-x64.h Loading commit data...
builtins-x64.cc Loading commit data...
code-stubs-x64.cc Loading commit data...
code-stubs-x64.h Loading commit data...
codegen-x64.cc Loading commit data...
codegen-x64.h Loading commit data...
cpu-x64.cc Loading commit data...
debug-x64.cc Loading commit data...
deoptimizer-x64.cc Loading commit data...
disasm-x64.cc Loading commit data...
frames-x64.cc Loading commit data...
frames-x64.h Loading commit data...
full-codegen-x64.cc Loading commit data...
interface-descriptors-x64.cc Loading commit data...
lithium-codegen-x64.cc Loading commit data...
lithium-codegen-x64.h Loading commit data...
lithium-gap-resolver-x64.cc Loading commit data...
lithium-gap-resolver-x64.h Loading commit data...
lithium-x64.cc Loading commit data...
lithium-x64.h Loading commit data...
macro-assembler-x64.cc Loading commit data...
macro-assembler-x64.h Loading commit data...
regexp-macro-assembler-x64.cc Loading commit data...
regexp-macro-assembler-x64.h Loading commit data...
simulator-x64.cc Loading commit data...
simulator-x64.h Loading commit data...