d855d7f7b1
This CL has two changes: 1. Remove ValueDeserializer::Delegate::SupportsSharedValues. Only ValueSerializer::Delegate needs to report whether it supports serializing shared values. The ValueDeserializer::Delegate should DCHECK if it gets a shared object tag but it doesn't support it. This better mirrors what happens with SharedArrayBuffer transfers currently. 2. When attempting to serialize a shared object (shared struct, shared array, Atomics.Mutex, or Atomics.Condition) when !SupportsSharedValues(), throw instead of assert. This is for better ergonomics. Bug: v8:12547 Change-Id: I2bb66830393526578016813c4e3488859dd07073 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3866302 Commit-Queue: Camillo Bruni <cbruni@chromium.org> Auto-Submit: Shu-yu Guo <syg@chromium.org> Reviewed-by: Camillo Bruni <cbruni@chromium.org> Reviewed-by: Dominik Inführ <dinfuehr@chromium.org> Cr-Commit-Position: refs/heads/main@{#82870} |
||
---|---|---|
.. | ||
client-gc.js | ||
condition-workers.js | ||
condition.js | ||
mutex-workers.js | ||
mutex.js | ||
shared-array-atomics-workers.js | ||
shared-array-atomics.js | ||
shared-array-surface.js | ||
shared-array-workers.js | ||
shared-string-in-code-object.js | ||
shared-string-in-weak-map.js | ||
shared-string-promotion-major.js | ||
shared-string-promotion-minor.js | ||
shared-string.js | ||
shared-struct-atomics-workers.js | ||
shared-struct-atomics.js | ||
shared-struct-surface.js | ||
shared-struct-without-map-space.js | ||
shared-struct-workers-optimized-code.js | ||
shared-struct-workers.js |