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

Unified Diff: src/objects.cc

Issue 2226753002: [wasm] external serialization APIs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index e2b3615df189edf2dcc45b5ce25b01c069ad9a8d..844c56b58d1e8422301bfe77a6b6e0d7dbcc2552 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -58,6 +58,7 @@
#include "src/string-search.h"
#include "src/string-stream.h"
#include "src/utils.h"
+#include "src/wasm/wasm-module.h"
#include "src/zone.h"
#ifdef ENABLE_DISASSEMBLER
@@ -19006,6 +19007,17 @@ Handle<JSArrayBuffer> JSTypedArray::GetBuffer() {
return MaterializeArrayBuffer(self);
}
+std::pair<std::unique_ptr<const byte>, size_t>
+WebAssemblyCompiledModule::Serialize() {
+ // TODO(mtrofin): tie to the internal serialization API
+ return {std::unique_ptr<const byte>(), 0};
+}
+
+MaybeHandle<WebAssemblyCompiledModule> WebAssemblyCompiledModule::Deserialize(
+ Isolate* isolate, const byte* data, size_t size) {
+ // TODO(mtrofin): tie to the internal serialization API
+ return MaybeHandle<WebAssemblyCompiledModule>();
+}
Handle<PropertyCell> PropertyCell::InvalidateEntry(
Handle<GlobalDictionary> dictionary, int entry) {
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698