aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/ModuleInst.php
blob: 2cd7f08ee4e5a67601667e8e107a7d59af05cf55 (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<FuncAddr> $funcAddrs
     * @param list<TableAddr> $tableAddrs
     * @param list<MemAddr> $memAddrs
     * @param list<GlobalAddr> $globalAddrs
     * @param list<ElemAddr> $elemAddrs
     * @param list<DataAddr> $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,
    ) {
    }
}