@fraczak/k 8.8.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/DOCS/ARCHITECTURE.md +5 -4
- package/DOCS/DICTIONARY.md +2 -2
- package/DOCS/FILE_FORMATS.md +11 -9
- package/DOCS/KIR_V1.md +5 -1
- package/DOCS/KTVM_SPEC.md +902 -0
- package/DOCS/KVM_EXECUTION_MODEL.md +3 -2
- package/DOCS/KVM_VS_KTVM_COMPARATIVE_STUDY.md +127 -0
- package/DOCS/PROFILING_AND_TRACING.md +6 -4
- package/DOCS/README.md +3 -2
- package/DOCS/REPL.md +16 -12
- package/README.md +132 -2
- package/backend-api.mjs +31 -16
- package/backends/llvm/README.md +4 -5
- package/backends/llvm/bin/k-llvm-build.mjs +7 -19
- package/backends/llvm/bin/k-llvm-compile.mjs +6 -18
- package/backends/llvm/bin/k-llvm.mjs +11 -33
- package/backends/llvm/src/cli.mjs +2 -12
- package/backends/llvm/src/executable.mjs +7 -95
- package/backends/llvm/src/kvm2llvm.mjs +1 -5
- package/backends/llvm/src/llvm.mjs +4 -111
- package/backends/llvm/tests/k-llvm-run.mjs +1 -6
- package/backends/llvm/tests/perf-support.mjs +3 -5
- package/backends/llvm/tests/test-llvm.mjs +0 -16
- package/backends/wasm/README.md +2 -3
- package/backends/wasm/bin/k-wasm-compile.mjs +4 -7
- package/backends/wasm/bin/k-wasm.mjs +4 -6
- package/backends/wasm/src/cli.mjs +8 -24
- package/backends/wasm/src/wasm.mjs +10 -56
- package/browser/repl-browser.mjs +9 -8
- package/browser/shims/buffer.mjs +31 -2
- package/browser/shims/child_process.mjs +26 -0
- package/browser/shims/fs.mjs +3 -1
- package/codecs/djson.mjs +2 -3
- package/codecs/int.mjs +66 -14
- package/conformance/run.mjs +17 -2
- package/harness/adapters/ktvm-llvm.mjs +118 -0
- package/harness/adapters/ktvm-wasm.mjs +104 -0
- package/harness/adapters/ktvm.mjs +133 -0
- package/harness/registry.mjs +9 -0
- package/ktvm/ast.mjs +218 -0
- package/ktvm/bit-deque.mjs +482 -0
- package/ktvm/fixtures/integer-streaming.k +477 -0
- package/ktvm/index.mjs +119 -0
- package/ktvm/llvm/index.mjs +202 -0
- package/ktvm/llvm/lower-c.mjs +1258 -0
- package/ktvm/llvm/runtime.h +3542 -0
- package/ktvm/llvm/test-llvm.mjs +476 -0
- package/ktvm/lower-kir.mjs +2221 -0
- package/ktvm/optimize/fuse-kernel.mjs +2111 -0
- package/ktvm/optimize/index.mjs +116 -0
- package/ktvm/optimize/mwtr.mjs +283 -0
- package/ktvm/optimize/simplify-procs.mjs +5250 -0
- package/ktvm/optimize/synthesize-tables.mjs +1105 -0
- package/ktvm/parser.mjs +1101 -0
- package/ktvm/printer.mjs +281 -0
- package/ktvm/schema.mjs +543 -0
- package/ktvm/specialize.mjs +538 -0
- package/ktvm/test-conformance.mjs +597 -0
- package/ktvm/test-ktvm.mjs +1376 -0
- package/ktvm/test-optimize.mjs +598 -0
- package/ktvm/validator.mjs +1280 -0
- package/ktvm/vm.mjs +2225 -0
- package/ktvm/wasm/index.mjs +331 -0
- package/ktvm/wasm/lower-wasm.mjs +1272 -0
- package/ktvm/wasm/runtime.wat +4413 -0
- package/ktvm/wasm/test-wasm.mjs +426 -0
- package/ktvm/wire.mjs +489 -0
- package/lib/djson.k +175 -173
- package/lib/generic.k +82 -97
- package/lib/ieee.k +110 -115
- package/lib/integer.k +25 -31
- package/package.json +1 -9
- package/repl.mjs +101 -20
- package/scripts/build-repl-html.mjs +40 -18
- package/scripts/perf-bigint-compare.mjs +275 -0
- package/scripts/perf-ieee.mjs +9 -229
- package/scripts/perf-int.mjs +14 -272
- package/scripts/perf-multiplication.mjs +8 -54
- package/scripts/perf-poly.mjs +9 -263
- package/scripts/run-tests.mjs +5 -2
- package/scripts/test-package.mjs +15 -3
- package/tests/README.md +3 -3
- package/tests/test-djson-methods.mjs +0 -1
- package/tests/test-djson.mjs +0 -1
- package/tests/test-generic.mjs +5 -7
- package/tests/test-repl-html.mjs +72 -15
- package/tests/test-repl.mjs +27 -20
- package/tests/test-structural-values.mjs +1 -1
- package/DOCS/POLYMORPHIC_IR.md +0 -86
- package/access-table.mjs +0 -343
- package/pkir.mjs +0 -772
- package/tests/test-access-table.mjs +0 -213
- package/tests/test-pkir.mjs +0 -530
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* kTVM WebAssembly Backend API & Runner (`k/ktvm/wasm/index.mjs`).
|
|
3
|
+
*
|
|
4
|
+
* Compiles concrete `mono` kTVM modules to validated WebAssembly binaries via
|
|
5
|
+
* `wabt` and provides a zero-decode/zero-encode direct `k-wire` execution runner.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { compileKTVMToWat } from "./lower-wasm.mjs";
|
|
9
|
+
import { validateModule } from "../validator.mjs";
|
|
10
|
+
import { specializeKTVM } from "../specialize.mjs";
|
|
11
|
+
import { optimizeKTVM } from "../optimize/index.mjs";
|
|
12
|
+
import { compileKIRToKTVM } from "../lower-kir.mjs";
|
|
13
|
+
import {
|
|
14
|
+
KTVMQuotaError,
|
|
15
|
+
KTVMSchemaError
|
|
16
|
+
} from "../ast.mjs";
|
|
17
|
+
import { schemasEquivalent } from "../schema.mjs";
|
|
18
|
+
import {
|
|
19
|
+
decodeDequeToValue,
|
|
20
|
+
dequeToPaddedBytes,
|
|
21
|
+
splitEnvelopedWire,
|
|
22
|
+
splitWireHeaderOnly
|
|
23
|
+
} from "../wire.mjs";
|
|
24
|
+
import { decodeWire } from "../../codecs/runtime/prefix-codec.mjs";
|
|
25
|
+
|
|
26
|
+
export { compileKTVMToWat } from "./lower-wasm.mjs";
|
|
27
|
+
|
|
28
|
+
let wabtPromise = null;
|
|
29
|
+
|
|
30
|
+
async function getWabt() {
|
|
31
|
+
if (!wabtPromise) {
|
|
32
|
+
wabtPromise = import("wabt").then(({ default: wabtFactory }) => wabtFactory());
|
|
33
|
+
}
|
|
34
|
+
return wabtPromise;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Compile WAT text to a validated WebAssembly binary (`Uint8Array`).
|
|
39
|
+
*/
|
|
40
|
+
export async function assembleWatToWasm(watText, { filename = "ktvm.wat" } = {}) {
|
|
41
|
+
const wabt = await getWabt();
|
|
42
|
+
let mod = null;
|
|
43
|
+
try {
|
|
44
|
+
mod = wabt.parseWat(filename, watText, {
|
|
45
|
+
mutable_globals: true,
|
|
46
|
+
sat_float_to_int: true,
|
|
47
|
+
sign_extension: true,
|
|
48
|
+
multi_value: true,
|
|
49
|
+
bulk_memory: true,
|
|
50
|
+
reference_types: true
|
|
51
|
+
});
|
|
52
|
+
mod.resolveNames();
|
|
53
|
+
mod.validate();
|
|
54
|
+
const bin = mod.toBinary({
|
|
55
|
+
log: false,
|
|
56
|
+
canonicalize_lebs: true,
|
|
57
|
+
relocatable: false,
|
|
58
|
+
write_debug_names: false
|
|
59
|
+
});
|
|
60
|
+
return new Uint8Array(bin.buffer.slice(0));
|
|
61
|
+
} catch (err) {
|
|
62
|
+
// Reset shared wabt instance if Wasm trap corrupted its internal C stack/heap
|
|
63
|
+
if (err instanceof WebAssembly.RuntimeError) {
|
|
64
|
+
wabtPromise = null;
|
|
65
|
+
}
|
|
66
|
+
throw err;
|
|
67
|
+
} finally {
|
|
68
|
+
if (mod) {
|
|
69
|
+
try { mod.destroy(); } catch {}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Compile a concrete `mono` kTVM module directly to a validated WebAssembly
|
|
76
|
+
* artifact `{ wasmBytes, wat, entry, inPlist, outPlist, inHeader, outHeader, stats }`.
|
|
77
|
+
*/
|
|
78
|
+
export async function compileKTVMToWasm(
|
|
79
|
+
monoMod,
|
|
80
|
+
{ entry = null, validate = true, verifyTables = true } = {}
|
|
81
|
+
) {
|
|
82
|
+
if (validate) {
|
|
83
|
+
validateModule(monoMod, { verifyTables });
|
|
84
|
+
}
|
|
85
|
+
const lowered = compileKTVMToWat(monoMod, { entry });
|
|
86
|
+
const wasmBytes = await assembleWatToWasm(lowered.wat);
|
|
87
|
+
return {
|
|
88
|
+
...lowered,
|
|
89
|
+
wasmBytes
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Fast O(headerBytes) prefix check testing whether an incoming enveloped `k-wire`
|
|
95
|
+
* buffer begins with the exact precomputed canonical input header bits.
|
|
96
|
+
*/
|
|
97
|
+
function matchesHeaderPrefix(wireBytes, hdrBytes, hdrBitLen) {
|
|
98
|
+
const fullBytes = hdrBitLen >> 3;
|
|
99
|
+
const remBits = hdrBitLen & 7;
|
|
100
|
+
if (wireBytes.length < fullBytes + (remBits > 0 ? 1 : 0)) return false;
|
|
101
|
+
for (let i = 0; i < fullBytes; i++) {
|
|
102
|
+
if (wireBytes[i] !== hdrBytes[i]) return false;
|
|
103
|
+
}
|
|
104
|
+
if (remBits > 0) {
|
|
105
|
+
const mask = (0xff << (8 - remBits)) & 0xff;
|
|
106
|
+
if ((wireBytes[fullBytes] & mask) !== (hdrBytes[fullBytes] & mask)) return false;
|
|
107
|
+
}
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Instantiate a compiled kTVM Wasm artifact into a reusable, zero-GC-reset runner.
|
|
113
|
+
*/
|
|
114
|
+
export async function instantiateKTVMWasm(artifact, { quota = null } = {}) {
|
|
115
|
+
const { instance } = await WebAssembly.instantiate(artifact.wasmBytes, {});
|
|
116
|
+
const exports = instance.exports;
|
|
117
|
+
const {
|
|
118
|
+
memory,
|
|
119
|
+
ktvm_run_wire,
|
|
120
|
+
ktvm_set_quotas,
|
|
121
|
+
ktvm_reserve_io,
|
|
122
|
+
ktvm_get_io_base,
|
|
123
|
+
ktvm_get_steps,
|
|
124
|
+
ktvm_get_peak_nodes,
|
|
125
|
+
ktvm_get_peak_bytes,
|
|
126
|
+
ktvm_get_table_lookups,
|
|
127
|
+
ktvm_get_splices,
|
|
128
|
+
ktvm_get_mux_demux_fusions,
|
|
129
|
+
ktvm_get_spec_rollbacks,
|
|
130
|
+
ktvm_get_spec_upstream_aborts,
|
|
131
|
+
ktvm_get_spec_tail_splices,
|
|
132
|
+
ktvm_get_after_settlements
|
|
133
|
+
} = exports;
|
|
134
|
+
|
|
135
|
+
const defaultMaxSteps = quota?.maxSteps ?? 50_000_000;
|
|
136
|
+
const defaultMaxNodes = quota?.maxNodes ?? 200_000;
|
|
137
|
+
const defaultMaxBytes = quota?.maxBitDequeBytes ?? 64 * 1024 * 1024;
|
|
138
|
+
ktvm_set_quotas(defaultMaxSteps, defaultMaxNodes, defaultMaxBytes);
|
|
139
|
+
|
|
140
|
+
let reservedIoBytes = 1048576; // default 1 MiB
|
|
141
|
+
const ioBase = ktvm_get_io_base();
|
|
142
|
+
const verifiedHeaders = [artifact.inHeader];
|
|
143
|
+
let cachedMemU8 = new Uint8Array(memory.buffer);
|
|
144
|
+
|
|
145
|
+
function getMemU8() {
|
|
146
|
+
if (cachedMemU8.buffer !== memory.buffer) {
|
|
147
|
+
cachedMemU8 = new Uint8Array(memory.buffer);
|
|
148
|
+
}
|
|
149
|
+
return cachedMemU8;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function matchVerifiedHeader(wireBytes) {
|
|
153
|
+
for (let i = 0; i < verifiedHeaders.length; i++) {
|
|
154
|
+
const h = verifiedHeaders[i];
|
|
155
|
+
if (matchesHeaderPrefix(wireBytes, h.bytes, h.bitLen)) return h.bitLen;
|
|
156
|
+
}
|
|
157
|
+
return -1;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function readTelemetry() {
|
|
161
|
+
return {
|
|
162
|
+
steps: ktvm_get_steps(),
|
|
163
|
+
peakActiveNodes: ktvm_get_peak_nodes(),
|
|
164
|
+
peakBitDequeBytes: ktvm_get_peak_bytes(),
|
|
165
|
+
tableLookups: ktvm_get_table_lookups(),
|
|
166
|
+
splices: ktvm_get_splices(),
|
|
167
|
+
muxDemuxFusions: ktvm_get_mux_demux_fusions(),
|
|
168
|
+
specRollbacks: ktvm_get_spec_rollbacks(),
|
|
169
|
+
specUpstreamAborts: ktvm_get_spec_upstream_aborts(),
|
|
170
|
+
specTailSplices: ktvm_get_spec_tail_splices(),
|
|
171
|
+
afterSettlements: ktvm_get_after_settlements()
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function handleErrorCode(code, limits) {
|
|
176
|
+
if (code === -1) return { status: "FAILED", wire: null, value: null, telemetry: readTelemetry() };
|
|
177
|
+
if (code === -2) throw new KTVMQuotaError("maxSteps", limits.maxSteps, ktvm_get_steps());
|
|
178
|
+
if (code === -3) throw new KTVMQuotaError("maxNodes", limits.maxNodes, ktvm_get_peak_nodes());
|
|
179
|
+
if (code === -4) throw new KTVMQuotaError("maxBitDequeBytes", limits.maxBytes, ktvm_get_peak_bytes());
|
|
180
|
+
if (code === -6) throw new Error("Malformed k-wire envelope payload (truncated, invalid ordinal, or nonzero padding)");
|
|
181
|
+
if (code === -7) throw new Error("kTVM Wasm invariant violation: deadlock on unproduced channel");
|
|
182
|
+
if (code === -8) throw new RangeError("kTVM Wasm out of linear memory (arena exhausted)");
|
|
183
|
+
throw new Error(`kTVM Wasm execution failed with error code ${code}`);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Execute directly on an enveloped `k-wire` Buffer/Uint8Array!
|
|
188
|
+
* Fast path: exact header prefix match -> zero JS decode/copy, straight into Wasm!
|
|
189
|
+
* Fallback path: structurally equivalent reordered header -> splitEnvelopedWire!
|
|
190
|
+
*/
|
|
191
|
+
function executeWire(wireBuffer, { decodeValue = false, quota: runQuota = null } = {}) {
|
|
192
|
+
const activeLimits = {
|
|
193
|
+
maxSteps: runQuota?.maxSteps ?? defaultMaxSteps,
|
|
194
|
+
maxNodes: runQuota?.maxNodes ?? defaultMaxNodes,
|
|
195
|
+
maxBytes: runQuota?.maxBitDequeBytes ?? defaultMaxBytes
|
|
196
|
+
};
|
|
197
|
+
if (runQuota) {
|
|
198
|
+
ktvm_set_quotas(activeLimits.maxSteps, activeLimits.maxNodes, activeLimits.maxBytes);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
const wireBytes = wireBuffer instanceof Uint8Array ? wireBuffer : new Uint8Array(wireBuffer);
|
|
202
|
+
let inBytes = wireBytes;
|
|
203
|
+
let inBitOff = 0;
|
|
204
|
+
let inBitLen = 0;
|
|
205
|
+
let validatePad = 1;
|
|
206
|
+
|
|
207
|
+
const matchedBitLen = matchVerifiedHeader(wireBytes);
|
|
208
|
+
if (matchedBitLen >= 0) {
|
|
209
|
+
inBitOff = matchedBitLen;
|
|
210
|
+
inBitLen = wireBytes.length * 8 - inBitOff;
|
|
211
|
+
validatePad = 1;
|
|
212
|
+
} else {
|
|
213
|
+
// Decode ONLY the pattern header prefix; if equivalent & canonical, cache it and stream
|
|
214
|
+
// payload bits directly into Wasm (zero JS payload DPDA!).
|
|
215
|
+
const { plist, headerBitLen, canonicalOrder } = splitWireHeaderOnly(wireBytes);
|
|
216
|
+
if (!schemasEquivalent(plist, 0, artifact.inPlist, 0)) {
|
|
217
|
+
throw new KTVMSchemaError("Incoming k-wire schema does not match compiled kTVM Wasm input schema");
|
|
218
|
+
}
|
|
219
|
+
if (canonicalOrder) {
|
|
220
|
+
const hdrByteLen = (headerBitLen + 7) >> 3;
|
|
221
|
+
if (verifiedHeaders.length < 16) {
|
|
222
|
+
verifiedHeaders.push({ bytes: wireBytes.slice(0, hdrByteLen), bitLen: headerBitLen });
|
|
223
|
+
}
|
|
224
|
+
inBitOff = headerBitLen;
|
|
225
|
+
inBitLen = wireBytes.length * 8 - inBitOff;
|
|
226
|
+
validatePad = 1;
|
|
227
|
+
} else {
|
|
228
|
+
const { payloadDeque } = splitEnvelopedWire(wireBytes);
|
|
229
|
+
inBitLen = payloadDeque.length;
|
|
230
|
+
inBytes = dequeToPaddedBytes(payloadDeque);
|
|
231
|
+
payloadDeque.release();
|
|
232
|
+
inBitOff = 0;
|
|
233
|
+
validatePad = 0;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Reserve sufficient I/O space (input + output buffer, growing dynamically on -5 OUT_CAP!)
|
|
238
|
+
let outCap = Math.max(262144, inBytes.length * 8 + artifact.outHeader.bytes.length + 4096);
|
|
239
|
+
for (let attempt = 0; attempt < 5; attempt++) {
|
|
240
|
+
const inAligned = (inBytes.length + 15) & ~15;
|
|
241
|
+
const needed = inAligned + outCap;
|
|
242
|
+
if (needed > reservedIoBytes) {
|
|
243
|
+
const resBase = ktvm_reserve_io(needed);
|
|
244
|
+
if (!resBase) throw new RangeError(`kTVM Wasm failed to reserve ${needed} bytes for I/O buffer`);
|
|
245
|
+
reservedIoBytes = needed;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
const memU8 = getMemU8();
|
|
249
|
+
memU8.set(inBytes, ioBase);
|
|
250
|
+
const outPtr = ioBase + inAligned;
|
|
251
|
+
|
|
252
|
+
const outByteLen = ktvm_run_wire(
|
|
253
|
+
ioBase,
|
|
254
|
+
inBitOff,
|
|
255
|
+
inBitLen,
|
|
256
|
+
validatePad,
|
|
257
|
+
outPtr,
|
|
258
|
+
outCap,
|
|
259
|
+
1 // frameHeader = 1 -> returns complete enveloped k-wire!
|
|
260
|
+
);
|
|
261
|
+
|
|
262
|
+
if (outByteLen === -5) {
|
|
263
|
+
outCap *= 4;
|
|
264
|
+
continue;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (runQuota) {
|
|
268
|
+
ktvm_set_quotas(defaultMaxSteps, defaultMaxNodes, defaultMaxBytes);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if (outByteLen < 0) {
|
|
272
|
+
return handleErrorCode(outByteLen, activeLimits);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// Copy framed output bytes out of linear memory (refresh view in case memory grew!)
|
|
276
|
+
const finalMem = getMemU8();
|
|
277
|
+
const outWire = Buffer.from(finalMem.subarray(outPtr, outPtr + outByteLen));
|
|
278
|
+
const telemetry = readTelemetry();
|
|
279
|
+
const value = decodeValue ? decodeWire(outWire, { eager: true }).value : null;
|
|
280
|
+
return {
|
|
281
|
+
status: "OK",
|
|
282
|
+
wire: outWire,
|
|
283
|
+
value,
|
|
284
|
+
outputPlist: artifact.outPlist,
|
|
285
|
+
telemetry
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
throw new Error("kTVM Wasm output exceeded maximum I/O buffer capacity");
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
return {
|
|
293
|
+
artifact,
|
|
294
|
+
exports,
|
|
295
|
+
executeWire,
|
|
296
|
+
getTelemetry: readTelemetry
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* End-to-end compilation from a K object relation + concrete input schema
|
|
302
|
+
* directly to a validated WebAssembly artifact (with optional Milestone 3 optimizer).
|
|
303
|
+
*/
|
|
304
|
+
export async function compileObjectToKTVMWasm(
|
|
305
|
+
obj,
|
|
306
|
+
relNameOrHash,
|
|
307
|
+
inputPlist,
|
|
308
|
+
{ optimize = true, budgetBytes, validate = true, verifyTables = true } = {}
|
|
309
|
+
) {
|
|
310
|
+
let compiled = compileKIRToKTVM(obj, relNameOrHash, inputPlist, { validate });
|
|
311
|
+
let optStats = null;
|
|
312
|
+
if (optimize) {
|
|
313
|
+
const opt = optimizeKTVM(compiled.module, {
|
|
314
|
+
budgetBytes,
|
|
315
|
+
validate,
|
|
316
|
+
verifyTables
|
|
317
|
+
});
|
|
318
|
+
compiled = { ...compiled, module: opt.module };
|
|
319
|
+
optStats = opt.stats;
|
|
320
|
+
}
|
|
321
|
+
const wasmArtifact = await compileKTVMToWasm(compiled.module, {
|
|
322
|
+
entry: compiled.entry,
|
|
323
|
+
validate: false,
|
|
324
|
+
verifyTables: false
|
|
325
|
+
});
|
|
326
|
+
return {
|
|
327
|
+
...wasmArtifact,
|
|
328
|
+
ktvmModule: compiled.module,
|
|
329
|
+
optStats
|
|
330
|
+
};
|
|
331
|
+
}
|