@geastack/compiler 1.0.64 → 1.0.65
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.
|
@@ -113,18 +113,18 @@ const structuralUnionLoadText = (ctx, held, read, text) => {
|
|
|
113
113
|
* knows is wrong.
|
|
114
114
|
*/
|
|
115
115
|
export const emitBindingRead = (ctx, lines, operation) => {
|
|
116
|
-
// A
|
|
117
|
-
//
|
|
116
|
+
// A stable field is borrowed storage. Defer the read so the transfer
|
|
117
|
+
// emitter knows there is no local cell to move from.
|
|
118
118
|
const fieldCell = ctx.stableFieldCellTexts.get(operation.declaration);
|
|
119
119
|
if (fieldCell !== undefined) {
|
|
120
|
-
|
|
120
|
+
ctx.deferredTexts.set(operation.result.id, `std::as_const(${fieldCell})`);
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
123
|
// A cell that points at its window cell (`EmitContext.borrowedWindowCells`).
|
|
124
|
-
//
|
|
124
|
+
// Its storage is borrowed for the same reason.
|
|
125
125
|
const windowCell = ctx.borrowedWindowCellNames.get(operation.declaration);
|
|
126
126
|
if (windowCell !== undefined) {
|
|
127
|
-
|
|
127
|
+
ctx.deferredTexts.set(operation.result.id, `std::as_const(*${windowCell})`);
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
130
|
// A char-code buffer is read by naming the string, never by copying it: a push appends to the cell itself.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geastack/compiler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.65",
|
|
4
4
|
"description": "The geastack TypeScript-to-C++ compiler: one semantic spine, no source-shaped authority, no boxing of statically typed values.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|