• Benedikt Meurer's avatar
    [turbofan] Add support for inlining of builtins. · 25895aee
    Benedikt Meurer authored
    We mark certain builtins for inlining, and those should always be
    inlined into optimized code (CrankShaft already handles it this way), so
    we should support that in TurboFan as well. Currently this mainly
    affects a certain set of Math functions, but once have the basics in
    place we can extend this to any kind of builtin/code stub/accessor.
    
    This adds a new flag --turbo_builtin_inlining (enabled by default), that
    forces the inliner to always inline builtins marked for inlining, but
    does not affect inlining of other functions (this is still controlled by
    the --turbo-inlining flag).
    
    BUG=v8:3952
    LOG=n
    R=jarin@chromium.org
    
    Review URL: https://codereview.chromium.org/993473002
    
    Cr-Commit-Position: refs/heads/master@{#27059}
    25895aee
pipeline.cc 38.7 KB