aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/StackEntry.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/StackEntry.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/StackEntry.php')
-rw-r--r--src/Execution/StackEntry.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/Execution/StackEntry.php b/src/Execution/StackEntry.php
deleted file mode 100644
index 4260830..0000000
--- a/src/Execution/StackEntry.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace Nsfisis\Waddiwasi\Execution;
-
-abstract class StackEntry
-{
- final public static function Value(int|float|Ref $inner): StackEntries\Value
- {
- return new StackEntries\Value($inner);
- }
-
- /**
- * @param int<0, max> $arity
- */
- final public static function Label(
- int $arity,
- ): StackEntries\Label {
- return new StackEntries\Label($arity);
- }
-
- /**
- * @param int<0, max> $arity
- * @param list<int|float|Ref> $locals
- */
- final public static function Frame(
- int $arity,
- array $locals,
- ModuleInst $module,
- string $debugName,
- ): StackEntries\Frame {
- return new StackEntries\Frame($arity, $locals, $module, $debugName);
- }
-}