aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/BinaryFormat/Internal/Code.php
blob: 80010e2faf0d13d096adc9134f13b17a606ead96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\WebAssembly\BinaryFormat\Internal;

use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr;

/**
 * @internal
 */
final readonly class Code
{
    /**
     * @param list<Locals> $compressedLocals
     * @param list<Instr> $body
     */
    public function __construct(
        public array $compressedLocals,
        public array $body,
    ) {
    }
}