aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/Frame.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-14 00:28:30 +0900
committernsfisis <nsfisis@gmail.com>2024-03-14 00:28:30 +0900
commitf490780439450a06cf71eb40b453fc0154264337 (patch)
tree85e636efabc1e6ae6ae26e1cd58991e1b4dba560 /src/Execution/Frame.php
parent44f5eb882bcaab2f5a19a0d7680929d6b0463f62 (diff)
downloadphp-waddiwasi-f490780439450a06cf71eb40b453fc0154264337.tar.gz
php-waddiwasi-f490780439450a06cf71eb40b453fc0154264337.tar.zst
php-waddiwasi-f490780439450a06cf71eb40b453fc0154264337.zip
perf: unwrap StackEntry
Diffstat (limited to 'src/Execution/Frame.php')
-rw-r--r--src/Execution/Frame.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Execution/Frame.php b/src/Execution/Frame.php
new file mode 100644
index 0000000..da03e33
--- /dev/null
+++ b/src/Execution/Frame.php
@@ -0,0 +1,20 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Execution;
+
+final class Frame
+{
+ /**
+ * @param int<0, max> $arity
+ * @param list<int|float|Ref> $locals
+ */
+ public function __construct(
+ public readonly int $arity,
+ public array $locals,
+ public readonly ModuleInst $module,
+ public string $debugName,
+ ) {
+ }
+}