Commit 633cc57f authored by Igor Sheludko's avatar Igor Sheludko Committed by V8 LUCI CQ

[runtime] Update transitioning target when deserializing values

Bug: chromium:1359936
Change-Id: If5b09647dbb341b056a782ae6d1733351c8061bb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3870487
Auto-Submit: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82977}
parent fb41a136
......@@ -2392,6 +2392,10 @@ Maybe<uint32_t> ValueDeserializer::ReadJSObjectProperties(
// (though generalization may be required), store the property value so
// that we can copy them all at once. Otherwise, stop transitioning.
if (transitioning) {
// Deserializaton of |value| might have deprecated current |target|,
// ensure we are working with the up-to-date version.
target = Map::Update(isolate_, target);
InternalIndex descriptor(properties.size());
PropertyDetails details =
target->instance_descriptors(isolate_).GetDetails(descriptor);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment