mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
Journal the Node island flag and relower units that add island call sites
This commit is contained in:
@@ -4014,6 +4014,11 @@ export class Lowerer {
|
||||
setTable("freezableArrays", this.freezableArrays),
|
||||
checkedTable("moduleOrder", () => this.moduleOrder.length),
|
||||
checkedTable("diags", () => this.diags.length),
|
||||
// Node island call sites hold literals of the unit's IR that lowering's
|
||||
// end rewrites to module tree paths (nodeIslandRecord): a unit that adds
|
||||
// one lowers again rather than replaying a record.
|
||||
checkedTable("nodeIslandCallers", () => this.nodeIslandCallers.length),
|
||||
checkedTable("nodeIslandSpecifiers", () => this.nodeIslandSpecifiers.length),
|
||||
checkedTable("fnSigsBySymbol", () => this.fnSigsBySymbol.size),
|
||||
checkedTable("cjsExportsAssignments", () => this.cjsExportsAssignments.size),
|
||||
checkedTable("inlineRequireCycleCalls", () => this.inlineRequireCycleCalls.size),
|
||||
@@ -4403,6 +4408,11 @@ export class Lowerer {
|
||||
() => this.usesLifetimeRegions,
|
||||
() => (this.usesLifetimeRegions = true),
|
||||
),
|
||||
flag(
|
||||
"usesNodeIsland",
|
||||
() => this.usesNodeIsland,
|
||||
() => (this.usesNodeIsland = true),
|
||||
),
|
||||
flag(
|
||||
"cjsModuleGraphEnabled",
|
||||
() => this.cjsModuleGraphEnabled,
|
||||
|
||||
Reference in New Issue
Block a user