aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/Stack.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-13 22:42:58 +0900
committernsfisis <nsfisis@gmail.com>2024-03-13 22:42:58 +0900
commit814e5197439fbf2b404e8e66f3c6dd6e5ed39776 (patch)
tree72901a7e2f1641366d2cfd57b883929989c68328 /src/Execution/Stack.php
parent7348999caf3ce1e0be64697319581d52f1d7f8ea (diff)
downloadphp-waddiwasi-814e5197439fbf2b404e8e66f3c6dd6e5ed39776.tar.gz
php-waddiwasi-814e5197439fbf2b404e8e66f3c6dd6e5ed39776.tar.zst
php-waddiwasi-814e5197439fbf2b404e8e66f3c6dd6e5ed39776.zip
perf: make *Addr/*Idx to primitive int
Diffstat (limited to 'src/Execution/Stack.php')
-rw-r--r--src/Execution/Stack.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Execution/Stack.php b/src/Execution/Stack.php
index 3a40764..467bd9b 100644
--- a/src/Execution/Stack.php
+++ b/src/Execution/Stack.php
@@ -79,12 +79,12 @@ final class Stack
$this->pushValue(Val::RefNull($type));
}
- public function pushRefFunc(FuncAddr $addr): void
+ public function pushRefFunc(int $addr): void
{
$this->pushValue(Val::RefFunc($addr));
}
- public function pushRefExtern(ExternAddr $addr): void
+ public function pushRefExtern(int $addr): void
{
$this->pushValue(Val::RefExtern($addr));
}