aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/ModuleInst.php
blob: e073916eedb0bb7c829a6d76e9291b6800e8a4f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\Execution;

use Nsfisis\Waddiwasi\Structure\Types\FuncType;

final class ModuleInst
{
    /**
     * @param list<FuncType> $types
     * @param list<int> $funcAddrs
     * @param list<int> $tableAddrs
     * @param list<int> $memAddrs
     * @param list<int> $globalAddrs
     * @param list<int> $elemAddrs
     * @param list<int> $dataAddrs
     * @param list<ExportInst> $exports
     */
    public function __construct(
        public array $types,
        public array $funcAddrs,
        public array $tableAddrs,
        public array $memAddrs,
        public array $globalAddrs,
        public array $elemAddrs,
        public array $dataAddrs,
        public array $exports,
    ) {
    }
}