From 26f49b7e27076e689541b9e13a1b54f60a4ee5c2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 11 Jul 2024 02:57:23 +0900 Subject: feat: organize namespaces --- .../Instructions/Instrs/Control/Block.php | 24 -------------------- .../Instructions/Instrs/Control/BlockType.php | 25 --------------------- .../Instrs/Control/BlockTypes/TypeIdx.php | 14 ------------ .../Instrs/Control/BlockTypes/ValType.php | 20 ----------------- src/Structure/Instructions/Instrs/Control/Br.php | 20 ----------------- src/Structure/Instructions/Instrs/Control/BrIf.php | 20 ----------------- .../Instructions/Instrs/Control/BrTable.php | 24 -------------------- src/Structure/Instructions/Instrs/Control/Call.php | 20 ----------------- .../Instructions/Instrs/Control/CallIndirect.php | 21 ----------------- .../Instructions/Instrs/Control/Else_.php | 15 ------------- src/Structure/Instructions/Instrs/Control/End.php | 15 ------------- src/Structure/Instructions/Instrs/Control/If_.php | 26 ---------------------- src/Structure/Instructions/Instrs/Control/Loop.php | 24 -------------------- src/Structure/Instructions/Instrs/Control/Nop.php | 15 ------------- .../Instructions/Instrs/Control/Return_.php | 15 ------------- .../Instructions/Instrs/Control/Unreachable.php | 15 ------------- 16 files changed, 313 deletions(-) delete mode 100644 src/Structure/Instructions/Instrs/Control/Block.php delete mode 100644 src/Structure/Instructions/Instrs/Control/BlockType.php delete mode 100644 src/Structure/Instructions/Instrs/Control/BlockTypes/TypeIdx.php delete mode 100644 src/Structure/Instructions/Instrs/Control/BlockTypes/ValType.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Br.php delete mode 100644 src/Structure/Instructions/Instrs/Control/BrIf.php delete mode 100644 src/Structure/Instructions/Instrs/Control/BrTable.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Call.php delete mode 100644 src/Structure/Instructions/Instrs/Control/CallIndirect.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Else_.php delete mode 100644 src/Structure/Instructions/Instrs/Control/End.php delete mode 100644 src/Structure/Instructions/Instrs/Control/If_.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Loop.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Nop.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Return_.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Unreachable.php (limited to 'src/Structure/Instructions/Instrs/Control') diff --git a/src/Structure/Instructions/Instrs/Control/Block.php b/src/Structure/Instructions/Instrs/Control/Block.php deleted file mode 100644 index 29e68fd..0000000 --- a/src/Structure/Instructions/Instrs/Control/Block.php +++ /dev/null @@ -1,24 +0,0 @@ - $body - */ - protected function __construct( - public BlockType $type, - public array $body, - ) { - } - - public static function opName(): string - { - return "block"; - } -} diff --git a/src/Structure/Instructions/Instrs/Control/BlockType.php b/src/Structure/Instructions/Instrs/Control/BlockType.php deleted file mode 100644 index a90389b..0000000 --- a/src/Structure/Instructions/Instrs/Control/BlockType.php +++ /dev/null @@ -1,25 +0,0 @@ - $labelTable - */ - protected function __construct( - public array $labelTable, - public int $defaultLabel, - ) { - } - - public static function opName(): string - { - return "br_table"; - } -} diff --git a/src/Structure/Instructions/Instrs/Control/Call.php b/src/Structure/Instructions/Instrs/Control/Call.php deleted file mode 100644 index 9ee14be..0000000 --- a/src/Structure/Instructions/Instrs/Control/Call.php +++ /dev/null @@ -1,20 +0,0 @@ - $thenBody - * @param list $elseBody - */ - protected function __construct( - public BlockType $type, - public array $thenBody, - public array $elseBody, - ) { - } - - public static function opName(): string - { - return "if"; - } -} diff --git a/src/Structure/Instructions/Instrs/Control/Loop.php b/src/Structure/Instructions/Instrs/Control/Loop.php deleted file mode 100644 index 1572e4b..0000000 --- a/src/Structure/Instructions/Instrs/Control/Loop.php +++ /dev/null @@ -1,24 +0,0 @@ - $body - */ - protected function __construct( - public BlockType $type, - public array $body, - ) { - } - - public static function opName(): string - { - return "loop"; - } -} diff --git a/src/Structure/Instructions/Instrs/Control/Nop.php b/src/Structure/Instructions/Instrs/Control/Nop.php deleted file mode 100644 index 3aaeb4d..0000000 --- a/src/Structure/Instructions/Instrs/Control/Nop.php +++ /dev/null @@ -1,15 +0,0 @@ -