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

Unified Diff: include/v8.h

Issue 2579963002: Revert of Disallow passing a SharedArrayBuffer in the transfer list. (Closed)
Patch Set: Created 4 years 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 | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 1ab2af39c1e3bd4cbcd2a2a00a549a8d86a0849c..3a8b071099b84aa883f5c87a91034a67d701b82e 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -1710,19 +1710,6 @@
virtual Maybe<bool> WriteHostObject(Isolate* isolate, Local<Object> object);
/*
- * Called when the ValueSerializer is going to serialize a
- * SharedArrayBuffer object. The embedder must return an ID for the
- * object, using the same ID if this SharedArrayBuffer has already been
- * serialized in this buffer. When deserializing, this ID will be passed to
- * ValueDeserializer::TransferSharedArrayBuffer as |transfer_id|.
- *
- * If the object cannot be serialized, an
- * exception should be thrown and Nothing<uint32_t>() returned.
- */
- virtual Maybe<uint32_t> GetSharedArrayBufferId(
- Isolate* isolate, Local<SharedArrayBuffer> shared_array_buffer);
-
- /*
* Allocates memory for the buffer of at least the size provided. The actual
* size (which may be greater or equal) is written to |actual_size|. If no
* buffer has been allocated yet, nullptr will be provided.
@@ -1776,10 +1763,8 @@
/*
* Similar to TransferArrayBuffer, but for SharedArrayBuffer.
*/
- V8_DEPRECATE_SOON("Use Delegate::GetSharedArrayBufferId",
- void TransferSharedArrayBuffer(
- uint32_t transfer_id,
- Local<SharedArrayBuffer> shared_array_buffer));
+ void TransferSharedArrayBuffer(uint32_t transfer_id,
+ Local<SharedArrayBuffer> shared_array_buffer);
/*
* Write raw data in various common formats to the buffer.
@@ -1846,10 +1831,9 @@
/*
* Similar to TransferArrayBuffer, but for SharedArrayBuffer.
- * The id is not necessarily in the same namespace as unshared ArrayBuffer
- * objects.
- */
- void TransferSharedArrayBuffer(uint32_t id,
+ * transfer_id exists in the same namespace as unshared ArrayBuffer objects.
+ */
+ void TransferSharedArrayBuffer(uint32_t transfer_id,
Local<SharedArrayBuffer> shared_array_buffer);
/*
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698