summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp b/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp
index fc512253db..56cba381e0 100644
--- a/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp
+++ b/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp
@@ -1887,6 +1887,15 @@ VALIDATE_INSTRUCTION(memory_fill)
return {};
}
+VALIDATE_INSTRUCTION(memory_copy)
+{
+ TRY(validate(MemoryIndex { 0 }));
+
+ TRY((stack.take<ValueType::I32, ValueType::I32, ValueType::I32>()));
+
+ return {};
+}
+
VALIDATE_INSTRUCTION(memory_init)
{
TRY(validate(MemoryIndex { 0 }));