• bmeurer's avatar
    [turbofan] Call frequencies for JSCallFunction and JSCallConstruct. · 0b8a6945
    bmeurer authored
    Extract the call counts from the type feedback vector during graph
    building (either via the AstGraphBuilder or the BytecodeGraphBuilder),
    and put them onto the JSCallFunction and JSCallConstruct operators,
    so that they work even across inlinine through .apply and .call (which
    was previously hacked by creating a temporary type feedback vector
    for those).
    
    The next logic step will be to make those call counts into real
    relative call frequencies (also during graph building), so that we
    can make inlining decisions that make sense for the function being
    optimized (where absolute values are misleading).
    
    R=jarin@chromium.org
    BUG=v8:5267,v8:5372
    
    Review-Url: https://codereview.chromium.org/2330883002
    Cr-Commit-Position: refs/heads/master@{#39400}
    0b8a6945
js-inlining-heuristic.h 2.23 KB