• 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
..
OWNERS Loading commit data...
expression-scope-reparenter.cc Loading commit data...
expression-scope-reparenter.h Loading commit data...
expression-scope.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
keywords-gen.h Loading commit data...
keywords.txt Loading commit data...
literal-buffer.cc Loading commit data...
literal-buffer.h Loading commit data...
parse-info.cc Loading commit data...
parse-info.h Loading commit data...
parser-base.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
parsing.cc Loading commit data...
parsing.h Loading commit data...
pending-compilation-error-handler.cc Loading commit data...
pending-compilation-error-handler.h Loading commit data...
preparse-data-impl.h Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparser-logger.h Loading commit data...
preparser.cc Loading commit data...
preparser.h Loading commit data...
rewriter.cc Loading commit data...
rewriter.h Loading commit data...
scanner-character-streams.cc Loading commit data...
scanner-character-streams.h Loading commit data...
scanner-inl.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...