• Leszek Swirski's avatar
    [tracing] Speed up SharedFunctionInfo::TraceID · 43cd5d10
    Leszek Swirski authored
    Avoid the linear lookup of function literal id when getting the shared
    function info TraceID, by optionally passing through a FunctionLiteral.
    Additionally, use the FunctionLiteralId helper when a FunctionLiteral is
    not available, since it can also fast-path in some cases.
    
    As a drive-by, allow using a ScriptIterator without an Isolate pointer
    (e.g. manually creating a handle) to allow calling FunctionLiteralId
    without an Isolate pointer.
    
    Bug: v8:9325
    Change-Id: Ibfa053f300d6d5005485c67174a848264a5d1372
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1643429
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Commit-Queue: Yang Guo <yangguo@chromium.org>
    Auto-Submit: Leszek Swirski <leszeks@chromium.org>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#61983}
    43cd5d10
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...
OWNERS Loading commit data...
debug-coverage.cc Loading commit data...
debug-coverage.h Loading commit data...
debug-evaluate.cc Loading commit data...
debug-evaluate.h Loading commit data...
debug-frames.cc Loading commit data...
debug-frames.h Loading commit data...
debug-interface.h Loading commit data...
debug-property-iterator.cc Loading commit data...
debug-property-iterator.h Loading commit data...
debug-scope-iterator.cc Loading commit data...
debug-scope-iterator.h Loading commit data...
debug-scopes.cc Loading commit data...
debug-scopes.h Loading commit data...
debug-stack-trace-iterator.cc Loading commit data...
debug-stack-trace-iterator.h Loading commit data...
debug-type-profile.cc Loading commit data...
debug-type-profile.h Loading commit data...
debug.cc Loading commit data...
debug.h Loading commit data...
interface-types.h Loading commit data...
liveedit.cc Loading commit data...
liveedit.h Loading commit data...