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

Unified Diff: src/value-serializer.h

Issue 2762273002: Reland of [wasm] Transferrable modules (Closed)
Patch Set: Created 3 years, 9 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 | « src/api.cc ('k') | src/value-serializer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/value-serializer.h
diff --git a/src/value-serializer.h b/src/value-serializer.h
index 7961b2ea0b6a78375b8975945fa740cc3de8b06d..ef424698d0e59d10323d4f5a136ffcabb5710881 100644
--- a/src/value-serializer.h
+++ b/src/value-serializer.h
@@ -31,6 +31,7 @@
class Object;
class Oddball;
class Smi;
+class WasmModuleObject;
enum class SerializationTag : uint8_t;
@@ -218,6 +219,9 @@
bool ReadUint64(uint64_t* value) WARN_UNUSED_RESULT;
bool ReadDouble(double* value) WARN_UNUSED_RESULT;
bool ReadRawBytes(size_t length, const void** data) WARN_UNUSED_RESULT;
+ void set_expect_inline_wasm(bool expect_inline_wasm) {
+ expect_inline_wasm_ = expect_inline_wasm;
+ }
private:
// Reading the wire format.
@@ -230,6 +234,7 @@
Maybe<T> ReadZigZag() WARN_UNUSED_RESULT;
Maybe<double> ReadDouble() WARN_UNUSED_RESULT;
Maybe<Vector<const uint8_t>> ReadRawBytes(int size) WARN_UNUSED_RESULT;
+ bool expect_inline_wasm() const { return expect_inline_wasm_; }
// Reads a string if it matches the one provided.
// Returns true if this was the case. Otherwise, nothing is consumed.
@@ -263,6 +268,7 @@
MaybeHandle<JSArrayBufferView> ReadJSArrayBufferView(
Handle<JSArrayBuffer> buffer) WARN_UNUSED_RESULT;
MaybeHandle<JSObject> ReadWasmModule() WARN_UNUSED_RESULT;
+ MaybeHandle<JSObject> ReadWasmModuleTransfer() WARN_UNUSED_RESULT;
MaybeHandle<JSObject> ReadHostObject() WARN_UNUSED_RESULT;
/*
@@ -285,6 +291,7 @@
PretenureFlag pretenure_;
uint32_t version_ = 0;
uint32_t next_id_ = 0;
+ bool expect_inline_wasm_ = false;
// Always global handles.
Handle<FixedArray> id_map_;
« no previous file with comments | « src/api.cc ('k') | src/value-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698