diff options
Diffstat (limited to 'src/WebAssembly/Structure/Instructions/Instrs/Table')
8 files changed, 162 insertions, 0 deletions
diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Table/ElemDrop.php b/src/WebAssembly/Structure/Instructions/Instrs/Table/ElemDrop.php new file mode 100644 index 0000000..4ead3cb --- /dev/null +++ b/src/WebAssembly/Structure/Instructions/Instrs/Table/ElemDrop.php @@ -0,0 +1,20 @@ +<?php + +declare(strict_types=1); + +namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Table; + +use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr; + +final readonly class ElemDrop extends Instr +{ + protected function __construct( + public int $elem, + ) { + } + + public static function opName(): string + { + return "elem.drop"; + } +} 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"; + } +} diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Table/TableFill.php b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableFill.php new file mode 100644 index 0000000..8a8fba4 --- /dev/null +++ b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableFill.php @@ -0,0 +1,20 @@ +<?php + +declare(strict_types=1); + +namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Table; + +use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr; + +final readonly class TableFill extends Instr +{ + protected function __construct( + public int $table, + ) { + } + + public static function opName(): string + { + return "table.fill"; + } +} diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Table/TableGet.php b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableGet.php new file mode 100644 index 0000000..0a562cb --- /dev/null +++ b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableGet.php @@ -0,0 +1,20 @@ +<?php + +declare(strict_types=1); + +namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Table; + +use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr; + +final readonly class TableGet extends Instr +{ + protected function __construct( + public int $table, + ) { + } + + public static function opName(): string + { + return "table.get"; + } +} diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Table/TableGrow.php b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableGrow.php new file mode 100644 index 0000000..fae1bd0 --- /dev/null +++ b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableGrow.php @@ -0,0 +1,20 @@ +<?php + +declare(strict_types=1); + +namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Table; + +use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr; + +final readonly class TableGrow extends Instr +{ + protected function __construct( + public int $table, + ) { + } + + public static function opName(): string + { + return "table.grow"; + } +} diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Table/TableInit.php b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableInit.php new file mode 100644 index 0000000..221c938 --- /dev/null +++ b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableInit.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 TableInit extends Instr +{ + protected function __construct( + public int $to, + public int $from, + ) { + } + + public static function opName(): string + { + return "table.init"; + } +} diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Table/TableSet.php b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableSet.php new file mode 100644 index 0000000..46ce56f --- /dev/null +++ b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableSet.php @@ -0,0 +1,20 @@ +<?php + +declare(strict_types=1); + +namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Table; + +use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr; + +final readonly class TableSet extends Instr +{ + protected function __construct( + public int $table, + ) { + } + + public static function opName(): string + { + return "table.set"; + } +} diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Table/TableSize.php b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableSize.php new file mode 100644 index 0000000..8a1625a --- /dev/null +++ b/src/WebAssembly/Structure/Instructions/Instrs/Table/TableSize.php @@ -0,0 +1,20 @@ +<?php + +declare(strict_types=1); + +namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Table; + +use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr; + +final readonly class TableSize extends Instr +{ + protected function __construct( + public int $table, + ) { + } + + public static function opName(): string + { + return "table.size"; + } +} |
