@gmitch215/folio 1.0.0 → 1.1.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.
Files changed (71) hide show
  1. package/README.md +455 -26
  2. package/dist/affine-state.d.ts +171 -0
  3. package/dist/affine-state.js +763 -0
  4. package/dist/affine.d.ts +160 -0
  5. package/dist/affine.js +571 -0
  6. package/dist/bake.d.ts +8 -3
  7. package/dist/bake.js +5 -2
  8. package/dist/boundaries.d.ts +59 -0
  9. package/dist/boundaries.js +127 -0
  10. package/dist/certified.d.ts +66 -0
  11. package/dist/certified.js +192 -0
  12. package/dist/certify.d.ts +98 -0
  13. package/dist/certify.js +2628 -0
  14. package/dist/compiler.d.ts +37 -1
  15. package/dist/compiler.js +116 -1
  16. package/dist/context.d.ts +47 -0
  17. package/dist/context.js +139 -0
  18. package/dist/coordinator.d.ts +1 -1
  19. package/dist/coordinator.js +54 -5
  20. package/dist/extract.d.ts +114 -1
  21. package/dist/extract.js +1011 -242
  22. package/dist/fold.d.ts +32 -0
  23. package/dist/fold.js +105 -0
  24. package/dist/frames.d.ts +20 -2
  25. package/dist/frames.js +205 -10
  26. package/dist/inline.d.ts +182 -0
  27. package/dist/inline.js +766 -0
  28. package/dist/iteration-admission.d.ts +185 -0
  29. package/dist/iteration-admission.js +201 -0
  30. package/dist/iteration-layout.d.ts +135 -0
  31. package/dist/iteration-layout.js +169 -0
  32. package/dist/iteration-owner.d.ts +45 -0
  33. package/dist/iteration-owner.js +223 -0
  34. package/dist/iteration-worker.d.ts +1 -0
  35. package/dist/iteration-worker.js +216 -0
  36. package/dist/iteration.d.ts +329 -0
  37. package/dist/iteration.js +1210 -0
  38. package/dist/lease.d.ts +45 -0
  39. package/dist/lease.js +274 -0
  40. package/dist/managed.d.ts +78 -0
  41. package/dist/managed.js +448 -27
  42. package/dist/memo.d.ts +99 -0
  43. package/dist/memo.js +250 -0
  44. package/dist/node.d.ts +61 -5
  45. package/dist/node.js +421 -23
  46. package/dist/ownership-redirect.d.ts +30 -0
  47. package/dist/ownership-redirect.js +179 -0
  48. package/dist/ownership-slices.d.ts +44 -0
  49. package/dist/ownership-slices.js +72 -0
  50. package/dist/ownership.d.ts +161 -0
  51. package/dist/ownership.js +6568 -0
  52. package/dist/ranges.d.ts +78 -0
  53. package/dist/ranges.js +263 -0
  54. package/dist/read-scan.d.ts +18 -0
  55. package/dist/read-scan.js +94 -0
  56. package/dist/read-windows.d.ts +103 -0
  57. package/dist/read-windows.js +244 -0
  58. package/dist/router-worker.d.ts +1 -0
  59. package/dist/router-worker.js +4 -0
  60. package/dist/router.d.ts +203 -0
  61. package/dist/router.js +667 -0
  62. package/dist/runs.d.ts +44 -0
  63. package/dist/runs.js +182 -0
  64. package/dist/slices-worker.d.ts +1 -0
  65. package/dist/slices-worker.js +38 -0
  66. package/dist/slices.d.ts +126 -0
  67. package/dist/slices.js +441 -0
  68. package/dist/tasks.d.ts +14 -4
  69. package/dist/tasks.js +23 -9
  70. package/dist/transaction.d.ts +10 -0
  71. package/package.json +44 -4
package/dist/memo.d.ts ADDED
@@ -0,0 +1,99 @@
1
+ import type { TransactionResult } from './transaction.ts';
2
+ /**
3
+ * Recorded region results, reused when the bytes a region read have not changed.
4
+ *
5
+ * A tracked region's result is a function of its module, its export, its integer arguments, the
6
+ * memory size and the bytes it read from memory before writing them. After an exact tracked
7
+ * execution the memo keeps the read ranges, a SHA-256 of their bytes as they were read, the read
8
+ * addresses, the write set, the return value and the time the execution took. A lookup hashes the
9
+ * current bytes of each recorded entry's ranges and returns the recorded result on equality.
10
+ * Equal module, arguments and bytes give the same execution, so the same writes and value.
11
+ *
12
+ * Host contract, for a host that tracks its own regions:
13
+ *
14
+ * - The module string passed to `keyOf` must identify the module bytes and their instrumentation.
15
+ * Two calls with the same module string are assumed to execute identically. `ManagedFolio`
16
+ * assigns a process-local identity per artifact; a host that shares a memo across processes or
17
+ * restarts must use a content hash of the tracked module instead.
18
+ * - The host supplies the region export, its arguments, the memory at the start of the call and
19
+ * the call's tracked read and write sets. `record` takes the memory before any write of the
20
+ * call, because it hashes the read bytes itself. The read set holds only the bytes the region
21
+ * read before it wrote them, which is what the execution depends on.
22
+ * - The region must be deterministic in its read bytes, arguments and module. It may not read a
23
+ * clock, randomness, a host import or any mutable global. The compiler refuses global access in
24
+ * a region span (`summarizeSpan` in `src/extract.ts`); the lane resets its fuel counter before
25
+ * every call (`FolioLane.execute` in `src/managed.ts`), so the counter carries no state between
26
+ * calls.
27
+ * - A trap, fuel or budget exhaustion, an inconclusive result or a read the shipped ranges missed
28
+ * is refused by `record`.
29
+ *
30
+ * `RegionMemo.probe` measures repetition without recording writes, so a host can see the reuse
31
+ * rate on its own traffic before it enables a memo. The probe is an upper bound on hit rate: it
32
+ * keeps no entry limit and no byte budget.
33
+ */
34
+ export interface MemoStats {
35
+ lookups: number;
36
+ hits: number;
37
+ misses: number;
38
+ /** Bytes hashed by lookups, summed over each candidate entry. */
39
+ hashedBytes: number;
40
+ /** Estimated cost of every entry recorded; see `RegionMemo` for the estimate. */
41
+ recordedBytes: number;
42
+ /** Estimated cost of the entries currently held. */
43
+ storedBytes: number;
44
+ recorded: number;
45
+ evictions: number;
46
+ /** Recorded execution time of every hit, summed. An estimate of lane time avoided. */
47
+ savedMs: number;
48
+ }
49
+ export interface MemoOptions {
50
+ /** Budget for stored entries, estimated in bytes. Default 8 MiB. */
51
+ bytes?: number;
52
+ /** Entries kept per key. Default 4. */
53
+ entries?: number;
54
+ }
55
+ export interface MemoProbe {
56
+ observations: number;
57
+ distinct: number;
58
+ repeats: number;
59
+ /** Repeats divided by observations; an upper bound on the hit rate of a memo with no limits. */
60
+ repeatRate: number;
61
+ }
62
+ export interface MemoHit {
63
+ result: TransactionResult;
64
+ ms: number;
65
+ }
66
+ export declare class RegionMemo {
67
+ #private;
68
+ constructor(options?: MemoOptions);
69
+ /**
70
+ * The key for a call in a module, or undefined when an argument is not an exact integer. The
71
+ * module string is the host's identity for the tracked module; see the contract above.
72
+ */
73
+ static keyOf(module: string, name: string, args: readonly unknown[]): string | undefined;
74
+ get stats(): MemoStats;
75
+ /**
76
+ * Returns the recorded result whose read bytes equal the current bytes, or undefined. With
77
+ * `runs`, the write set comes as `writeRuns` and `writeData`, which the owner commits as
78
+ * intervals; otherwise as `[address, value]` tuples.
79
+ */
80
+ lookup(key: string, memory: Uint8Array, options?: {
81
+ runs?: boolean;
82
+ }): Promise<MemoHit | undefined>;
83
+ /**
84
+ * Records a clean result of an execution that started from `memory`. Returns false when the
85
+ * result is refused or already held. Throws on a read or write that the memory cannot hold.
86
+ *
87
+ * The cost estimate counts 8 bytes per read address and 40 per write (a two-element array and
88
+ * its slot), plus the hashed span table and the 32-byte digest.
89
+ */
90
+ record(key: string, memory: Uint8Array, result: TransactionResult, ms?: number): Promise<boolean>;
91
+ /** Drops every entry and resets the counters. */
92
+ clear(): void;
93
+ /** Counts how often (key, read bytes) pairs repeat. Nothing is recorded. */
94
+ static probe(observations: Iterable<{
95
+ key: string;
96
+ memory: Uint8Array;
97
+ reads: readonly number[];
98
+ }>): Promise<MemoProbe>;
99
+ }
package/dist/memo.js ADDED
@@ -0,0 +1,250 @@
1
+ import { FootprintCache, RangeSet } from "./ranges.js";
2
+ import { writeRunsOf } from "./runs.js";
3
+ async function digest(memory, spans) {
4
+ let total = 0;
5
+ for (let i = 1; i < spans.length; i += 2)
6
+ total += spans[i];
7
+ const buffer = new Uint8Array(total);
8
+ let offset = 0;
9
+ for (let i = 0; i < spans.length; i += 2) {
10
+ buffer.set(memory.subarray(spans[i], spans[i] + spans[i + 1]), offset);
11
+ offset += spans[i + 1];
12
+ }
13
+ const hash = new Uint8Array(await crypto.subtle.digest('SHA-256', buffer));
14
+ return {
15
+ digest: Array.from(hash, (byte) => byte.toString(16).padStart(2, '0')).join(''),
16
+ bytes: total
17
+ };
18
+ }
19
+ function spanArray(reads) {
20
+ return Uint32Array.from(RangeSet.fromAddresses(reads).spans().flat());
21
+ }
22
+ // a run-encoded result (`reads` empty, `readRuns`) is expanded so the record holds one shape
23
+ function addressForm(result) {
24
+ if (!result.readRuns && !result.writeRuns)
25
+ return result;
26
+ const reads = [...result.reads];
27
+ for (let i = 0; i < (result.readRuns?.length ?? 0); i += 2)
28
+ for (let k = 0; k < result.readRuns[i + 1]; k++)
29
+ reads.push(result.readRuns[i] + k);
30
+ const writes = [...result.writes];
31
+ let at = 0;
32
+ for (let i = 0; i < (result.writeRuns?.length ?? 0); i += 2)
33
+ for (let k = 0; k < result.writeRuns[i + 1]; k++)
34
+ writes.push([result.writeRuns[i] + k, result.writeData[at++]]);
35
+ return {
36
+ ...result,
37
+ reads,
38
+ writes,
39
+ readRuns: undefined,
40
+ writeRuns: undefined,
41
+ writeData: undefined
42
+ };
43
+ }
44
+ export class RegionMemo {
45
+ #budget;
46
+ #perKey;
47
+ #byKey = new Map();
48
+ // every entry, least recently used first
49
+ #lru = new Set();
50
+ #stats = emptyStats();
51
+ constructor(options = {}) {
52
+ this.#budget = options.bytes ?? 8 * 1048576;
53
+ this.#perKey = options.entries ?? 4;
54
+ if (!Number.isSafeInteger(this.#budget) || this.#budget < 1)
55
+ throw new RangeError('invalid memo byte budget');
56
+ if (!Number.isSafeInteger(this.#perKey) || this.#perKey < 1)
57
+ throw new RangeError('invalid memo entry limit');
58
+ }
59
+ /**
60
+ * The key for a call in a module, or undefined when an argument is not an exact integer. The
61
+ * module string is the host's identity for the tracked module; see the contract above.
62
+ */
63
+ static keyOf(module, name, args) {
64
+ for (const value of args) {
65
+ if (typeof value === 'bigint')
66
+ continue;
67
+ if (typeof value !== 'number' || !Number.isSafeInteger(value) || Object.is(value, -0))
68
+ return undefined;
69
+ }
70
+ return JSON.stringify([module, FootprintCache.key(name, args)]);
71
+ }
72
+ get stats() {
73
+ return { ...this.#stats };
74
+ }
75
+ /**
76
+ * Returns the recorded result whose read bytes equal the current bytes, or undefined. With
77
+ * `runs`, the write set comes as `writeRuns` and `writeData`, which the owner commits as
78
+ * intervals; otherwise as `[address, value]` tuples.
79
+ */
80
+ async lookup(key, memory, options = {}) {
81
+ this.#stats.lookups++;
82
+ const list = this.#byKey.get(key);
83
+ if (list)
84
+ for (const entry of [...list].reverse()) {
85
+ if (entry.memoryBytes !== memory.byteLength)
86
+ continue;
87
+ const now = await digest(memory, entry.spans);
88
+ this.#stats.hashedBytes += now.bytes;
89
+ // an entry removed while the digest ran must not be touched back into the LRU
90
+ if (!this.#lru.has(entry) || now.digest !== entry.digest)
91
+ continue;
92
+ this.#touch(entry);
93
+ this.#stats.hits++;
94
+ this.#stats.savedMs += entry.ms;
95
+ if (options.runs)
96
+ return {
97
+ result: {
98
+ value: entry.value,
99
+ reads: entry.reads.slice(),
100
+ writes: [],
101
+ writeRuns: entry.runs.slice(),
102
+ writeData: entry.runData.slice()
103
+ },
104
+ ms: entry.ms
105
+ };
106
+ entry.writes ??= Array.from(entry.writeAddresses, (address, i) => Object.freeze([address, entry.writeValues[i]]));
107
+ return {
108
+ result: {
109
+ value: entry.value,
110
+ reads: entry.reads.slice(),
111
+ // the tuples are frozen, so the copy cannot change the entry
112
+ writes: entry.writes.slice()
113
+ },
114
+ ms: entry.ms
115
+ };
116
+ }
117
+ this.#stats.misses++;
118
+ return undefined;
119
+ }
120
+ /**
121
+ * Records a clean result of an execution that started from `memory`. Returns false when the
122
+ * result is refused or already held. Throws on a read or write that the memory cannot hold.
123
+ *
124
+ * The cost estimate counts 8 bytes per read address and 40 per write (a two-element array and
125
+ * its slot), plus the hashed span table and the 32-byte digest.
126
+ */
127
+ async record(key, memory, result, ms = 0) {
128
+ result = addressForm(result);
129
+ if (result.trap !== undefined ||
130
+ result.exhausted ||
131
+ result.inconclusive ||
132
+ result.escapes?.length ||
133
+ !Number.isFinite(ms) ||
134
+ ms < 0)
135
+ return false;
136
+ for (const address of result.reads)
137
+ if (!Number.isSafeInteger(address) || address < 0 || address >= memory.byteLength)
138
+ throw new RangeError('memo read outside memory');
139
+ for (const [address, value] of result.writes)
140
+ if (!Number.isSafeInteger(address) ||
141
+ address < 0 ||
142
+ address >= memory.byteLength ||
143
+ !Number.isInteger(value) ||
144
+ value < 0 ||
145
+ value > 255)
146
+ throw new RangeError('memo write outside memory or not a byte');
147
+ const spans = spanArray(result.reads);
148
+ const seen = await digest(memory, spans);
149
+ const memoryBytes = memory.byteLength;
150
+ const list = this.#byKey.get(key) ?? [];
151
+ if (list.some((entry) => entry.memoryBytes === memoryBytes && entry.digest === seen.digest))
152
+ return false;
153
+ const reads = [...result.reads];
154
+ const writeAddresses = Uint32Array.from(result.writes, ([address]) => address);
155
+ const writeValues = Uint8Array.from(result.writes, ([, value]) => value);
156
+ const packed = writeRunsOf(result.writes);
157
+ const cost = spans.byteLength +
158
+ reads.length * 8 +
159
+ writeAddresses.length * 40 +
160
+ packed.runs.byteLength +
161
+ packed.data.byteLength +
162
+ 32;
163
+ if (cost > this.#budget)
164
+ return false;
165
+ const entry = {
166
+ key,
167
+ memoryBytes,
168
+ spans,
169
+ readBytes: seen.bytes,
170
+ digest: seen.digest,
171
+ reads,
172
+ writeAddresses,
173
+ writeValues,
174
+ runs: packed.runs,
175
+ runData: packed.data,
176
+ value: result.value,
177
+ ms,
178
+ cost
179
+ };
180
+ list.push(entry);
181
+ this.#byKey.set(key, list);
182
+ this.#lru.add(entry);
183
+ this.#stats.recorded++;
184
+ this.#stats.recordedBytes += cost;
185
+ this.#stats.storedBytes += cost;
186
+ while (list.length > this.#perKey)
187
+ this.#evict(list[0]);
188
+ while (this.#stats.storedBytes > this.#budget)
189
+ this.#evict(this.#lru.values().next().value);
190
+ return true;
191
+ }
192
+ /** Drops every entry and resets the counters. */
193
+ clear() {
194
+ this.#byKey.clear();
195
+ this.#lru.clear();
196
+ this.#stats = emptyStats();
197
+ }
198
+ /** Counts how often (key, read bytes) pairs repeat. Nothing is recorded. */
199
+ static async probe(observations) {
200
+ const counts = new Map();
201
+ let observed = 0;
202
+ for (const { key, memory, reads } of observations) {
203
+ const spans = spanArray(reads);
204
+ const seen = await digest(memory, spans);
205
+ const id = `${key}|${memory.byteLength}|${Array.from(spans).join(',')}|${seen.digest}`;
206
+ counts.set(id, (counts.get(id) ?? 0) + 1);
207
+ observed++;
208
+ }
209
+ let repeats = 0;
210
+ for (const count of counts.values())
211
+ repeats += count - 1;
212
+ return {
213
+ observations: observed,
214
+ distinct: counts.size,
215
+ repeats,
216
+ repeatRate: observed ? repeats / observed : 0
217
+ };
218
+ }
219
+ #touch(entry) {
220
+ this.#lru.delete(entry);
221
+ this.#lru.add(entry);
222
+ const list = this.#byKey.get(entry.key);
223
+ list.splice(list.indexOf(entry), 1);
224
+ list.push(entry);
225
+ }
226
+ #evict(entry) {
227
+ this.#lru.delete(entry);
228
+ const list = this.#byKey.get(entry.key);
229
+ if (list) {
230
+ list.splice(list.indexOf(entry), 1);
231
+ if (!list.length)
232
+ this.#byKey.delete(entry.key);
233
+ }
234
+ this.#stats.storedBytes -= entry.cost;
235
+ this.#stats.evictions++;
236
+ }
237
+ }
238
+ function emptyStats() {
239
+ return {
240
+ lookups: 0,
241
+ hits: 0,
242
+ misses: 0,
243
+ hashedBytes: 0,
244
+ recordedBytes: 0,
245
+ storedBytes: 0,
246
+ recorded: 0,
247
+ evictions: 0,
248
+ savedMs: 0
249
+ };
250
+ }
package/dist/node.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import type { PreparedProgram } from './compiler.ts';
2
+ import type { IterationReason } from './iteration-owner.ts';
3
+ import type { IterationReport, IterationStallOptions } from './iteration.ts';
2
4
  /** Wraps an asynchronous host import for Wasm stack suspension. */
3
5
  export declare function suspending<Args extends unknown[], Value>(fn: (...args: Args) => Promise<Value>): WebAssembly.ImportValue;
4
6
  /** Source bytes, a compiled module, or a plan from `prepare`. A compiled module keeps its native path. */
@@ -31,14 +33,16 @@ export interface ExecutionReport {
31
33
  fallbacks: number;
32
34
  /** `native-shared` ran proved kernels on the shared allocation without tracking. */
33
35
  mode: 'serial' | 'speculative' | 'native-shared';
34
- /** Set when the generalized control-flow extractor produced the regions. */
35
- extraction?: 'control-flow';
36
+ /** Set when the control-flow extractor or the iteration route produced the regions. */
37
+ extraction?: 'control-flow' | 'iteration';
36
38
  /** `shared` regions read the physical allocation; `snapshot` ran on a copied arena. */
37
39
  memoryMode?: 'shared' | 'snapshot';
38
40
  /** Bytes copied into the worker group for snapshot execution. */
39
41
  snapshotBytes?: number;
40
42
  /** Why a run stayed serial or left the fast path. */
41
- reason?: 'requested' | 'small-workload' | 'no-parallel-plan' | 'single-region' | 'unsupported-module' | 'dependency' | 'guard-failed' | 'snapshot-unavailable' | 'opaque-input';
43
+ reason?: 'requested' | 'small-workload' | 'no-parallel-plan' | 'single-region' | 'unsupported-module' | 'dependency' | 'guard-failed' | 'snapshot-unavailable' | 'previous-conflicts' | 'opaque-input' | IterationReason;
44
+ /** The iteration executor's counts, summed over the owner calls of the run. */
45
+ iteration?: IterationReport;
42
46
  /** Present when `FolioOptions.profile` is set. */
43
47
  profile?: ExecutionProfile;
44
48
  }
@@ -63,7 +67,11 @@ export interface ExecutionProfile {
63
67
  }
64
68
  /** Pool construction options. */
65
69
  export interface FolioOptions {
66
- /** Bind an existing single imported memory instead of allocating one from the module's limits. */
70
+ /**
71
+ * Bind an existing single imported memory instead of allocating one from the module's limits.
72
+ * The iteration route needs it shared and grows it by the arena it asks for; an unshared or
73
+ * fixed-size memory keeps the program serial.
74
+ */
67
75
  memory?: WebAssembly.Memory;
68
76
  /** Isolate count; defaults to up to four. One worker uses the native entry and creates no thread. */
69
77
  workers?: number;
@@ -83,6 +91,54 @@ export interface FolioOptions {
83
91
  minimumRegionWork?: number;
84
92
  /** Iterations assumed for loops with no constant bound when `open` prepares raw bytes. */
85
93
  assumedTripCount?: number;
94
+ /**
95
+ * Run a call shape natively for 16 calls after two runs that mostly replayed or fell back, then
96
+ * probe again. A shape is the entry, width, memory size and numeric arguments. Off by default.
97
+ * @since 1.0.1
98
+ */
99
+ adaptiveRouting?: boolean;
100
+ /**
101
+ * Undo entries per iteration the iteration route may grow its logs to when a batch exhausts the
102
+ * default capacity, retrying that batch once. Off unless set: on the padded LZ4 consumer the
103
+ * retry costs more than the dispatch gains, because the ordered validator is quadratic in the
104
+ * logged entries.
105
+ * @since 1.1.0
106
+ */
107
+ iterationLogCeiling?: number;
108
+ /**
109
+ * Learn read windows from the first batch of an iteration loop that completes without a
110
+ * conflict, so loads of the input the iterations stream through set no per-access mark. The next
111
+ * batch counts the loads on the windows, and they stay armed only if they pay. Off by
112
+ * default. A window can only cost a false conflict, never a different result.
113
+ * @since 1.1.0
114
+ */
115
+ iterationReadWindows?: boolean;
116
+ /**
117
+ * Keep a summary of which 64-word blocks of each read bitmap a read touched, so the workers scan
118
+ * those blocks and not the whole bitmap after every iteration. The conflicts found do not change.
119
+ * Costs a few executed instructions on every tracked read. Off by default.
120
+ * @since 1.1.0
121
+ */
122
+ iterationReadSummary?: boolean;
123
+ /**
124
+ * Stop an iteration batch that does not return. The worker module polls a stop word at every
125
+ * loop start, which costs a few percent of worker time on tight loops, so it is off by
126
+ * default. When a batch has run past its limit the
127
+ * workers trap, the batch rolls back from the undo logs and the loop finishes serially with
128
+ * `iteration.stopped` set to `stalled`. Needed for programs whose iterations can read state
129
+ * another iteration is changing and then loop on it, such as a linked structure that two
130
+ * iterations rewrite.
131
+ * @since 1.1.0
132
+ */
133
+ iterationStall?: boolean | IterationStallOptions;
134
+ /**
135
+ * Judge an iteration loop that is a little under the dispatch floor on one timed batch, and let
136
+ * the batches a running loop has shown decide whether what is left pays, instead of the floor
137
+ * alone. A probe that loses ends the dispatch and the loop runs serially for the next 16 calls.
138
+ * The result is the same either way; only the choice of route changes. Off by default.
139
+ * @since 1.1.0
140
+ */
141
+ iterationSecondChance?: boolean;
86
142
  }
87
143
  /** A same-process isolate group; callers give it exclusive memory access during each run. */
88
144
  export declare class Folio {
@@ -90,7 +146,7 @@ export declare class Folio {
90
146
  /** Active sharing, extraction and validation mode; a one-worker pool reports none and serial. */
91
147
  get capabilities(): Readonly<{
92
148
  physicalSharing: "none" | "same-process";
93
- automaticRegions: "none" | "control-flow" | "counted-loops";
149
+ automaticRegions: "none" | "control-flow" | "iteration" | "counted-loops";
94
150
  dependence: "serial" | "ordered-validation";
95
151
  }>;
96
152
  /** The original native exports, for trusted host integration. Raw calls bypass tracking. */