pxt-core 11.3.30 → 11.3.32
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/built/pxt.js +8 -7
- package/built/pxtcompiler.js +2 -1
- package/built/pxtlib.d.ts +1 -1
- package/built/pxtlib.js +6 -6
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/web/blockly.css +1 -1
- package/built/web/main.js +2 -2
- package/built/web/pxtcompiler.js +1 -1
- package/built/web/pxtembed.js +1 -1
- package/built/web/pxtworker.js +1 -1
- package/built/web/react-common-authcode.css +1 -1
- package/built/web/react-common-multiplayer.css +1 -1
- package/built/web/react-common-skillmap.css +1 -1
- package/built/web/rtlblockly.css +1 -1
- package/built/web/rtlreact-common-authcode.css +1 -1
- package/built/web/rtlreact-common-multiplayer.css +1 -1
- package/built/web/rtlreact-common-skillmap.css +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/semantic.css +1 -1
- package/package.json +1 -1
- package/react-common/styles/controls/EditorToggle.less +1 -1
- package/react-common/styles/extensions/ExtensionCard.less +1 -1
- package/react-common/styles/theming/base-theme.less +1 -0
- package/theme/blockly-core.less +8 -3
- package/theme/color-themes/high-contrast.json +1 -0
- package/theme/common.less +15 -0
- package/theme/semantic-ui-overrides.less +21 -3
package/built/pxt.js
CHANGED
|
@@ -122401,7 +122401,7 @@ var ts;
|
|
|
122401
122401
|
}
|
|
122402
122402
|
return r;
|
|
122403
122403
|
}
|
|
122404
|
-
getSource(clean, numStmts = 1,
|
|
122404
|
+
getSource(clean, numStmts = 1, flashUsableEnd = 0) {
|
|
122405
122405
|
let lenPrev = 0;
|
|
122406
122406
|
let size = (lbl) => {
|
|
122407
122407
|
let curr = this.labels[lbl] || lenPrev;
|
|
@@ -122415,14 +122415,14 @@ var ts;
|
|
|
122415
122415
|
let lenVtables = size("_vtables_end");
|
|
122416
122416
|
let lenLiterals = size("_literals_end");
|
|
122417
122417
|
let lenAllCode = lenPrev;
|
|
122418
|
-
let
|
|
122419
|
-
if (
|
|
122420
|
-
const e = new Error(lf("program too big by {0} bytes!",
|
|
122418
|
+
let totalEnd = (lenTotal + this.baseOffset) & 0xffffff;
|
|
122419
|
+
if (flashUsableEnd && totalEnd > flashUsableEnd) {
|
|
122420
|
+
const e = new Error(lf("program too big by {0} bytes!", totalEnd - flashUsableEnd));
|
|
122421
122421
|
e.ksErrorCode = 9283;
|
|
122422
122422
|
throw e;
|
|
122423
122423
|
}
|
|
122424
|
-
|
|
122425
|
-
let totalInfo = lf("; total bytes: {0} ({1}% of {2}k flash with {3} free)",
|
|
122424
|
+
flashUsableEnd = flashUsableEnd || 128 * 1024;
|
|
122425
|
+
let totalInfo = lf("; total bytes: {0} ({1}% of {2}k flash with {3} free)", totalEnd, (100 * totalEnd / flashUsableEnd).toFixed(1), (flashUsableEnd / 1024).toFixed(1), flashUsableEnd - totalEnd);
|
|
122426
122426
|
let res =
|
|
122427
122427
|
// ARM-specific
|
|
122428
122428
|
lf("; generated code sizes (bytes): {0} (incl. {1} user, {2} helpers, {3} vtables, {4} lits); src size {5}\n", lenAllCode, lenCode, lenHelpers, lenVtables, lenLiterals, lenTotal - lenAllCode) +
|
|
@@ -139691,9 +139691,10 @@ ${hexfile.hexPrelude()}
|
|
|
139691
139691
|
function assemble(target, bin, src) {
|
|
139692
139692
|
let b = mkProcessorFile(target);
|
|
139693
139693
|
b.emit(src);
|
|
139694
|
+
let flashUsableEnd = target.flashUsableEnd ? target.flashUsableEnd : target.flashEnd;
|
|
139694
139695
|
src = `; Interface tables: ${bin.itFullEntries}/${bin.itEntries} (${Math.round(100 * bin.itFullEntries / bin.itEntries)}%)\n` +
|
|
139695
139696
|
`; Virtual methods: ${bin.numVirtMethods} / ${bin.numMethods}\n` +
|
|
139696
|
-
b.getSource(!peepDbg, bin.numStmts,
|
|
139697
|
+
b.getSource(!peepDbg, bin.numStmts, flashUsableEnd);
|
|
139697
139698
|
throwAssemblerErrors(b);
|
|
139698
139699
|
return {
|
|
139699
139700
|
src: src,
|
package/built/pxtcompiler.js
CHANGED
|
@@ -16083,9 +16083,10 @@ ${hexfile.hexPrelude()}
|
|
|
16083
16083
|
function assemble(target, bin, src) {
|
|
16084
16084
|
let b = mkProcessorFile(target);
|
|
16085
16085
|
b.emit(src);
|
|
16086
|
+
let flashUsableEnd = target.flashUsableEnd ? target.flashUsableEnd : target.flashEnd;
|
|
16086
16087
|
src = `; Interface tables: ${bin.itFullEntries}/${bin.itEntries} (${Math.round(100 * bin.itFullEntries / bin.itEntries)}%)\n` +
|
|
16087
16088
|
`; Virtual methods: ${bin.numVirtMethods} / ${bin.numMethods}\n` +
|
|
16088
|
-
b.getSource(!peepDbg, bin.numStmts,
|
|
16089
|
+
b.getSource(!peepDbg, bin.numStmts, flashUsableEnd);
|
|
16089
16090
|
throwAssemblerErrors(b);
|
|
16090
16091
|
return {
|
|
16091
16092
|
src: src,
|
package/built/pxtlib.d.ts
CHANGED
|
@@ -3788,7 +3788,7 @@ declare namespace ts.pxtc.assembler {
|
|
|
3788
3788
|
private iterLines;
|
|
3789
3789
|
getSourceMap(): pxt.Map<number[]>;
|
|
3790
3790
|
getCodeSizeStats(): string;
|
|
3791
|
-
getSource(clean: boolean, numStmts?: number,
|
|
3791
|
+
getSource(clean: boolean, numStmts?: number, flashUsableEnd?: number): string;
|
|
3792
3792
|
private peepHole;
|
|
3793
3793
|
private clearLabels;
|
|
3794
3794
|
private peepPass;
|
package/built/pxtlib.js
CHANGED
|
@@ -24715,7 +24715,7 @@ var ts;
|
|
|
24715
24715
|
}
|
|
24716
24716
|
return r;
|
|
24717
24717
|
}
|
|
24718
|
-
getSource(clean, numStmts = 1,
|
|
24718
|
+
getSource(clean, numStmts = 1, flashUsableEnd = 0) {
|
|
24719
24719
|
let lenPrev = 0;
|
|
24720
24720
|
let size = (lbl) => {
|
|
24721
24721
|
let curr = this.labels[lbl] || lenPrev;
|
|
@@ -24729,14 +24729,14 @@ var ts;
|
|
|
24729
24729
|
let lenVtables = size("_vtables_end");
|
|
24730
24730
|
let lenLiterals = size("_literals_end");
|
|
24731
24731
|
let lenAllCode = lenPrev;
|
|
24732
|
-
let
|
|
24733
|
-
if (
|
|
24734
|
-
const e = new Error(lf("program too big by {0} bytes!",
|
|
24732
|
+
let totalEnd = (lenTotal + this.baseOffset) & 0xffffff;
|
|
24733
|
+
if (flashUsableEnd && totalEnd > flashUsableEnd) {
|
|
24734
|
+
const e = new Error(lf("program too big by {0} bytes!", totalEnd - flashUsableEnd));
|
|
24735
24735
|
e.ksErrorCode = 9283;
|
|
24736
24736
|
throw e;
|
|
24737
24737
|
}
|
|
24738
|
-
|
|
24739
|
-
let totalInfo = lf("; total bytes: {0} ({1}% of {2}k flash with {3} free)",
|
|
24738
|
+
flashUsableEnd = flashUsableEnd || 128 * 1024;
|
|
24739
|
+
let totalInfo = lf("; total bytes: {0} ({1}% of {2}k flash with {3} free)", totalEnd, (100 * totalEnd / flashUsableEnd).toFixed(1), (flashUsableEnd / 1024).toFixed(1), flashUsableEnd - totalEnd);
|
|
24740
24740
|
let res =
|
|
24741
24741
|
// ARM-specific
|
|
24742
24742
|
lf("; generated code sizes (bytes): {0} (incl. {1} user, {2} helpers, {3} vtables, {4} lits); src size {5}\n", lenAllCode, lenCode, lenHelpers, lenVtables, lenLiterals, lenTotal - lenAllCode) +
|