aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Execution/Refs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/Execution/Refs')
-rw-r--r--src/WebAssembly/Execution/Refs/RefExtern.php15
-rw-r--r--src/WebAssembly/Execution/Refs/RefFunc.php15
-rw-r--r--src/WebAssembly/Execution/Refs/RefNull.php16
3 files changed, 46 insertions, 0 deletions
diff --git a/src/WebAssembly/Execution/Refs/RefExtern.php b/src/WebAssembly/Execution/Refs/RefExtern.php
new file mode 100644
index 0000000..41f3acd
--- /dev/null
+++ b/src/WebAssembly/Execution/Refs/RefExtern.php
@@ -0,0 +1,15 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\Execution\Refs;
+
+use Nsfisis\Waddiwasi\WebAssembly\Execution\Ref;
+
+final readonly class RefExtern extends Ref
+{
+ public function __construct(
+ public int $addr,
+ ) {
+ }
+}
diff --git a/src/WebAssembly/Execution/Refs/RefFunc.php b/src/WebAssembly/Execution/Refs/RefFunc.php
new file mode 100644
index 0000000..3eabf4b
--- /dev/null
+++ b/src/WebAssembly/Execution/Refs/RefFunc.php
@@ -0,0 +1,15 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\Execution\Refs;
+
+use Nsfisis\Waddiwasi\WebAssembly\Execution\Ref;
+
+final readonly class RefFunc extends Ref
+{
+ public function __construct(
+ public int $addr,
+ ) {
+ }
+}
diff --git a/src/WebAssembly/Execution/Refs/RefNull.php b/src/WebAssembly/Execution/Refs/RefNull.php
new file mode 100644
index 0000000..438ed9e
--- /dev/null
+++ b/src/WebAssembly/Execution/Refs/RefNull.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\Execution\Refs;
+
+use Nsfisis\Waddiwasi\WebAssembly\Execution\Ref;
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\RefType;
+
+final readonly class RefNull extends Ref
+{
+ public function __construct(
+ public RefType $type,
+ ) {
+ }
+}