aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Validation/ControlFrame.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-21 23:22:25 +0900
committernsfisis <nsfisis@gmail.com>2026-02-21 23:22:35 +0900
commit39e6c4bfb1f3fb96bba47e3eec8e6451038a3d22 (patch)
tree619472dd31a38ae277299495d0ff213e31093dfb /src/WebAssembly/Validation/ControlFrame.php
parent2bea3784061a33870d4678af011ffc6fc73c6ad3 (diff)
downloadphp-waddiwasi-39e6c4bfb1f3fb96bba47e3eec8e6451038a3d22.tar.gz
php-waddiwasi-39e6c4bfb1f3fb96bba47e3eec8e6451038a3d22.tar.zst
php-waddiwasi-39e6c4bfb1f3fb96bba47e3eec8e6451038a3d22.zip
feat: implement validation phaseHEADmain
Diffstat (limited to 'src/WebAssembly/Validation/ControlFrame.php')
-rw-r--r--src/WebAssembly/Validation/ControlFrame.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/WebAssembly/Validation/ControlFrame.php b/src/WebAssembly/Validation/ControlFrame.php
new file mode 100644
index 0000000..e956b4c
--- /dev/null
+++ b/src/WebAssembly/Validation/ControlFrame.php
@@ -0,0 +1,24 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\Validation;
+
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\ValType;
+
+final readonly class ControlFrame
+{
+ /**
+ * @param class-string $opcode
+ * @param list<ValType> $startTypes
+ * @param list<ValType> $endTypes
+ */
+ public function __construct(
+ public string $opcode,
+ public array $startTypes,
+ public array $endTypes,
+ public int $height,
+ public bool $unreachable,
+ ) {
+ }
+}