@geastack/compiler 1.0.32 → 1.0.34
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/README.md +1 -1
- package/dist/cli-coverage.js +2 -4
- package/dist/cli-emit.js +1 -1
- package/dist/cli-module-graph.js +1 -1
- package/dist/cli.js +2 -1
- package/dist/compiler.js +35 -28
- package/dist/conversion/array-view.js +9 -0
- package/dist/conversion/build.js +15 -8
- package/dist/conversion/dictionary-view.js +2 -2
- package/dist/conversion/nodes.d.ts +7 -0
- package/dist/conversion/nodes.js +58 -11
- package/dist/identity/ids.d.ts +4 -0
- package/dist/identity/ids.js +4 -0
- package/dist/ir/build.d.ts +4 -3
- package/dist/ir/build.js +14 -5
- package/dist/ir/call-dispatch.js +67 -7
- package/dist/ir/call-entry.js +1 -1
- package/dist/ir/callable-class-flow.d.ts +4 -0
- package/dist/ir/callable-class-flow.js +123 -1
- package/dist/ir/certify/parallel-region.js +698 -20
- package/dist/ir/certify.d.ts +3 -0
- package/dist/ir/certify.js +44 -9
- package/dist/ir/class-allocation-domain.js +2 -2
- package/dist/ir/class-construction-status.d.ts +10 -0
- package/dist/ir/class-construction-status.js +36 -0
- package/dist/ir/convert-carriers.d.ts +10 -1
- package/dist/ir/convert-carriers.js +18 -1
- package/dist/ir/dynamic-constructor-conversions.js +4 -2
- package/dist/ir/finite-iterator-close.d.ts +14 -0
- package/dist/ir/finite-iterator-close.js +50 -0
- package/dist/ir/host-template-conversions.js +9 -0
- package/dist/ir/lower-allocation.js +1 -1
- package/dist/ir/lower-flow.js +24 -3
- package/dist/ir/lower-operands.js +88 -7
- package/dist/ir/lower-protocol.js +1 -1
- package/dist/ir/lower.js +22 -6
- package/dist/ir/model.d.ts +41 -1
- package/dist/ir/native-accessor-definition.d.ts +3 -2
- package/dist/ir/native-accessor-definition.js +29 -10
- package/dist/ir/native-array-transport.js +2 -2
- package/dist/ir/native-field-view-domains.d.ts +23 -0
- package/dist/ir/native-field-view-domains.js +115 -9
- package/dist/ir/native-field-view-facts.d.ts +46 -2
- package/dist/ir/native-field-view-facts.js +159 -4
- package/dist/ir/native-iterable.d.ts +17 -0
- package/dist/ir/native-iterable.js +72 -0
- package/dist/ir/native-key-query.js +1 -1
- package/dist/ir/operation-conversions.js +15 -3
- package/dist/ir/program-conversions.js +2 -2
- package/dist/ir/publish-native-field-view-facts.js +9 -4
- package/dist/ir/pure-conversion-reuse.d.ts +58 -0
- package/dist/ir/pure-conversion-reuse.js +263 -0
- package/dist/ir/queries.js +1 -0
- package/dist/ir/reflection-demand.js +70 -18
- package/dist/ir/shake.js +2 -2
- package/dist/ir/unobserved-callable-inputs.d.ts +37 -0
- package/dist/ir/unobserved-callable-inputs.js +111 -0
- package/dist/native-signatures.d.ts +1 -1
- package/dist/native-signatures.js +27 -2
- package/dist/plugins/gea/component-classes.d.ts +2 -1
- package/dist/plugins/gea/component-classes.js +3 -3
- package/dist/plugins/gea/contract.d.ts +26 -3
- package/dist/plugins/gea/contract.js +42 -43
- package/dist/plugins/gea/host.d.ts +9 -0
- package/dist/plugins/gea/host.js +25 -4
- package/dist/plugins/gea/plugin.js +12 -6
- package/dist/plugins/gea/producer.d.ts +2 -2
- package/dist/plugins/gea/producer.js +2 -2
- package/dist/plugins/load.js +18 -1
- package/dist/plugins/model.d.ts +5 -0
- package/dist/plugins/native-iterable-providers.d.ts +18 -0
- package/dist/plugins/native-iterable-providers.js +51 -0
- package/dist/project-preparation.d.ts +8 -0
- package/dist/project-preparation.js +49 -7
- package/dist/projection/bindings.d.ts +13 -0
- package/dist/projection/bindings.js +20 -1
- package/dist/projection/classes.d.ts +4 -2
- package/dist/projection/classes.js +12 -5
- package/dist/representation/collections.js +2 -0
- package/dist/representation/derive.js +1 -0
- package/dist/representation/model.d.ts +2 -0
- package/dist/representation/model.js +1 -0
- package/dist/representation/policies.d.ts +2 -0
- package/dist/representation/primitive-domain.d.ts +1 -1
- package/dist/representation/primitive-domain.js +1 -1
- package/dist/representation/unassigned-binding-cells.d.ts +4 -3
- package/dist/representation/unassigned-binding-cells.js +19 -2
- package/dist/representation/union.js +6 -6
- package/dist/semantics/frontend.d.ts +2 -0
- package/dist/semantics/frontend.js +34 -5
- package/dist/semantics/host-methods.js +4 -1
- package/dist/semantics/jsx-runtime-provider.d.ts +5 -0
- package/dist/semantics/jsx-runtime-provider.js +16 -0
- package/dist/semantics/model/native-iterable.d.ts +14 -0
- package/dist/semantics/model/native-iterable.js +7 -0
- package/dist/semantics/model/operands.d.ts +30 -0
- package/dist/semantics/model/operations.d.ts +15 -0
- package/dist/semantics/model/primitive-domain.d.ts +15 -0
- package/dist/semantics/model/primitive-domain.js +27 -4
- package/dist/semantics/module-resolution.js +13 -2
- package/dist/semantics/normalize/any-cast-member-call.d.ts +1 -1
- package/dist/semantics/normalize/callback-parameter-contracts.d.ts +32 -4
- package/dist/semantics/normalize/callback-parameter-contracts.js +66 -6
- package/dist/semantics/normalize/census.d.ts +3 -0
- package/dist/semantics/normalize/census.js +17 -12
- package/dist/semantics/normalize/deferred-intrinsic-protocols.d.ts +4 -1
- package/dist/semantics/normalize/deferred-intrinsic-protocols.js +29 -9
- package/dist/semantics/normalize/flow/callable-reach.js +94 -3
- package/dist/semantics/normalize/flow/component-solver.js +144 -55
- package/dist/semantics/normalize/flow/member-call-forwarding.d.ts +9 -0
- package/dist/semantics/normalize/flow/member-call-forwarding.js +30 -4
- package/dist/semantics/normalize/flow/proof-hypotheses.d.ts +2 -0
- package/dist/semantics/normalize/flow/proof-hypotheses.js +27 -0
- package/dist/semantics/normalize/flow/source-callable-own-data.js +87 -14
- package/dist/semantics/normalize/flow/source-commonjs-exports.d.ts +2 -0
- package/dist/semantics/normalize/flow/source-commonjs-exports.js +2 -0
- package/dist/semantics/normalize/flow/source-native-iterable-integrity.d.ts +17 -0
- package/dist/semantics/normalize/flow/source-native-iterable-integrity.js +125 -0
- package/dist/semantics/normalize/flow/source-native-origin.d.ts +6 -0
- package/dist/semantics/normalize/flow/source-native-origin.js +38 -0
- package/dist/semantics/normalize/flow/source-proxy-operation.d.ts +37 -0
- package/dist/semantics/normalize/flow/source-proxy-operation.js +201 -0
- package/dist/semantics/normalize/flow/source-raw-constructor-entry.d.ts +20 -0
- package/dist/semantics/normalize/flow/source-raw-constructor-entry.js +73 -0
- package/dist/semantics/normalize/flow/source-value-session.d.ts +50 -1
- package/dist/semantics/normalize/flow/source-value-session.js +596 -57
- package/dist/semantics/normalize/flow/value-flow.d.ts +17 -0
- package/dist/semantics/normalize/flow/value-flow.js +84 -0
- package/dist/semantics/normalize/fresh-dictionary-storage.js +2 -2
- package/dist/semantics/normalize/fresh-table-last-use.d.ts +52 -0
- package/dist/semantics/normalize/fresh-table-last-use.js +129 -0
- package/dist/semantics/normalize/gating.js +5 -1
- package/dist/semantics/normalize/global-host-mutations.js +190 -13
- package/dist/semantics/normalize/identities.js +20 -1
- package/dist/semantics/normalize/local-bindings.js +2 -2
- package/dist/semantics/normalize/parameter-bindings.js +10 -1
- package/dist/semantics/normalize/producer-context.d.ts +5 -0
- package/dist/semantics/normalize/producers/binding-kind.js +2 -0
- package/dist/semantics/normalize/producers/cited-value-type.d.ts +2 -2
- package/dist/semantics/normalize/producers/cited-value-type.js +2 -2
- package/dist/semantics/normalize/producers/class-lifecycle.js +39 -9
- package/dist/semantics/normalize/producers/computations.js +36 -5
- package/dist/semantics/normalize/producers/conditional-guard.d.ts +6 -0
- package/dist/semantics/normalize/producers/conditional-guard.js +5 -0
- package/dist/semantics/normalize/producers/control.js +7 -1
- package/dist/semantics/normalize/producers/destructuring.js +8 -9
- package/dist/semantics/normalize/producers/invocations.js +55 -2
- package/dist/semantics/normalize/producers/properties.d.ts +13 -0
- package/dist/semantics/normalize/producers/properties.js +21 -3
- package/dist/semantics/normalize/producers/references.js +8 -4
- package/dist/semantics/normalize/reachability.d.ts +15 -3
- package/dist/semantics/normalize/reachability.js +128 -20
- package/dist/semantics/normalize/return-bindings.js +3 -3
- package/dist/semantics/normalize/source-native-iterable.d.ts +19 -0
- package/dist/semantics/normalize/source-native-iterable.js +74 -0
- package/dist/semantics/normalize/structural-any-binding-consumer.d.ts +1 -1
- package/dist/semantics/normalize/structural-declarations.js +1 -1
- package/dist/semantics/normalize/structural-indexed-access.js +9 -0
- package/dist/semantics/normalize/structural.js +11 -0
- package/dist/semantics/normalize/unshared-array-result.d.ts +42 -0
- package/dist/semantics/normalize/unshared-array-result.js +269 -0
- package/dist/semantics/package-sources.js +3 -2
- package/dist/semantics/program.d.ts +8 -0
- package/dist/semantics/program.js +55 -0
- package/dist/semantics/source-transform-exports.d.ts +8 -0
- package/dist/semantics/source-transform-exports.js +145 -0
- package/dist/semantics/source-transform-protocol.d.ts +22 -0
- package/dist/semantics/this-constructor-source-transform.js +19 -1
- package/dist/targets/cpp/class-layout.d.ts +2 -0
- package/dist/targets/cpp/class-layout.js +35 -1
- package/dist/targets/cpp/class-properties/emit-class-properties.d.ts +11 -1
- package/dist/targets/cpp/class-properties/emit-class-properties.js +33 -4
- package/dist/targets/cpp/conversions.js +6 -3
- package/dist/targets/cpp/emit-callable.js +73 -7
- package/dist/targets/cpp/emit-context.d.ts +23 -9
- package/dist/targets/cpp/emit-context.js +19 -8
- package/dist/targets/cpp/emit-equality.js +41 -1
- package/dist/targets/cpp/emit-exceptions.js +29 -11
- package/dist/targets/cpp/emit-iterator-object-view.js +2 -2
- package/dist/targets/cpp/emit-iterator.js +33 -9
- package/dist/targets/cpp/emit-live-field-view.js +6 -1
- package/dist/targets/cpp/emit-narrowing.d.ts +11 -3
- package/dist/targets/cpp/emit-narrowing.js +58 -18
- package/dist/targets/cpp/emit-native-field-view.d.ts +3 -1
- package/dist/targets/cpp/emit-native-field-view.js +84 -8
- package/dist/targets/cpp/emit-properties.d.ts +1 -0
- package/dist/targets/cpp/emit-properties.js +26 -7
- package/dist/targets/cpp/emit-protocol-iterator.js +5 -2
- package/dist/targets/cpp/emit-record-view.js +14 -2
- package/dist/targets/cpp/emit-tostring.js +23 -1
- package/dist/targets/cpp/emit-union-properties.js +1 -1
- package/dist/targets/cpp/emit.d.ts +1 -1
- package/dist/targets/cpp/emit.js +132 -21
- package/dist/targets/cpp/host/emit-host-invoke.js +2 -2
- package/dist/targets/cpp/host/emit-host-object.js +28 -2
- package/dist/targets/cpp/host/emit-host-properties.js +9 -1
- package/dist/targets/cpp/host/emit-host-value.d.ts +1 -1
- package/dist/targets/cpp/host/emit-host-value.js +8 -6
- package/dist/targets/cpp/host/host-members.js +2 -1
- package/dist/targets/cpp/prototype/emit-prototype-array.js +69 -5
- package/dist/targets/cpp/prototype/emit-prototype-invoke.js +9 -9
- package/dist/targets/cpp/prototype/emit-prototype-iterator.js +2 -2
- package/dist/targets/cpp/prototype/emit-prototype-promise.js +7 -7
- package/dist/targets/cpp/records.d.ts +1 -0
- package/dist/targets/cpp/records.js +16 -7
- package/dist/targets/cpp/translation-unit.js +30 -16
- package/package.json +8 -7
- package/src/targets/cpp/runtime/gea_dynamic_proxy.h +42 -3
- package/src/targets/cpp/runtime/gea_eval.h +3 -0
- package/src/targets/cpp/runtime/gea_runtime.h +2407 -684
package/dist/ir/model.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NativeIterableReceipt } from '../semantics/model/native-iterable.js';
|
|
1
2
|
import type { DeclarationId, FunctionId, IrValueId, OperationId, PhysicalBodyId, RegionId, SemanticResultId } from '../identity/ids.js';
|
|
2
3
|
import type { CallableAbi, Representation } from '../representation/model.js';
|
|
3
4
|
import type { ConstantLiteral } from '../semantics/model/operands.js';
|
|
@@ -435,6 +436,21 @@ export interface CallOperation extends IrOperationBase {
|
|
|
435
436
|
* render time.
|
|
436
437
|
*/
|
|
437
438
|
readonly target?: CallDispatchTarget;
|
|
439
|
+
/**
|
|
440
|
+
* A class method call `target` left `unresolved` ONLY because the receiver's
|
|
441
|
+
* class reserves an own-property slot that could shadow the method
|
|
442
|
+
* (`classMethodOverrideOf`): the body named here is what the call reaches
|
|
443
|
+
* whenever that slot is empty, which is the overwhelmingly common case
|
|
444
|
+
* (a computed-key write anywhere in the program reserves the slot for every
|
|
445
|
+
* method of the class). The emitter tests the slot's presence flag and calls
|
|
446
|
+
* this body by name, keeping the ordinary method-value call for an instance
|
|
447
|
+
* that does own the key. Set only when the held convention equals the body's,
|
|
448
|
+
* so both branches take the same arguments and produce the same result.
|
|
449
|
+
*/
|
|
450
|
+
readonly ownShadowGuard?: {
|
|
451
|
+
readonly functionId: FunctionId;
|
|
452
|
+
readonly key: string;
|
|
453
|
+
};
|
|
438
454
|
/**
|
|
439
455
|
* The compiler-owned body identity of this call's callee, when the same
|
|
440
456
|
* producer/member resolution used by `target` proved it without requiring
|
|
@@ -1035,6 +1051,8 @@ export interface BindCallableOperation extends IrOperationBase {
|
|
|
1035
1051
|
export interface AllocateConstructorOperation extends IrOperationBase {
|
|
1036
1052
|
readonly kind: 'allocate-constructor';
|
|
1037
1053
|
readonly declaration: DeclarationId;
|
|
1054
|
+
/** Exact semantic proof: this evaluation needs identity/static state but no construct entry. */
|
|
1055
|
+
readonly constructionDeferred?: true;
|
|
1038
1056
|
/** Same status as `AllocateCallableOperation.captures` -- see its comment. */
|
|
1039
1057
|
readonly captures: readonly IrOperand[];
|
|
1040
1058
|
/** The evaluated superclass object, whose prototype belongs to that evaluation rather than its declaration. */
|
|
@@ -1198,8 +1216,25 @@ export interface ConvertOperation extends IrOperationBase {
|
|
|
1198
1216
|
* array-to-array pair has a node of its own and this is carried here, on
|
|
1199
1217
|
* the one instruction whose source was proven unshared, rather than on the
|
|
1200
1218
|
* pair.
|
|
1219
|
+
*
|
|
1220
|
+
* `'unshared-dictionary'` is the same fact for an open string table: a fresh
|
|
1221
|
+
* local table stored as its last use (`SemanticOperand.unsharedFreshTable`)
|
|
1222
|
+
* into a slot of another entry carrier -- that table, or an `optional` of it
|
|
1223
|
+
* -- rebuilt entry by entry in creation order, `conversionUse` naming the
|
|
1224
|
+
* ENTRY conversion.
|
|
1225
|
+
*/
|
|
1226
|
+
readonly rebuild?: 'unshared-array' | 'unshared-dictionary';
|
|
1227
|
+
/**
|
|
1228
|
+
* On an `unshared-array` rebuild only: the source array is CONSUMED here --
|
|
1229
|
+
* a fresh factory result, or a local returned as its last use -- so each
|
|
1230
|
+
* element is moved out of it into its conversion rather than copied. An
|
|
1231
|
+
* element the source alone held then reaches its conversion with no other
|
|
1232
|
+
* holder, which is what lets an inner `never[]` (`Array.from({ length }, ()
|
|
1233
|
+
* => [])`) become its own fresh array rather than the shared sentinel
|
|
1234
|
+
* (`gea::emptyArraySentinel`'s unshared test). Absent for a borrowed source,
|
|
1235
|
+
* an array its holder still reads afterwards.
|
|
1201
1236
|
*/
|
|
1202
|
-
readonly
|
|
1237
|
+
readonly releasesSource?: true;
|
|
1203
1238
|
}
|
|
1204
1239
|
/** A value demanded only on the impossible falsy edge of an exact source-proven object && left.
|
|
1205
1240
|
* @semanticCategory generic-primitive
|
|
@@ -1274,6 +1309,7 @@ export interface MergeLiveArmRebuildOperation extends IrOperationBase {
|
|
|
1274
1309
|
* `array-object` receiver this shape is reached with.
|
|
1275
1310
|
*/
|
|
1276
1311
|
export interface GetIteratorOperation extends IrOperationBase {
|
|
1312
|
+
readonly nativeIterable?: NativeIterableReceipt;
|
|
1277
1313
|
readonly kind: 'get-iterator';
|
|
1278
1314
|
/** GetIterator captures next once on the returned iterator, before the first step. */
|
|
1279
1315
|
readonly nativeNextMethodRead?: import('./native-iterator-field-views.js').NativeIteratorFieldRead;
|
|
@@ -1478,6 +1514,8 @@ export interface IrBlock {
|
|
|
1478
1514
|
/** Every operation in a block, in execution order, terminator last. */
|
|
1479
1515
|
export declare const allOperationsOf: (block: IrBlock) => readonly IrOperation[];
|
|
1480
1516
|
export interface IrBody {
|
|
1517
|
+
/** Binding creation sites constrain cell lifetime even when no initializer writes a value. */
|
|
1518
|
+
readonly bindingLifetimeOrigins?: ReadonlyMap<DeclarationId, IrBlockId>;
|
|
1481
1519
|
/** Host binding/path resolution published before conversion certification. */
|
|
1482
1520
|
readonly hostNamespaceCensus?: import('./host-namespace-reads.js').HostNamespaceCensus;
|
|
1483
1521
|
/** Certified adaptations used by the published dense storage windows. */
|
|
@@ -1723,6 +1761,8 @@ export interface IrIteratorCloseRegion {
|
|
|
1723
1761
|
readonly dismissTargets: readonly IrBlockId[];
|
|
1724
1762
|
/** Finite patterns close only if no step has already observed exhaustion. */
|
|
1725
1763
|
readonly onlyIfOpen: boolean;
|
|
1764
|
+
/** Certified finite pattern: IteratorStepValue abrupt completion marks record done. */
|
|
1765
|
+
readonly completeOnStepAbrupt?: true;
|
|
1726
1766
|
/**
|
|
1727
1767
|
* Where the loop BODY starts, or `null` for a finite pattern.
|
|
1728
1768
|
*
|
|
@@ -25,7 +25,7 @@ export interface NativeAccessorHalfRecipe {
|
|
|
25
25
|
* the native one already (a dynamic carrier) or no dynamic access exists. */
|
|
26
26
|
readonly observe: ConversionNodeId | null;
|
|
27
27
|
}
|
|
28
|
-
/** Exact
|
|
28
|
+
/** Exact descriptor storage and Function provenance, independently replayed
|
|
29
29
|
* before installation or any future accessor invocation.
|
|
30
30
|
* @semanticCategory generic-primitive
|
|
31
31
|
*/
|
|
@@ -33,7 +33,8 @@ export interface NativeAccessorDefinitionRecipe {
|
|
|
33
33
|
readonly receiver: IrValueId;
|
|
34
34
|
readonly descriptor: IrValueId;
|
|
35
35
|
readonly key: IrValueId;
|
|
36
|
-
|
|
36
|
+
/** null authenticates only this SSA key, never a fixed-key reflection. */
|
|
37
|
+
readonly keyText: string | null;
|
|
37
38
|
readonly halves: readonly NativeAccessorHalfRecipe[];
|
|
38
39
|
}
|
|
39
40
|
/** A reflected half is an adapted view of the original Function. The exact
|
|
@@ -98,12 +98,24 @@ export const nativeAccessorDefinitionOf = (operation, semantic, input, definitio
|
|
|
98
98
|
const descriptorSource = operandOf(semantic, 'argument', 2);
|
|
99
99
|
const semanticKey = operandOf(semantic, 'argument', 1);
|
|
100
100
|
const keySource = definitionOf(key.value);
|
|
101
|
-
|
|
102
|
-
keySource
|
|
103
|
-
|
|
104
|
-
semanticKey
|
|
105
|
-
semanticKey.source.
|
|
106
|
-
|
|
101
|
+
const literalKey = keySource?.kind === 'constant' &&
|
|
102
|
+
keySource.literal === 'string' &&
|
|
103
|
+
semanticKey?.source.kind === 'constant' &&
|
|
104
|
+
semanticKey.source.literal === 'string' &&
|
|
105
|
+
semanticKey.source.text === keySource.text;
|
|
106
|
+
// A real declared-any string dictionary already owns arbitrary string slots.
|
|
107
|
+
// This additional installation route authenticates the actual argument SSA;
|
|
108
|
+
// it supplies no fixed-key/field proof to native records or later reflection.
|
|
109
|
+
// Native Functions remain native: only the dictionary's genuinely dynamic
|
|
110
|
+
// read/write boundary receives its separately certified observation frame.
|
|
111
|
+
const dictionaryKey = !literalKey &&
|
|
112
|
+
receiver.representation.kind === 'dictionary' &&
|
|
113
|
+
receiver.representation.key === 'string' &&
|
|
114
|
+
receiver.representation.value.kind === 'dynamic' &&
|
|
115
|
+
receiver.representation.value.reason === 'declared-any-never-narrowed' &&
|
|
116
|
+
key.representation.kind === 'string' &&
|
|
117
|
+
intrinsicCallArgumentMatches(operation, semantic, 1, definitionOf);
|
|
118
|
+
if (descriptorSource?.source.kind !== 'result' || (!literalKey && !dictionaryKey))
|
|
107
119
|
return null;
|
|
108
120
|
const fields = descriptorLayout.fields;
|
|
109
121
|
if (!fields.some((field) => field.key === 'get' || field.key === 'set') ||
|
|
@@ -274,12 +286,12 @@ export const nativeAccessorDefinitionOf = (operation, semantic, input, definitio
|
|
|
274
286
|
producer.lineage !== source.result.id ||
|
|
275
287
|
origins.get(producer.lineage) !== source.callable)
|
|
276
288
|
return null;
|
|
277
|
-
const half = nativeAccessorHalfOf(field.key, held, source.callable, input, receiver.representation.kind === 'dynamic');
|
|
289
|
+
const half = nativeAccessorHalfOf(field.key, held, source.callable, input, receiver.representation.kind === 'dynamic' || dictionaryKey);
|
|
278
290
|
if (half === null)
|
|
279
291
|
return null;
|
|
280
292
|
halves.push(half);
|
|
281
293
|
}
|
|
282
|
-
return { receiver: receiver.value, descriptor: descriptor.value, key: key.value, keyText: keySource.text, halves };
|
|
294
|
+
return { receiver: receiver.value, descriptor: descriptor.value, key: key.value, keyText: literalKey ? keySource.text : null, halves };
|
|
283
295
|
};
|
|
284
296
|
export const nativeAccessorDefinitionMatches = (expected, actual) => expected !== null &&
|
|
285
297
|
expected.receiver === actual.receiver &&
|
|
@@ -363,7 +375,11 @@ export const nativeAccessorObservationNeedsReceipt = (operation, semantic, input
|
|
|
363
375
|
.some((candidate) => {
|
|
364
376
|
if (candidate.kind !== 'call' || !candidate.nativeAccessorDefinition)
|
|
365
377
|
return false;
|
|
366
|
-
|
|
378
|
+
// An SSA-key installation might have installed this literal key too; do
|
|
379
|
+
// not misclassify it as absent. Only a known, different key is excluded.
|
|
380
|
+
if (observedKey !== null &&
|
|
381
|
+
candidate.nativeAccessorDefinition.keyText !== null &&
|
|
382
|
+
candidate.nativeAccessorDefinition.keyText !== observedKey)
|
|
367
383
|
return false;
|
|
368
384
|
// The ambient descriptor's own `get(): any` / `set(v: any)` halves call
|
|
369
385
|
// the installed Function through its dynamic frame with an undefined
|
|
@@ -444,7 +460,10 @@ export const nativeAccessorObservationOf = (operation, semantic, input, definiti
|
|
|
444
460
|
return false;
|
|
445
461
|
const source = semanticOf(input.graph, candidate);
|
|
446
462
|
const held = source?.family === 'invocation' ? operandOf(source, 'argument', 0) : undefined;
|
|
447
|
-
return (
|
|
463
|
+
return (
|
|
464
|
+
// SSA-key installation alone never authenticates a fixed-key view.
|
|
465
|
+
candidate.nativeAccessorDefinition.keyText !== null &&
|
|
466
|
+
candidate.nativeAccessorDefinition.keyText === keySource.text &&
|
|
448
467
|
held?.source.kind === 'result' &&
|
|
449
468
|
census.origins.get(held.source.result) === owner);
|
|
450
469
|
});
|
|
@@ -36,7 +36,7 @@ export const nativeArrayTransportOf = (operation, constantKey) => {
|
|
|
36
36
|
// index enters this path. A runtime STRING key is rendered as an element
|
|
37
37
|
// access through CanonicalNumericIndexString (`arrayIndexFromKeyText` in
|
|
38
38
|
// `emit-carrier-members.ts`/`emit-properties.ts`) -- the `for (const i in
|
|
39
|
-
// array)` key
|
|
39
|
+
// array)` key a regular-expression router indexes back with -- so it reaches no
|
|
40
40
|
// field protocol either.
|
|
41
41
|
const indexed = constantKey !== null
|
|
42
42
|
? canonicalIndexLiteral(constantKey) !== null
|
|
@@ -55,7 +55,7 @@ export const nativeArrayTransportOf = (operation, constantKey) => {
|
|
|
55
55
|
* A numeric index read off a union whose every arm is an Array reads each
|
|
56
56
|
* arm's own element storage, exactly as the single-Array read above does, and
|
|
57
57
|
* injects it into the result's arm for that element: no field protocol, no
|
|
58
|
-
* adaptation.
|
|
58
|
+
* adaptation. An HTTP framework's `compose` reads `middleware[i]` off
|
|
59
59
|
* `[[Function, unknown], unknown][] | [[Function]][]`; as a computed key it
|
|
60
60
|
* published every handler tuple the router holds.
|
|
61
61
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ConversionNode } from '../conversion/algebra.js';
|
|
2
|
+
import { type NativeFieldViewPlan } from '../conversion/native-field-view.js';
|
|
2
3
|
import type { RepresentationDeriver } from '../representation/derive.js';
|
|
3
4
|
import { type CallableAbi, type Representation } from '../representation/model.js';
|
|
4
5
|
import type { FunctionId } from '../identity/ids.js';
|
|
@@ -38,6 +39,28 @@ export interface NativeFieldViewDomains {
|
|
|
38
39
|
*/
|
|
39
40
|
readonly absentRoutesOf: (receiver: Representation, key: string | null) => readonly NativeFieldStorageDomain[] | null;
|
|
40
41
|
}
|
|
42
|
+
/** The identity of one receiver's store of a forwarded key no source declares (`NativeCallableFlow.nativeFieldViewForwardedWrites`). */
|
|
43
|
+
export declare const nativeFieldViewForwardedWriteKey: (receiver: string, key: string) => string;
|
|
44
|
+
/** The installed live plans by target shape, as `nativeFieldViewDomainsOf` indexes them. */
|
|
45
|
+
export declare const nativeFieldViewPlansByTargetOf: (nodes: Iterable<ConversionNode>) => ReadonlyMap<string, readonly NativeFieldViewPlan[]>;
|
|
46
|
+
/**
|
|
47
|
+
* Where a store of a runtime key outside every named descriptor lands, for a
|
|
48
|
+
* value carried as `receiver` (`data[key] = v` over a live view target): the
|
|
49
|
+
* record carriers whose own expando takes it -- the plain allocation itself
|
|
50
|
+
* and, through each installed live plan, its original source -- or null when
|
|
51
|
+
* some allocation behind the carrier has no certified home for an undeclared
|
|
52
|
+
* key. An installed Document view stores the key as its own entry, and an
|
|
53
|
+
* indexed record's plain allocation in its index sidecar; neither is an
|
|
54
|
+
* expando home. A class instance, a native base, a view whose source keeps
|
|
55
|
+
* undeclared keys in an index sidecar, and any union are homes this proof
|
|
56
|
+
* does not cover, so the store stays refused there. `named` is every key a
|
|
57
|
+
* slot, accessor or installed descriptor along the way declares: a store of
|
|
58
|
+
* one of those takes its route, never a home.
|
|
59
|
+
*/
|
|
60
|
+
export declare const nativeFieldViewOpenWriteHomesOf: (receiver: Representation, plans: ReadonlyMap<string, readonly NativeFieldViewPlan[]>, layoutOf: Pick<RepresentationDeriver, "layoutOf"> | null | undefined) => {
|
|
61
|
+
readonly homes: readonly Representation[];
|
|
62
|
+
readonly named: ReadonlySet<string>;
|
|
63
|
+
} | null;
|
|
41
64
|
/**
|
|
42
65
|
* A callback's physical descriptor remains fixed when its Function identity
|
|
43
66
|
* escapes. Enumerate only installed live allocation plans, plus the ordinary
|
|
@@ -6,6 +6,85 @@ import { abiOfCallee } from '../projection/callee.js';
|
|
|
6
6
|
import { nativeDataPropertyOf } from '../representation/native-data-properties.js';
|
|
7
7
|
const binaryViewDataKeys = ['buffer', 'byteLength', 'byteOffset', 'length', 'BYTES_PER_ELEMENT'];
|
|
8
8
|
const isDocumentPlan = (plan) => plan.source.kind === 'dictionary' && plan.fields.every((field) => field.declaredAnyEntry === true);
|
|
9
|
+
/** The identity of one receiver's store of a forwarded key no source declares (`NativeCallableFlow.nativeFieldViewForwardedWrites`). */
|
|
10
|
+
export const nativeFieldViewForwardedWriteKey = (receiver, key) => JSON.stringify([receiver, key]);
|
|
11
|
+
/** The installed live plans by target shape, as `nativeFieldViewDomainsOf` indexes them. */
|
|
12
|
+
export const nativeFieldViewPlansByTargetOf = (nodes) => {
|
|
13
|
+
const plans = new Map();
|
|
14
|
+
for (const plan of nativeFieldViewPlansOf(nodes)) {
|
|
15
|
+
const entries = plans.get(plan.target.shapeId) ?? [];
|
|
16
|
+
if (!entries.includes(plan))
|
|
17
|
+
entries.push(plan);
|
|
18
|
+
plans.set(plan.target.shapeId, entries);
|
|
19
|
+
}
|
|
20
|
+
return plans;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Where a store of a runtime key outside every named descriptor lands, for a
|
|
24
|
+
* value carried as `receiver` (`data[key] = v` over a live view target): the
|
|
25
|
+
* record carriers whose own expando takes it -- the plain allocation itself
|
|
26
|
+
* and, through each installed live plan, its original source -- or null when
|
|
27
|
+
* some allocation behind the carrier has no certified home for an undeclared
|
|
28
|
+
* key. An installed Document view stores the key as its own entry, and an
|
|
29
|
+
* indexed record's plain allocation in its index sidecar; neither is an
|
|
30
|
+
* expando home. A class instance, a native base, a view whose source keeps
|
|
31
|
+
* undeclared keys in an index sidecar, and any union are homes this proof
|
|
32
|
+
* does not cover, so the store stays refused there. `named` is every key a
|
|
33
|
+
* slot, accessor or installed descriptor along the way declares: a store of
|
|
34
|
+
* one of those takes its route, never a home.
|
|
35
|
+
*/
|
|
36
|
+
export const nativeFieldViewOpenWriteHomesOf = (receiver, plans, layoutOf) => {
|
|
37
|
+
if (receiver.kind === 'optional' || receiver.kind === 'borrowed-ref')
|
|
38
|
+
return nativeFieldViewOpenWriteHomesOf(receiver.kind === 'optional' ? receiver.payload : receiver.referent, plans, layoutOf);
|
|
39
|
+
if (receiver.kind !== 'record' && receiver.kind !== 'record-with-index' && receiver.kind !== 'native-record-ref')
|
|
40
|
+
return null;
|
|
41
|
+
if (receiver.ownership !== 'shared-refcount')
|
|
42
|
+
return null;
|
|
43
|
+
const installed = plans.get(receiver.shapeId);
|
|
44
|
+
if (!installed?.length)
|
|
45
|
+
return null;
|
|
46
|
+
const named = new Set();
|
|
47
|
+
const name = (keys) => {
|
|
48
|
+
for (const { key } of keys)
|
|
49
|
+
named.add(key);
|
|
50
|
+
};
|
|
51
|
+
if (receiver.kind === 'record-with-index') {
|
|
52
|
+
if (!installed.every(isDocumentPlan))
|
|
53
|
+
return null;
|
|
54
|
+
name(receiver.fields);
|
|
55
|
+
for (const plan of installed)
|
|
56
|
+
name(plan.fields);
|
|
57
|
+
return { homes: [], named };
|
|
58
|
+
}
|
|
59
|
+
const homes = [];
|
|
60
|
+
const pending = [receiver];
|
|
61
|
+
const seen = new Set();
|
|
62
|
+
while (pending.length > 0) {
|
|
63
|
+
const carrier = pending.pop();
|
|
64
|
+
const identity = representationKey(carrier);
|
|
65
|
+
if (seen.has(identity))
|
|
66
|
+
continue;
|
|
67
|
+
seen.add(identity);
|
|
68
|
+
if ((carrier.kind !== 'record' && carrier.kind !== 'native-record-ref') || carrier.ownership !== 'shared-refcount')
|
|
69
|
+
return null;
|
|
70
|
+
const ordinary = carrier.kind === 'native-record-ref'
|
|
71
|
+
? carrier.native === null
|
|
72
|
+
? layoutOf?.layoutOf(carrier.shapeId)
|
|
73
|
+
: null
|
|
74
|
+
: carrier;
|
|
75
|
+
if (ordinary?.kind !== 'record')
|
|
76
|
+
return null;
|
|
77
|
+
homes.push(carrier);
|
|
78
|
+
name(ordinary.fields);
|
|
79
|
+
name(ordinary.accessors);
|
|
80
|
+
for (const plan of plans.get(carrier.shapeId) ?? []) {
|
|
81
|
+
name(plan.fields);
|
|
82
|
+
if (!isDocumentPlan(plan))
|
|
83
|
+
pending.push(plan.source);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return { homes, named };
|
|
87
|
+
};
|
|
9
88
|
/**
|
|
10
89
|
* A callback's physical descriptor remains fixed when its Function identity
|
|
11
90
|
* escapes. Enumerate only installed live allocation plans, plus the ordinary
|
|
@@ -72,6 +151,26 @@ expandoStoredOf = () => []) => {
|
|
|
72
151
|
return false;
|
|
73
152
|
return (plans.get(receiver.shapeId) ?? []).every((plan) => !plan.fields.some((field) => field.key === key) && keyAbsentIn(plan.source, key, seen));
|
|
74
153
|
};
|
|
154
|
+
/**
|
|
155
|
+
* Whether a plain allocation of `source` stores `key` in its own slot or
|
|
156
|
+
* accessor. A forwarded key a source's layout does not declare is answered
|
|
157
|
+
* from that allocation's expando -- even when the source is itself a view
|
|
158
|
+
* target whose installed plans route the key: the plain allocation has no
|
|
159
|
+
* such route, and its expando may be empty.
|
|
160
|
+
*/
|
|
161
|
+
const ordinaryDeclares = (source, key) => {
|
|
162
|
+
if (source.kind === 'optional' || source.kind === 'borrowed-ref')
|
|
163
|
+
return ordinaryDeclares(source.kind === 'optional' ? source.payload : source.referent, key);
|
|
164
|
+
const ordinary = source.kind === 'native-record-ref'
|
|
165
|
+
? source.native === null
|
|
166
|
+
? layoutOf?.layoutOf(source.shapeId)
|
|
167
|
+
: null
|
|
168
|
+
: source;
|
|
169
|
+
if (ordinary?.kind !== 'record' && ordinary?.kind !== 'record-with-index')
|
|
170
|
+
return true;
|
|
171
|
+
return (ordinary.fields.some((field) => field.key === key) ||
|
|
172
|
+
(ordinary.kind === 'record' && ordinary.accessors.some((accessor) => accessor.key === key)));
|
|
173
|
+
};
|
|
75
174
|
const domainsOf = (receiver, ordinaryArm = false) => {
|
|
76
175
|
const identity = `${representationKey(receiver)}:${ordinaryArm ? 'ordinary' : 'live'}`;
|
|
77
176
|
if (cache.has(identity))
|
|
@@ -89,9 +188,10 @@ expandoStoredOf = () => []) => {
|
|
|
89
188
|
const arms = objectArms.map((arm) => domainsOf(arm.value, true));
|
|
90
189
|
if (!arms.length || arms.some((arm) => arm === null))
|
|
91
190
|
return null;
|
|
92
|
-
// A per-arm union, not an intersection:
|
|
93
|
-
//
|
|
94
|
-
//
|
|
191
|
+
// A per-arm union, not an intersection: a key only one arm stores (a
|
|
192
|
+
// computed read, or a constant key some view-target arm declares --
|
|
193
|
+
// `unionReadNeedsReceipt` sends any other constant-key read to the
|
|
194
|
+
// ordinary per-arm dispatch). Every other arm contributes the certified absence of
|
|
95
195
|
// its ordinary allocation -- a `get` answers its expando entry or
|
|
96
196
|
// `undefined` -- and only where that absence is provable (`keyAbsentIn`);
|
|
97
197
|
// one unprovable arm drops the key, exactly as the intersection did.
|
|
@@ -158,7 +258,7 @@ expandoStoredOf = () => []) => {
|
|
|
158
258
|
// An accessor with no admitted ABI (a getter nothing calls has
|
|
159
259
|
// no body) states no route for ITS key; it does not void the
|
|
160
260
|
// class's other members. node-compat's `ResponseImpl` declares
|
|
161
|
-
// every WHATWG attribute as a getter and
|
|
261
|
+
// every WHATWG attribute as a getter and an HTTP framework reads only
|
|
162
262
|
// `headers` off `Response | ResponseInit`.
|
|
163
263
|
if (!getter ||
|
|
164
264
|
getter.parameters.length !== 0 ||
|
|
@@ -222,10 +322,13 @@ expandoStoredOf = () => []) => {
|
|
|
222
322
|
cache.set(identity, null);
|
|
223
323
|
return null;
|
|
224
324
|
}
|
|
225
|
-
|
|
325
|
+
// Every declared slot, a key a view forwards included: a plain allocation
|
|
326
|
+
// of this carrier holds it in its own C++ member whatever its views do.
|
|
327
|
+
// `createServer()`'s `options = {}` default and a caller's literal reach
|
|
328
|
+
// the same parameter as a `{}` viewed through it, and a receiver no heap
|
|
329
|
+
// proof covers reads with these routes alone.
|
|
226
330
|
for (const field of ordinary.fields)
|
|
227
|
-
|
|
228
|
-
add(field.key, { read: field.value, write: field.value });
|
|
331
|
+
add(field.key, { read: field.value, write: field.value });
|
|
229
332
|
for (const accessor of ordinary.kind === 'record' ? ordinary.accessors : []) {
|
|
230
333
|
const getter = accessor.getter === null ? null : abiOf(accessor.getter);
|
|
231
334
|
const setter = accessor.setter === null ? null : abiOf(accessor.setter);
|
|
@@ -258,8 +361,11 @@ expandoStoredOf = () => []) => {
|
|
|
258
361
|
add(field.key, field);
|
|
259
362
|
// A forwarded key the source never stores answers from its expando
|
|
260
363
|
// table, which without an own descriptor reads `undefined`, and
|
|
261
|
-
// otherwise holds whatever native carrier a copy stored there.
|
|
262
|
-
|
|
364
|
+
// otherwise holds whatever native carrier a copy stored there. The
|
|
365
|
+
// forward reads that expando and nothing else, so its answers do not
|
|
366
|
+
// depend on whether the source's own layout is known: an unresolved
|
|
367
|
+
// source still answers `undefined` for a key it never received.
|
|
368
|
+
else if (inherited === null || !inherited.has(field.key) || !ordinaryDeclares(plan.source, field.key)) {
|
|
263
369
|
add(field.key, { read: { kind: 'undefined' }, write: null, sourceAbsent: true });
|
|
264
370
|
if ('shapeId' in plan.source)
|
|
265
371
|
for (const stored of expandoStoredOf(plan.source.shapeId, field.key))
|
|
@@ -7,6 +7,7 @@ import { type GetOperation, type SetOperation, type IrBody, type IrOperand } fro
|
|
|
7
7
|
import { type NativeFieldViewPlan } from '../conversion/native-field-view.js';
|
|
8
8
|
import type { ProgramConversionRecipe } from './program-conversions.js';
|
|
9
9
|
import type { HostNamespaceCensus } from './host-namespace-reads.js';
|
|
10
|
+
import type { RepresentationDeriver } from '../representation/derive.js';
|
|
10
11
|
export interface NativeFieldViewRead {
|
|
11
12
|
readonly receiver: IrValueId;
|
|
12
13
|
readonly carrier: string;
|
|
@@ -39,8 +40,34 @@ export interface NativeFieldViewWrite {
|
|
|
39
40
|
readonly target: Representation | null;
|
|
40
41
|
readonly conversion: ConversionNodeId | null;
|
|
41
42
|
}[];
|
|
43
|
+
/**
|
|
44
|
+
* A runtime key a descriptor may not name: `keyDomain` is every key a live
|
|
45
|
+
* descriptor names (of the proven set, when there is one), each keeping its
|
|
46
|
+
* exact slot route, and any other key is
|
|
47
|
+
* stored on the allocation's own extension -- the original source's
|
|
48
|
+
* expando behind a view, an installed Document's entry, or the plain
|
|
49
|
+
* allocation's own expando or index sidecar (`nativeFieldViewOpenWriteHomesOf`).
|
|
50
|
+
*/
|
|
51
|
+
readonly openKeys?: true;
|
|
52
|
+
/**
|
|
53
|
+
* The carrier an unnamed key keeps in an expando: the value's own, which the
|
|
54
|
+
* write threads to the runtime as its typed policy, with the certified Value
|
|
55
|
+
* materializer only a dynamic observer runs. Both are also `targets`, so the
|
|
56
|
+
* same adapter answers an expando, a Document entry, and every named slot.
|
|
57
|
+
*/
|
|
58
|
+
readonly open?: {
|
|
59
|
+
readonly carrier: Representation;
|
|
60
|
+
readonly materializer: ConversionNodeId;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Named keys a live view forwards to an original source whose own layout
|
|
64
|
+
* does not declare them (a `sourceAbsent` descriptor): JavaScript creates
|
|
65
|
+
* the property on that source, so the write carries `open` as well and
|
|
66
|
+
* the source's expando keeps it, exactly as for an unnamed key.
|
|
67
|
+
*/
|
|
68
|
+
readonly forwardedKeys?: readonly string[];
|
|
42
69
|
}
|
|
43
|
-
type FieldFlow = Pick<NativeCallableFlow, 'nativeFieldStorageValues' | 'nativeAccessorStorageValues' | 'nativeFieldMethodValues'> & Partial<Pick<NativeCallableFlow, 'nativeFieldViewStorageValues' | 'nativeFieldOperationStorageValues' | 'nativeFieldViewOrigins' | 'nativeFieldViewAbsentRoutesOf'>>;
|
|
70
|
+
type FieldFlow = Pick<NativeCallableFlow, 'nativeFieldStorageValues' | 'nativeAccessorStorageValues' | 'nativeFieldMethodValues'> & Partial<Pick<NativeCallableFlow, 'nativeFieldViewStorageValues' | 'nativeFieldOperationStorageValues' | 'nativeFieldViewOrigins' | 'nativeFieldViewAbsentRoutesOf' | 'nativeFieldViewOpenWriteValues' | 'nativeFieldViewForwardedWrites'>>;
|
|
44
71
|
/** Reachability follows exact published receipts, including recipes created by an earlier publication pass. */
|
|
45
72
|
export declare const nativeFieldViewCitationsOf: (operation: import("./model.js").IrOperation) => readonly ConversionNodeId[];
|
|
46
73
|
export declare const nativeFieldViewBodyCitationsOf: (body: IrBody) => readonly ConversionNodeId[];
|
|
@@ -75,7 +102,9 @@ export declare const nativeFieldViewOpenDocumentRead: (operation: GetOperation |
|
|
|
75
102
|
* the path itself as a value. The census is the one authority on which
|
|
76
103
|
* values are paths; publication and certification both ask it here.
|
|
77
104
|
*/
|
|
78
|
-
export declare const nativeFieldViewOperationNeedsReceipt: (operation: GetOperation | SetOperation, targets: ReadonlySet<string>, hostNamespaces: HostNamespaceCensus | undefined
|
|
105
|
+
export declare const nativeFieldViewOperationNeedsReceipt: (operation: GetOperation | SetOperation, targets: ReadonlySet<string>, hostNamespaces: HostNamespaceCensus | undefined,
|
|
106
|
+
/** The read's constant key, when it has one. */
|
|
107
|
+
key?: string | null, layoutOf?: Pick<RepresentationDeriver, "layoutOf"> | null) => boolean;
|
|
79
108
|
export declare const nativeFieldViewCarrierNeedsReceipt: (value: Representation, targets: ReadonlySet<string>) => boolean;
|
|
80
109
|
export declare const nativeFieldViewReadFor: (receiver: IrOperand, key: string, target: Representation, flow: FieldFlow, conversions: ConversionCensus, at?: GetOperation) => NativeFieldViewRead | null;
|
|
81
110
|
export declare const nativeFieldViewReadOf: (operation: GetOperation, key: string, flow: FieldFlow, conversions: ConversionCensus) => NativeFieldViewRead | null;
|
|
@@ -92,6 +121,21 @@ export declare const nativeFieldViewReadSelectionOf: (operation: GetOperation, k
|
|
|
92
121
|
export declare const nativeFieldViewOpenReadOf: (operation: GetOperation, flow: FieldFlow, conversions: ConversionCensus) => NativeFieldViewRead | null;
|
|
93
122
|
export declare const nativeFieldViewWriteOf: (operation: SetOperation, key: string, flow: FieldFlow, conversions: ConversionCensus) => NativeFieldViewWrite | null;
|
|
94
123
|
export declare const nativeFieldViewWriteSelectionOf: (operation: SetOperation, keys: readonly string[], flow: FieldFlow, conversions: ConversionCensus) => NativeFieldViewWrite | null;
|
|
124
|
+
/**
|
|
125
|
+
* `for (const key in parameters) data[key] = parameters[key]` over a live view
|
|
126
|
+
* target (three's `BufferGeometry.toJSON`): the write counterpart of
|
|
127
|
+
* `nativeFieldViewOpenReadOf`. Every named key keeps its exact slot route; a
|
|
128
|
+
* key outside them is created or overwritten where JavaScript would put it
|
|
129
|
+
* -- the original source's own expando behind a record view, an installed
|
|
130
|
+
* Document's entry, or the plain allocation's expando or index sidecar --
|
|
131
|
+
* and only where every allocation the carrier can hold has such a home
|
|
132
|
+
* (`nativeFieldViewOpenWriteValues`). The value keeps its own carrier there,
|
|
133
|
+
* so a carrier with no storage identity or no certified Value materializer
|
|
134
|
+
* (what a dynamic observer of the key would need) is refused.
|
|
135
|
+
*/
|
|
136
|
+
export declare const nativeFieldViewOpenWriteOf: (operation: SetOperation, flow: FieldFlow, conversions: ConversionCensus,
|
|
137
|
+
/** A proven finite key set (`provenKeyTexts`): only its named members keep a slot route. */
|
|
138
|
+
proven?: readonly string[]) => NativeFieldViewWrite | null;
|
|
95
139
|
/** Independent certification recalculates the complete slot set and each canonical leaf. */
|
|
96
140
|
export declare const nativeFieldViewReceiptMatches: (expected: NativeFieldViewRead | NativeFieldViewWrite | null, actual: NativeFieldViewRead | NativeFieldViewWrite | undefined) => boolean;
|
|
97
141
|
export {};
|