aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Validation/ControlFrame.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/Validation/ControlFrame.php')
-rw-r--r--src/WebAssembly/Validation/ControlFrame.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/WebAssembly/Validation/ControlFrame.php b/src/WebAssembly/Validation/ControlFrame.php
new file mode 100644
index 0000000..4decc1e
--- /dev/null
+++ b/src/WebAssembly/Validation/ControlFrame.php
@@ -0,0 +1,23 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\Validation;
+
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\ValType;
+
+final readonly class ControlFrame
+{
+ /**
+ * @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,
+ ) {
+ }
+}