aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Structure/Instructions/Instrs/Table/TableCopy.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/Structure/Instructions/Instrs/Table/TableCopy.php')
-rw-r--r--src/WebAssembly/Structure/Instructions/Instrs/Table/TableCopy.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Table/TableCopy.php b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableCopy.php
new file mode 100644
index 0000000..ca4e01a
--- /dev/null
+++ b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableCopy.php
@@ -0,0 +1,21 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Table;
+
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr;
+
+final readonly class TableCopy extends Instr
+{
+ protected function __construct(
+ public int $to,
+ public int $from,
+ ) {
+ }
+
+ public static function opName(): string
+ {
+ return "table.copy";
+ }
+}