v8/test/cctest/compiler
Mike Stanton 386ff6e5d6 [TurboFan] Serializing context information
In TurboFan, context specialization is an optimization that tries to
either replace the load of a value from the context with a constant,
or if that can't be achieved, at least reduce the hops up the
context chain by starting a walk to the required depth from the
first constant context that it can reach.

Currently, this optimization is performed by looking into the
heap during a reducer pass. With fully concurrent TurboFan, we
need to instead gather information about contexts we may want
to perform this optimization on during serialization.

This CL adds functionality to the serializer to recognize and
model operations that affect the context register. We add to the
hinting structure already used by the serializer. There is
a new type of hint: a VirtualContext. This is a tuple consisting
of a handle to a Context, and a distance field that indicates how
far away in a to-be-realized chain this VirtualContext sits from
the context in the handle. For example:

bytecode stream:
...
CreateBlockContext
...

After a block context is created, the accumulator now contains
a VirtualContext Hint with a distance of 1 from any context hints
that we are keeping track of in the current context register.

More details in the design doc here:
https://docs.google.com/document/d/1Y0LKKCEenLWyAZTetoAIpKTZRCxaNdkYV8X1GaCax2A/edit?usp=sharing

Change-Id: I63732ebd106cc138fb1e9789d0676ece63e15d27
Bug: v8:7790
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1605941
Commit-Queue: Michael Stanton <mvstanton@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Reviewed-by: Maya Lekova <mslekova@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62370}
2019-06-26 08:25:53 +00:00
..
c-signature.h [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
call-tester.h Move handles-related files to src/handles 2019-05-23 06:00:15 +00:00
code-assembler-tester.h Move handles-related files to src/handles 2019-05-23 06:00:15 +00:00
codegen-tester.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
codegen-tester.h Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
function-tester.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
function-tester.h Move handles-related files to src/handles 2019-05-23 06:00:15 +00:00
graph-and-builders.h [cleanup] Removing GraphBuilderTester class 2019-05-07 09:54:51 +00:00
serializer-tester.cc [TurboFan] Serializing context information 2019-06-26 08:25:53 +00:00
serializer-tester.h [turbofan] Don't allocate JSHeapBroker in the zone 2019-05-02 13:02:19 +00:00
test-basic-block-profiler.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-branch-combine.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-code-assembler.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
test-code-generator.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-gap-resolver.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
test-graph-visualizer.cc Reland "Introduce StdoutStream which prints to Android log or stdout" 2018-06-14 13:29:01 +00:00
test-instruction-scheduler.cc [turbofan] Implement loop rotation 2018-11-16 13:52:12 +00:00
test-instruction.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
test-js-constant-cache.cc Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
test-js-context-specialization.cc [turbofan] JSHeapBroker logging respects --trace-turbo-filter 2019-06-12 11:02:38 +00:00
test-js-typed-lowering.cc [turbofan] JSHeapBroker logging respects --trace-turbo-filter 2019-06-12 11:02:38 +00:00
test-jump-threading.cc Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
test-linkage.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-loop-analysis.cc Reland "Introduce StdoutStream which prints to Android log or stdout" 2018-06-14 13:29:01 +00:00
test-machine-operator-reducer.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-multiple-return.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
test-node.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
test-operator.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
test-representation-change.cc [turbofan] Properly handle -0 in Word32->Word64 conversion. 2019-06-18 11:17:25 +00:00
test-run-bytecode-graph-builder.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-calls-to-external-references.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-deopt.cc Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
test-run-intrinsics.cc Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
test-run-jsbranches.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-jscalls.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-run-jsexceptions.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-jsobjects.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-jsops.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-load-store.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-machops.cc Move utility code to src/utils 2019-05-23 14:13:34 +00:00
test-run-native-calls.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
test-run-retpoline.cc Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
test-run-stackcheck.cc Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
test-run-tail-calls.cc Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
test-run-unwinding-info.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-run-variables.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
value-helper.cc Reland "[test] Avoid unnecessary std::vector allocations" 2017-10-19 08:47:31 +00:00
value-helper.h Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00