• bjaideep's avatar
    PPC/s390: [turbofan] Collect invocation counts and compute relative call frequencies. · 3f0c8819
    bjaideep authored
    Port c7d7ca36
    
    Original commit message:
    
        Add a notion of "invocation count" to the baseline compilers, which
        increment a special slot in the TypeFeedbackVector for each invocation
        of a given function (the optimized code doesn't currently collect this
        information).
    
        Use this invocation count to relativize the call counts on the call
        sites within the function, so that the inlining heuristic has a view
        of relative importance of a call site rather than some absolute numbers
        with unclear meaning for the current function. Also apply the call site
        frequency as a factor to all frequencies in the inlinee by passing this
        to the graph builders so that the importance of a call site in an
        inlinee is relative to the topmost optimized function.
    
        Note that all functions that neither have literals nor need type
        feedback slots will share a single invocation count cell in the
        canonical empty type feedback vector, so their invocation count is
        meaningless, but that doesn't matter since we only use the invocation
        count to relativize call counts within the function, which we only have
        if we have at least one type feedback vector (the CallIC slot).
    
        See the design document for additional details on this change:
        https://docs.google.com/document/d/1VoYBhpDhJC4VlqMXCKvae-8IGuheBGxy32EOgC2LnT8
    
    R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com
    
    BUG=v8:5267,v8:5372
    LOG=N
    
    Review-Url: https://codereview.chromium.org/2338413002
    Cr-Commit-Position: refs/heads/master@{#39446}
    3f0c8819
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
x87 Loading commit data...
builtins-api.cc Loading commit data...
builtins-array.cc Loading commit data...
builtins-arraybuffer.cc Loading commit data...
builtins-boolean.cc Loading commit data...
builtins-call.cc Loading commit data...
builtins-callsite.cc Loading commit data...
builtins-conversion.cc Loading commit data...
builtins-dataview.cc Loading commit data...
builtins-date.cc Loading commit data...
builtins-debug.cc Loading commit data...
builtins-error.cc Loading commit data...
builtins-function.cc Loading commit data...
builtins-generator.cc Loading commit data...
builtins-global.cc Loading commit data...
builtins-handler.cc Loading commit data...
builtins-internal.cc Loading commit data...
builtins-interpreter.cc Loading commit data...
builtins-json.cc Loading commit data...
builtins-math.cc Loading commit data...
builtins-number.cc Loading commit data...
builtins-object.cc Loading commit data...
builtins-proxy.cc Loading commit data...
builtins-reflect.cc Loading commit data...
builtins-sharedarraybuffer.cc Loading commit data...
builtins-string.cc Loading commit data...
builtins-symbol.cc Loading commit data...
builtins-typedarray.cc Loading commit data...
builtins-utils.h Loading commit data...
builtins.cc Loading commit data...
builtins.h Loading commit data...