Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: src/api.cc

Issue 2290753002: Blink-compatible serialization of SharedArrayBuffer. (Closed)
Patch Set: msvc dislikes array initializer Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | src/value-serializer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index ccafff1c805d23aedb22d6950fd8bab1a480c4d1..9a0cf6dbfaeb71d3a5cab414b6540bd28cdbc208 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -2871,6 +2871,12 @@ void ValueSerializer::TransferArrayBuffer(uint32_t transfer_id,
Utils::OpenHandle(*array_buffer));
}
+void ValueSerializer::TransferSharedArrayBuffer(
+ uint32_t transfer_id, Local<SharedArrayBuffer> shared_array_buffer) {
+ private_->serializer.TransferArrayBuffer(
+ transfer_id, Utils::OpenHandle(*shared_array_buffer));
+}
+
struct ValueDeserializer::PrivateData {
PrivateData(i::Isolate* i, i::Vector<const uint8_t> data)
: isolate(i), deserializer(i, data) {}
@@ -2941,6 +2947,12 @@ void ValueDeserializer::TransferArrayBuffer(uint32_t transfer_id,
Utils::OpenHandle(*array_buffer));
}
+void ValueDeserializer::TransferSharedArrayBuffer(
+ uint32_t transfer_id, Local<SharedArrayBuffer> shared_array_buffer) {
+ private_->deserializer.TransferArrayBuffer(
+ transfer_id, Utils::OpenHandle(*shared_array_buffer));
+}
+
// --- D a t a ---
bool Value::FullIsUndefined() const {
« no previous file with comments | « include/v8.h ('k') | src/value-serializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698