v8/src/snapshot
Leszek Swirski c212d10da0 [serializer] Introduce HandleScopes for object contents
Create a HandleScope when serializing an object's contents, to reduce
the number of live handles during serialization. There's only a couple
of cases where these handles have to outlive the serialized contents,
and for these cases we introduce GlobalHandleVector or similar manual
strong root mechanisms.

In particular, backrefs don't actually need to exist as a handle vector
(the object addresses are already referred to by the reference map's
IdentityMap), except for DCHECKs, so this becomes a DEBUG-only global
handle vector.

To support this manual strong-rooting, the HotObjectList is split up
into a strong-rooted find-only class in Serializer, and a Handle
vector in Deserializer.

Bug: chromium:1075999
Change-Id: I586eeeb543e3f6c934c168961b068f2c34e72456
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2449980
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70411}
2020-10-08 18:03:51 +00:00
..
embedded [snapshot] Use a function symbol only on x64 or ia32 2020-10-07 13:15:19 +00:00
code-serializer.cc Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
code-serializer.h Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
context-deserializer.cc Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
context-deserializer.h Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
context-serializer.cc [serializer] Introduce HandleScopes for object contents 2020-10-08 18:03:51 +00:00
context-serializer.h Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
DEPS Reland "[snapshot] Extract more files" 2020-04-22 06:09:18 +00:00
deserializer.cc [serializer] Introduce HandleScopes for object contents 2020-10-08 18:03:51 +00:00
deserializer.h [serializer] Introduce HandleScopes for object contents 2020-10-08 18:03:51 +00:00
mksnapshot.cc [snapshot] enable mksnapshot usage to be displayed 2020-07-14 17:58:27 +00:00
object-deserializer.cc Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
object-deserializer.h Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
OWNERS [owners] Add leszeks@ as snapshot owner 2020-09-22 14:36:28 +00:00
read-only-deserializer.cc Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
read-only-deserializer.h Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
read-only-serializer.cc Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
read-only-serializer.h Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
references.h Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
roots-serializer.cc Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
roots-serializer.h Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
serializer-deserializer.cc [serializer] Introduce HandleScopes for object contents 2020-10-08 18:03:51 +00:00
serializer-deserializer.h [serializer] Introduce HandleScopes for object contents 2020-10-08 18:03:51 +00:00
serializer.cc [serializer] Introduce HandleScopes for object contents 2020-10-08 18:03:51 +00:00
serializer.h [serializer] Introduce HandleScopes for object contents 2020-10-08 18:03:51 +00:00
snapshot-compression.cc Reland "[snapshot] Extract more files" 2020-04-22 06:09:18 +00:00
snapshot-compression.h Reland "[snapshot] Extract more files" 2020-04-22 06:09:18 +00:00
snapshot-data.cc Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
snapshot-data.h Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
snapshot-empty.cc Replace CHECK(false) by UNREACHABLE() 2017-12-19 18:58:07 +00:00
snapshot-external.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
snapshot-source-sink.cc [serializer] Clean up value encoding in bytecodes 2020-09-01 11:36:24 +00:00
snapshot-source-sink.h Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
snapshot-utils.cc Separate metadata from code in the embedded data blob 2020-07-22 09:50:27 +00:00
snapshot-utils.h Separate metadata from code in the embedded data blob 2020-07-22 09:50:27 +00:00
snapshot.cc [snapshot] Print allocation stats for memory tests 2020-10-08 11:25:51 +00:00
snapshot.h Add DisallowGarbageCollection and AllowGarbageCollection 2020-09-22 08:07:08 +00:00
startup-deserializer.cc [serializer] Introduce HandleScopes for object contents 2020-10-08 18:03:51 +00:00
startup-deserializer.h Reland^4 "[serializer] Allocate during deserialization" 2020-10-07 08:15:50 +00:00
startup-serializer.cc [serializer] Introduce HandleScopes for object contents 2020-10-08 18:03:51 +00:00
startup-serializer.h [serializer] Introduce HandleScopes for object contents 2020-10-08 18:03:51 +00:00