v8/test
Jakob Gruber bf2f0a0227 [builtins] Support embedded builtins in nosnapshot builds
This CL adds support for embedded builtins in nosnap builds by creating
and setting an 'embedded blob' after builtin generation. Unlike
snapshot builds, the blob is not embedded into the .text section but
located on the C++ heap.

This makes nosnap builds more consistent with mksnapshot, and allows us
to simplify there and in serializer cctests.

Complications arise from the different workflows we need to support:

1. the standard mksnapshot build process,
2. nosnap builds (which reuse the blob created by the first Isolate),
2. and tests with various complicated serialization workflows.

To cover all of these cases, this CL introduces two knobs to twiddle:

1. A 'sticky' embedded blob which overrides compiled-in default
   embedded blobs at Isolate setup.
2. The blob lifecycle can be managed manually or through refcounting.

These are described in more detail in isolate.cc.

Tbr: ulan@chromium.org
Bug: v8:6666, v8:8350
Change-Id: I3842e40cdaf45d2cadd05c6eb1ec2f5e3d83568d
Reviewed-on: https://chromium-review.googlesource.com/c/1310195
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57523}
2018-11-15 09:18:58 +00:00
..
benchmarks [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
cctest [builtins] Support embedded builtins in nosnapshot builds 2018-11-15 09:18:58 +00:00
common [wasm] Add bulk memory flag; parse passive segments 2018-11-12 23:10:30 +00:00
debugger [test] Skip slow tests on arm simulators 2018-10-17 08:52:47 +00:00
fuzzer [wasm] Fix test generation for shared memory 2018-11-12 16:40:14 +00:00
inspector [builtins] Support embedded builtins in nosnapshot builds 2018-11-15 09:18:58 +00:00
intl [Intl] Fix CHECK(array->HasFastPackedElements()) 2018-11-15 08:05:11 +00:00
js-perf-test [Intl] Add benchmark for toLocaleString/localeCompare 2018-11-07 18:08:16 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message Clean out dead code and remove IS_VAR support 2018-11-12 14:46:04 +00:00
mjsunit [constant-tracking] Properly check regexp proto symbols in string search. 2018-11-14 15:56:04 +00:00
mkgrokdump [ubsan] Port Map to the new design 2018-11-13 06:59:12 +00:00
mozilla [test] Add more test suites to Android testing 2018-09-07 09:53:15 +00:00
preparser [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
test262 [builtins] Adjust String.prototype.matchAll as per spec changes (https://github.com/tc39/proposal-string-matchall/pull/38) 2018-11-14 08:54:02 +00:00
torque [torque] infer generic arguments 2018-11-14 18:18:59 +00:00
unittests [wasm] Avoid redundant code copy for import wrappers. 2018-11-14 16:10:19 +00:00
wasm-js Reland "[wasm] Add a new wasm-js testsuite to run js-api tests" 2018-10-18 20:18:55 +00:00
wasm-spec-tests [wasm] Update wasm spec tests 2018-10-23 08:57:08 +00:00
webkit Fix webkit/run-json-stringify in Debug mode 2018-11-14 18:53:34 +00:00
BUILD.gn Reland "[wasm] Add a new wasm-js testsuite to run js-api tests" 2018-10-18 20:18:55 +00:00