• Leszek Swirski's avatar
    [parser] Set script id on ParseInfo creation · b4712802
    Leszek Swirski authored
    Rather than having an optional script id during ParseInfo creation (which
    is either selected lazily on script creation, or eagerly if based on an
    existing Script), always eagerly get either the desired script id (either
    from the Script or Isolate::GetNextScriptId()).
    
    This has the side-effect that we will currently no longer need to get the
    script id on background threads, but I'm not reverting the thread-safety
    of Isolate::GetNextScriptId in case it's needed again in the future.
    
    Bug: v8:10314
    Change-Id: I8f2dd962d3652b1a84a5d704a099e57a1679aba5
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2096616
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#66649}
    b4712802
Name
Last commit
Last update
..
OWNERS 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...