v8/test
jgruber f86365dc73 [builtins] Properly handle cctest heap creation in embedded builds
Some cctests force fresh creation of heap constants, even though the
cctest binary itself is an embedded snapshot build (i.e.: a snapshot
blob exists, and a binary-embedded blob exists). This breaks a few
assumptions, for example that off-heap builtins have a single,
canonical off-heap code range.

Unfortunately this isn't that easy to fix. I see a few alternatives:

1. In builtins setup, if an embedded blob exists, regenerate the
builtins for their metadata (things like the safepoint table offset),
and then replace them by off-heap trampolines.

2. As above, but deserialize the trampolines from the snapshot blob.

3. As above, but pack required metadata into the embedded blob and
create trampolines from there.

4. Act as if the embedded blob does not exist.

Alternative 1 does not work because the generated code can be slightly
different at at runtime vs. mksnapshot-time. Alternative 2 is out
because we do not have access to the snapshot blob in TestIsolate
setup. Alternative 3 is probably the preferred option but would be a
more involved change.

This CL takes path 4. It's not an optimal solution, but it can be
replace by alternative 3 later.

TBR=ulan@chromium.org

Bug: v8:7718, v8:7751
Change-Id: I36c024cb0179615011c886ed3978bc95f0d197ac
Reviewed-on: https://chromium-review.googlesource.com/1098924
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@{#53886}
2018-06-20 13:38:52 +00:00
..
benchmarks Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
cctest [builtins] Properly handle cctest heap creation in embedded builds 2018-06-20 13:38:52 +00:00
common [explicit isolates] Remove GetIsolates from Map 2018-06-19 09:59:58 +00:00
debugger Reland "[inspector] fixed location of top level function return" 2018-06-18 21:37:49 +00:00
fuzzer [TurboFan] Return MaybeHandle from TurboFan compiler 2018-06-19 09:33:18 +00:00
inspector Revert "[async] Optimize await and AsyncFromSyncIterator" 2018-06-19 20:22:20 +00:00
intl Add regression tests for Intl.Locale constructor. 2018-06-13 21:56:26 +00:00
js-perf-test [jstests] Change sorting benchmarks to run setup for each iteration 2018-06-19 09:40:39 +00:00
memory Reland "[tools] Add benchmark owners to the config" 2018-05-16 13:53:49 +00:00
message Reland "[array] Implement Array.p.sort in Torque" 2018-06-05 08:33:18 +00:00
mjsunit Revert "[async] Optimize await and AsyncFromSyncIterator" 2018-06-19 20:22:20 +00:00
mkgrokdump [runtime] Create different maps for AllocationSites. 2018-06-13 11:51:48 +00:00
mozilla [test] Reverse sense of wasm_traps variant 2018-05-08 17:49:14 +00:00
preparser Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
test262 Reland "[builtins] set DataView.length to 1" 2018-06-12 21:54:47 +00:00
torque [torque] Fix multi-line AssertStatements 2018-06-13 14:01:59 +00:00
unittests [wasm] Fix GrowingVsFixedModule test 2018-06-20 12:18:50 +00:00
wasm-spec-tests [wasm] "fix" critical memory pressure notification 2018-06-13 13:52:19 +00:00
webkit [test] Skip slow tests 2018-05-23 14:14:34 +00:00
BUILD.gn Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00