• 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
..
api Loading commit data...
asmjs Loading commit data...
assembler Loading commit data...
base Loading commit data...
codegen Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
date Loading commit data...
diagnostics Loading commit data...
execution Loading commit data...
heap Loading commit data...
interpreter Loading commit data...
libplatform Loading commit data...
logging Loading commit data...
numbers Loading commit data...
objects Loading commit data...
parser Loading commit data...
profiler Loading commit data...
regress Loading commit data...
strings Loading commit data...
tasks Loading commit data...
torque Loading commit data...
utils Loading commit data...
wasm Loading commit data...
zone Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...
run-all-unittests.cc Loading commit data...
test-helpers.cc Loading commit data...
test-helpers.h Loading commit data...
test-utils.cc Loading commit data...
test-utils.h Loading commit data...
testcfg.py Loading commit data...
unittests.status Loading commit data...