@swf2es/codegen 0.1.34 → 0.1.36

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/dist/codegen.d.ts CHANGED
@@ -131,9 +131,10 @@ declare namespace __AdaptedExports {
131
131
  export function domainChild(parent: number): number;
132
132
  /**
133
133
  * assembly/compile/domainCompact
134
+ * @param stepped `bool`
134
135
  * @returns `bool`
135
136
  */
136
- export function domainCompact(): boolean;
137
+ export function domainCompact(stepped?: boolean): boolean;
137
138
  /**
138
139
  * assembly/compile/domainContext
139
140
  * @param index `i32`
@@ -147,22 +148,6 @@ declare namespace __AdaptedExports {
147
148
  * @param appDomain `i32`
148
149
  */
149
150
  export function domainDrop(appDomain: number): void;
150
- /**
151
- * assembly/compile/domainEmitEach
152
- * @param bodies `~lib/string/String`
153
- * @param reuse `bool`
154
- * @param which `i32`
155
- * @returns `~lib/string/String`
156
- */
157
- export function domainEmitEach(bodies: string, reuse: boolean, which?: number): string;
158
- /**
159
- * assembly/compile/domainEmitEachBytes
160
- * @param bodies `~lib/string/String`
161
- * @param reuse `bool`
162
- * @param which `i32`
163
- * @returns `usize`
164
- */
165
- export function domainEmitEachBytes(bodies: string, reuse: boolean, which?: number): number;
166
151
  /**
167
152
  * assembly/compile/domainEvict
168
153
  * @param appDomain `i32`
@@ -179,18 +164,52 @@ declare namespace __AdaptedExports {
179
164
  */
180
165
  export function domainFound(appDomain: number, nsKind: number, uri: string, name: string, abc: number, asType: boolean): void;
181
166
  /**
182
- * assembly/compile/domainLazyModuleBytes
183
- * @param hashes `~lib/string/String`
167
+ * assembly/compile/domainKeyFork
168
+ * @param appDomain `i32`
169
+ * @returns `i32`
170
+ */
171
+ export function domainKeyFork(appDomain: number): number;
172
+ /**
173
+ * assembly/compile/domainKeyHeaderBytes
184
174
  * @param index `i32`
185
175
  * @returns `usize`
186
176
  */
187
- export function domainLazyModuleBytes(hashes?: string, index?: number): number;
177
+ export function domainKeyHeaderBytes(index?: number): number;
178
+ /**
179
+ * assembly/compile/domainKeyLogBytes
180
+ * @param appDomain `i32`
181
+ * @param after `i32`
182
+ * @param from `i32`
183
+ * @param to `i32`
184
+ * @param block `i32`
185
+ * @param filled `i32`
186
+ * @returns `usize`
187
+ */
188
+ export function domainKeyLogBytes(appDomain: number, after: number, from: number, to: number, block: number, filled: number): number;
188
189
  /**
189
190
  * assembly/compile/domainLinked
190
191
  * @param index `i32`
191
192
  * @returns `~lib/string/String`
192
193
  */
193
194
  export function domainLinked(index?: number): string;
195
+ /**
196
+ * assembly/compile/domainLoad
197
+ * @param words `~lib/typedarray/Uint8Array`
198
+ * @returns `bool`
199
+ */
200
+ export function domainLoad(words: Uint8Array): boolean;
201
+ /**
202
+ * assembly/compile/domainLoadAbc
203
+ * @param index `i32`
204
+ * @param bytes `~lib/typedarray/Uint8Array`
205
+ * @returns `i32`
206
+ */
207
+ export function domainLoadAbc(index: number, bytes: Uint8Array): number;
208
+ /**
209
+ * assembly/compile/domainLoadRebuild
210
+ * @returns `bool`
211
+ */
212
+ export function domainLoadRebuild(): boolean;
194
213
  /**
195
214
  * assembly/compile/domainLogMark
196
215
  * @returns `i32`
@@ -221,11 +240,32 @@ declare namespace __AdaptedExports {
221
240
  * @returns `usize`
222
241
  */
223
242
  export function domainModuleBytes(hashes?: string, index?: number, keep?: boolean, linkedOnly?: boolean): number;
243
+ /**
244
+ * assembly/compile/domainModuleDone
245
+ * @returns `bool`
246
+ */
247
+ export function domainModuleDone(): boolean;
224
248
  /**
225
249
  * assembly/compile/domainModuleEntries
226
250
  * @returns `~lib/string/String`
227
251
  */
228
252
  export function domainModuleEntries(): string;
253
+ /**
254
+ * assembly/compile/domainModuleMoreBytes
255
+ * @returns `usize`
256
+ */
257
+ export function domainModuleMoreBytes(): number;
258
+ /**
259
+ * assembly/compile/domainParent
260
+ * @param appDomain `i32`
261
+ * @returns `i32`
262
+ */
263
+ export function domainParent(appDomain: number): number;
264
+ /**
265
+ * assembly/compile/domainRebuildStep
266
+ * @returns `i32`
267
+ */
268
+ export function domainRebuildStep(): number;
229
269
  /**
230
270
  * assembly/compile/domainReplay
231
271
  * @param log `~lib/string/String`
@@ -253,9 +293,21 @@ declare namespace __AdaptedExports {
253
293
  /**
254
294
  * assembly/compile/domainRevive
255
295
  * @param appDomain `i32`
296
+ * @param stepped `bool`
256
297
  * @returns `i32`
257
298
  */
258
- export function domainRevive(appDomain: number): number;
299
+ export function domainRevive(appDomain: number, stepped?: boolean): number;
300
+ /**
301
+ * assembly/compile/domainSaveBytes
302
+ * @returns `usize`
303
+ */
304
+ export function domainSaveBytes(): number;
305
+ /**
306
+ * assembly/compile/domainSavedAbcBytes
307
+ * @param index `i32`
308
+ * @returns `usize`
309
+ */
310
+ export function domainSavedAbcBytes(index: number): number;
259
311
  /**
260
312
  * assembly/compile/domainSourceMap
261
313
  * @returns `~lib/string/String`
@@ -274,9 +326,10 @@ declare namespace __AdaptedExports {
274
326
  export function domainUsage(): string;
275
327
  /**
276
328
  * assembly/compile/domainWantsCompact
329
+ * @param want `i32`
277
330
  * @returns `bool`
278
331
  */
279
- export function domainWantsCompact(): boolean;
332
+ export function domainWantsCompact(want?: number): boolean;
280
333
  /**
281
334
  * assembly/output/outputLength
282
335
  * @returns `u32`
package/dist/codegen.js CHANGED
@@ -124,29 +124,17 @@ export async function instantiate(module, imports = {}) {
124
124
  exports.__setArgumentsLength(arguments.length);
125
125
  return exports.domainAdd(bytes, builtin, appDomain);
126
126
  },
127
- domainCompact() {
128
- // assembly/compile/domainCompact() => bool
129
- return exports.domainCompact() != 0;
127
+ domainCompact(stepped) {
128
+ // assembly/compile/domainCompact(bool?) => bool
129
+ stepped = stepped ? 1 : 0;
130
+ exports.__setArgumentsLength(arguments.length);
131
+ return exports.domainCompact(stepped) != 0;
130
132
  },
131
133
  domainContext(index, after, upTo) {
132
134
  // assembly/compile/domainContext(i32?, i32?, i32?) => ~lib/string/String
133
135
  exports.__setArgumentsLength(arguments.length);
134
136
  return __liftString(exports.domainContext(index, after, upTo) >>> 0);
135
137
  },
136
- domainEmitEach(bodies, reuse, which) {
137
- // assembly/compile/domainEmitEach(~lib/string/String, bool, i32?) => ~lib/string/String
138
- bodies = __lowerString(bodies) || __notnull();
139
- reuse = reuse ? 1 : 0;
140
- exports.__setArgumentsLength(arguments.length);
141
- return __liftString(exports.domainEmitEach(bodies, reuse, which) >>> 0);
142
- },
143
- domainEmitEachBytes(bodies, reuse, which) {
144
- // assembly/compile/domainEmitEachBytes(~lib/string/String, bool, i32?) => usize
145
- bodies = __lowerString(bodies) || __notnull();
146
- reuse = reuse ? 1 : 0;
147
- exports.__setArgumentsLength(arguments.length);
148
- return exports.domainEmitEachBytes(bodies, reuse, which) >>> 0;
149
- },
150
138
  domainFound(appDomain, nsKind, uri, name, abc, asType) {
151
139
  // assembly/compile/domainFound(i32, i32, ~lib/string/String, ~lib/string/String, i32, bool) => void
152
140
  uri = __retain(__lowerString(uri) || __notnull());
@@ -158,17 +146,34 @@ export async function instantiate(module, imports = {}) {
158
146
  __release(uri);
159
147
  }
160
148
  },
161
- domainLazyModuleBytes(hashes, index) {
162
- // assembly/compile/domainLazyModuleBytes(~lib/string/String?, i32?) => usize
163
- hashes = __lowerString(hashes) || __notnull();
149
+ domainKeyHeaderBytes(index) {
150
+ // assembly/compile/domainKeyHeaderBytes(i32?) => usize
164
151
  exports.__setArgumentsLength(arguments.length);
165
- return exports.domainLazyModuleBytes(hashes, index) >>> 0;
152
+ return exports.domainKeyHeaderBytes(index) >>> 0;
153
+ },
154
+ domainKeyLogBytes(appDomain, after, from, to, block, filled) {
155
+ // assembly/compile/domainKeyLogBytes(i32, i32, i32, i32, i32, i32) => usize
156
+ return exports.domainKeyLogBytes(appDomain, after, from, to, block, filled) >>> 0;
166
157
  },
167
158
  domainLinked(index) {
168
159
  // assembly/compile/domainLinked(i32?) => ~lib/string/String
169
160
  exports.__setArgumentsLength(arguments.length);
170
161
  return __liftString(exports.domainLinked(index) >>> 0);
171
162
  },
163
+ domainLoad(words) {
164
+ // assembly/compile/domainLoad(~lib/typedarray/Uint8Array) => bool
165
+ words = __lowerTypedArray(Uint8Array, 27, 0, words) || __notnull();
166
+ return exports.domainLoad(words) != 0;
167
+ },
168
+ domainLoadAbc(index, bytes) {
169
+ // assembly/compile/domainLoadAbc(i32, ~lib/typedarray/Uint8Array) => i32
170
+ bytes = __lowerTypedArray(Uint8Array, 27, 0, bytes) || __notnull();
171
+ return exports.domainLoadAbc(index, bytes);
172
+ },
173
+ domainLoadRebuild() {
174
+ // assembly/compile/domainLoadRebuild() => bool
175
+ return exports.domainLoadRebuild() != 0;
176
+ },
172
177
  domainLogSince(mark, index) {
173
178
  // assembly/compile/domainLogSince(i32, i32?) => ~lib/string/String
174
179
  exports.__setArgumentsLength(arguments.length);
@@ -190,10 +195,18 @@ export async function instantiate(module, imports = {}) {
190
195
  exports.__setArgumentsLength(arguments.length);
191
196
  return exports.domainModuleBytes(hashes, index, keep, linkedOnly) >>> 0;
192
197
  },
198
+ domainModuleDone() {
199
+ // assembly/compile/domainModuleDone() => bool
200
+ return exports.domainModuleDone() != 0;
201
+ },
193
202
  domainModuleEntries() {
194
203
  // assembly/compile/domainModuleEntries() => ~lib/string/String
195
204
  return __liftString(exports.domainModuleEntries() >>> 0);
196
205
  },
206
+ domainModuleMoreBytes() {
207
+ // assembly/compile/domainModuleMoreBytes() => usize
208
+ return exports.domainModuleMoreBytes() >>> 0;
209
+ },
197
210
  domainReplay(log, index) {
198
211
  // assembly/compile/domainReplay(~lib/string/String, i32?) => bool
199
212
  log = __lowerString(log) || __notnull();
@@ -209,6 +222,20 @@ export async function instantiate(module, imports = {}) {
209
222
  // assembly/compile/domainRevision() => ~lib/string/String
210
223
  return __liftString(exports.domainRevision() >>> 0);
211
224
  },
225
+ domainRevive(appDomain, stepped) {
226
+ // assembly/compile/domainRevive(i32, bool?) => i32
227
+ stepped = stepped ? 1 : 0;
228
+ exports.__setArgumentsLength(arguments.length);
229
+ return exports.domainRevive(appDomain, stepped);
230
+ },
231
+ domainSaveBytes() {
232
+ // assembly/compile/domainSaveBytes() => usize
233
+ return exports.domainSaveBytes() >>> 0;
234
+ },
235
+ domainSavedAbcBytes(index) {
236
+ // assembly/compile/domainSavedAbcBytes(i32) => usize
237
+ return exports.domainSavedAbcBytes(index) >>> 0;
238
+ },
212
239
  domainSourceMap() {
213
240
  // assembly/compile/domainSourceMap() => ~lib/string/String
214
241
  return __liftString(exports.domainSourceMap() >>> 0);
@@ -217,9 +244,10 @@ export async function instantiate(module, imports = {}) {
217
244
  // assembly/compile/domainUsage() => ~lib/string/String
218
245
  return __liftString(exports.domainUsage() >>> 0);
219
246
  },
220
- domainWantsCompact() {
221
- // assembly/compile/domainWantsCompact() => bool
222
- return exports.domainWantsCompact() != 0;
247
+ domainWantsCompact(want) {
248
+ // assembly/compile/domainWantsCompact(i32?) => bool
249
+ exports.__setArgumentsLength(arguments.length);
250
+ return exports.domainWantsCompact(want) != 0;
223
251
  },
224
252
  outputLength() {
225
253
  // assembly/output/outputLength() => u32
package/dist/codegen.wasm CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -7,6 +7,9 @@
7
7
  * so both produce identical output. See docs/architecture/overview.md.
8
8
  */
9
9
  import { AIR_API_VERSION, API_VERSION } from "@swf2es/format";
10
+ import { type KeyContext } from "./keys.js";
11
+ export { KeyChains, type KeyContext, type KeyLog } from "./keys.js";
12
+ export { hex, sha256Here } from "./sha256.js";
10
13
  /** Bumped whenever generated code or the runtime ABI it calls changes. */
11
14
  export declare const COMPILER_VERSION = "0.0.0";
12
15
  export { AIR_API_VERSION, API_VERSION };
@@ -34,9 +37,11 @@ export declare function libraryLog(codegen: Codegen, index: number, count: numbe
34
37
  * SWFs of several versions share the libraries' modules), every ABC its
35
38
  * domain sees, by hash and whether it is a library, those added after it
36
39
  * included, its own place among them, and the compiler's log about them
37
- * (see Codegen.context), the libraries' part by its digest once taken. The
38
- * player's module cache and the swf2es command both key by it, so that the
39
- * command's modules are the cache's. Null where there is no context.
40
+ * (see Codegen.context), the libraries' part by its digest once taken and
41
+ * the rest by the chained digests of its blocks of entries but the last
42
+ * few (see Codegen.keyContext). The player's module cache and the swf2es
43
+ * command both key by it, so that the command's modules are the cache's.
44
+ * Null where there is no context.
40
45
  */
41
46
  export declare function moduleKey(codegen: Codegen, index: number, abcs: AddedAbcs, libraries: LibraryDigest | null): string | null;
42
47
  /**
@@ -118,7 +123,7 @@ export interface Compiled {
118
123
  module: string;
119
124
  /** JSON: the module's lines mapped to the AS3 lines debugline names. */
120
125
  sourceMap: string;
121
- /** By method body index: the body's entry in the module's F, as the JIT compiles it alone. */
126
+ /** By method body index: the body's entry in the module's F. */
122
127
  entries: Map<number, string>;
123
128
  }
124
129
  /**
@@ -143,8 +148,8 @@ export interface LoggedModule {
143
148
  }
144
149
  /**
145
150
  * The compiler. ABCs are added to a domain in the order the SWF loads them
146
- * (the builtins first), and the last one added compiles, whole or a method
147
- * at a time, to code that is byte for byte the same either way.
151
+ * (the builtins first), and the last one added compiles to its module,
152
+ * byte for byte the same however the compiler got there.
148
153
  */
149
154
  export interface Codegen {
150
155
  /**
@@ -189,22 +194,29 @@ export interface Codegen {
189
194
  /**
190
195
  * Rebuild the domain without the ABCs of dropped and evicted domains, if
191
196
  * memory would otherwise grow and they hold enough to keep it from
192
- * growing: whether it did. A rebuild links every live ABC again, tens of
193
- * milliseconds for a large application, so a host calls this when it has
194
- * time, as when idle; nothing else does.
197
+ * growing, or memory is far above what the live ones need: whether it
198
+ * did. Done in a new instance of the compiler, made ahead, which takes
199
+ * the old one's place, so that its memory goes with it, where that takes
200
+ * less memory or a rebuild in place would not fit; else in place, only
201
+ * where the new tables fit beside the old. A rebuild links every live
202
+ * ABC again and verifies them again, seconds for a large application, so
203
+ * a host calls this when it has time, as when idle; nothing else does.
195
204
  */
196
205
  compact(): boolean;
197
206
  /**
198
207
  * What the ABCs hold of codegen's memory, roughly, in bytes: the live
199
208
  * ones', and the dropped and evicted domains' that compact would free;
200
- * and the size of codegen's memory, which never shrinks.
209
+ * the size of codegen's memory, which grows and never shrinks but when
210
+ * compact moves the domain to a new instance; and how many such moves
211
+ * failed, each leaving the domain as it was, rebuilt in place if at all.
201
212
  */
202
213
  usage(): {
203
214
  live: number;
204
215
  dead: number;
205
216
  memory: number;
217
+ failedMoves: number;
206
218
  };
207
- /** The size of codegen's memory in bytes, which never shrinks: cheap, for a host that shows it often. */
219
+ /** The size of codegen's memory in bytes, as usage gives it: cheap, for a host that shows it often. */
208
220
  memoryBytes(): number;
209
221
  /**
210
222
  * Evict application domain `appDomain` and its descendants while the host
@@ -240,20 +252,6 @@ export interface Codegen {
240
252
  * never shrinks.
241
253
  */
242
254
  compileModule(hashes?: string[], index?: number): string;
243
- /**
244
- * An opt-in JIT module's tables and lazy factories. Its default export
245
- * takes (rt, jit); jit(body, bindings) returns that body's factory.
246
- * Verification still runs now to fix scopes against the current domain.
247
- * This module is not an AOT module and must not enter the module cache.
248
- */
249
- compileLazyModule(hashes?: string[], index?: number): string;
250
- /**
251
- * Method bodies of ABC `index` (the last added by default) compiled
252
- * alone, as the optional lazy JIT compiles each on first factory use;
253
- * a native, unverified or unknown one is left out. Each is byte for byte
254
- * its entry in the whole module.
255
- */
256
- compileMethods(bodies: number[], index?: number): Map<number, string>;
257
255
  /**
258
256
  * What ABC `index`'s module depends on beyond the ABCs' bytes, for a
259
257
  * cache key: besides the ABCs its domain sees, what the domain has
@@ -263,6 +261,17 @@ export interface Codegen {
263
261
  * for an ABC never added.
264
262
  */
265
263
  context(index?: number, after?: number, upTo?: number): ModuleContext | null;
264
+ /**
265
+ * ABC `index`'s context as a module key names it, the log's entries
266
+ * made with `after` ABCs added or fewer left out: the log by the chained
267
+ * digests of its blocks of entries, those made before the last ABC was
268
+ * added, and the text of the entries after them. Each application
269
+ * domain keeps its last digest, so a key reads and digests only the
270
+ * entries made since the last, or since its parent's. The same domain
271
+ * gives the same however its keys were taken. Null for an ABC never
272
+ * added, or of a domain not live.
273
+ */
274
+ keyContext(index?: number, after?: number): KeyContext | null;
266
275
  /**
267
276
  * A string that changes whenever a context might: a host that took one
268
277
  * and finds this the same since need not take it again.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,eAAe,EAAE,WAAW,EAAoC,MAAM,gBAAgB,CAAC;AAGhG,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAMxC,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC;AAExC,8GAA8G;AAC9G,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;CACvC;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,uGAAuG;AACvG,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEjF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,aAAa,GAAG,IAAI,GAC9B,MAAM,GAAG,IAAI,CAgBf;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,SAAS;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAClF;AAED,uFAAuF;AACvF,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;I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