diff options
Diffstat (limited to 'src/Structure/Instructions/Instrs/Reference')
3 files changed, 14 insertions, 0 deletions
diff --git a/src/Structure/Instructions/Instrs/Reference/RefFunc.php b/src/Structure/Instructions/Instrs/Reference/RefFunc.php index 9924de1..0ccbc36 100644 --- a/src/Structure/Instructions/Instrs/Reference/RefFunc.php +++ b/src/Structure/Instructions/Instrs/Reference/RefFunc.php @@ -13,4 +13,9 @@ final readonly class RefFunc extends Instr public FuncIdx $func, ) { } + + public static function opName(): string + { + return "ref.func"; + } } diff --git a/src/Structure/Instructions/Instrs/Reference/RefIsNull.php b/src/Structure/Instructions/Instrs/Reference/RefIsNull.php index eb8db06..116fc4e 100644 --- a/src/Structure/Instructions/Instrs/Reference/RefIsNull.php +++ b/src/Structure/Instructions/Instrs/Reference/RefIsNull.php @@ -8,4 +8,8 @@ use Nsfisis\Waddiwasi\Structure\Instructions\Instr; final readonly class RefIsNull extends Instr { + public static function opName(): string + { + return "ref.is_null"; + } } diff --git a/src/Structure/Instructions/Instrs/Reference/RefNull.php b/src/Structure/Instructions/Instrs/Reference/RefNull.php index 06e339c..11c603c 100644 --- a/src/Structure/Instructions/Instrs/Reference/RefNull.php +++ b/src/Structure/Instructions/Instrs/Reference/RefNull.php @@ -13,4 +13,9 @@ final readonly class RefNull extends Instr public RefType $type, ) { } + + public static function opName(): string + { + return "ref.null"; + } } |
