summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-02-05 12:35:09 -0800
committerGitHub <noreply@github.com>2019-02-05 12:35:09 -0800
commitf424f81886405fc26a415fc86900c0f8d0df14eb (patch)
tree5896c316f216fca9654f55e41809839d181ca53b /src/wasm-interpreter.h
parent484f62f985cb2180139d1cf991ac04ee41635417 (diff)
downloadbinaryen-f424f81886405fc26a415fc86900c0f8d0df14eb.tar.gz
binaryen-f424f81886405fc26a415fc86900c0f8d0df14eb.tar.bz2
binaryen-f424f81886405fc26a415fc86900c0f8d0df14eb.zip
Bulk memory operations (#1892)
Bulk memory operations The only parts missing are the interpreter implementation and spec tests.
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index b10f3087f..c584f0ea7 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -727,6 +727,10 @@ public:
Flow visitLoad(Load *curr) { WASM_UNREACHABLE(); }
Flow visitStore(Store *curr) { WASM_UNREACHABLE(); }
Flow visitHost(Host *curr) { WASM_UNREACHABLE(); }
+ Flow visitMemoryInit(MemoryInit *curr) { WASM_UNREACHABLE(); }
+ Flow visitDataDrop(DataDrop *curr) { WASM_UNREACHABLE(); }
+ Flow visitMemoryCopy(MemoryCopy *curr) { WASM_UNREACHABLE(); }
+ Flow visitMemoryFill(MemoryFill *curr) { WASM_UNREACHABLE(); }
};
//
@@ -1152,6 +1156,26 @@ public:
}
WASM_UNREACHABLE();
}
+ Flow visitMemoryInit(MemoryInit *curr) {
+ NOTE_ENTER("MemoryInit");
+ // TODO(tlively): implement me
+ return {};
+ }
+ Flow visitDataDrop(DataDrop *curr) {
+ NOTE_ENTER("DataDrop");
+ // TODO(tlively): implement me
+ return {};
+ }
+ Flow visitMemoryCopy(MemoryCopy *curr) {
+ NOTE_ENTER("MemoryCopy");
+ // TODO(tlively): implement me
+ return {};
+ }
+ Flow visitMemoryFill(MemoryFill *curr) {
+ NOTE_ENTER("MemoryFill");
+ // TODO(tlively): implement me
+ return {};
+ }
void trap(const char* why) override {
instance.externalInterface->trap(why);