@geastack/compiler 1.0.26 → 1.0.29
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/cli-coverage.js +2 -2
- package/dist/cli-emit.js +36 -12
- package/dist/compiler.d.ts +11 -9
- package/dist/compiler.js +264 -43
- package/dist/conversion/algebra.d.ts +84 -4
- package/dist/conversion/algebra.js +39 -0
- package/dist/conversion/array-view.d.ts +63 -0
- package/dist/conversion/array-view.js +186 -0
- package/dist/conversion/build.d.ts +8 -8
- package/dist/conversion/build.js +56 -50
- package/dist/conversion/certified-iterator-object-view.d.ts +13 -0
- package/dist/conversion/certified-iterator-object-view.js +31 -0
- package/dist/conversion/certified-iterator-protocols.d.ts +23 -0
- package/dist/conversion/certified-iterator-protocols.js +50 -0
- package/dist/conversion/checked-native-field-read.d.ts +7 -0
- package/dist/conversion/checked-native-field-read.js +36 -0
- package/dist/conversion/constructor-identity-family.d.ts +6 -6
- package/dist/conversion/constructor-identity-family.js +3 -3
- package/dist/conversion/derive.js +11 -8
- package/dist/conversion/dictionary-view.d.ts +114 -0
- package/dist/conversion/dictionary-view.js +275 -0
- package/dist/conversion/document-record-view.d.ts +89 -0
- package/dist/conversion/document-record-view.js +269 -0
- package/dist/conversion/dynamic-result-carriers.d.ts +6 -0
- package/dist/conversion/dynamic-result-carriers.js +43 -0
- package/dist/conversion/dynamic-wrapper.d.ts +52 -0
- package/dist/conversion/dynamic-wrapper.js +82 -0
- package/dist/conversion/impossible-field-read.d.ts +9 -0
- package/dist/conversion/impossible-field-read.js +28 -0
- package/dist/conversion/iterable-object-view.d.ts +1 -1
- package/dist/conversion/iterator-object-view.d.ts +2 -2
- package/dist/conversion/native-absence.d.ts +4 -0
- package/dist/conversion/native-absence.js +4 -0
- package/dist/conversion/native-buffer-method.d.ts +16 -0
- package/dist/conversion/native-buffer-method.js +37 -0
- package/dist/conversion/native-callable-adapter.d.ts +13 -0
- package/dist/conversion/native-callable-adapter.js +73 -0
- package/dist/conversion/native-descriptor-snapshot.d.ts +30 -0
- package/dist/conversion/native-descriptor-snapshot.js +75 -0
- package/dist/conversion/native-entry-writer.d.ts +21 -0
- package/dist/conversion/native-entry-writer.js +32 -0
- package/dist/conversion/native-field-view.d.ts +42 -0
- package/dist/conversion/native-field-view.js +145 -0
- package/dist/conversion/native-logical-receiver.d.ts +11 -0
- package/dist/conversion/native-logical-receiver.js +19 -0
- package/dist/conversion/native-method.d.ts +43 -0
- package/dist/conversion/native-method.js +56 -0
- package/dist/conversion/native-object-sample.d.ts +30 -0
- package/dist/conversion/native-object-sample.js +37 -0
- package/dist/conversion/native-payload-transport.d.ts +1 -1
- package/dist/conversion/native-payload-transport.js +1 -1
- package/dist/conversion/native-record-products.d.ts +15 -0
- package/dist/conversion/native-record-products.js +73 -0
- package/dist/conversion/native-selection.d.ts +18 -1
- package/dist/conversion/native-selection.js +117 -4
- package/dist/conversion/native-sum.d.ts +27 -0
- package/dist/conversion/native-sum.js +74 -9
- package/dist/conversion/native-view-origins.d.ts +12 -0
- package/dist/conversion/native-view-origins.js +97 -0
- package/dist/conversion/nodes.d.ts +75 -7
- package/dist/conversion/nodes.js +694 -19
- package/dist/conversion/number-storage.d.ts +8 -0
- package/dist/conversion/number-storage.js +8 -0
- package/dist/conversion/operand-view.js +10 -1
- package/dist/conversion/promise-adoption.d.ts +15 -0
- package/dist/conversion/promise-adoption.js +29 -0
- package/dist/conversion/protocol-iterator.d.ts +3 -3
- package/dist/conversion/recipe-closure.d.ts +14 -0
- package/dist/conversion/recipe-closure.js +135 -0
- package/dist/conversion/record-view.d.ts +51 -26
- package/dist/conversion/record-view.js +160 -97
- package/dist/conversion/registry.d.ts +18 -2
- package/dist/conversion/sibling-class.d.ts +4 -0
- package/dist/conversion/sibling-class.js +7 -0
- package/dist/conversion/structural-plan.d.ts +87 -0
- package/dist/conversion/structural-plan.js +480 -0
- package/dist/ir/absent-class-arm.d.ts +1 -1
- package/dist/ir/absent-class-arm.js +1 -1
- package/dist/ir/async-result-conventions.d.ts +15 -0
- package/dist/ir/async-result-conventions.js +140 -0
- package/dist/ir/borrowed-call-arguments.d.ts +3 -3
- package/dist/ir/borrowed-call-arguments.js +9 -9
- package/dist/ir/build.d.ts +20 -29
- package/dist/ir/build.js +116 -19
- package/dist/ir/call-dispatch.js +153 -40
- package/dist/ir/call-entry.d.ts +14 -3
- package/dist/ir/call-entry.js +63 -5
- package/dist/ir/callable-class-flow.d.ts +48 -3
- package/dist/ir/callable-class-flow.js +1509 -81
- package/dist/ir/callable-flow-candidates.d.ts +25 -0
- package/dist/ir/callable-flow-candidates.js +135 -0
- package/dist/ir/callable-identity-demand.d.ts +2 -2
- package/dist/ir/callable-identity-demand.js +33 -1
- package/dist/ir/callable-member-candidates.d.ts +1 -1
- package/dist/ir/callable-member-candidates.js +2 -2
- package/dist/ir/callable-records.js +1 -0
- package/dist/ir/callable-site-escape.js +3 -4
- package/dist/ir/captures.js +1 -1
- package/dist/ir/certificate.d.ts +1 -0
- package/dist/ir/certificate.js +2 -1
- package/dist/ir/certify/carrier-keys.d.ts +2 -2
- package/dist/ir/certify/carrier-keys.js +4 -4
- package/dist/ir/certify/has-property-key.d.ts +3 -3
- package/dist/ir/certify/has-property-key.js +3 -3
- package/dist/ir/certify/parallel-region.d.ts +26 -0
- package/dist/ir/certify/parallel-region.js +1331 -0
- package/dist/ir/certify/property-access-keys.d.ts +11 -11
- package/dist/ir/certify/property-access-keys.js +11 -11
- package/dist/ir/certify/property-access.js +7 -9
- package/dist/ir/certify.d.ts +66 -3
- package/dist/ir/certify.js +1197 -36
- package/dist/ir/class-allocation-domain.d.ts +9 -0
- package/dist/ir/class-allocation-domain.js +111 -0
- package/dist/ir/class-evaluation.d.ts +2 -3
- package/dist/ir/class-evaluation.js +2 -3
- package/dist/ir/class-static-fields.d.ts +12 -1
- package/dist/ir/class-static-fields.js +25 -0
- package/dist/ir/closed-normal-results.d.ts +18 -0
- package/dist/ir/closed-normal-results.js +208 -0
- package/dist/ir/construct-entry.js +1 -0
- package/dist/ir/construction-only-fields.d.ts +20 -1
- package/dist/ir/construction-only-fields.js +95 -9
- package/dist/ir/convert-carriers.d.ts +7 -0
- package/dist/ir/convert-carriers.js +12 -0
- package/dist/ir/coroutine-bodies.d.ts +74 -0
- package/dist/ir/coroutine-bodies.js +93 -0
- package/dist/ir/dead-logical-merge.d.ts +7 -0
- package/dist/ir/dead-logical-merge.js +84 -0
- package/dist/ir/dead-values.d.ts +7 -5
- package/dist/ir/dead-values.js +34 -5
- package/dist/ir/deferral.d.ts +3 -1
- package/dist/ir/deferral.js +19 -6
- package/dist/ir/dense-loops.d.ts +96 -7
- package/dist/ir/dense-loops.js +333 -17
- package/dist/ir/descriptor-own-protocol.d.ts +12 -0
- package/dist/ir/descriptor-own-protocol.js +35 -0
- package/dist/ir/dynamic-constructor-conversions.d.ts +17 -0
- package/dist/ir/dynamic-constructor-conversions.js +52 -0
- package/dist/ir/emission-representations.js +44 -2
- package/dist/ir/facts.d.ts +14 -2
- package/dist/ir/facts.js +23 -9
- package/dist/ir/fixed-data-definition-attributes.d.ts +10 -0
- package/dist/ir/fixed-data-definition-attributes.js +200 -0
- package/dist/ir/fixed-data-definition.d.ts +23 -5
- package/dist/ir/fixed-data-definition.js +80 -2
- package/dist/ir/function-reflection-demand.d.ts +11 -0
- package/dist/ir/function-reflection-demand.js +71 -0
- package/dist/ir/generic-call-entry.d.ts +18 -0
- package/dist/ir/generic-call-entry.js +94 -0
- package/dist/ir/hoist.d.ts +16 -3
- package/dist/ir/hoist.js +121 -8
- package/dist/ir/host-method-aliases.d.ts +15 -0
- package/dist/ir/host-method-aliases.js +61 -0
- package/dist/ir/host-namespace-reads.d.ts +24 -0
- package/dist/ir/host-namespace-reads.js +151 -0
- package/dist/ir/host-promise-conversions.d.ts +5 -0
- package/dist/ir/host-promise-conversions.js +61 -0
- package/dist/ir/host-template-conversions.d.ts +34 -0
- package/dist/ir/host-template-conversions.js +357 -0
- package/dist/ir/instance-reparenting.d.ts +3 -4
- package/dist/ir/instantiation.d.ts +1 -1
- package/dist/ir/instantiation.js +1 -1
- package/dist/ir/integer-storage.d.ts +19 -9
- package/dist/ir/integer-storage.js +158 -44
- package/dist/ir/integers.d.ts +34 -7
- package/dist/ir/integers.js +240 -7
- package/dist/ir/integrity-restrictions.d.ts +4 -4
- package/dist/ir/integrity-restrictions.js +7 -4
- package/dist/ir/internal-operation-conversions.d.ts +7 -0
- package/dist/ir/internal-operation-conversions.js +195 -0
- package/dist/ir/intrinsic-call-facts.d.ts +40 -0
- package/dist/ir/intrinsic-call-facts.js +176 -0
- package/dist/ir/key-order-observation.d.ts +1 -1
- package/dist/ir/lazy-splits.d.ts +20 -0
- package/dist/ir/lazy-splits.js +58 -0
- package/dist/ir/literal-set-membership.d.ts +2 -2
- package/dist/ir/literal-set-membership.js +2 -2
- package/dist/ir/logical-receivers.d.ts +15 -0
- package/dist/ir/logical-receivers.js +98 -0
- package/dist/ir/lower-allocation.js +16 -13
- package/dist/ir/lower-destructuring.js +7 -6
- package/dist/ir/lower-graph.d.ts +4 -4
- package/dist/ir/lower-graph.js +2 -2
- package/dist/ir/lower-invocation.d.ts +2 -2
- package/dist/ir/lower-invocation.js +99 -57
- package/dist/ir/lower-narrow.js +35 -13
- package/dist/ir/lower-operands.d.ts +40 -11
- package/dist/ir/lower-operands.js +206 -87
- package/dist/ir/lower-property.js +31 -8
- package/dist/ir/lower.js +9 -9
- package/dist/ir/merge-conversions.d.ts +18 -0
- package/dist/ir/merge-conversions.js +106 -0
- package/dist/ir/model.d.ts +138 -28
- package/dist/ir/native-accessor-definition.d.ts +104 -0
- package/dist/ir/native-accessor-definition.js +735 -0
- package/dist/ir/native-array-descriptor-snapshot.d.ts +45 -0
- package/dist/ir/native-array-descriptor-snapshot.js +380 -0
- package/dist/ir/native-array-insertion.d.ts +16 -0
- package/dist/ir/native-array-insertion.js +42 -0
- package/dist/ir/native-callable-argument.d.ts +38 -0
- package/dist/ir/native-callable-argument.js +128 -0
- package/dist/ir/native-callable-data-flow.d.ts +9 -0
- package/dist/ir/native-callable-data-flow.js +59 -0
- package/dist/ir/native-callable-data-owner.d.ts +45 -0
- package/dist/ir/native-callable-data-owner.js +755 -0
- package/dist/ir/native-callable-data-reads.d.ts +45 -0
- package/dist/ir/native-callable-data-reads.js +282 -0
- package/dist/ir/native-callable-data-slots.d.ts +78 -0
- package/dist/ir/native-callable-data-slots.js +403 -0
- package/dist/ir/native-callable-data-write.d.ts +58 -0
- package/dist/ir/native-callable-data-write.js +254 -0
- package/dist/ir/native-callable-integrity.d.ts +23 -0
- package/dist/ir/native-callable-integrity.js +77 -0
- package/dist/ir/native-callable-own-property.d.ts +42 -0
- package/dist/ir/native-callable-own-property.js +505 -0
- package/dist/ir/native-callable-prototype.d.ts +38 -0
- package/dist/ir/native-callable-prototype.js +307 -0
- package/dist/ir/native-callable-readonly-set.d.ts +25 -0
- package/dist/ir/native-callable-readonly-set.js +238 -0
- package/dist/ir/native-class-accessor.d.ts +3 -3
- package/dist/ir/native-class-accessor.js +3 -3
- package/dist/ir/native-class-construction.js +2 -2
- package/dist/ir/native-constructor-reads.d.ts +15 -0
- package/dist/ir/native-constructor-reads.js +156 -0
- package/dist/ir/native-constructor-static.d.ts +18 -0
- package/dist/ir/native-constructor-static.js +61 -0
- package/dist/ir/native-data-definition.d.ts +43 -0
- package/dist/ir/native-data-definition.js +222 -0
- package/dist/ir/native-document-array-entries.d.ts +15 -0
- package/dist/ir/native-document-array-entries.js +37 -0
- package/dist/ir/native-document-entries.d.ts +21 -0
- package/dist/ir/native-document-entries.js +74 -0
- package/dist/ir/native-entry-field-views.d.ts +18 -0
- package/dist/ir/native-entry-field-views.js +62 -0
- package/dist/ir/native-field-view-domains.d.ts +43 -0
- package/dist/ir/native-field-view-domains.js +300 -0
- package/dist/ir/native-field-view-facts.d.ts +97 -0
- package/dist/ir/native-field-view-facts.js +341 -0
- package/dist/ir/native-fixed-layout.js +1 -1
- package/dist/ir/native-host-construction.d.ts +4 -6
- package/dist/ir/native-host-construction.js +4 -6
- package/dist/ir/native-host-method-reads.d.ts +13 -0
- package/dist/ir/native-host-method-reads.js +53 -0
- package/dist/ir/native-iterator-field-views.d.ts +15 -0
- package/dist/ir/native-iterator-field-views.js +39 -0
- package/dist/ir/native-iterator-receivers.d.ts +8 -0
- package/dist/ir/native-iterator-receivers.js +59 -0
- package/dist/ir/native-logical-receiver-body.d.ts +8 -0
- package/dist/ir/native-logical-receiver-body.js +23 -0
- package/dist/ir/native-method-frames.d.ts +18 -0
- package/dist/ir/native-method-frames.js +127 -0
- package/dist/ir/native-method-read-source.d.ts +16 -0
- package/dist/ir/native-method-read-source.js +61 -0
- package/dist/ir/native-object-data-slots.d.ts +60 -0
- package/dist/ir/native-object-data-slots.js +493 -0
- package/dist/ir/native-object-sample.d.ts +32 -0
- package/dist/ir/native-object-sample.js +113 -0
- package/dist/ir/native-own-assignment.d.ts +123 -0
- package/dist/ir/native-own-assignment.js +529 -0
- package/dist/ir/native-property-coercibility.d.ts +3 -0
- package/dist/ir/native-property-coercibility.js +10 -0
- package/dist/ir/native-property-key-texts.d.ts +11 -0
- package/dist/ir/native-property-key-texts.js +41 -0
- package/dist/ir/native-property-presence-effects.d.ts +11 -0
- package/dist/ir/native-property-presence-effects.js +19 -0
- package/dist/ir/native-property-presence.d.ts +27 -0
- package/dist/ir/native-property-presence.js +275 -0
- package/dist/ir/native-prototype-calls.d.ts +19 -0
- package/dist/ir/native-prototype-calls.js +53 -0
- package/dist/ir/native-prototype-conversions.d.ts +5 -0
- package/dist/ir/native-prototype-conversions.js +46 -0
- package/dist/ir/native-prototype-presence-demand.d.ts +9 -0
- package/dist/ir/native-prototype-presence-demand.js +58 -0
- package/dist/ir/native-record-index.d.ts +1 -1
- package/dist/ir/native-union-method-targets.d.ts +8 -0
- package/dist/ir/native-union-method-targets.js +69 -0
- package/dist/ir/no-normal-call-completion.d.ts +15 -0
- package/dist/ir/no-normal-call-completion.js +184 -0
- package/dist/ir/non-normal-receiver.d.ts +39 -0
- package/dist/ir/non-normal-receiver.js +253 -0
- package/dist/ir/operation-conversions.d.ts +29 -0
- package/dist/ir/operation-conversions.js +484 -0
- package/dist/ir/operation-index.d.ts +1 -1
- package/dist/ir/presence-proof.d.ts +1 -1
- package/dist/ir/presence-proof.js +1 -0
- package/dist/ir/program-conversions.d.ts +48 -0
- package/dist/ir/program-conversions.js +221 -0
- package/dist/ir/program-facts.d.ts +4 -1
- package/dist/ir/program-facts.js +9 -7
- package/dist/ir/promise-reaction-conversions.d.ts +6 -0
- package/dist/ir/promise-reaction-conversions.js +92 -0
- package/dist/ir/property-read-conversions.d.ts +10 -0
- package/dist/ir/property-read-conversions.js +124 -0
- package/dist/ir/proven-branches.d.ts +2 -1
- package/dist/ir/proven-branches.js +97 -10
- package/dist/ir/publish-conversion-recipes.d.ts +27 -0
- package/dist/ir/publish-conversion-recipes.js +246 -0
- package/dist/ir/publish-native-field-view-facts.d.ts +17 -0
- package/dist/ir/publish-native-field-view-facts.js +119 -0
- package/dist/ir/queries.js +42 -4
- package/dist/ir/read-only-dictionary.d.ts +38 -0
- package/dist/ir/read-only-dictionary.js +281 -0
- package/dist/ir/reflection-demand.d.ts +2 -0
- package/dist/ir/reflection-demand.js +600 -44
- package/dist/ir/shake.d.ts +3 -0
- package/dist/ir/shake.js +24 -14
- package/dist/ir/shared-empty-records.js +1 -1
- package/dist/ir/short-circuit-threading.d.ts +23 -0
- package/dist/ir/short-circuit-threading.js +133 -0
- package/dist/ir/spread-conversions.d.ts +27 -0
- package/dist/ir/spread-conversions.js +134 -0
- package/dist/ir/spread-copy-elision.d.ts +2 -2
- package/dist/ir/spread-copy-elision.js +7 -4
- package/dist/ir/string-layout-reuse.d.ts +9 -8
- package/dist/ir/string-layout-reuse.js +8 -16
- package/dist/ir/string-length-reuse.d.ts +20 -4
- package/dist/ir/string-length-reuse.js +57 -13
- package/dist/ir/transfer.d.ts +5 -5
- package/dist/ir/transfer.js +53 -31
- package/dist/ir/typed-property-access.d.ts +2 -0
- package/dist/ir/typed-property-access.js +21 -8
- package/dist/ir/virtual-call-frames.d.ts +7 -0
- package/dist/ir/virtual-call-frames.js +8 -0
- package/dist/native-signatures.d.ts +45 -0
- package/dist/native-signatures.js +368 -0
- package/dist/plugins/gea/host.d.ts +6 -1
- package/dist/plugins/gea/host.js +30 -1
- package/dist/plugins/gea/lower.js +9 -3
- package/dist/plugins/gea/members.js +1 -1
- package/dist/plugins/gea/plugin.js +2 -1
- package/dist/plugins/gea/prelude.d.ts +1 -1
- package/dist/plugins/gea/prelude.js +1 -1
- package/dist/plugins/gea/reactive-slots.js +6 -6
- package/dist/plugins/gea/render-bridge.js +5 -6
- package/dist/plugins/gea/user-agent-styles.js +1 -1
- package/dist/plugins/installed.d.ts +2 -2
- package/dist/plugins/installed.js +2 -2
- package/dist/plugins/load.js +1 -1
- package/dist/plugins/model.d.ts +21 -36
- package/dist/plugins/webgl/host.d.ts +23 -23
- package/dist/plugins/webgl/host.js +25 -26
- package/dist/plugins/webgl/plugin.d.ts +16 -19
- package/dist/plugins/webgl/plugin.js +16 -23
- package/dist/project-preparation.js +12 -14
- package/dist/projection/abi.js +13 -10
- package/dist/projection/bindings.d.ts +8 -0
- package/dist/projection/bindings.js +36 -5
- package/dist/projection/callee.d.ts +17 -15
- package/dist/projection/callee.js +108 -81
- package/dist/projection/class-property-presence.d.ts +1 -1
- package/dist/projection/class-property-presence.js +1 -1
- package/dist/projection/classes.d.ts +2 -0
- package/dist/projection/classes.js +4 -1
- package/dist/projection/dispatch.d.ts +19 -3
- package/dist/projection/dispatch.js +39 -16
- package/dist/projection/fields.d.ts +14 -2
- package/dist/projection/fields.js +100 -38
- package/dist/projection/function-source.d.ts +5 -0
- package/dist/projection/function-source.js +15 -0
- package/dist/projection/immediate-callees.d.ts +12 -0
- package/dist/projection/immediate-callees.js +36 -0
- package/dist/projection/index-protocols.d.ts +12 -0
- package/dist/projection/index-protocols.js +39 -0
- package/dist/projection/instance-test.d.ts +8 -0
- package/dist/projection/instance-test.js +3 -1
- package/dist/projection/method-values.d.ts +7 -0
- package/dist/projection/method-values.js +29 -0
- package/dist/projection/native-accessor-access.d.ts +26 -0
- package/dist/projection/native-accessor-access.js +18 -0
- package/dist/projection/native-callable-data.d.ts +24 -0
- package/dist/projection/native-callable-data.js +101 -0
- package/dist/projection/native-expando.d.ts +3 -0
- package/dist/projection/native-expando.js +13 -0
- package/dist/projection/native-object-data.d.ts +47 -0
- package/dist/projection/native-object-data.js +203 -0
- package/dist/projection/native-prototype-methods.d.ts +22 -0
- package/dist/projection/native-prototype-methods.js +161 -0
- package/dist/projection/regexp-fields.d.ts +35 -0
- package/dist/projection/regexp-fields.js +80 -0
- package/dist/projection/slots.d.ts +5 -1
- package/dist/projection/slots.js +89 -10
- package/dist/representation/derive.d.ts +5 -7
- package/dist/representation/derive.js +78 -78
- package/dist/representation/difference.js +1 -1
- package/dist/representation/host-abi.d.ts +2 -2
- package/dist/representation/host-abi.js +4 -5
- package/dist/representation/host-templates.d.ts +6 -2
- package/dist/representation/host-templates.js +8 -2
- package/dist/representation/intersection.d.ts +3 -3
- package/dist/representation/intersection.js +3 -3
- package/dist/representation/merge.js +1 -1
- package/dist/representation/model.d.ts +27 -22
- package/dist/representation/model.js +35 -22
- package/dist/representation/native-callable-data-storage.d.ts +85 -0
- package/dist/representation/native-callable-data-storage.js +398 -0
- package/dist/representation/native-data-properties.d.ts +14 -0
- package/dist/representation/native-data-properties.js +52 -0
- package/dist/representation/native-logical-receiver.d.ts +36 -0
- package/dist/representation/native-logical-receiver.js +92 -0
- package/dist/representation/object-shape.d.ts +1 -1
- package/dist/representation/object-shape.js +1 -1
- package/dist/representation/optional.js +2 -2
- package/dist/representation/physical-carrier.d.ts +25 -0
- package/dist/representation/physical-carrier.js +153 -0
- package/dist/representation/policies.d.ts +16 -10
- package/dist/representation/policies.js +5 -1
- package/dist/representation/primitives.js +3 -0
- package/dist/representation/promise-resolution.d.ts +19 -0
- package/dist/representation/promise-resolution.js +50 -0
- package/dist/representation/prototype-domains.d.ts +43 -0
- package/dist/representation/prototype-domains.js +226 -0
- package/dist/representation/proxy-carriers.d.ts +3 -3
- package/dist/representation/proxy-carriers.js +2 -3
- package/dist/representation/publish.d.ts +4 -0
- package/dist/representation/publish.js +73 -42
- package/dist/representation/record-fields.d.ts +2 -2
- package/dist/representation/record-fields.js +2 -2
- package/dist/representation/static-field-cells.d.ts +1 -1
- package/dist/representation/structural-method-abi.d.ts +6 -0
- package/dist/representation/structural-method-abi.js +13 -0
- package/dist/representation/unassigned-binding-cells.d.ts +3 -3
- package/dist/representation/union.js +19 -4
- package/dist/representation/unwritten-record-members.d.ts +6 -6
- package/dist/representation/unwritten-record-members.js +1 -1
- package/dist/representation/value-records.js +77 -5
- package/dist/representation/verify.js +1 -1
- package/dist/representation/well-known-symbols.d.ts +3 -0
- package/dist/representation/well-known-symbols.js +11 -0
- package/dist/semantics/alias-this-field-declaration-transform.js +3 -3
- package/dist/semantics/ambient-type-realization-transform.d.ts +19 -20
- package/dist/semantics/ambient-type-realization-transform.js +20 -12
- package/dist/semantics/ambient.d.ts +13 -13
- package/dist/semantics/ambient.js +12 -12
- package/dist/semantics/borrowed-builtin-call-bind-source-transform.d.ts +5 -0
- package/dist/semantics/borrowed-builtin-call-bind-source-transform.js +110 -52
- package/dist/semantics/borrowed-method-receiver-copy-source-transform.d.ts +4 -4
- package/dist/semantics/borrowed-method-receiver-copy-source-transform.js +4 -4
- package/dist/semantics/call-invalidated-narrowing.js +2 -2
- package/dist/semantics/callable-origins.d.ts +49 -1
- package/dist/semantics/callable-origins.js +148 -32
- package/dist/semantics/callable-own-data-slots.d.ts +122 -0
- package/dist/semantics/callable-own-data-slots.js +421 -0
- package/dist/semantics/class-alias.d.ts +4 -4
- package/dist/semantics/class-alias.js +4 -4
- package/dist/semantics/class-heritage.d.ts +8 -7
- package/dist/semantics/class-heritage.js +8 -7
- package/dist/semantics/commonjs-wrapper.js +5 -2
- package/dist/semantics/constructor-function-class-source-transform.js +2 -3
- package/dist/semantics/constructor-slot-subclasses.d.ts +1 -1
- package/dist/semantics/constructor-slot-subclasses.js +5 -5
- package/dist/semantics/declaration-overlay-transform.d.ts +9 -12
- package/dist/semantics/declaration-overlay-transform.js +138 -141
- package/dist/semantics/declared-integers.d.ts +24 -0
- package/dist/semantics/declared-integers.js +34 -0
- package/dist/semantics/define-property-source-transform.js +21 -8
- package/dist/semantics/dynamic-fallback.d.ts +1 -1
- package/dist/semantics/dynamic-fallback.js +1 -1
- package/dist/semantics/frontend.d.ts +12 -16
- package/dist/semantics/frontend.js +187 -75
- package/dist/semantics/host-methods.d.ts +3 -3
- package/dist/semantics/host-methods.js +1 -1
- package/dist/semantics/host-protocols.d.ts +3 -3
- package/dist/semantics/host-protocols.js +26 -26
- package/dist/semantics/interface-families.d.ts +2 -2
- package/dist/semantics/interface-families.js +46 -47
- package/dist/semantics/interface-implementors.d.ts +12 -15
- package/dist/semantics/interface-implementors.js +12 -15
- package/dist/semantics/jsdoc-namepath-transform.js +7 -7
- package/dist/semantics/model/operands.d.ts +18 -3
- package/dist/semantics/model/operands.js +41 -0
- package/dist/semantics/model/operations.d.ts +82 -1
- package/dist/semantics/model/selected-signature.d.ts +24 -3
- package/dist/semantics/model/structural-type-table.js +24 -6
- package/dist/semantics/model/structural-types.d.ts +10 -8
- package/dist/semantics/model/structural-types.js +7 -5
- package/dist/semantics/module-resolution.js +3 -2
- package/dist/semantics/native-callable-readonly-set.d.ts +17 -0
- package/dist/semantics/native-callable-readonly-set.js +1 -0
- package/dist/semantics/native-function-signatures.d.ts +14 -0
- package/dist/semantics/native-function-signatures.js +96 -0
- package/dist/semantics/native-object-data-slots.d.ts +72 -0
- package/dist/semantics/native-object-data-slots.js +679 -0
- package/dist/semantics/native-own-assignment.d.ts +62 -0
- package/dist/semantics/native-own-assignment.js +1 -0
- package/dist/semantics/normalize/absent-globals.d.ts +8 -8
- package/dist/semantics/normalize/absent-globals.js +5 -5
- package/dist/semantics/normalize/arguments-objects.d.ts +3 -1
- package/dist/semantics/normalize/arguments-objects.js +1 -1
- package/dist/semantics/normalize/asserted-argument-arms.d.ts +7 -7
- package/dist/semantics/normalize/asserted-arm-absence.d.ts +1 -2
- package/dist/semantics/normalize/asserted-arm-absence.js +1 -2
- package/dist/semantics/normalize/binding-fixpoint.js +3 -3
- package/dist/semantics/normalize/bivariant-slot-parameter.d.ts +2 -2
- package/dist/semantics/normalize/bivariant-slot-parameter.js +6 -6
- package/dist/semantics/normalize/callable-data-write.d.ts +46 -0
- package/dist/semantics/normalize/callable-data-write.js +182 -0
- package/dist/semantics/normalize/census.js +5 -5
- package/dist/semantics/normalize/class-instance-record-statement.d.ts +1 -1
- package/dist/semantics/normalize/class-instance-record-statement.js +1 -1
- package/dist/semantics/normalize/collection-bindings.d.ts +11 -13
- package/dist/semantics/normalize/collection-bindings.js +60 -33
- package/dist/semantics/normalize/commonjs-module-record.d.ts +7 -4
- package/dist/semantics/normalize/commonjs-module-record.js +93 -4
- package/dist/semantics/normalize/contribution.js +4 -4
- package/dist/semantics/normalize/dead-method-copies.d.ts +5 -5
- package/dist/semantics/normalize/dead-typeof-guards.d.ts +2 -2
- package/dist/semantics/normalize/dead-typeof-guards.js +6 -6
- package/dist/semantics/normalize/deferred-intrinsic-protocols.d.ts +22 -13
- package/dist/semantics/normalize/deferred-intrinsic-protocols.js +85 -13
- package/dist/semantics/normalize/derived-expression-type.d.ts +129 -91
- package/dist/semantics/normalize/derived-expression-type.js +419 -192
- package/dist/semantics/normalize/field-bindings.d.ts +4 -4
- package/dist/semantics/normalize/field-bindings.js +334 -67
- package/dist/semantics/normalize/flow/array-element-continuation.d.ts +2 -2
- package/dist/semantics/normalize/flow/array-element-continuation.js +35 -18
- package/dist/semantics/normalize/flow/callable-array-origins.d.ts +1 -1
- package/dist/semantics/normalize/flow/callable-array-origins.js +3 -3
- package/dist/semantics/normalize/flow/callable-completions.d.ts +2 -2
- package/dist/semantics/normalize/flow/callable-completions.js +2 -2
- package/dist/semantics/normalize/flow/callable-reach.d.ts +19 -6
- package/dist/semantics/normalize/flow/callable-reach.js +722 -289
- package/dist/semantics/normalize/flow/class-family-member-read.js +24 -29
- package/dist/semantics/normalize/flow/collection-value-continuation.d.ts +2 -2
- package/dist/semantics/normalize/flow/collection-value-continuation.js +2 -2
- package/dist/semantics/normalize/flow/component-solver.d.ts +19 -16
- package/dist/semantics/normalize/flow/component-solver.js +138 -69
- package/dist/semantics/normalize/flow/computed-key-set.d.ts +6 -7
- package/dist/semantics/normalize/flow/computed-key-set.js +20 -1
- package/dist/semantics/normalize/flow/export-importers.js +4 -4
- package/dist/semantics/normalize/flow/host-text-sink.d.ts +3 -2
- package/dist/semantics/normalize/flow/host-text-sink.js +4 -3
- package/dist/semantics/normalize/flow/intrinsic-array-callback-frames.js +3 -2
- package/dist/semantics/normalize/flow/intrinsic-data-definition.d.ts +2 -2
- package/dist/semantics/normalize/flow/intrinsic-data-definition.js +3 -3
- package/dist/semantics/normalize/flow/invocation-facts.d.ts +3 -2
- package/dist/semantics/normalize/flow/invocation-facts.js +3 -3
- package/dist/semantics/normalize/flow/member-call-forwarding.d.ts +12 -6
- package/dist/semantics/normalize/flow/member-call-forwarding.js +94 -21
- package/dist/semantics/normalize/flow/model.d.ts +5 -5
- package/dist/semantics/normalize/flow/model.js +11 -11
- package/dist/semantics/normalize/flow/node-path-token.js +3 -3
- package/dist/semantics/normalize/flow/origin-authority.d.ts +3 -3
- package/dist/semantics/normalize/flow/owned-class-receivers.js +8 -7
- package/dist/semantics/normalize/flow/parameter-values.js +6 -6
- package/dist/semantics/normalize/flow/proof-hypotheses.d.ts +30 -4
- package/dist/semantics/normalize/flow/proof-hypotheses.js +56 -5
- package/dist/semantics/normalize/flow/proof-memo-settlement.d.ts +21 -0
- package/dist/semantics/normalize/flow/proof-memo-settlement.js +32 -0
- package/dist/semantics/normalize/flow/record-alias-closure.d.ts +1 -1
- package/dist/semantics/normalize/flow/record-alias-closure.js +1 -1
- package/dist/semantics/normalize/flow/seeded-origins.d.ts +4 -4
- package/dist/semantics/normalize/flow/seeded-origins.js +4 -4
- package/dist/semantics/normalize/flow/source-accessor-descriptor.d.ts +22 -0
- package/dist/semantics/normalize/flow/source-accessor-descriptor.js +210 -0
- package/dist/semantics/normalize/flow/source-callable-own-data.d.ts +33 -0
- package/dist/semantics/normalize/flow/source-callable-own-data.js +238 -0
- package/dist/semantics/normalize/flow/source-callable-readonly-set.d.ts +26 -0
- package/dist/semantics/normalize/flow/source-callable-readonly-set.js +337 -0
- package/dist/semantics/normalize/flow/source-class-data.d.ts +7 -7
- package/dist/semantics/normalize/flow/source-class-data.js +25 -26
- package/dist/semantics/normalize/flow/source-class-static-data.d.ts +2 -2
- package/dist/semantics/normalize/flow/source-class-static-data.js +2 -2
- package/dist/semantics/normalize/flow/source-commonjs-exports.d.ts +15 -0
- package/dist/semantics/normalize/flow/source-commonjs-exports.js +7 -0
- package/dist/semantics/normalize/flow/source-descriptor-protocol.d.ts +20 -0
- package/dist/semantics/normalize/flow/source-descriptor-protocol.js +75 -0
- package/dist/semantics/normalize/flow/source-executing-parameter-values.d.ts +8 -0
- package/dist/semantics/normalize/flow/source-executing-parameter-values.js +93 -0
- package/dist/semantics/normalize/flow/source-global-binding.d.ts +13 -0
- package/dist/semantics/normalize/flow/source-global-binding.js +42 -0
- package/dist/semantics/normalize/flow/source-intrinsic-member-data.d.ts +27 -0
- package/dist/semantics/normalize/flow/source-intrinsic-member-data.js +178 -0
- package/dist/semantics/normalize/flow/source-invocation-frame-layout.d.ts +1 -1
- package/dist/semantics/normalize/flow/source-invocation-frame-layout.js +31 -11
- package/dist/semantics/normalize/flow/source-invocation-receiver.d.ts +7 -3
- package/dist/semantics/normalize/flow/source-invocation-receiver.js +30 -2
- package/dist/semantics/normalize/flow/source-native-class-alias.d.ts +7 -0
- package/dist/semantics/normalize/flow/source-native-class-alias.js +91 -0
- package/dist/semantics/normalize/flow/source-normal-predecessor.d.ts +10 -0
- package/dist/semantics/normalize/flow/source-normal-predecessor.js +90 -0
- package/dist/semantics/normalize/flow/source-property-key.d.ts +3 -0
- package/dist/semantics/normalize/flow/source-property-key.js +7 -0
- package/dist/semantics/normalize/flow/source-read-protocol.d.ts +20 -0
- package/dist/semantics/normalize/flow/source-read-protocol.js +108 -0
- package/dist/semantics/normalize/flow/source-record-data.js +31 -30
- package/dist/semantics/normalize/flow/source-value-session.d.ts +106 -3
- package/dist/semantics/normalize/flow/source-value-session.js +1172 -218
- package/dist/semantics/normalize/flow/standard-prototype-method-source.d.ts +16 -0
- package/dist/semantics/normalize/flow/standard-prototype-method-source.js +64 -0
- package/dist/semantics/normalize/flow/targets.d.ts +13 -14
- package/dist/semantics/normalize/flow/targets.js +20 -23
- package/dist/semantics/normalize/flow/value-flow.d.ts +2 -4
- package/dist/semantics/normalize/flow/value-flow.js +4 -13
- package/dist/semantics/normalize/flow/value-provenance.d.ts +23 -3
- package/dist/semantics/normalize/flow/value-provenance.js +44 -4
- package/dist/semantics/normalize/fresh-dictionary-storage.d.ts +32 -0
- package/dist/semantics/normalize/fresh-dictionary-storage.js +530 -0
- package/dist/semantics/normalize/fresh-indexed-storage.d.ts +43 -0
- package/dist/semantics/normalize/fresh-indexed-storage.js +88 -0
- package/dist/semantics/normalize/fresh-ordinary-object.d.ts +8 -0
- package/dist/semantics/normalize/fresh-ordinary-object.js +27 -0
- package/dist/semantics/normalize/gating.js +2 -2
- package/dist/semantics/normalize/global-host-mutations.js +770 -261
- package/dist/semantics/normalize/host-effect-contracts.d.ts +1 -1
- package/dist/semantics/normalize/host-effect-contracts.js +1 -1
- package/dist/semantics/normalize/host-mutation-computed-keys.d.ts +2 -2
- package/dist/semantics/normalize/host-mutation-computed-keys.js +8 -0
- package/dist/semantics/normalize/host-mutation-key-reader.d.ts +6 -11
- package/dist/semantics/normalize/host-mutation-key-reader.js +11 -28
- package/dist/semantics/normalize/host-mutation-keys.d.ts +11 -7
- package/dist/semantics/normalize/host-mutation-keys.js +26 -15
- package/dist/semantics/normalize/identities.js +20 -17
- package/dist/semantics/normalize/implicit-arguments-tuple.d.ts +8 -3
- package/dist/semantics/normalize/implicit-arguments-tuple.js +21 -4
- package/dist/semantics/normalize/installed-global-properties.d.ts +17 -0
- package/dist/semantics/normalize/installed-global-properties.js +214 -0
- package/dist/semantics/normalize/instantiation.js +6 -6
- package/dist/semantics/normalize/intrinsic-accessor-getter.d.ts +1 -1
- package/dist/semantics/normalize/intrinsic-property-call.d.ts +6 -1
- package/dist/semantics/normalize/intrinsic-property-call.js +19 -0
- package/dist/semantics/normalize/intrinsic-prototype.d.ts +7 -0
- package/dist/semantics/normalize/intrinsic-prototype.js +10 -0
- package/dist/semantics/normalize/intrinsic-return-identity.d.ts +5 -0
- package/dist/semantics/normalize/intrinsic-return-identity.js +29 -0
- package/dist/semantics/normalize/jsdoc-type-names.js +59 -63
- package/dist/semantics/normalize/keyof.js +3 -3
- package/dist/semantics/normalize/local-bindings.d.ts +4 -4
- package/dist/semantics/normalize/local-bindings.js +60 -61
- package/dist/semantics/normalize/logical-object-truthiness.d.ts +8 -0
- package/dist/semantics/normalize/logical-object-truthiness.js +20 -0
- package/dist/semantics/normalize/merged-declaration.d.ts +3 -3
- package/dist/semantics/normalize/merged-declaration.js +3 -3
- package/dist/semantics/normalize/never-override-result.d.ts +2 -3
- package/dist/semantics/normalize/never-override-result.js +2 -3
- package/dist/semantics/normalize/null-blind-parameter.d.ts +2 -2
- package/dist/semantics/normalize/null-blind-parameter.js +2 -2
- package/dist/semantics/normalize/object-bag-bindings.d.ts +19 -19
- package/dist/semantics/normalize/object-bag-bindings.js +334 -141
- package/dist/semantics/normalize/omitted-stated-parameter.d.ts +8 -8
- package/dist/semantics/normalize/omitted-stated-parameter.js +8 -9
- package/dist/semantics/normalize/override-field-arms.d.ts +3 -3
- package/dist/semantics/normalize/override-field-arms.js +15 -16
- package/dist/semantics/normalize/parameter-bindings.d.ts +13 -12
- package/dist/semantics/normalize/parameter-bindings.js +173 -139
- package/dist/semantics/normalize/parameter-slot.d.ts +9 -10
- package/dist/semantics/normalize/parameter-slot.js +16 -17
- package/dist/semantics/normalize/physical-overload-result.d.ts +8 -8
- package/dist/semantics/normalize/physical-overload-result.js +10 -10
- package/dist/semantics/normalize/producer-context.d.ts +27 -12
- package/dist/semantics/normalize/producers/allocations.js +5 -1
- package/dist/semantics/normalize/producers/bindings.js +8 -7
- package/dist/semantics/normalize/producers/class-lifecycle.js +52 -7
- package/dist/semantics/normalize/producers/computations.js +27 -3
- package/dist/semantics/normalize/producers/control.js +5 -5
- package/dist/semantics/normalize/producers/declaration-lifecycle.js +4 -4
- package/dist/semantics/normalize/producers/destructuring.js +10 -5
- package/dist/semantics/normalize/producers/erasure.d.ts +9 -0
- package/dist/semantics/normalize/producers/erasure.js +22 -0
- package/dist/semantics/normalize/producers/invocations.d.ts +1 -1
- package/dist/semantics/normalize/producers/invocations.js +200 -55
- package/dist/semantics/normalize/producers/logical-merge-type.d.ts +2 -2
- package/dist/semantics/normalize/producers/logical-merge-type.js +12 -12
- package/dist/semantics/normalize/producers/native-callable-readonly-set.d.ts +6 -0
- package/dist/semantics/normalize/producers/native-callable-readonly-set.js +24 -0
- package/dist/semantics/normalize/producers/native-own-assignment.d.ts +14 -0
- package/dist/semantics/normalize/producers/native-own-assignment.js +153 -0
- package/dist/semantics/normalize/producers/properties.js +153 -20
- package/dist/semantics/normalize/producers/protocol.js +4 -4
- package/dist/semantics/normalize/producers/references.js +21 -19
- package/dist/semantics/normalize/producers/shared.d.ts +1 -1
- package/dist/semantics/normalize/producers/shared.js +59 -58
- package/dist/semantics/normalize/producers/spread-arguments.js +7 -3
- package/dist/semantics/normalize/producers/tuple-spread.d.ts +2 -2
- package/dist/semantics/normalize/producers/tuple-spread.js +5 -5
- package/dist/semantics/normalize/property-key-domain.d.ts +6 -6
- package/dist/semantics/normalize/property-key-domain.js +7 -7
- package/dist/semantics/normalize/reachability.d.ts +6 -7
- package/dist/semantics/normalize/reachability.js +60 -62
- package/dist/semantics/normalize/record-home-arms.js +2 -3
- package/dist/semantics/normalize/record-link-families.d.ts +1 -1
- package/dist/semantics/normalize/record-link-families.js +1 -1
- package/dist/semantics/normalize/record-stand-in-arms.d.ts +4 -5
- package/dist/semantics/normalize/return-bindings.d.ts +19 -9
- package/dist/semantics/normalize/return-bindings.js +49 -41
- package/dist/semantics/normalize/script-global-redefinition.d.ts +1 -1
- package/dist/semantics/normalize/script-global-redefinition.js +1 -1
- package/dist/semantics/normalize/shared-array-storage.d.ts +4 -5
- package/dist/semantics/normalize/shared-array-storage.js +7 -8
- package/dist/semantics/normalize/sloppy-absence.d.ts +6 -3
- package/dist/semantics/normalize/sloppy-absence.js +7 -3
- package/dist/semantics/normalize/source-object-prototype-absence.d.ts +7 -0
- package/dist/semantics/normalize/source-object-prototype-absence.js +19 -0
- package/dist/semantics/normalize/specialization.d.ts +10 -10
- package/dist/semantics/normalize/specialization.js +107 -112
- package/dist/semantics/normalize/specialized-source-frames.d.ts +11 -0
- package/dist/semantics/normalize/specialized-source-frames.js +41 -0
- package/dist/semantics/normalize/structural-array-element.d.ts +5 -5
- package/dist/semantics/normalize/structural-array-element.js +40 -39
- package/dist/semantics/normalize/structural-array-read.js +3 -3
- package/dist/semantics/normalize/structural-callable.d.ts +15 -1
- package/dist/semantics/normalize/structural-callable.js +35 -3
- package/dist/semantics/normalize/structural-creation-order.d.ts +2 -2
- package/dist/semantics/normalize/structural-declarations.d.ts +22 -21
- package/dist/semantics/normalize/structural-declarations.js +42 -42
- package/dist/semantics/normalize/structural-declared-body.js +10 -11
- package/dist/semantics/normalize/structural-indexed-access.js +2 -2
- package/dist/semantics/normalize/structural-instantiated-member.d.ts +9 -10
- package/dist/semantics/normalize/structural-instantiated-member.js +43 -30
- package/dist/semantics/normalize/structural-joins.d.ts +4 -16
- package/dist/semantics/normalize/structural-joins.js +5 -65
- package/dist/semantics/normalize/structural-layout-relevance.d.ts +5 -5
- package/dist/semantics/normalize/structural-layout-relevance.js +22 -23
- package/dist/semantics/normalize/structural-layout-type.d.ts +1 -1
- package/dist/semantics/normalize/structural-layout-type.js +140 -107
- package/dist/semantics/normalize/structural-local-union.d.ts +1 -1
- package/dist/semantics/normalize/structural-local-union.js +38 -12
- package/dist/semantics/normalize/structural-mutable-field.d.ts +9 -0
- package/dist/semantics/normalize/structural-mutable-field.js +152 -0
- package/dist/semantics/normalize/structural-parts.d.ts +6 -0
- package/dist/semantics/normalize/structural-parts.js +35 -32
- package/dist/semantics/normalize/structural-receiver.d.ts +3 -3
- package/dist/semantics/normalize/structural-receiver.js +12 -13
- package/dist/semantics/normalize/structural-self-reference.d.ts +12 -11
- package/dist/semantics/normalize/structural-self-reference.js +24 -25
- package/dist/semantics/normalize/structural.d.ts +13 -3
- package/dist/semantics/normalize/structural.js +400 -201
- package/dist/semantics/normalize/suppressed-write-arms.d.ts +10 -11
- package/dist/semantics/normalize/symbol-keyed-this-slots.d.ts +6 -6
- package/dist/semantics/normalize/symbol-keyed-this-slots.js +4 -4
- package/dist/semantics/normalize/unresolvable-names.d.ts +2 -3
- package/dist/semantics/normalize/unresolvable-names.js +2 -2
- package/dist/semantics/normalize/unshared-array-result.d.ts +4 -4
- package/dist/semantics/normalize/unshared-array-result.js +4 -4
- package/dist/semantics/package-sources.js +2 -3
- package/dist/semantics/program.d.ts +10 -13
- package/dist/semantics/program.js +80 -26
- package/dist/semantics/property-key.d.ts +9 -0
- package/dist/semantics/property-key.js +25 -0
- package/dist/semantics/prototype-object-class-source-transform.js +2 -2
- package/dist/semantics/prototype-reparenting.d.ts +1 -1
- package/dist/semantics/prototype-reparenting.js +1 -1
- package/dist/semantics/shared-declaration-files.d.ts +6 -1
- package/dist/semantics/shared-declaration-files.js +2 -2
- package/dist/semantics/source-transform-protocol.d.ts +26 -0
- package/dist/semantics/source-transform-protocol.js +1 -0
- package/dist/semantics/stable-checker.js +9 -13
- package/dist/semantics/subclass-member-overlay-transform.d.ts +2 -2
- package/dist/semantics/subclass-member-overlay-transform.js +89 -88
- package/dist/semantics/this-constructor-source-transform.js +2 -2
- package/dist/semantics/unchecked-guard-argument-copies.d.ts +3 -3
- package/dist/semantics/unchecked-write-member-declarations.d.ts +9 -11
- package/dist/semantics/unchecked-write-member-declarations.js +11 -13
- package/dist/semantics/uninstantiable-classes.d.ts +1 -1
- package/dist/semantics/uninstantiable-classes.js +1 -1
- package/dist/targets/cpp/balanced-units.d.ts +1 -1
- package/dist/targets/cpp/balanced-units.js +1 -1
- package/dist/targets/cpp/borrowed-arm-projections.d.ts +2 -3
- package/dist/targets/cpp/borrowed-arm-projections.js +2 -3
- package/dist/targets/cpp/borrowed-call-entry.js +3 -3
- package/dist/targets/cpp/captures.d.ts +2 -2
- package/dist/targets/cpp/captures.js +4 -4
- package/dist/targets/cpp/char-code-buffers.d.ts +1 -1
- package/dist/targets/cpp/char-code-buffers.js +4 -1
- package/dist/targets/cpp/class-layout.d.ts +7 -17
- package/dist/targets/cpp/class-layout.js +6 -13
- package/dist/targets/cpp/class-properties/computed-method-value.d.ts +1 -1
- package/dist/targets/cpp/class-properties/computed-method-value.js +5 -27
- package/dist/targets/cpp/class-properties/emit-class-properties.d.ts +49 -59
- package/dist/targets/cpp/class-properties/emit-class-properties.js +68 -232
- package/dist/targets/cpp/class-properties/native-method-read.d.ts +5 -0
- package/dist/targets/cpp/class-properties/native-method-read.js +60 -0
- package/dist/targets/cpp/class-properties/native-prototype.d.ts +3 -1
- package/dist/targets/cpp/class-properties/native-prototype.js +5 -6
- package/dist/targets/cpp/class-ref-transport.d.ts +1 -11
- package/dist/targets/cpp/class-ref-transport.js +1 -9
- package/dist/targets/cpp/conversions.js +613 -252
- package/dist/targets/cpp/coroutine-bodies.d.ts +1 -97
- package/dist/targets/cpp/coroutine-bodies.js +1 -187
- package/dist/targets/cpp/document.js +1 -1
- package/dist/targets/cpp/emit-allocation.d.ts +0 -38
- package/dist/targets/cpp/emit-allocation.js +63 -88
- package/dist/targets/cpp/emit-array-view.d.ts +7 -0
- package/dist/targets/cpp/emit-array-view.js +47 -0
- package/dist/targets/cpp/emit-arrays.d.ts +9 -52
- package/dist/targets/cpp/emit-arrays.js +177 -113
- package/dist/targets/cpp/emit-binding-reference.d.ts +10 -0
- package/dist/targets/cpp/emit-binding-reference.js +19 -1
- package/dist/targets/cpp/emit-bindings.js +19 -24
- package/dist/targets/cpp/emit-buffers.d.ts +8 -4
- package/dist/targets/cpp/emit-buffers.js +88 -47
- package/dist/targets/cpp/emit-callable-view.d.ts +6 -0
- package/dist/targets/cpp/emit-callable-view.js +133 -0
- package/dist/targets/cpp/emit-callable.d.ts +11 -1
- package/dist/targets/cpp/emit-callable.js +225 -266
- package/dist/targets/cpp/emit-carrier-members.d.ts +2 -2
- package/dist/targets/cpp/emit-carrier-members.js +42 -35
- package/dist/targets/cpp/emit-certified-conversion.d.ts +7 -0
- package/dist/targets/cpp/emit-certified-conversion.js +27 -0
- package/dist/targets/cpp/emit-context.d.ts +123 -64
- package/dist/targets/cpp/emit-context.js +147 -44
- package/dist/targets/cpp/emit-descriptor-snapshot.d.ts +10 -0
- package/dist/targets/cpp/emit-descriptor-snapshot.js +60 -0
- package/dist/targets/cpp/emit-dictionary-view.d.ts +6 -0
- package/dist/targets/cpp/emit-dictionary-view.js +102 -0
- package/dist/targets/cpp/emit-document-record-view.d.ts +3 -0
- package/dist/targets/cpp/emit-document-record-view.js +104 -0
- package/dist/targets/cpp/emit-dynamic-properties.d.ts +42 -17
- package/dist/targets/cpp/emit-dynamic-properties.js +118 -72
- package/dist/targets/cpp/emit-equality.d.ts +2 -1
- package/dist/targets/cpp/emit-equality.js +65 -45
- package/dist/targets/cpp/emit-exceptions.js +1 -1
- package/dist/targets/cpp/emit-in.js +22 -11
- package/dist/targets/cpp/emit-instanceof.js +15 -14
- package/dist/targets/cpp/emit-integers.d.ts +40 -3
- package/dist/targets/cpp/emit-integers.js +76 -5
- package/dist/targets/cpp/emit-iterable-object-view.d.ts +2 -0
- package/dist/targets/cpp/emit-iterable-object-view.js +15 -11
- package/dist/targets/cpp/emit-iterator-object-view.d.ts +2 -0
- package/dist/targets/cpp/emit-iterator-object-view.js +24 -16
- package/dist/targets/cpp/emit-iterator.d.ts +2 -0
- package/dist/targets/cpp/emit-iterator.js +115 -43
- package/dist/targets/cpp/emit-json.js +6 -6
- package/dist/targets/cpp/emit-jsx.js +2 -2
- package/dist/targets/cpp/emit-live-field-view.d.ts +26 -0
- package/dist/targets/cpp/emit-live-field-view.js +50 -0
- package/dist/targets/cpp/emit-narrowing.d.ts +60 -139
- package/dist/targets/cpp/emit-narrowing.js +694 -624
- package/dist/targets/cpp/emit-native-accessor-definition.d.ts +10 -0
- package/dist/targets/cpp/emit-native-accessor-definition.js +94 -0
- package/dist/targets/cpp/emit-native-callable-data.d.ts +23 -0
- package/dist/targets/cpp/emit-native-callable-data.js +117 -0
- package/dist/targets/cpp/emit-native-document-entry.d.ts +4 -0
- package/dist/targets/cpp/emit-native-document-entry.js +52 -0
- package/dist/targets/cpp/emit-native-field-view.d.ts +26 -0
- package/dist/targets/cpp/emit-native-field-view.js +217 -0
- package/dist/targets/cpp/emit-native-method.d.ts +16 -0
- package/dist/targets/cpp/emit-native-method.js +90 -0
- package/dist/targets/cpp/emit-native-object-data.d.ts +7 -0
- package/dist/targets/cpp/emit-native-object-data.js +66 -0
- package/dist/targets/cpp/emit-native-object-sample.d.ts +8 -0
- package/dist/targets/cpp/emit-native-object-sample.js +34 -0
- package/dist/targets/cpp/emit-native-own-assignment.d.ts +7 -0
- package/dist/targets/cpp/emit-native-own-assignment.js +119 -0
- package/dist/targets/cpp/emit-native-selection.d.ts +2 -2
- package/dist/targets/cpp/emit-native-selection.js +14 -5
- package/dist/targets/cpp/emit-number-storage.d.ts +2 -0
- package/dist/targets/cpp/emit-number-storage.js +1 -0
- package/dist/targets/cpp/emit-presence.d.ts +3 -4
- package/dist/targets/cpp/emit-presence.js +43 -21
- package/dist/targets/cpp/emit-properties.js +224 -111
- package/dist/targets/cpp/emit-protocol-iterator.d.ts +2 -0
- package/dist/targets/cpp/emit-protocol-iterator.js +45 -23
- package/dist/targets/cpp/emit-record-view.d.ts +5 -10
- package/dist/targets/cpp/emit-record-view.js +223 -269
- package/dist/targets/cpp/emit-return.js +33 -8
- package/dist/targets/cpp/emit-scopes.d.ts +2 -2
- package/dist/targets/cpp/emit-sum-widening.js +13 -5
- package/dist/targets/cpp/emit-tonumber.d.ts +1 -1
- package/dist/targets/cpp/emit-tonumber.js +3 -3
- package/dist/targets/cpp/emit-tostring.d.ts +20 -2
- package/dist/targets/cpp/emit-tostring.js +131 -28
- package/dist/targets/cpp/emit-typeof.d.ts +4 -0
- package/dist/targets/cpp/emit-typeof.js +29 -1
- package/dist/targets/cpp/emit-union-properties.d.ts +6 -23
- package/dist/targets/cpp/emit-union-properties.js +127 -235
- package/dist/targets/cpp/emit.d.ts +4 -1
- package/dist/targets/cpp/emit.js +336 -119
- package/dist/targets/cpp/error-types.d.ts +1 -3
- package/dist/targets/cpp/error-types.js +1 -2
- package/dist/targets/cpp/evaluated-once.d.ts +4 -4
- package/dist/targets/cpp/evaluated-once.js +5 -5
- package/dist/targets/cpp/function-source-reads.d.ts +2 -15
- package/dist/targets/cpp/function-source-reads.js +3 -38
- package/dist/targets/cpp/host/core-globals.d.ts +5 -0
- package/dist/targets/cpp/host/core-globals.js +10 -0
- package/dist/targets/cpp/host/emit-host-arity.js +1 -1
- package/dist/targets/cpp/host/emit-host-invoke.js +73 -23
- package/dist/targets/cpp/host/emit-host-object.d.ts +2 -1
- package/dist/targets/cpp/host/emit-host-object.js +328 -145
- package/dist/targets/cpp/host/emit-host-properties.js +4 -6
- package/dist/targets/cpp/host/emit-host-reflect.js +29 -5
- package/dist/targets/cpp/host/emit-host-value.d.ts +1 -1
- package/dist/targets/cpp/host/emit-host-value.js +2 -2
- package/dist/targets/cpp/host/host-members.d.ts +11 -0
- package/dist/targets/cpp/host/host-members.js +27 -5
- package/dist/targets/cpp/host/host-method-aliases.d.ts +1 -30
- package/dist/targets/cpp/host/host-method-aliases.js +1 -76
- package/dist/targets/cpp/host/native-protocols.js +1 -1
- package/dist/targets/cpp/host/object-protocol.d.ts +1 -1
- package/dist/targets/cpp/host/object-protocol.js +24 -24
- package/dist/targets/cpp/host-namespace-reads.d.ts +1 -83
- package/dist/targets/cpp/host-namespace-reads.js +1 -113
- package/dist/targets/cpp/manifest/capabilities.js +33 -33
- package/dist/targets/cpp/manifest.d.ts +5 -0
- package/dist/targets/cpp/manifest.js +38 -14
- package/dist/targets/cpp/native-collection-base.js +7 -6
- package/dist/targets/cpp/native-debug-source.d.ts +15 -0
- package/dist/targets/cpp/native-debug-source.js +21 -0
- package/dist/targets/cpp/native-error-base.d.ts +1 -1
- package/dist/targets/cpp/native-error-base.js +1 -1
- package/dist/targets/cpp/native-narrowing-transport.d.ts +2 -0
- package/dist/targets/cpp/native-narrowing-transport.js +25 -5
- package/dist/targets/cpp/native-view-targets.d.ts +3 -0
- package/dist/targets/cpp/native-view-targets.js +5 -0
- package/dist/targets/cpp/prototype/emit-prototype-array.d.ts +3 -33
- package/dist/targets/cpp/prototype/emit-prototype-array.js +40 -22
- package/dist/targets/cpp/prototype/emit-prototype-date.d.ts +1 -58
- package/dist/targets/cpp/prototype/emit-prototype-date.js +14 -97
- package/dist/targets/cpp/prototype/emit-prototype-error.d.ts +20 -0
- package/dist/targets/cpp/prototype/emit-prototype-error.js +2 -2
- package/dist/targets/cpp/prototype/emit-prototype-invoke.d.ts +3 -27
- package/dist/targets/cpp/prototype/emit-prototype-invoke.js +60 -52
- package/dist/targets/cpp/prototype/emit-prototype-iterator.d.ts +1 -41
- package/dist/targets/cpp/prototype/emit-prototype-iterator.js +4 -43
- package/dist/targets/cpp/prototype/emit-prototype-promise.d.ts +2 -13
- package/dist/targets/cpp/prototype/emit-prototype-promise.js +10 -58
- package/dist/targets/cpp/prototype/emit-prototype-regexp.d.ts +4 -25
- package/dist/targets/cpp/prototype/emit-prototype-regexp.js +16 -81
- package/dist/targets/cpp/prototype/emit-prototype-string.d.ts +1 -1
- package/dist/targets/cpp/prototype/emit-prototype-string.js +17 -28
- package/dist/targets/cpp/prototype/prototype-method-reads.js +4 -80
- package/dist/targets/cpp/reactive-dependencies.d.ts +12 -6
- package/dist/targets/cpp/reactive-dependencies.js +62 -42
- package/dist/targets/cpp/reactive-origins.js +12 -0
- package/dist/targets/cpp/records.d.ts +133 -14
- package/dist/targets/cpp/records.js +345 -153
- package/dist/targets/cpp/regexp-types.d.ts +1 -26
- package/dist/targets/cpp/regexp-types.js +4 -29
- package/dist/targets/cpp/segment-scopes.d.ts +30 -0
- package/dist/targets/cpp/segment-scopes.js +294 -0
- package/dist/targets/cpp/translation-unit.d.ts +21 -2
- package/dist/targets/cpp/translation-unit.js +121 -276
- package/dist/targets/cpp/types.d.ts +8 -3
- package/dist/targets/cpp/types.js +30 -6
- package/dist/targets/cpp/virtual-callees.d.ts +18 -0
- package/dist/targets/cpp/virtual-callees.js +27 -0
- package/dist/targets/cpp/virtual-methods.d.ts +7 -7
- package/dist/targets/cpp/virtual-methods.js +213 -58
- package/package.json +8 -3
- package/src/targets/cpp/runtime/gea_dictionary_view.h +204 -0
- package/src/targets/cpp/runtime/gea_document_view.h +845 -0
- package/src/targets/cpp/runtime/gea_dynamic_proxy.h +66 -23
- package/src/targets/cpp/runtime/gea_eval.h +6 -6
- package/src/targets/cpp/runtime/gea_runtime.h +7550 -1166
- package/dist/targets/cpp/direct-call-receivers.d.ts +0 -37
- package/dist/targets/cpp/direct-call-receivers.js +0 -79
|
@@ -107,7 +107,7 @@ export type RecordIndexKey = 'string' | 'number' | 'symbol';
|
|
|
107
107
|
*/
|
|
108
108
|
export declare const dictionaryKeyDomainOf: (declared: RecordIndexKey, key: Representation) => RecordIndexKey;
|
|
109
109
|
/**
|
|
110
|
-
* `{ [key: string]: any }` held by reference --
|
|
110
|
+
* `{ [key: string]: any }` held by reference -- a typical `Document` type. The one
|
|
111
111
|
* dictionary carrier that can be a live view of another object rather than a
|
|
112
112
|
* table of its own (`gea::dictionary::aliasOf`): every value read through it
|
|
113
113
|
* is already `any`, so viewing an instance boxes nothing the program typed.
|
|
@@ -184,6 +184,9 @@ export interface CallableAbi {
|
|
|
184
184
|
* language itself defines exactly.
|
|
185
185
|
*/
|
|
186
186
|
readonly restFrom: number | null;
|
|
187
|
+
/** A physical implicit-arguments slot packs the complete supplied argument
|
|
188
|
+
* list, before omitted named formals are filled with undefined. */
|
|
189
|
+
readonly argumentsFrame?: 'actual';
|
|
187
190
|
/**
|
|
188
191
|
* Present on a program overload set joined across a callback overload
|
|
189
192
|
* (`host-abi.ts`'s `callbackOverloadJoinedAbi`): `step(c): Promise<string>`
|
|
@@ -259,6 +262,7 @@ export type Representation =
|
|
|
259
262
|
} | {
|
|
260
263
|
readonly kind: 'scalar';
|
|
261
264
|
readonly domain: ScalarDomain;
|
|
265
|
+
readonly integerWidth?: 'int32' | 'int64';
|
|
262
266
|
} | {
|
|
263
267
|
readonly kind: 'string';
|
|
264
268
|
}
|
|
@@ -302,8 +306,8 @@ export type Representation =
|
|
|
302
306
|
* Two instantiations of one generic class therefore have one physical
|
|
303
307
|
* carrier, and folding the shape in gave that carrier two spellings -- the
|
|
304
308
|
* "one value, two carriers" case this key exists to CATCH, arrived at from
|
|
305
|
-
* the other side.
|
|
306
|
-
* `#
|
|
309
|
+
* the other side. The measured case: a method of `Context` reads
|
|
310
|
+
* `#handler: Handler<E>` -- a callable over `Context<E>`,
|
|
307
311
|
* which is `Context<E, any, BlankInput>` once the class's later parameters
|
|
308
312
|
* take their defaults -- and the narrowed read in a monomorphized copy
|
|
309
313
|
* spells the same class through its own instantiation. Identical carriers
|
|
@@ -522,17 +526,17 @@ export type Representation =
|
|
|
522
526
|
readonly recursive?: RecursiveCarrier;
|
|
523
527
|
/**
|
|
524
528
|
* The typed fields an interface ADDS to the Array it extends --
|
|
525
|
-
*
|
|
526
|
-
*
|
|
529
|
+
* `interface List<T> extends ReadonlyArray<T>, Range` puts `pos` and
|
|
530
|
+
* `end` on every such list -- or `null`
|
|
527
531
|
* for a plain array. The C++ type is the same `gea::ArrayObject<E>`
|
|
528
532
|
* either way: the fields live in the array's own extension sidecar
|
|
529
533
|
* (`ArrayObject::extensionFields`), typed by a generated struct
|
|
530
534
|
* (`records.ts`'s `arrayExtensionDeclarations`), so a plain array cast
|
|
531
|
-
* to the interface (`elements.slice() as
|
|
535
|
+
* to the interface (`elements.slice() as MutableList<T>`) is the
|
|
532
536
|
* SAME object and converts by identity (`conversions.ts`). Part of the
|
|
533
537
|
* carrier's identity because a property read has to know the layout;
|
|
534
|
-
* keyed by the FIELDS, not the interface, so `
|
|
535
|
-
* `
|
|
538
|
+
* keyed by the FIELDS, not the interface, so `MutableList<T>` and
|
|
539
|
+
* `List<T>` -- one object under two spellings -- are one carrier.
|
|
536
540
|
*/
|
|
537
541
|
readonly extension: readonly RecordField[] | null;
|
|
538
542
|
}
|
|
@@ -663,8 +667,8 @@ export type Representation =
|
|
|
663
667
|
* pump. Sharing the `iterator` kind let every capability keyed on that kind
|
|
664
668
|
* -- `protocol:iterator:next:iterator`, the spread and destructuring rows,
|
|
665
669
|
* the cursor conversions -- claim this carrier for a synchronous step it
|
|
666
|
-
* cannot take, and
|
|
667
|
-
*
|
|
670
|
+
* cannot take, and one large program deadlocked on exactly that: an async
|
|
671
|
+
* generator ran as nested blocking pumps and a timer that fired
|
|
668
672
|
* inside one started a loop the pump beneath it never returned from.
|
|
669
673
|
*
|
|
670
674
|
* `resume`/`completion` collapse to `undefined` for the reason `iterator`'s
|
|
@@ -819,10 +823,10 @@ export type Representation =
|
|
|
819
823
|
* A function VALUE with no calling convention: storable, passable and
|
|
820
824
|
* comparable, but not callable.
|
|
821
825
|
*
|
|
822
|
-
* `(...args: never[]) => void` --
|
|
823
|
-
*
|
|
826
|
+
* `(...args: never[]) => void` -- the usual `AnyFunction` alias -- is not a
|
|
827
|
+
* convention at all. `never` is uninhabited, so no
|
|
824
828
|
* call through such a slot can supply an argument, and the type exists to say
|
|
825
|
-
* "some function, which nobody here calls":
|
|
829
|
+
* "some function, which nobody here calls": programs pass it straight to
|
|
826
830
|
* `Error.captureStackTrace`. Giving it a frame is where the silent miscompile
|
|
827
831
|
* lives -- a concrete `f(a, b, c)` converted into a zero-argument frame
|
|
828
832
|
* compiles and then runs with garbage the first time anyone calls it.
|
|
@@ -844,9 +848,8 @@ export type Representation =
|
|
|
844
848
|
*
|
|
845
849
|
* `lib.es5.d.ts` types every `.constructor` read as the bare `Function`, which
|
|
846
850
|
* states no frame, so a program that only uses the constructor as an OBJECT --
|
|
847
|
-
*
|
|
848
|
-
*
|
|
849
|
-
* the class -- has no convention to carry and no reason for a box. The carrier
|
|
851
|
+
* `(this.constructor as { aspects?: Set<symbol> })` reading a property a
|
|
852
|
+
* module-level `defineAspects(SomeClass, ...)` defined on the class -- has no convention to carry and no reason for a box. The carrier
|
|
850
853
|
* is the class evaluation itself (`gea::NativeClassMethodState`), which is
|
|
851
854
|
* what a constructor value's environment already is, what `===` compares, and
|
|
852
855
|
* whose `parent` is the base class's: the constructor's own `[[Prototype]]`.
|
|
@@ -860,7 +863,7 @@ export type Representation =
|
|
|
860
863
|
/**
|
|
861
864
|
* The constructor of an Error instance, carried by the instance itself.
|
|
862
865
|
*
|
|
863
|
-
* `e.constructor` over `CompiledError | Error` (
|
|
866
|
+
* `e.constructor` over `CompiledError | Error` (an error-equality helper)
|
|
864
867
|
* is one of two kinds of object: a compiled `class X extends Error`'s
|
|
865
868
|
* constructor, whose class evaluation the instance's own allocation names,
|
|
866
869
|
* or an intrinsic one (`TypeError`, ...), which the runtime error's kind
|
|
@@ -981,7 +984,7 @@ export declare const isBoxed: (representation: Representation) => boolean;
|
|
|
981
984
|
* `T | null` onto -- and so are `optional`, `dynamic` and every sum, each of
|
|
982
985
|
* which plainly has one.
|
|
983
986
|
*
|
|
984
|
-
* `constructor-family` is the measured case:
|
|
987
|
+
* `constructor-family` is the measured case: a polyfilling module's `export const
|
|
985
988
|
* CloseEvent: typeof globalThis.CloseEvent = globalThis.CloseEvent ?? class
|
|
986
989
|
* extends Event {...}`. The plan gives the global read a bare constructor
|
|
987
990
|
* family, which is the census's own statement that the value is there -- a host
|
|
@@ -992,6 +995,8 @@ export declare const isBoxed: (representation: Representation) => boolean;
|
|
|
992
995
|
* produces.
|
|
993
996
|
*/
|
|
994
997
|
export declare const carriesNoAbsence: (representation: Representation) => boolean;
|
|
998
|
+
/** Native object references reserve an undefined lane for strict unbound method receivers, separate from null. */
|
|
999
|
+
export declare const carriesNativeUndefined: (representation: Representation) => boolean;
|
|
995
1000
|
/**
|
|
996
1001
|
* Whether `representation` -- unwrapped once if it is an `optional` -- can
|
|
997
1002
|
* only ever be absent, never a live, present-but-falsy value.
|
|
@@ -1028,7 +1033,7 @@ export declare const carriesNoAbsence: (representation: Representation) => boole
|
|
|
1028
1033
|
* `kind === 'optional'` test then refused a program the collapse itself
|
|
1029
1034
|
* created.
|
|
1030
1035
|
*
|
|
1031
|
-
* Measured on
|
|
1036
|
+
* Measured on a WebRTC signalling program: `if (e.candidate && this.ws)`, with
|
|
1032
1037
|
* `ws: WebSocketInstance | null`, raised
|
|
1033
1038
|
* `merge-narrowing:optional(native-record-ref(...),null)->native-handle(...)`,
|
|
1034
1039
|
* an obligation no conversion could ever satisfy, on a program with zero
|
|
@@ -1095,7 +1100,7 @@ export declare const isDeadMergeContribution: (representation: Representation) =
|
|
|
1095
1100
|
/**
|
|
1096
1101
|
* The `||` mirror of `isDeadMergeContribution`: a kept operand with NO truthy
|
|
1097
1102
|
* state. `a || b` publishes `a` only when `ToBoolean(a)` is true, and a carrier
|
|
1098
|
-
* that is only ever `null`/`undefined` (
|
|
1103
|
+
* that is only ever `null`/`undefined` (a helper's `label || name`,
|
|
1099
1104
|
* where every caller passes `null` or nothing) has no such state, so the
|
|
1100
1105
|
* kept branch never runs and the merge only ever publishes the evaluated
|
|
1101
1106
|
* side. Nothing is converted because nothing arrives. Asked by
|
|
@@ -1199,7 +1204,7 @@ export interface PartialMergeArmSplit {
|
|
|
1199
1204
|
* `ToBoolean` in the first place, so when the checker's type for the whole
|
|
1200
1205
|
* expression is a plain `boolean` while the kept operand's own carrier is
|
|
1201
1206
|
* not, it has already proven the kept contribution meaningful only as its
|
|
1202
|
-
* truthiness. `object && object.
|
|
1207
|
+
* truthiness. `object && object.isShape` over a class with a boolean brand field is the
|
|
1203
1208
|
* shape: the merge publishes `boolean`, the kept side is a
|
|
1204
1209
|
* `class-ref(shared-refcount)` -- nullable, because `optional.ts` collapses
|
|
1205
1210
|
* `T | null` onto it -- and its `ToBoolean` (`emit-presence.ts`'s
|
|
@@ -1262,7 +1267,7 @@ export declare const captureCapabilityOf: (representation: Representation | null
|
|
|
1262
1267
|
* how a fail-closed guard silently stops covering a kind.
|
|
1263
1268
|
*
|
|
1264
1269
|
* ⛔ `record-with-index` was missing from this switch and fell through to
|
|
1265
|
-
* `default`, so nothing inside one was ever visited:
|
|
1270
|
+
* `default`, so nothing inside one was ever visited: a query `Filter` -- a
|
|
1266
1271
|
* record-with-index whose fields are the whole query -- was invisible to every
|
|
1267
1272
|
* guard built on this walk.
|
|
1268
1273
|
*/
|
|
@@ -78,7 +78,7 @@ export const dictionaryKeyDomainOf = (declared, key) => {
|
|
|
78
78
|
return primitiveText(key) ? 'string' : declared;
|
|
79
79
|
};
|
|
80
80
|
/**
|
|
81
|
-
* `{ [key: string]: any }` held by reference --
|
|
81
|
+
* `{ [key: string]: any }` held by reference -- a typical `Document` type. The one
|
|
82
82
|
* dictionary carrier that can be a live view of another object rather than a
|
|
83
83
|
* table of its own (`gea::dictionary::aliasOf`): every value read through it
|
|
84
84
|
* is already `any`, so viewing an instance boxes nothing the program typed.
|
|
@@ -194,8 +194,9 @@ const abiKeys = new WeakMap();
|
|
|
194
194
|
*
|
|
195
195
|
* ⛔ This used to be the child's WHOLE key, spliced in as text -- which makes a
|
|
196
196
|
* key a tree serialization of a graph, and that is not merely wasteful, it does
|
|
197
|
-
* not terminate at any useful size.
|
|
198
|
-
* that each contain the next level
|
|
197
|
+
* not terminate at any useful size. A recursive query-filter carrier with three
|
|
198
|
+
* fields that each contain the next level made every level TRIPLE its
|
|
199
|
+
* parent's key:
|
|
199
200
|
* measured at 1,191 characters at the innermost level, 11 MB eight levels up,
|
|
200
201
|
* 299 MB three levels above that, and then `Array.join` threw
|
|
201
202
|
* `RangeError: Invalid string length` -- V8 caps a string at 536,870,888
|
|
@@ -215,7 +216,8 @@ const abiKeys = new WeakMap();
|
|
|
215
216
|
* rather than left opaque. A key is read by people: it names the missing
|
|
216
217
|
* primitive in every unmet-obligation row the compass prints, and an obligation
|
|
217
218
|
* that says only `k9f2c...` would trade one unreadable report (8 KB of inlined
|
|
218
|
-
* header fields on ONE line, which is what this produced for
|
|
219
|
+
* header fields on ONE line, which is what this produced for one request
|
|
220
|
+
* context class)
|
|
219
221
|
* for another.
|
|
220
222
|
*/
|
|
221
223
|
// `GEA_FULL_KEYS` prints every nested key in full: a digest names WHICH union a
|
|
@@ -226,7 +228,7 @@ const nestedKeyLimit = process.env['GEA_FULL_KEYS'] ? Number.POSITIVE_INFINITY :
|
|
|
226
228
|
// Memoized beside `keysByRepresentation`, and for the same reason: the digest
|
|
227
229
|
// is a pure function of the carrier, and a parent key asks for it once per
|
|
228
230
|
// field on every rebuild of a parent that is not itself remembered yet. On
|
|
229
|
-
//
|
|
231
|
+
// a large program the digest, not the walk, was half the cost of
|
|
230
232
|
// keying a union's arms.
|
|
231
233
|
const nestedKeys = new WeakMap();
|
|
232
234
|
const nestedKey = (representation) => {
|
|
@@ -289,13 +291,14 @@ const buildRepresentationKey = (representation) => {
|
|
|
289
291
|
case 'unresolved':
|
|
290
292
|
return `unresolved(${representation.reason})`;
|
|
291
293
|
case 'void':
|
|
294
|
+
return representation.bottom === true ? 'never' : 'void';
|
|
292
295
|
case 'string':
|
|
293
296
|
case 'symbol':
|
|
294
297
|
case 'null':
|
|
295
298
|
case 'undefined':
|
|
296
299
|
return representation.kind;
|
|
297
300
|
case 'scalar':
|
|
298
|
-
return `scalar(${representation.domain})`;
|
|
301
|
+
return `scalar(${representation.domain}${representation.integerWidth === undefined ? '' : `,${representation.integerWidth}`})`;
|
|
299
302
|
case 'class-ref':
|
|
300
303
|
return `class-ref(${representation.declaration},${representation.ownership})`;
|
|
301
304
|
case 'native-handle':
|
|
@@ -398,7 +401,7 @@ export const abiKey = (abi) => {
|
|
|
398
401
|
return built;
|
|
399
402
|
};
|
|
400
403
|
const buildAbiKey = (abi) => `(${abi.parameters.map((parameter) => `${nestedKey(parameter.value)}/${parameter.ownership}`).join(',')}` +
|
|
401
|
-
`${abi.restFrom === null ? '' : `|rest@${abi.restFrom}`})` +
|
|
404
|
+
`${abi.restFrom === null ? '' : `|rest@${abi.restFrom}`}${abi.argumentsFrame ? '|actual-arguments' : ''})` +
|
|
402
405
|
`->${nestedKey(abi.result)}` +
|
|
403
406
|
`@${abi.receiver ? nestedKey(abi.receiver) : '-'}` +
|
|
404
407
|
(abi.overloadJoined === true ? '|overloads' : '');
|
|
@@ -463,7 +466,7 @@ const alwaysTruthyKinds = new Set([
|
|
|
463
466
|
* `T | null` onto -- and so are `optional`, `dynamic` and every sum, each of
|
|
464
467
|
* which plainly has one.
|
|
465
468
|
*
|
|
466
|
-
* `constructor-family` is the measured case:
|
|
469
|
+
* `constructor-family` is the measured case: a polyfilling module's `export const
|
|
467
470
|
* CloseEvent: typeof globalThis.CloseEvent = globalThis.CloseEvent ?? class
|
|
468
471
|
* extends Event {...}`. The plan gives the global read a bare constructor
|
|
469
472
|
* family, which is the census's own statement that the value is there -- a host
|
|
@@ -473,7 +476,11 @@ const alwaysTruthyKinds = new Set([
|
|
|
473
476
|
* between two unrelated program classes is asking for a value that arm never
|
|
474
477
|
* produces.
|
|
475
478
|
*/
|
|
476
|
-
export const carriesNoAbsence = (representation) => alwaysTruthyKinds.has(representation.kind);
|
|
479
|
+
export const carriesNoAbsence = (representation) => alwaysTruthyKinds.has(representation.kind) && !carriesNativeUndefined(representation);
|
|
480
|
+
/** Native object references reserve an undefined lane for strict unbound method receivers, separate from null. */
|
|
481
|
+
export const carriesNativeUndefined = (representation) => ((representation.kind === 'class-ref' || representation.kind === 'record' || representation.kind === 'record-with-index') &&
|
|
482
|
+
representation.ownership === 'shared-refcount') ||
|
|
483
|
+
(representation.kind === 'native-record-ref' && representation.native === null && representation.ownership === 'shared-refcount');
|
|
477
484
|
/**
|
|
478
485
|
* Whether `representation` -- unwrapped once if it is an `optional` -- can
|
|
479
486
|
* only ever be absent, never a live, present-but-falsy value.
|
|
@@ -510,7 +517,7 @@ export const carriesNoAbsence = (representation) => alwaysTruthyKinds.has(repres
|
|
|
510
517
|
* `kind === 'optional'` test then refused a program the collapse itself
|
|
511
518
|
* created.
|
|
512
519
|
*
|
|
513
|
-
* Measured on
|
|
520
|
+
* Measured on a WebRTC signalling program: `if (e.candidate && this.ws)`, with
|
|
514
521
|
* `ws: WebSocketInstance | null`, raised
|
|
515
522
|
* `merge-narrowing:optional(native-record-ref(...),null)->native-handle(...)`,
|
|
516
523
|
* an obligation no conversion could ever satisfy, on a program with zero
|
|
@@ -539,10 +546,12 @@ export const carriesNoAbsence = (representation) => alwaysTruthyKinds.has(repres
|
|
|
539
546
|
export const carriesUndefined = (representation) => {
|
|
540
547
|
if (representation.kind === 'undefined' || representation.kind === 'void')
|
|
541
548
|
return true;
|
|
549
|
+
if (carriesNativeUndefined(representation))
|
|
550
|
+
return true;
|
|
542
551
|
if (representation.kind === 'borrowed-ref')
|
|
543
552
|
return carriesUndefined(representation.referent);
|
|
544
553
|
if (representation.kind === 'optional')
|
|
545
|
-
return representation.absence === 'undefined';
|
|
554
|
+
return representation.absence === 'undefined' || carriesUndefined(representation.payload);
|
|
546
555
|
if (representation.kind === 'tagged-union')
|
|
547
556
|
return representation.arms.some((arm) => carriesUndefined(arm.value));
|
|
548
557
|
return representation.kind === 'dynamic';
|
|
@@ -599,9 +608,7 @@ export const soleArrayPatternCapableArm = (representation) => {
|
|
|
599
608
|
* the payload of `T | undefined` itself.
|
|
600
609
|
*/
|
|
601
610
|
export const absentFieldPayload = (field) => !field.required && field.value.kind === 'optional' && field.value.absence === 'undefined' ? field.value.payload : null;
|
|
602
|
-
export const carriesMergeAbsence = (representation) => representation.kind === 'optional' ||
|
|
603
|
-
representation.kind === 'native-handle' ||
|
|
604
|
-
(representation.kind === 'class-ref' && representation.ownership === 'shared-refcount');
|
|
611
|
+
export const carriesMergeAbsence = (representation) => representation.kind === 'optional' || representation.kind === 'native-handle' || carriesNativeUndefined(representation);
|
|
605
612
|
/**
|
|
606
613
|
* Whether a tagged union tags absence in an arm of its own.
|
|
607
614
|
*
|
|
@@ -623,7 +630,7 @@ const unionTagsAbsence = (union) => union.arms.some((arm) => arm.value.kind ===
|
|
|
623
630
|
*
|
|
624
631
|
* - a union carrying its own `null`/`undefined` arm. Arms are disjoint, so a
|
|
625
632
|
* `present:` arm sitting beside a `null:` arm carries a type null was already
|
|
626
|
-
* removed from. Without this,
|
|
633
|
+
* removed from. Without this, `this.environment &&
|
|
627
634
|
* this.environment.isTexture` over a `Texture | null` field raised
|
|
628
635
|
* `merge-narrowing:tagged-union(undefined|null|present:class-ref(...,shared-
|
|
629
636
|
* refcount))->tagged-union(undefined|null|present:scalar(boolean))` -- an
|
|
@@ -634,11 +641,16 @@ const unionTagsAbsence = (union) => union.arms.some((arm) => arm.value.kind ===
|
|
|
634
641
|
* only be tagged `'undefined'` -- and `union.ts` reaches that wrapper solely
|
|
635
642
|
* when the source union had exactly ONE absent member. Both facts together
|
|
636
643
|
* say `null` was never in the type, so the pointer inside is object-shaped
|
|
637
|
-
* and therefore always truthy. Without this,
|
|
638
|
-
* this.session.inTransaction()` -- `session:
|
|
644
|
+
* and therefore always truthy. Without this, `this.session &&
|
|
645
|
+
* this.session.inTransaction()` -- `session: Session | undefined`, the
|
|
639
646
|
* guard-and-call idiom -- raised `merge-narrowing:optional(class-ref(...,
|
|
640
647
|
* shared-refcount),undefined)->optional(scalar(boolean),undefined)`, 39 rows
|
|
641
648
|
* over three classes, for a merge whose kept arm can only ever be absent.
|
|
649
|
+
*
|
|
650
|
+
* Native record references now reserve their own undefined lane too. That
|
|
651
|
+
* physical lane makes a bare reference potentially falsy, while an outside
|
|
652
|
+
* absence tag still proves its payload denotes a present object. The same
|
|
653
|
+
* proof therefore applies to every carrier named by `carriesNativeUndefined`.
|
|
642
654
|
*/
|
|
643
655
|
const isDeadMergePayload = (representation, absenceTaggedOutside) => {
|
|
644
656
|
if (representation.kind === 'optional')
|
|
@@ -647,7 +659,8 @@ const isDeadMergePayload = (representation, absenceTaggedOutside) => {
|
|
|
647
659
|
const tagsAbsence = unionTagsAbsence(representation);
|
|
648
660
|
return representation.arms.every((arm) => isDeadMergePayload(arm.value, tagsAbsence || absenceTaggedOutside));
|
|
649
661
|
}
|
|
650
|
-
if (absenceTaggedOutside &&
|
|
662
|
+
if (absenceTaggedOutside &&
|
|
663
|
+
(carriesNativeUndefined(representation) || representation.kind === 'class-ref' || representation.kind === 'native-handle'))
|
|
651
664
|
return true;
|
|
652
665
|
// A class instance is object-shaped and so always truthy -- unless it is the
|
|
653
666
|
// one shape that self-encodes absence, exactly as `native-handle` does. A
|
|
@@ -655,13 +668,13 @@ const isDeadMergePayload = (representation, absenceTaggedOutside) => {
|
|
|
655
668
|
// `T | null` onto, so a null one is a falsy state this must not claim away.
|
|
656
669
|
if (representation.kind === 'class-ref')
|
|
657
670
|
return representation.ownership !== 'shared-refcount';
|
|
658
|
-
return
|
|
671
|
+
return carriesNoAbsence(representation);
|
|
659
672
|
};
|
|
660
673
|
export const isDeadMergeContribution = (representation) => isDeadMergePayload(representation, false);
|
|
661
674
|
/**
|
|
662
675
|
* The `||` mirror of `isDeadMergeContribution`: a kept operand with NO truthy
|
|
663
676
|
* state. `a || b` publishes `a` only when `ToBoolean(a)` is true, and a carrier
|
|
664
|
-
* that is only ever `null`/`undefined` (
|
|
677
|
+
* that is only ever `null`/`undefined` (a helper's `label || name`,
|
|
665
678
|
* where every caller passes `null` or nothing) has no such state, so the
|
|
666
679
|
* kept branch never runs and the merge only ever publishes the evaluated
|
|
667
680
|
* side. Nothing is converted because nothing arrives. Asked by
|
|
@@ -755,7 +768,7 @@ export const contributesOnlyAbsence = (representation) => isDeadMergePayload(rep
|
|
|
755
768
|
* `ToBoolean` in the first place, so when the checker's type for the whole
|
|
756
769
|
* expression is a plain `boolean` while the kept operand's own carrier is
|
|
757
770
|
* not, it has already proven the kept contribution meaningful only as its
|
|
758
|
-
* truthiness. `object && object.
|
|
771
|
+
* truthiness. `object && object.isShape` over a class with a boolean brand field is the
|
|
759
772
|
* shape: the merge publishes `boolean`, the kept side is a
|
|
760
773
|
* `class-ref(shared-refcount)` -- nullable, because `optional.ts` collapses
|
|
761
774
|
* `T | null` onto it -- and its `ToBoolean` (`emit-presence.ts`'s
|
|
@@ -908,7 +921,7 @@ export const captureCapabilityOf = (representation) => representation === null ?
|
|
|
908
921
|
* how a fail-closed guard silently stops covering a kind.
|
|
909
922
|
*
|
|
910
923
|
* ⛔ `record-with-index` was missing from this switch and fell through to
|
|
911
|
-
* `default`, so nothing inside one was ever visited:
|
|
924
|
+
* `default`, so nothing inside one was ever visited: a query `Filter` -- a
|
|
912
925
|
* record-with-index whose fields are the whole query -- was invisible to every
|
|
913
926
|
* guard built on this walk.
|
|
914
927
|
*/
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { FunctionId, OperationId, SemanticResultId, StructuralTypeId } from '../identity/ids.js';
|
|
2
|
+
import type { RepresentationDeriver } from './derive.js';
|
|
3
|
+
import { type Representation } from './model.js';
|
|
4
|
+
import { type CallableOwnDataBlocker, type CallableOwnDataSlotCensus, type CallableOwnDataSlotSchema, type CallableOwnDataValue, type CallableOwnDataWriter } from '../semantics/callable-own-data-slots.js';
|
|
5
|
+
import type { SemanticGraph } from '../semantics/model/graph.js';
|
|
6
|
+
import type { SemanticOperation } from '../semantics/model/operations.js';
|
|
7
|
+
type StoredValueDeriver = Pick<RepresentationDeriver, 'deriveStored' | 'nativeCallableConventions'>;
|
|
8
|
+
/** The carrier a stored value physically occupies. A stored Function keeps its
|
|
9
|
+
* own physical frame: an asserted operand type cannot replace the ABI of the
|
|
10
|
+
* function actually written. Null when that frame has no native convention.
|
|
11
|
+
*/
|
|
12
|
+
export declare const storedSourceValueOf: (deriver: StoredValueDeriver, source: {
|
|
13
|
+
readonly callable: FunctionId | null;
|
|
14
|
+
readonly type: StructuralTypeId;
|
|
15
|
+
}) => Representation | null;
|
|
16
|
+
/** One native storage carrier authenticated by every actual writer, separately
|
|
17
|
+
* from read presence, dominating installation and dynamic observation.
|
|
18
|
+
* @semanticCategory generic-primitive
|
|
19
|
+
*/
|
|
20
|
+
export interface NativeCallableDataStorage {
|
|
21
|
+
readonly schema: CallableOwnDataSlotSchema;
|
|
22
|
+
readonly storage: Representation;
|
|
23
|
+
readonly writers: readonly {
|
|
24
|
+
readonly writer: CallableOwnDataWriter;
|
|
25
|
+
readonly source: Representation;
|
|
26
|
+
}[];
|
|
27
|
+
}
|
|
28
|
+
/** Which presence protocol a storage answer serves. Only a reader that
|
|
29
|
+
* independently observes presence may use a slot some writer deletes.
|
|
30
|
+
*/
|
|
31
|
+
export type NativeCallableDataPresence = 'observed-presence' | 'installed-value';
|
|
32
|
+
export declare const nativeCallableDataValueRepresentationOf: (value: CallableOwnDataValue, deriver: StoredValueDeriver) => Representation | null;
|
|
33
|
+
/** A by-value object lacks the object identity a data descriptor must preserve.
|
|
34
|
+
* The native holder copies primitives/callable ABI views or retains the actual
|
|
35
|
+
* shared object; it does not manufacture identity by boxing a value copy.
|
|
36
|
+
*/
|
|
37
|
+
export declare const nativeCallableDataCarrierHasStorageIdentity: (value: Representation) => boolean;
|
|
38
|
+
/** Whether one view of a schema's blockers admits its storage. Deletion
|
|
39
|
+
* changes presence, never the family of stored payloads; only a reader which
|
|
40
|
+
* independently observes or proves presence may use that family. The blocker
|
|
41
|
+
* set is a view over the one published schema: refining it never changes the
|
|
42
|
+
* schema's writers, so the published writer carrier stays the storage.
|
|
43
|
+
*/
|
|
44
|
+
export declare const nativeCallableDataBlockersAdmit: (schema: CallableOwnDataSlotSchema, blockers: readonly CallableOwnDataBlocker[], presence: NativeCallableDataPresence) => boolean;
|
|
45
|
+
/** A schema's storage under its own blockers: the writer carrier, admitted
|
|
46
|
+
* only when every blocker the schema names is one this presence protocol
|
|
47
|
+
* discharges. */
|
|
48
|
+
export declare const nativeCallableDataStorageOf: (schema: CallableOwnDataSlotSchema, deriver: StoredValueDeriver, presence?: NativeCallableDataPresence) => NativeCallableDataStorage | null;
|
|
49
|
+
/** The define's exact own descriptor fields name a data descriptor with a value. */
|
|
50
|
+
export declare const callableDataDefinitionDescriptorIsData: (semantic: SemanticOperation) => boolean;
|
|
51
|
+
/** The intact inherited descriptor is conditional on the actual receiver being
|
|
52
|
+
* a fresh Function. It cannot establish that owner or successful installation.
|
|
53
|
+
*/
|
|
54
|
+
export declare const nativeCallableDataWriteProtocolOf: (semantic: SemanticOperation, key: string) => boolean;
|
|
55
|
+
/** Both presence protocols' writer carriers for one source Function and key. */
|
|
56
|
+
export interface NativeCallableDataSchemaStorage {
|
|
57
|
+
readonly schema: CallableOwnDataSlotSchema;
|
|
58
|
+
/** Gated by the published schema's own blockers: the projection storage. */
|
|
59
|
+
readonly installedValue: () => NativeCallableDataStorage | null;
|
|
60
|
+
/** The writer carrier alone; a reader gates it with its own refined view of
|
|
61
|
+
* this schema's blockers (`nativeCallableDataBlockersAdmit`). */
|
|
62
|
+
readonly observedPresence: () => NativeCallableDataStorage | null;
|
|
63
|
+
}
|
|
64
|
+
/** The sealed native own-data storage of every callable slot: one census, one
|
|
65
|
+
* carrier per schema and presence protocol, one route per operation. Every
|
|
66
|
+
* consumer -- publication, slot projection, lowering, receipts and the IR
|
|
67
|
+
* owner authority -- reads these answers by id rather than recomputing them.
|
|
68
|
+
* @semanticCategory generic-primitive
|
|
69
|
+
*/
|
|
70
|
+
export interface NativeCallableDataPlan {
|
|
71
|
+
readonly census: CallableOwnDataSlotCensus;
|
|
72
|
+
/** The schema an operation's exact owner and canonical constant key address. */
|
|
73
|
+
readonly schemaAt: (operation: OperationId) => CallableOwnDataSlotSchema | null;
|
|
74
|
+
readonly storageOf: (functionId: FunctionId, key: string) => NativeCallableDataSchemaStorage | null;
|
|
75
|
+
/** The same carriers for a schema only a native refinement of the census
|
|
76
|
+
* found (`refineCallableOwnDataCensus`); the projection routed none. */
|
|
77
|
+
readonly storageOfSchema: (schema: CallableOwnDataSlotSchema) => NativeCallableDataSchemaStorage;
|
|
78
|
+
/** Shared route eligibility for publication, slot projection and receipt
|
|
79
|
+
* discovery. Read presence/dominance remains a separate IR obligation. */
|
|
80
|
+
readonly routeAt: (operation: OperationId) => NativeCallableDataStorage | null;
|
|
81
|
+
/** Actual own-data frames flow through immutable aliases and their calls. */
|
|
82
|
+
readonly results: ReadonlyMap<SemanticResultId, Representation>;
|
|
83
|
+
}
|
|
84
|
+
export declare const nativeCallableDataPlanOf: (graph: SemanticGraph, deriver: StoredValueDeriver) => NativeCallableDataPlan;
|
|
85
|
+
export {};
|