v8/test/unittests/interpreter
Leszek Swirski bcbb553db0 [offthread] Add OffThreadFactory support to AST strings
Add support for internalizing an AstValueFactory using the off-thread
factory. Includes adding ConsString support to OffThreadFactory.

This introduces a Handle union wrapper, which is used in locations that
can store a Handle or an OffThreadHandle. This is used in this patch for
the internalized "string" field of AST strings, and will be able to be
used for other similar fields in other classes (e.g. the ScopeInfo
handle in Scope, object boilerplate descriptor handles, the inferred
name handle on FunctionLiterals, etc.). It has a Factory-templated
getter which returns the appropriate handle for the factory, and a
debug-only tag to make sure the right getter is used at runtime. This
union wrapper currently decomposes implicitly to a Handle if the getter
is not called, to minimise code changes, but this implicit conversion
will likely be removed for clarity.

Bug: chromium:1011762
Change-Id: I5dd3a7bbdc483b66f5ff687e0079c545b636dc13
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1993971
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65816}
2020-01-16 14:58:54 +00:00
..
bytecode-array-builder-unittest.cc [offthread] Add OffThreadFactory support to AST strings 2020-01-16 14:58:54 +00:00
bytecode-array-iterator-unittest.cc [offthread] Add OffThreadFactory support to AST strings 2020-01-16 14:58:54 +00:00
bytecode-array-random-iterator-unittest.cc [offthread] Add OffThreadFactory support to AST strings 2020-01-16 14:58:54 +00:00
bytecode-array-writer-unittest.cc [compiler] Skip creating unneeded objects for lazy source positions 2019-08-23 12:47:20 +00:00
bytecode-decoder-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
bytecode-node-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
bytecode-operands-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
bytecode-register-allocator-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
bytecode-register-optimizer-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
bytecode-source-info-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
bytecode-utils.h Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
bytecodes-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
constant-array-builder-unittest.cc [offthread] Add OffThreadFactory support to AST strings 2020-01-16 14:58:54 +00:00
interpreter-assembler-unittest.cc [cleanup] Remove sloppy-ness from SetAccumulator 2019-11-14 10:47:59 +00:00
interpreter-assembler-unittest.h Reland "[csa] Tweak CSA pipeline to eliminate more redundant checks" 2019-06-17 09:40:29 +00:00