• Dominik Inführ's avatar
    [json, parsing] Switch to internal GC callbacks · becce45b
    Dominik Inführ authored
    We have two different kinds of GC prologues/epilogues. The user-exposed
    one in Heap and the internal one in LocalHeap. During parsing and in
    the JSON parser we were using the former. While this is definitely
    correct and at the time of implementation it was the only existing
    mechanism, I believe the internal callbacks are now a better fit for
    these use cases.
    
    Internal callbacks are simpler since they don't allow allocations, which
    allows us to run them during the GC safepoint. The user-exposed
    interfaces are allowed to allocate and are run either before or after
    the safepoint. Such allocations could cause recursive GCs, which is
    impossible for internal callbacks.
    
    Bug: v8:12545
    Change-Id: Ie697556cec9aa77b2f70704445aa5bd58e0a381a
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3435188Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#78971}
    becce45b
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...