• Leszek Swirski's avatar
    [parser] Allow cloning chunked streams · 602de389
    Leszek Swirski authored
    This allows streamed sources to also trigger parallel compile tasks. The
    chunk vectors are shared via std::shared_ptr.
    
    Clone chunked streams are initialised with a null source, and are not
    allowed to fetch any more data. Similarly, the original stream is not
    allowed to fetch data if it has been cloned (since the vector is shared
    and would mutate if we added more data to it).
    
    This is ok for the purposes of cloning for parallel compile tasks, as we
    fully parse before cloning for the task.
    
    Change-Id: Ic268e4956e0894acb63111bf0aaf32eaad426066
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3310917
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#78209}
    602de389
Name
Last commit
Last update
..
DIR_METADATA Loading commit data...
OWNERS Loading commit data...
expression-scope.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
import-assertions.cc Loading commit data...
import-assertions.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...