diff --git a/package-lock.json b/package-lock.json index 670039cf54da8..44aae38c5da61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "@babel/core": "^7.28.4", "@babel/preset-env": "^7.28.3", "acorn": "^8.15.0", - "google-closure-compiler": "20240317.0.0", + "google-closure-compiler": "20251216.0.0", "html-minifier-terser": "7.2.0" }, "devDependencies": { @@ -2857,6 +2857,20 @@ "dev": true, "license": "Python-2.0" }, + "node_modules/b4a": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.7.3.tgz", + "integrity": "sha512-5Q2mfq2WfGuFp3uS//0s6baOJLMoVduPYVeNmDYxu5OUA1/cBfvr2RIS7vi62LdNj/urk1hfmj867I3qt6uZ7Q==", + "license": "Apache-2.0", + "peerDependencies": { + "react-native-b4a": "*" + }, + "peerDependenciesMeta": { + "react-native-b4a": { + "optional": true + } + } + }, "node_modules/babel-plugin-polyfill-corejs2": { "version": "0.4.14", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.14.tgz", @@ -2899,6 +2913,20 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "license": "MIT" }, + "node_modules/bare-events": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.8.2.tgz", + "integrity": "sha512-riJjyv1/mHLIPX4RwiK+oW9/4c3TEUeORHKefKAKnZ5kyslbN+HXowtbaVEqt4IMUB7OXlfixcs6gsFeo/jhiQ==", + "license": "Apache-2.0", + "peerDependencies": { + "bare-abort-controller": "*" + }, + "peerDependenciesMeta": { + "bare-abort-controller": { + "optional": true + } + } + }, "node_modules/baseline-browser-mapping": { "version": "2.8.32", "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.32.tgz", @@ -3117,15 +3145,6 @@ "node": ">=0.8" } }, - "node_modules/clone-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", - "integrity": "sha512-KLLTJWrvwIP+OPfMn0x2PheDEP20RPUcGXj/ERegTgdmPEZylALQldygiqrPPu8P45uNuPs7ckmReLY6v/iA5g==", - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, "node_modules/clone-deep": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", @@ -3141,23 +3160,6 @@ "node": ">=6" } }, - "node_modules/clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha512-au6ydSpg6nsrigcZ4m8Bc9hxjeW+GJ8xh5G3BJCMt4WXe1H10UNaVOamqQTmrx1kjVuxAHIQSNU6hY4Nsn9/ag==", - "license": "MIT" - }, - "node_modules/cloneable-readable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.3.tgz", - "integrity": "sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.1", - "process-nextick-args": "^2.0.0", - "readable-stream": "^2.3.5" - } - }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -3216,12 +3218,6 @@ "url": "https://opencollective.com/core-js" } }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "license": "MIT" - }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", @@ -3594,6 +3590,15 @@ "node": ">=0.8.x" } }, + "node_modules/events-universal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/events-universal/-/events-universal-1.0.1.tgz", + "integrity": "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==", + "license": "Apache-2.0", + "dependencies": { + "bare-events": "^2.7.0" + } + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -3601,6 +3606,12 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "license": "MIT" + }, "node_modules/fast-glob": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", @@ -3842,39 +3853,40 @@ } }, "node_modules/google-closure-compiler": { - "version": "20240317.0.0", - "resolved": "https://registry.npmjs.org/google-closure-compiler/-/google-closure-compiler-20240317.0.0.tgz", - "integrity": "sha512-PlC5aU2vwsypKbxyFNXOW4psDZfhDoOr2dCwuo8VcgQji+HVIgRi2lviO66x2SfTi0ilm3kI6rq/RSdOMFczcQ==", + "version": "20251216.0.0", + "resolved": "https://registry.npmjs.org/google-closure-compiler/-/google-closure-compiler-20251216.0.0.tgz", + "integrity": "sha512-9jW9QAWHmWW+ZI/5XRgVpuD1duKBS+gOx9jjAzvoXLUzJFF048Z04Nmd4r6ygJsxYgcYO7gQjAnqDYiGHkhD/w==", "license": "Apache-2.0", "dependencies": { - "chalk": "4.x", - "google-closure-compiler-java": "^20240317.0.0", - "minimist": "1.x", - "vinyl": "2.x", + "chalk": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 <5.6.1 || ^5.6.2 >5.6.1", + "google-closure-compiler-java": "^20251216.0.0", + "minimist": "^1.0.0", + "vinyl": "^3.0.1", "vinyl-sourcemaps-apply": "^0.2.0" }, "bin": { "google-closure-compiler": "cli.js" }, "engines": { - "node": ">=10" + "node": ">=18" }, "optionalDependencies": { - "google-closure-compiler-linux": "^20240317.0.0", - "google-closure-compiler-osx": "^20240317.0.0", - "google-closure-compiler-windows": "^20240317.0.0" + "google-closure-compiler-linux": "^20251216.0.0", + "google-closure-compiler-linux-arm64": "^20251216.0.0", + "google-closure-compiler-macos": "^20251216.0.0", + "google-closure-compiler-windows": "^20251216.0.0" } }, "node_modules/google-closure-compiler-java": { - "version": "20240317.0.0", - "resolved": "https://registry.npmjs.org/google-closure-compiler-java/-/google-closure-compiler-java-20240317.0.0.tgz", - "integrity": "sha512-oWURPChjcCrVfiQOuVtpSoUJVvtOYo41JGEQ2qtArsTGmk/DpWh40vS6hitwKRM/0YzJX/jYUuyt9ibuXXJKmg==", + "version": "20251216.0.0", + "resolved": "https://registry.npmjs.org/google-closure-compiler-java/-/google-closure-compiler-java-20251216.0.0.tgz", + "integrity": "sha512-7OGTl1ETIvfUxtUEIFVcy6sNUZDWp/aCD/x4AgKD6LubE3igDWHTXr9OIK0mcFxvZcWk9d+M8aEQBH873OeusA==", "license": "Apache-2.0" }, "node_modules/google-closure-compiler-linux": { - "version": "20240317.0.0", - "resolved": "https://registry.npmjs.org/google-closure-compiler-linux/-/google-closure-compiler-linux-20240317.0.0.tgz", - "integrity": "sha512-dYLtcbbJdbbBS0lTy9SzySdVv/aGkpyTekQiW4ADhT/i1p1b4r0wQTKj6kpVVmFvbZ6t9tW/jbXc9EXXNUahZw==", + "version": "20251216.0.0", + "resolved": "https://registry.npmjs.org/google-closure-compiler-linux/-/google-closure-compiler-linux-20251216.0.0.tgz", + "integrity": "sha512-rH3bwNKh/Xc4+LiLPpmhoo45TjQuHfb+UvasSuZBMVSHh8oVoKAHpV32/sKLpkDC1f15c2/DApg4bxhCO+YQng==", "cpu": [ "x32", "x64" @@ -3885,13 +3897,24 @@ "linux" ] }, - "node_modules/google-closure-compiler-osx": { - "version": "20240317.0.0", - "resolved": "https://registry.npmjs.org/google-closure-compiler-osx/-/google-closure-compiler-osx-20240317.0.0.tgz", - "integrity": "sha512-0mABwjD4HP11rikFd8JRIb9OgPqn9h3o3wS0otufMfmbwS7zRpnnoJkunifhORl3VoR1gFm6vcTC9YziTEFdOw==", + "node_modules/google-closure-compiler-linux-arm64": { + "version": "20251216.0.0", + "resolved": "https://registry.npmjs.org/google-closure-compiler-linux-arm64/-/google-closure-compiler-linux-arm64-20251216.0.0.tgz", + "integrity": "sha512-AJa4ZsmP7X99AdIQo4ddSol434qFxOrMSwpHpEc/e+b+pjCJfVUFWAJvO5mqGyy7asudMWEmQOxvrEYme5BmsA==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/google-closure-compiler-macos": { + "version": "20251216.0.0", + "resolved": "https://registry.npmjs.org/google-closure-compiler-macos/-/google-closure-compiler-macos-20251216.0.0.tgz", + "integrity": "sha512-MGq+n9MbvHXIknqqRuUShfbUOWRFWsPNA5XlHBfnoC4i7jmJpEtaBpJ5Sm6HZnTODgT6ova2DaCumjtg7Alw+w==", "cpu": [ - "x32", - "x64", "arm64" ], "license": "Apache-2.0", @@ -3901,9 +3924,9 @@ ] }, "node_modules/google-closure-compiler-windows": { - "version": "20240317.0.0", - "resolved": "https://registry.npmjs.org/google-closure-compiler-windows/-/google-closure-compiler-windows-20240317.0.0.tgz", - "integrity": "sha512-fTueVFzNOWURFlXZmrFkAB7yA+jzpA2TeDOYeBEFwVlVGHwi8PV3Q9vCIWlbkE8wLpukKEg5wfRHYrLwVPINCA==", + "version": "20251216.0.0", + "resolved": "https://registry.npmjs.org/google-closure-compiler-windows/-/google-closure-compiler-windows-20251216.0.0.tgz", + "integrity": "sha512-6GaL8K45kfQBA1gTuVxAapjHQyNOFRGElmJJhXFVo0t95Q9pd5LGXjZUgkp3D70+DQ9JMrk3Gv1hNy7oSTbWrQ==", "cpu": [ "x32", "x64" @@ -4130,12 +4153,6 @@ "node": ">=0.10.0" } }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "license": "MIT" - }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -4779,12 +4796,6 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "license": "MIT" - }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -4826,21 +4837,6 @@ "safe-buffer": "^5.1.0" } }, - "node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -4948,12 +4944,12 @@ "license": "ISC" }, "node_modules/replace-ext": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.1.tgz", - "integrity": "sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-2.0.0.tgz", + "integrity": "sha512-UszKE5KVK6JvyD92nzMn9cDapSk6w/CaFZ96CnmDMUqH9oowfxF/ZjRITD25H4DnOQClLA4/j7jLGXXLVKxAug==", "license": "MIT", "engines": { - "node": ">= 0.10" + "node": ">= 10" } }, "node_modules/require-from-string": { @@ -5100,6 +5096,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true, "license": "MIT" }, "node_modules/schema-utils": { @@ -5262,13 +5259,15 @@ "node": ">=0.10.0" } }, - "node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "node_modules/streamx": { + "version": "2.23.0", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.23.0.tgz", + "integrity": "sha512-kn+e44esVfn2Fa/O0CPFcex27fjIL6MkVae0Mm6q+E6f0hWv578YCERbv+4m02cjxvDsPKLnmxral/rR6lBMAg==", "license": "MIT", "dependencies": { - "safe-buffer": "~5.1.0" + "events-universal": "^1.0.0", + "fast-fifo": "^1.3.2", + "text-decoder": "^1.1.0" } }, "node_modules/strip-json-comments": { @@ -5326,6 +5325,15 @@ "url": "https://opencollective.com/webpack" } }, + "node_modules/teex": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/teex/-/teex-1.0.1.tgz", + "integrity": "sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==", + "license": "MIT", + "dependencies": { + "streamx": "^2.12.5" + } + }, "node_modules/terser": { "version": "5.39.0", "resolved": "https://registry.npmjs.org/terser/-/terser-5.39.0.tgz", @@ -5385,6 +5393,15 @@ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "license": "MIT" }, + "node_modules/text-decoder": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz", + "integrity": "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==", + "license": "Apache-2.0", + "dependencies": { + "b4a": "^1.6.4" + } + }, "node_modules/tinyglobby": { "version": "0.2.15", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", @@ -5567,27 +5584,19 @@ "punycode": "^2.1.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "license": "MIT" - }, "node_modules/vinyl": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz", - "integrity": "sha512-LII3bXRFBZLlezoG5FfZVcXflZgWP/4dCwKtxd5ky9+LOtM4CS3bIRQsmR1KMnMW07jpE8fqR2lcxPZ+8sJIcw==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-3.0.1.tgz", + "integrity": "sha512-0QwqXteBNXgnLCdWdvPQBX6FXRHtIH3VhJPTd5Lwn28tJXc34YqSCWUmkOvtJHBmB3gGoPtrOKk3Ts8/kEZ9aA==", "license": "MIT", "dependencies": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" + "clone": "^2.1.2", + "remove-trailing-separator": "^1.1.0", + "replace-ext": "^2.0.0", + "teex": "^1.0.1" }, "engines": { - "node": ">= 0.10" + "node": ">=10.13.0" } }, "node_modules/vinyl-sourcemaps-apply": { diff --git a/package.json b/package.json index 06a97a6d93b37..e697513e5e651 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@babel/core": "^7.28.4", "@babel/preset-env": "^7.28.3", "acorn": "^8.15.0", - "google-closure-compiler": "20240317.0.0", + "google-closure-compiler": "20251216.0.0", "html-minifier-terser": "7.2.0" }, "scripts": { diff --git a/src/closure-externs/closure-externs.js b/src/closure-externs/closure-externs.js index 774f46f847460..2ba0e8c65286d 100644 --- a/src/closure-externs/closure-externs.js +++ b/src/closure-externs/closure-externs.js @@ -65,7 +65,7 @@ Atomics.compareExchange = function() {}; Atomics.exchange = function() {}; Atomics.wait = function() {}; /** - * @param {number=} maxWaitMilliseconds + * @return {*} * @suppress {duplicate, checkTypes} */ Atomics.waitAsync = function(i32a, index, value, maxWaitMilliseconds) {}; @@ -78,12 +78,6 @@ Atomics.store = function() {}; * @suppress {duplicate, checkTypes} */ var WebAssembly = {}; -/** - * @constructor - * @param {Object} globalDescriptor - * @param {*=} value - */ -WebAssembly.Global = function(globalDescriptor, value) {}; /** * @param {!WebAssembly.Tag} tag * @param {number} index @@ -258,12 +252,6 @@ var moduleRtn; Navigator.prototype.webkitGetUserMedia = function( constraints, successCallback, errorCallback) {}; -/** - * A symbol from the explicit resource management proposal that isn't yet part of Closure. - * @type {symbol} - */ -Symbol.dispose; - // Common between node-externs and v8-externs var os = {}; diff --git a/src/closure-externs/webgpu-externs-fixes.js b/src/closure-externs/webgpu-externs-fixes.js new file mode 100644 index 0000000000000..809f53825b019 --- /dev/null +++ b/src/closure-externs/webgpu-externs-fixes.js @@ -0,0 +1,27 @@ +/** + * WebGPU extern fixes for Closure. + */ + +/** + * @suppress {duplicate} + * @interface + * @extends {Iterable} + */ +function GPUSupportedFeatures() {} + +/** + * @return {!Iterator} + */ +GPUSupportedFeatures.prototype[Symbol.iterator] = function() {}; + +/** + * @suppress {duplicate} + * @interface + * @extends {Iterable} + */ +function WGSLLanguageFeatures() {} + +/** + * @return {!Iterator} + */ +WGSLLanguageFeatures.prototype[Symbol.iterator] = function() {}; diff --git a/src/lib/libatomic.js b/src/lib/libatomic.js index 093a593df1be1..5ca99047761db 100644 --- a/src/lib/libatomic.js +++ b/src/lib/libatomic.js @@ -49,6 +49,7 @@ addToLibrary({ #endif /** * @param {number=} maxWaitMilliseconds + * @suppress {duplicate, checkTypes} */ Atomics.waitAsync = (i32a, index, value, maxWaitMilliseconds) => { let val = Atomics.load(i32a, index); @@ -80,6 +81,7 @@ addToLibrary({ $liveAtomicWaitAsyncCounter: 0, $liveAtomicWaitAsyncCounter__internal: true, + emscripten_atomic_wait_async__docs: '/** @suppress {checkTypes} */', emscripten_atomic_wait_async__deps: ['$atomicWaitStates', '$liveAtomicWaitAsyncs', '$liveAtomicWaitAsyncCounter', '$polyfillWaitAsync', '$callUserCallback'], emscripten_atomic_wait_async: (addr, val, asyncWaitFinished, userData, maxWaitMilliseconds) => { let wait = Atomics.waitAsync(HEAP32, {{{ getHeapOffset('addr', 'i32') }}}, val, maxWaitMilliseconds); diff --git a/src/lib/libpthread.js b/src/lib/libpthread.js index 4ecbb2d63754e..c9080da115a84 100644 --- a/src/lib/libpthread.js +++ b/src/lib/libpthread.js @@ -1258,6 +1258,7 @@ var LibraryPThread = { } }), + _emscripten_thread_mailbox_await__docs: '/** @suppress {checkTypes} */', _emscripten_thread_mailbox_await__deps: ['$checkMailbox', '$waitAsyncPolyfilled'], _emscripten_thread_mailbox_await: (pthread_ptr) => { if (!waitAsyncPolyfilled) { diff --git a/src/lib/libwasm_worker.js b/src/lib/libwasm_worker.js index 84df15266aa7b..68565677a9799 100644 --- a/src/lib/libwasm_worker.js +++ b/src/lib/libwasm_worker.js @@ -295,6 +295,7 @@ if (ENVIRONMENT_IS_WASM_WORKER return Atomics.isLockFree(width); }, + emscripten_lock_async_acquire__docs: '/** @suppress {checkTypes} */', emscripten_lock_async_acquire__deps: ['$polyfillWaitAsync'], emscripten_lock_async_acquire: (lock, asyncWaitFinished, userData, maxWaitMilliseconds) => { let tryAcquireLock = () => { @@ -314,6 +315,7 @@ if (ENVIRONMENT_IS_WASM_WORKER setTimeout(tryAcquireLock); }, + emscripten_semaphore_async_acquire__docs: '/** @suppress {checkTypes} */', emscripten_semaphore_async_acquire__deps: ['$polyfillWaitAsync'], emscripten_semaphore_async_acquire: (sem, num, asyncWaitFinished, userData, maxWaitMilliseconds) => { let dispatch = (idx, ret) => { diff --git a/test/codesize/audio_worklet_wasm.expected.js b/test/codesize/audio_worklet_wasm.expected.js index f18e8adf6f120..61a723f6a39c0 100644 --- a/test/codesize/audio_worklet_wasm.expected.js +++ b/test/codesize/audio_worklet_wasm.expected.js @@ -1,13 +1,13 @@ -var m = globalThis.Module || "undefined" != typeof Module ? Module : {}, p = !!globalThis.AudioWorkletGlobalScope, t = "em-ww" == globalThis.name || p, u, z, I, J, G, E, w, X, F, D, C, Y, A, Z; +var m = globalThis.Module || typeof Module != "undefined" ? Module : {}, p = !!globalThis.AudioWorkletGlobalScope, t = globalThis.name == "em-ww" || p, u, z, I, J, G, E, w, X, F, D, C, Y, A, Z; function v(a) { u = a; - w = a.L; + w = a.M; x(); m ||= {}; - m.wasm = a.G; + m.wasm = a.H; y(); - a.G = a.M = 0; + a.H = a.N = 0; } t && !p && (onmessage = a => { @@ -21,27 +21,27 @@ if (p) { constructor(d) { super(); d = d.processorOptions; - this.v = A.get(d.v); - this.A = d.A; + this.A = A.get(d.A); + this.B = d.B; this.u = d.u; - this.s = 4 * this.u; - this.B = Array(Math.min((u.F - 16) / this.s | 0, 64)); - this.K(); + this.v = this.u * 4; + this.C = Array(Math.min((u.G - 16) / this.v | 0, 64)); + this.I(); } - K() { - for (var d = C(), g = D(this.B.length * this.s) >> 2, e = this.B.length - 1; 0 <= e; e--) this.B[e] = E.subarray(g, g += this.u); + I() { + for (var d = C(), g = D(this.C.length * this.v) >> 2, e = this.C.length - 1; e >= 0; e--) this.C[e] = E.subarray(g, g += this.u); F(d); } static get parameterDescriptors() { return b; } process(d, g, e) { - var l = d.length, q = g.length, f, r, k = 12 * (l + q), n = 0; + var l = d.length, q = g.length, f, r, k = (l + q) * 12, n = 0; for (f of d) n += f.length; - n *= this.s; + n *= this.v; var H = 0; for (f of g) H += f.length; - n += H * this.s; + n += H * this.v; var N = 0; for (f in e) ++N, k += 8, n += e[f].byteLength; var U = C(), B = k + n + 15 & -16; @@ -53,15 +53,15 @@ if (p) { G[k + 4 >> 2] = this.u; G[k + 8 >> 2] = n; k += 12; - for (r of f) E.set(r, n >> 2), n += this.s; + for (r of f) E.set(r, n >> 2), n += this.v; } d = k; for (f = 0; r = e[f++]; ) G[k >> 2] = r.length, G[k + 4 >> 2] = n, k += 8, E.set(r, n >> 2), - n += 4 * r.length; + n += r.length * 4; e = k; for (f of g) G[k >> 2] = f.length, G[k + 4 >> 2] = this.u, G[k + 8 >> 2] = n, k += 12, - n += this.s * f.length; - if (l = this.v(l, B, q, e, N, d, this.A)) for (f of g) for (r of f) r.set(this.B[--H]); + n += this.v * f.length; + if (l = this.A(l, B, q, e, N, d, this.B)) for (f of g) for (r of f) r.set(this.C[--H]); F(U); return !!l; } @@ -81,10 +81,10 @@ if (p) { port.onmessage = async b => { await z; b = b.data; - b._boot ? v(b) : b._wpn ? (registerProcessor(b._wpn, a(b.H)), port.postMessage({ - _wsc: b.v, - C: [ b.I, 1, b.A ] - })) : b._wsc && A.get(b._wsc)(...b.C); + b._boot ? v(b) : b._wpn ? (registerProcessor(b._wpn, a(b.J)), port.postMessage({ + _wsc: b.A, + D: [ b.K, 1, b.B ] + })) : b._wsc && A.get(b._wsc)(...b.D); }; } @@ -113,15 +113,15 @@ var K = [], L = a => { O[a].connect(c.destination || c, b, h); }, O = {}, Q = 0, R = globalThis.TextDecoder && new TextDecoder, S = (a = 0) => { for (var c = I, b = a, h = b + void 0; c[b] && !(b >= h); ) ++b; - if (16 < b - a && c.buffer && R) return R.decode(c.slice(a, b)); + if (b - a > 16 && c.buffer && R) return R.decode(c.slice(a, b)); for (h = ""; a < b; ) { var d = c[a++]; if (d & 128) { var g = c[a++] & 63; - if (192 == (d & 224)) h += String.fromCharCode((d & 31) << 6 | g); else { + if ((d & 224) == 192) h += String.fromCharCode((d & 31) << 6 | g); else { var e = c[a++] & 63; - d = 224 == (d & 240) ? (d & 15) << 12 | g << 6 | e : (d & 7) << 18 | g << 12 | e << 6 | c[a++] & 63; - 65536 > d ? h += String.fromCharCode(d) : (d -= 65536, h += String.fromCharCode(55296 | d >> 10, 56320 | d & 1023)); + d = (d & 240) == 224 ? (d & 15) << 12 | g << 6 | e : (d & 7) << 18 | g << 12 | e << 6 | c[a++] & 63; + d < 65536 ? h += String.fromCharCode(d) : (d -= 65536, h += String.fromCharCode(55296 | d >> 10, 56320 | d & 1023)); } } else h += String.fromCharCode(d); } @@ -134,7 +134,7 @@ var K = [], L = a => { a = { latencyHint: c, sampleRate: G[a + 4 >> 2] || void 0, - N: 0 > b ? "hardware" : b || "default" + O: b < 0 ? "hardware" : b || "default" }; } else a = void 0; a = new AudioContext(a); @@ -157,8 +157,8 @@ var K = [], L = a => { channelCountMode: [ , "clamped-max", "explicit" ][J[b + 16 >> 2]], channelInterpretation: [ , "discrete" ][J[b + 20 >> 2]], processorOptions: { - v: h, - A: d, + A: h, + B: d, u: O[a].renderQuantumSize || 128 } }; @@ -178,15 +178,15 @@ var K = [], L = a => { }), c += 16; O[a].audioWorklet.port.postMessage({ _wpn: d, - H: e, - I: a, - v: b, - A: h + J: e, + K: a, + A: b, + B: h }); }, aa = () => !1, ba = 1, ca = a => { a = a.data; var c = a._wsc; - c && A.get(c)(...a.C); + c && A.get(c)(...a.D); }, da = (a, c, b, h, d) => { var g = O[a], e = g.audioWorklet, l = () => { A.get(h)(a, 0, d); @@ -195,20 +195,20 @@ var K = [], L = a => { e.addModule(m.js).then((() => { e.port || (e.port = { postMessage: q => { - q._boot ? (e.D = new AudioWorkletNode(g, "em-bootstrap", { + q._boot ? (e.F = new AudioWorkletNode(g, "em-bootstrap", { processorOptions: q - }), e.D.port.onmessage = f => { + }), e.F.port.onmessage = f => { e.port.onmessage(f); - }) : e.D.port.postMessage(q); + }) : e.F.port.postMessage(q); } }); e.port.postMessage({ _boot: 1, - O: ba++, - G: m.wasm, - L: w, - J: c, - F: b + P: ba++, + H: m.wasm, + M: w, + L: c, + G: b }); e.port.onmessage = ca; A.get(h)(a, 1, d); @@ -221,7 +221,7 @@ function ea(a) { document.body.appendChild(c); a = O[a]; c.onclick = () => { - "running" != a.state ? a.resume() : a.suspend(); + a.state != "running" ? a.resume() : a.suspend(); }; } @@ -246,7 +246,7 @@ function y() { C = a.n; Y = a.o; A = a.k; - t ? (Y(u.J, u.F), p || (removeEventListener("message", M), K = K.forEach(L), addEventListener("message", L))) : a.i(); + t ? (Y(u.L, u.G), p || (removeEventListener("message", M), K = K.forEach(L), addEventListener("message", L))) : a.i(); t || X(); })); } diff --git a/test/codesize/hello_wasm_worker_wasm.expected.js b/test/codesize/hello_wasm_worker_wasm.expected.js index af0817a7749eb..e0a76230793c2 100644 --- a/test/codesize/hello_wasm_worker_wasm.expected.js +++ b/test/codesize/hello_wasm_worker_wasm.expected.js @@ -1,4 +1,4 @@ -var c = Module, d = "em-ww" == globalThis.name, e, f, y, z, l, A, t; +var c = Module, d = globalThis.name == "em-ww", e, f, y, z, l, A, t; d && (onmessage = a => { onmessage = null; @@ -8,7 +8,7 @@ d && (onmessage = a => { c ||= {}; c.wasm = a.j; h(); - a.j = a.s = 0; + a.j = a.u = 0; }); function g() {} @@ -30,7 +30,7 @@ var k = [], n = a => { name: "em-ww" }); m.postMessage({ - u: r, + v: r, j: t, o: f, l: a, diff --git a/test/codesize/hello_world_wasm2js.expected.js b/test/codesize/hello_world_wasm2js.expected.js index 67398d58d9e21..d23d8bf32480c 100644 --- a/test/codesize/hello_world_wasm2js.expected.js +++ b/test/codesize/hello_world_wasm2js.expected.js @@ -3,12 +3,12 @@ var d = Module, g, h = new TextDecoder, k, l; function e(a) { this.exports = function(q) { function u(r, b, m) { - for (var v, p = 0, t = b, w = m.length, x = b + (3 * w >> 2) - ("=" == m[w - 2]) - ("=" == m[w - 1]); p < w; p += 4) b = c[m.charCodeAt(p + 1)], + for (var v, p = 0, t = b, w = m.length, x = b + (w * 3 >> 2) - (m[w - 2] == "=") - (m[w - 1] == "="); p < w; p += 4) b = c[m.charCodeAt(p + 1)], v = c[m.charCodeAt(p + 2)], r[t++] = c[m.charCodeAt(p)] << 2 | b >> 4, t < x && (r[t++] = b << 4 | v >> 2), t < x && (r[t++] = v << 6 | c[m.charCodeAt(p + 3)]); return r; } - for (var n, c = new Uint8Array(123), f = 25; 0 <= f; --f) c[48 + f] = 52 + f, c[65 + f] = f, + for (var n, c = new Uint8Array(123), f = 25; f >= 0; --f) c[48 + f] = 52 + f, c[65 + f] = f, c[97 + f] = 26 + f; c[43] = 62; c[47] = 63; diff --git a/test/codesize/test_codesize_cxx_ctors1.json b/test/codesize/test_codesize_cxx_ctors1.json index dba0aa4e9fc8c..5eb255b3f4005 100644 --- a/test/codesize/test_codesize_cxx_ctors1.json +++ b/test/codesize/test_codesize_cxx_ctors1.json @@ -1,10 +1,10 @@ { - "a.out.js": 19654, - "a.out.js.gz": 8145, + "a.out.js": 19729, + "a.out.js.gz": 8168, "a.out.nodebug.wasm": 129455, "a.out.nodebug.wasm.gz": 49210, - "total": 149109, - "total_gz": 57355, + "total": 149184, + "total_gz": 57378, "sent": [ "__cxa_throw", "_abort_js", diff --git a/test/codesize/test_codesize_cxx_ctors2.json b/test/codesize/test_codesize_cxx_ctors2.json index 4ac37d943f09e..9569c06c00ad5 100644 --- a/test/codesize/test_codesize_cxx_ctors2.json +++ b/test/codesize/test_codesize_cxx_ctors2.json @@ -1,10 +1,10 @@ { - "a.out.js": 19631, - "a.out.js.gz": 8132, + "a.out.js": 19706, + "a.out.js.gz": 8155, "a.out.nodebug.wasm": 128882, "a.out.nodebug.wasm.gz": 48854, - "total": 148513, - "total_gz": 56986, + "total": 148588, + "total_gz": 57009, "sent": [ "__cxa_throw", "_abort_js", diff --git a/test/codesize/test_codesize_cxx_except.json b/test/codesize/test_codesize_cxx_except.json index 15cb284562627..182930ccd1d77 100644 --- a/test/codesize/test_codesize_cxx_except.json +++ b/test/codesize/test_codesize_cxx_except.json @@ -1,10 +1,10 @@ { - "a.out.js": 23315, - "a.out.js.gz": 9125, + "a.out.js": 23391, + "a.out.js.gz": 9133, "a.out.nodebug.wasm": 171263, "a.out.nodebug.wasm.gz": 57315, - "total": 194578, - "total_gz": 66440, + "total": 194654, + "total_gz": 66448, "sent": [ "__cxa_begin_catch", "__cxa_end_catch", diff --git a/test/codesize/test_codesize_cxx_except_wasm.json b/test/codesize/test_codesize_cxx_except_wasm.json index 617b3ba6f4c9d..599b2f3855747 100644 --- a/test/codesize/test_codesize_cxx_except_wasm.json +++ b/test/codesize/test_codesize_cxx_except_wasm.json @@ -1,10 +1,10 @@ { - "a.out.js": 19470, - "a.out.js.gz": 8070, + "a.out.js": 19521, + "a.out.js.gz": 8083, "a.out.nodebug.wasm": 144623, "a.out.nodebug.wasm.gz": 54880, - "total": 164093, - "total_gz": 62950, + "total": 164144, + "total_gz": 62963, "sent": [ "_abort_js", "_tzset_js", diff --git a/test/codesize/test_codesize_cxx_except_wasm_legacy.json b/test/codesize/test_codesize_cxx_except_wasm_legacy.json index 9b485ecfe69ea..fecd88ca33087 100644 --- a/test/codesize/test_codesize_cxx_except_wasm_legacy.json +++ b/test/codesize/test_codesize_cxx_except_wasm_legacy.json @@ -1,10 +1,10 @@ { - "a.out.js": 19539, - "a.out.js.gz": 8089, + "a.out.js": 19590, + "a.out.js.gz": 8104, "a.out.nodebug.wasm": 142212, "a.out.nodebug.wasm.gz": 54344, - "total": 161751, - "total_gz": 62433, + "total": 161802, + "total_gz": 62448, "sent": [ "_abort_js", "_tzset_js", diff --git a/test/codesize/test_codesize_cxx_lto.json b/test/codesize/test_codesize_cxx_lto.json index f940e9bb676e5..b0211b18c2a54 100644 --- a/test/codesize/test_codesize_cxx_lto.json +++ b/test/codesize/test_codesize_cxx_lto.json @@ -1,10 +1,10 @@ { - "a.out.js": 18993, - "a.out.js.gz": 7823, + "a.out.js": 19044, + "a.out.js.gz": 7847, "a.out.nodebug.wasm": 106448, "a.out.nodebug.wasm.gz": 42638, - "total": 125441, - "total_gz": 50461, + "total": 125492, + "total_gz": 50485, "sent": [ "a (emscripten_resize_heap)", "b (_setitimer_js)", diff --git a/test/codesize/test_codesize_cxx_mangle.json b/test/codesize/test_codesize_cxx_mangle.json index a7dc6f34822f3..b98d871e652de 100644 --- a/test/codesize/test_codesize_cxx_mangle.json +++ b/test/codesize/test_codesize_cxx_mangle.json @@ -1,10 +1,10 @@ { - "a.out.js": 23365, - "a.out.js.gz": 9145, + "a.out.js": 23441, + "a.out.js.gz": 9156, "a.out.nodebug.wasm": 235290, "a.out.nodebug.wasm.gz": 78917, - "total": 258655, - "total_gz": 88062, + "total": 258731, + "total_gz": 88073, "sent": [ "__cxa_begin_catch", "__cxa_end_catch", diff --git a/test/codesize/test_codesize_cxx_noexcept.json b/test/codesize/test_codesize_cxx_noexcept.json index 04ad444871798..75fb6bf5ce0b2 100644 --- a/test/codesize/test_codesize_cxx_noexcept.json +++ b/test/codesize/test_codesize_cxx_noexcept.json @@ -1,10 +1,10 @@ { - "a.out.js": 19654, - "a.out.js.gz": 8145, + "a.out.js": 19729, + "a.out.js.gz": 8168, "a.out.nodebug.wasm": 131872, "a.out.nodebug.wasm.gz": 50209, - "total": 151526, - "total_gz": 58354, + "total": 151601, + "total_gz": 58377, "sent": [ "__cxa_throw", "_abort_js", diff --git a/test/codesize/test_codesize_cxx_wasmfs.json b/test/codesize/test_codesize_cxx_wasmfs.json index 273f67c8ec3e1..66351581d884f 100644 --- a/test/codesize/test_codesize_cxx_wasmfs.json +++ b/test/codesize/test_codesize_cxx_wasmfs.json @@ -1,10 +1,10 @@ { - "a.out.js": 7043, - "a.out.js.gz": 3322, + "a.out.js": 7090, + "a.out.js.gz": 3336, "a.out.nodebug.wasm": 170045, "a.out.nodebug.wasm.gz": 62927, - "total": 177088, - "total_gz": 66249, + "total": 177135, + "total_gz": 66263, "sent": [ "__cxa_throw", "_abort_js", diff --git a/test/codesize/test_codesize_file_preload.json b/test/codesize/test_codesize_file_preload.json index 3a486bce4d356..1f8c71caa5565 100644 --- a/test/codesize/test_codesize_file_preload.json +++ b/test/codesize/test_codesize_file_preload.json @@ -1,10 +1,10 @@ { - "a.out.js": 22561, - "a.out.js.gz": 9336, + "a.out.js": 22586, + "a.out.js.gz": 9338, "a.out.nodebug.wasm": 1681, "a.out.nodebug.wasm.gz": 960, - "total": 24242, - "total_gz": 10296, + "total": 24267, + "total_gz": 10298, "sent": [ "a (fd_write)" ], diff --git a/test/codesize/test_codesize_files_js_fs.json b/test/codesize/test_codesize_files_js_fs.json index 1e6532c6790b5..808d07346ab6f 100644 --- a/test/codesize/test_codesize_files_js_fs.json +++ b/test/codesize/test_codesize_files_js_fs.json @@ -1,10 +1,10 @@ { - "a.out.js": 18273, - "a.out.js.gz": 7462, + "a.out.js": 18324, + "a.out.js.gz": 7468, "a.out.nodebug.wasm": 381, "a.out.nodebug.wasm.gz": 260, - "total": 18654, - "total_gz": 7722, + "total": 18705, + "total_gz": 7728, "sent": [ "a (fd_write)", "b (fd_read)", diff --git a/test/codesize/test_codesize_files_wasmfs.json b/test/codesize/test_codesize_files_wasmfs.json index 92c970d70925d..d95bf54d8b337 100644 --- a/test/codesize/test_codesize_files_wasmfs.json +++ b/test/codesize/test_codesize_files_wasmfs.json @@ -1,10 +1,10 @@ { - "a.out.js": 5465, - "a.out.js.gz": 2576, + "a.out.js": 5487, + "a.out.js.gz": 2589, "a.out.nodebug.wasm": 50590, "a.out.nodebug.wasm.gz": 18089, - "total": 56055, - "total_gz": 20665, + "total": 56077, + "total_gz": 20678, "sent": [ "a (emscripten_date_now)", "b (emscripten_err)", diff --git a/test/codesize/test_codesize_hello_O0.json b/test/codesize/test_codesize_hello_O0.json index 1937b4808b565..d51ffd7348230 100644 --- a/test/codesize/test_codesize_hello_O0.json +++ b/test/codesize/test_codesize_hello_O0.json @@ -1,9 +1,9 @@ { - "a.out.js": 24220, + "a.out.js": 24222, "a.out.js.gz": 8700, "a.out.nodebug.wasm": 15138, "a.out.nodebug.wasm.gz": 7455, - "total": 39358, + "total": 39360, "total_gz": 16155, "sent": [ "fd_write" diff --git a/test/codesize/test_codesize_hello_O1.json b/test/codesize/test_codesize_hello_O1.json index 9525cad3cc8c3..c3518f7e85a1b 100644 --- a/test/codesize/test_codesize_hello_O1.json +++ b/test/codesize/test_codesize_hello_O1.json @@ -1,10 +1,10 @@ { - "a.out.js": 6345, - "a.out.js.gz": 2460, + "a.out.js": 6378, + "a.out.js.gz": 2464, "a.out.nodebug.wasm": 2675, "a.out.nodebug.wasm.gz": 1491, - "total": 9020, - "total_gz": 3951, + "total": 9053, + "total_gz": 3955, "sent": [ "fd_write" ], diff --git a/test/codesize/test_codesize_hello_O2.json b/test/codesize/test_codesize_hello_O2.json index c0f30e38d682c..f6b4fc824c673 100644 --- a/test/codesize/test_codesize_hello_O2.json +++ b/test/codesize/test_codesize_hello_O2.json @@ -1,10 +1,10 @@ { - "a.out.js": 4319, - "a.out.js.gz": 2131, + "a.out.js": 4340, + "a.out.js.gz": 2135, "a.out.nodebug.wasm": 1927, "a.out.nodebug.wasm.gz": 1138, - "total": 6246, - "total_gz": 3269, + "total": 6267, + "total_gz": 3273, "sent": [ "fd_write" ], diff --git a/test/codesize/test_codesize_hello_O3.json b/test/codesize/test_codesize_hello_O3.json index 1b9f5f4d33fd2..9fba67675a378 100644 --- a/test/codesize/test_codesize_hello_O3.json +++ b/test/codesize/test_codesize_hello_O3.json @@ -1,10 +1,10 @@ { - "a.out.js": 4261, - "a.out.js.gz": 2091, + "a.out.js": 4282, + "a.out.js.gz": 2094, "a.out.nodebug.wasm": 1681, "a.out.nodebug.wasm.gz": 960, - "total": 5942, - "total_gz": 3051, + "total": 5963, + "total_gz": 3054, "sent": [ "a (fd_write)" ], diff --git a/test/codesize/test_codesize_hello_Os.json b/test/codesize/test_codesize_hello_Os.json index 560a05125f5ce..33982778399aa 100644 --- a/test/codesize/test_codesize_hello_Os.json +++ b/test/codesize/test_codesize_hello_Os.json @@ -1,10 +1,10 @@ { - "a.out.js": 4261, - "a.out.js.gz": 2091, + "a.out.js": 4282, + "a.out.js.gz": 2094, "a.out.nodebug.wasm": 1671, "a.out.nodebug.wasm.gz": 964, - "total": 5932, - "total_gz": 3055, + "total": 5953, + "total_gz": 3058, "sent": [ "a (fd_write)" ], diff --git a/test/codesize/test_codesize_hello_Oz.json b/test/codesize/test_codesize_hello_Oz.json index 257881bb2e175..f2705b61675ba 100644 --- a/test/codesize/test_codesize_hello_Oz.json +++ b/test/codesize/test_codesize_hello_Oz.json @@ -1,10 +1,10 @@ { - "a.out.js": 3896, - "a.out.js.gz": 1895, + "a.out.js": 3917, + "a.out.js.gz": 1902, "a.out.nodebug.wasm": 1205, "a.out.nodebug.wasm.gz": 740, - "total": 5101, - "total_gz": 2635, + "total": 5122, + "total_gz": 2642, "sent": [ "a (fd_write)" ], diff --git a/test/codesize/test_codesize_hello_dylink.json b/test/codesize/test_codesize_hello_dylink.json index 6ce5218a1b710..55df2c4b58f70 100644 --- a/test/codesize/test_codesize_hello_dylink.json +++ b/test/codesize/test_codesize_hello_dylink.json @@ -1,10 +1,10 @@ { - "a.out.js": 26695, - "a.out.js.gz": 11394, + "a.out.js": 26898, + "a.out.js.gz": 11471, "a.out.nodebug.wasm": 17730, "a.out.nodebug.wasm.gz": 8957, - "total": 44425, - "total_gz": 20351, + "total": 44628, + "total_gz": 20428, "sent": [ "__syscall_stat64", "emscripten_resize_heap", diff --git a/test/codesize/test_codesize_hello_dylink_all.json b/test/codesize/test_codesize_hello_dylink_all.json index f7aff3b76c4e2..66390d6d7ac9c 100644 --- a/test/codesize/test_codesize_hello_dylink_all.json +++ b/test/codesize/test_codesize_hello_dylink_all.json @@ -1,7 +1,7 @@ { - "a.out.js": 244848, + "a.out.js": 245083, "a.out.nodebug.wasm": 574227, - "total": 819075, + "total": 819310, "sent": [ "IMG_Init", "IMG_Load", diff --git a/test/codesize/test_codesize_hello_export_nothing.json b/test/codesize/test_codesize_hello_export_nothing.json index a5690f5c08997..39e9bab7134b7 100644 --- a/test/codesize/test_codesize_hello_export_nothing.json +++ b/test/codesize/test_codesize_hello_export_nothing.json @@ -1,10 +1,10 @@ { - "a.out.js": 3172, - "a.out.js.gz": 1479, + "a.out.js": 3194, + "a.out.js.gz": 1486, "a.out.nodebug.wasm": 43, "a.out.nodebug.wasm.gz": 59, - "total": 3215, - "total_gz": 1538, + "total": 3237, + "total_gz": 1545, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_codesize_hello_single_file.json b/test/codesize/test_codesize_hello_single_file.json index 14add49122037..84b948b82b809 100644 --- a/test/codesize/test_codesize_hello_single_file.json +++ b/test/codesize/test_codesize_hello_single_file.json @@ -1,6 +1,6 @@ { - "a.out.js": 5366, - "a.out.js.gz": 2982, + "a.out.js": 5387, + "a.out.js.gz": 2987, "sent": [ "a (fd_write)" ] diff --git a/test/codesize/test_codesize_hello_wasmfs.json b/test/codesize/test_codesize_hello_wasmfs.json index 1b9f5f4d33fd2..9fba67675a378 100644 --- a/test/codesize/test_codesize_hello_wasmfs.json +++ b/test/codesize/test_codesize_hello_wasmfs.json @@ -1,10 +1,10 @@ { - "a.out.js": 4261, - "a.out.js.gz": 2091, + "a.out.js": 4282, + "a.out.js.gz": 2094, "a.out.nodebug.wasm": 1681, "a.out.nodebug.wasm.gz": 960, - "total": 5942, - "total_gz": 3051, + "total": 5963, + "total_gz": 3054, "sent": [ "a (fd_write)" ], diff --git a/test/codesize/test_codesize_libcxxabi_message_O3.json b/test/codesize/test_codesize_libcxxabi_message_O3.json index 0f93dc4a08eca..25d384b564a6f 100644 --- a/test/codesize/test_codesize_libcxxabi_message_O3.json +++ b/test/codesize/test_codesize_libcxxabi_message_O3.json @@ -1,10 +1,10 @@ { - "a.out.js": 3523, - "a.out.js.gz": 1666, + "a.out.js": 3544, + "a.out.js.gz": 1671, "a.out.nodebug.wasm": 89, "a.out.nodebug.wasm.gz": 98, - "total": 3612, - "total_gz": 1764, + "total": 3633, + "total_gz": 1769, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_codesize_libcxxabi_message_O3_standalone.json b/test/codesize/test_codesize_libcxxabi_message_O3_standalone.json index 6ba822d4f6864..387b0b23fd0d0 100644 --- a/test/codesize/test_codesize_libcxxabi_message_O3_standalone.json +++ b/test/codesize/test_codesize_libcxxabi_message_O3_standalone.json @@ -1,10 +1,10 @@ { - "a.out.js": 3570, - "a.out.js.gz": 1701, + "a.out.js": 3591, + "a.out.js.gz": 1707, "a.out.nodebug.wasm": 132, "a.out.nodebug.wasm.gz": 140, - "total": 3702, - "total_gz": 1841, + "total": 3723, + "total_gz": 1847, "sent": [ "proc_exit" ], diff --git a/test/codesize/test_codesize_mem_O3.json b/test/codesize/test_codesize_mem_O3.json index ece3f64d2aef4..3ca742289d19a 100644 --- a/test/codesize/test_codesize_mem_O3.json +++ b/test/codesize/test_codesize_mem_O3.json @@ -1,10 +1,10 @@ { - "a.out.js": 4350, - "a.out.js.gz": 2094, + "a.out.js": 4371, + "a.out.js.gz": 2103, "a.out.nodebug.wasm": 5260, "a.out.nodebug.wasm.gz": 2419, - "total": 9610, - "total_gz": 4513, + "total": 9631, + "total_gz": 4522, "sent": [ "a (emscripten_resize_heap)" ], diff --git a/test/codesize/test_codesize_mem_O3_grow.json b/test/codesize/test_codesize_mem_O3_grow.json index 66585626670b6..5810ac5957980 100644 --- a/test/codesize/test_codesize_mem_O3_grow.json +++ b/test/codesize/test_codesize_mem_O3_grow.json @@ -1,10 +1,10 @@ { - "a.out.js": 4635, - "a.out.js.gz": 2243, + "a.out.js": 4656, + "a.out.js.gz": 2253, "a.out.nodebug.wasm": 5261, "a.out.nodebug.wasm.gz": 2419, - "total": 9896, - "total_gz": 4662, + "total": 9917, + "total_gz": 4672, "sent": [ "a (emscripten_resize_heap)" ], diff --git a/test/codesize/test_codesize_mem_O3_grow_standalone.json b/test/codesize/test_codesize_mem_O3_grow_standalone.json index 1c403f7649388..03867d33f2b96 100644 --- a/test/codesize/test_codesize_mem_O3_grow_standalone.json +++ b/test/codesize/test_codesize_mem_O3_grow_standalone.json @@ -1,10 +1,10 @@ { - "a.out.js": 4102, - "a.out.js.gz": 1990, + "a.out.js": 4123, + "a.out.js.gz": 1994, "a.out.nodebug.wasm": 5547, "a.out.nodebug.wasm.gz": 2598, - "total": 9649, - "total_gz": 4588, + "total": 9670, + "total_gz": 4592, "sent": [ "args_get", "args_sizes_get", diff --git a/test/codesize/test_codesize_mem_O3_standalone.json b/test/codesize/test_codesize_mem_O3_standalone.json index d47c439e4f8c3..a399a0d662515 100644 --- a/test/codesize/test_codesize_mem_O3_standalone.json +++ b/test/codesize/test_codesize_mem_O3_standalone.json @@ -1,10 +1,10 @@ { - "a.out.js": 4035, - "a.out.js.gz": 1954, + "a.out.js": 4056, + "a.out.js.gz": 1956, "a.out.nodebug.wasm": 5472, "a.out.nodebug.wasm.gz": 2539, - "total": 9507, - "total_gz": 4493, + "total": 9528, + "total_gz": 4495, "sent": [ "args_get", "args_sizes_get", diff --git a/test/codesize/test_codesize_mem_O3_standalone_lib.json b/test/codesize/test_codesize_mem_O3_standalone_lib.json index 0b146e54484df..8b1b041842ed2 100644 --- a/test/codesize/test_codesize_mem_O3_standalone_lib.json +++ b/test/codesize/test_codesize_mem_O3_standalone_lib.json @@ -1,10 +1,10 @@ { - "a.out.js": 3563, - "a.out.js.gz": 1689, + "a.out.js": 3584, + "a.out.js.gz": 1695, "a.out.nodebug.wasm": 5239, "a.out.nodebug.wasm.gz": 2359, - "total": 8802, - "total_gz": 4048, + "total": 8823, + "total_gz": 4054, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_codesize_mem_O3_standalone_narg.json b/test/codesize/test_codesize_mem_O3_standalone_narg.json index d69a63960fdb0..d604aa70fddb9 100644 --- a/test/codesize/test_codesize_mem_O3_standalone_narg.json +++ b/test/codesize/test_codesize_mem_O3_standalone_narg.json @@ -1,10 +1,10 @@ { - "a.out.js": 3570, - "a.out.js.gz": 1701, + "a.out.js": 3591, + "a.out.js.gz": 1707, "a.out.nodebug.wasm": 5265, "a.out.nodebug.wasm.gz": 2396, - "total": 8835, - "total_gz": 4097, + "total": 8856, + "total_gz": 4103, "sent": [ "proc_exit" ], diff --git a/test/codesize/test_codesize_mem_O3_standalone_narg_flto.json b/test/codesize/test_codesize_mem_O3_standalone_narg_flto.json index f94ad7a45f75b..dbde838cbe0ff 100644 --- a/test/codesize/test_codesize_mem_O3_standalone_narg_flto.json +++ b/test/codesize/test_codesize_mem_O3_standalone_narg_flto.json @@ -1,10 +1,10 @@ { - "a.out.js": 3570, - "a.out.js.gz": 1701, + "a.out.js": 3591, + "a.out.js.gz": 1707, "a.out.nodebug.wasm": 4207, "a.out.nodebug.wasm.gz": 2104, - "total": 7777, - "total_gz": 3805, + "total": 7798, + "total_gz": 3811, "sent": [ "proc_exit" ], diff --git a/test/codesize/test_codesize_minimal_64.json b/test/codesize/test_codesize_minimal_64.json index 2fcaae6dada80..ca8638769b55c 100644 --- a/test/codesize/test_codesize_minimal_64.json +++ b/test/codesize/test_codesize_minimal_64.json @@ -1,10 +1,10 @@ { "a.out.js": 2604, - "a.out.js.gz": 1247, + "a.out.js.gz": 1246, "a.out.nodebug.wasm": 75, "a.out.nodebug.wasm.gz": 88, "total": 2679, - "total_gz": 1335, + "total_gz": 1334, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_codesize_minimal_O0.json b/test/codesize/test_codesize_minimal_O0.json index f8a4d00f4cb4e..311e116a137cf 100644 --- a/test/codesize/test_codesize_minimal_O0.json +++ b/test/codesize/test_codesize_minimal_O0.json @@ -1,10 +1,10 @@ { "a.out.js": 19493, - "a.out.js.gz": 7010, + "a.out.js.gz": 7003, "a.out.nodebug.wasm": 1136, "a.out.nodebug.wasm.gz": 659, "total": 20629, - "total_gz": 7669, + "total_gz": 7662, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_codesize_minimal_O1.json b/test/codesize/test_codesize_minimal_O1.json index 392b4ac27d486..088d64fe6a4a0 100644 --- a/test/codesize/test_codesize_minimal_O1.json +++ b/test/codesize/test_codesize_minimal_O1.json @@ -1,10 +1,10 @@ { "a.out.js": 3061, - "a.out.js.gz": 1300, + "a.out.js.gz": 1295, "a.out.nodebug.wasm": 449, "a.out.nodebug.wasm.gz": 337, "total": 3510, - "total_gz": 1637, + "total_gz": 1632, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_codesize_minimal_O2.json b/test/codesize/test_codesize_minimal_O2.json index afc724bf811ee..f6b9391a31c9e 100644 --- a/test/codesize/test_codesize_minimal_O2.json +++ b/test/codesize/test_codesize_minimal_O2.json @@ -1,10 +1,10 @@ { "a.out.js": 2352, - "a.out.js.gz": 1171, + "a.out.js.gz": 1170, "a.out.nodebug.wasm": 280, "a.out.nodebug.wasm.gz": 226, "total": 2632, - "total_gz": 1397, + "total_gz": 1396, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_codesize_minimal_O3.json b/test/codesize/test_codesize_minimal_O3.json index b7ab6c28df39a..428400524d36d 100644 --- a/test/codesize/test_codesize_minimal_O3.json +++ b/test/codesize/test_codesize_minimal_O3.json @@ -1,10 +1,10 @@ { "a.out.js": 2293, - "a.out.js.gz": 1137, + "a.out.js.gz": 1136, "a.out.nodebug.wasm": 75, "a.out.nodebug.wasm.gz": 87, "total": 2368, - "total_gz": 1224, + "total_gz": 1223, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_codesize_minimal_Os.json b/test/codesize/test_codesize_minimal_Os.json index b7ab6c28df39a..428400524d36d 100644 --- a/test/codesize/test_codesize_minimal_Os.json +++ b/test/codesize/test_codesize_minimal_Os.json @@ -1,10 +1,10 @@ { "a.out.js": 2293, - "a.out.js.gz": 1137, + "a.out.js.gz": 1136, "a.out.nodebug.wasm": 75, "a.out.nodebug.wasm.gz": 87, "total": 2368, - "total_gz": 1224, + "total_gz": 1223, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_codesize_minimal_Oz.json b/test/codesize/test_codesize_minimal_Oz.json index b7ab6c28df39a..428400524d36d 100644 --- a/test/codesize/test_codesize_minimal_Oz.json +++ b/test/codesize/test_codesize_minimal_Oz.json @@ -1,10 +1,10 @@ { "a.out.js": 2293, - "a.out.js.gz": 1137, + "a.out.js.gz": 1136, "a.out.nodebug.wasm": 75, "a.out.nodebug.wasm.gz": 87, "total": 2368, - "total_gz": 1224, + "total_gz": 1223, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_codesize_minimal_esm.json b/test/codesize/test_codesize_minimal_esm.json index 71dc359fe1e37..07a8373840e3d 100644 --- a/test/codesize/test_codesize_minimal_esm.json +++ b/test/codesize/test_codesize_minimal_esm.json @@ -1,10 +1,10 @@ { "a.out.js": 2429, - "a.out.js.gz": 1168, + "a.out.js.gz": 1169, "a.out.nodebug.wasm": 75, "a.out.nodebug.wasm.gz": 87, "total": 2504, - "total_gz": 1255, + "total_gz": 1256, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_codesize_minimal_pthreads.json b/test/codesize/test_codesize_minimal_pthreads.json index d1e1883b60cdc..d4dee5115fb90 100644 --- a/test/codesize/test_codesize_minimal_pthreads.json +++ b/test/codesize/test_codesize_minimal_pthreads.json @@ -1,10 +1,10 @@ { - "a.out.js": 7694, - "a.out.js.gz": 3815, + "a.out.js": 7696, + "a.out.js.gz": 3812, "a.out.nodebug.wasm": 19604, "a.out.nodebug.wasm.gz": 9079, - "total": 27298, - "total_gz": 12894, + "total": 27300, + "total_gz": 12891, "sent": [ "a (memory)", "b (emscripten_get_now)", diff --git a/test/codesize/test_codesize_minimal_pthreads_memgrowth.json b/test/codesize/test_codesize_minimal_pthreads_memgrowth.json index 5f7594e62933d..36651016e4d57 100644 --- a/test/codesize/test_codesize_minimal_pthreads_memgrowth.json +++ b/test/codesize/test_codesize_minimal_pthreads_memgrowth.json @@ -1,10 +1,10 @@ { - "a.out.js": 8116, - "a.out.js.gz": 4015, + "a.out.js": 8118, + "a.out.js.gz": 4012, "a.out.nodebug.wasm": 19605, "a.out.nodebug.wasm.gz": 9080, - "total": 27721, - "total_gz": 13095, + "total": 27723, + "total_gz": 13092, "sent": [ "a (memory)", "b (emscripten_get_now)", diff --git a/test/codesize/test_codesize_minimal_wasmfs.json b/test/codesize/test_codesize_minimal_wasmfs.json index b7ab6c28df39a..428400524d36d 100644 --- a/test/codesize/test_codesize_minimal_wasmfs.json +++ b/test/codesize/test_codesize_minimal_wasmfs.json @@ -1,10 +1,10 @@ { "a.out.js": 2293, - "a.out.js.gz": 1137, + "a.out.js.gz": 1136, "a.out.nodebug.wasm": 75, "a.out.nodebug.wasm.gz": 87, "total": 2368, - "total_gz": 1224, + "total_gz": 1223, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_minimal_runtime_code_size_audio_worklet.json b/test/codesize/test_minimal_runtime_code_size_audio_worklet.json index 50ff7beecdafb..8270ef498b959 100644 --- a/test/codesize/test_minimal_runtime_code_size_audio_worklet.json +++ b/test/codesize/test_minimal_runtime_code_size_audio_worklet.json @@ -2,9 +2,9 @@ "a.html": 519, "a.html.gz": 357, "a.js": 4309, - "a.js.gz": 2219, + "a.js.gz": 2221, "a.wasm": 1329, "a.wasm.gz": 895, "total": 6157, - "total_gz": 3471 + "total_gz": 3473 } diff --git a/test/codesize/test_minimal_runtime_code_size_hello_embind.json b/test/codesize/test_minimal_runtime_code_size_hello_embind.json index d6559563631fc..b313d3f2ffd1b 100644 --- a/test/codesize/test_minimal_runtime_code_size_hello_embind.json +++ b/test/codesize/test_minimal_runtime_code_size_hello_embind.json @@ -1,10 +1,10 @@ { "a.html": 552, "a.html.gz": 373, - "a.js": 7262, - "a.js.gz": 3324, + "a.js": 7263, + "a.js.gz": 3330, "a.wasm": 7315, "a.wasm.gz": 3371, - "total": 15129, - "total_gz": 7068 + "total": 15130, + "total_gz": 7074 } diff --git a/test/codesize/test_minimal_runtime_code_size_hello_embind_val.json b/test/codesize/test_minimal_runtime_code_size_hello_embind_val.json index d7d03525f9147..07b933e605ab6 100644 --- a/test/codesize/test_minimal_runtime_code_size_hello_embind_val.json +++ b/test/codesize/test_minimal_runtime_code_size_hello_embind_val.json @@ -1,10 +1,10 @@ { "a.html": 552, "a.html.gz": 373, - "a.js": 5353, - "a.js.gz": 2522, + "a.js": 5358, + "a.js.gz": 2519, "a.wasm": 5953, "a.wasm.gz": 2796, - "total": 11858, - "total_gz": 5691 + "total": 11863, + "total_gz": 5688 } diff --git a/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm.json b/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm.json index e106c0c4f78d8..f3787c9ba2c4c 100644 --- a/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm.json +++ b/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm.json @@ -2,9 +2,9 @@ "a.html": 454, "a.html.gz": 321, "a.js": 4437, - "a.js.gz": 2281, + "a.js.gz": 2285, "a.wasm": 8308, "a.wasm.gz": 5651, "total": 13199, - "total_gz": 8253 + "total_gz": 8257 } diff --git a/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm2js.json b/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm2js.json index 54b5543b8049f..d237ea37ab386 100644 --- a/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm2js.json +++ b/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm2js.json @@ -1,8 +1,8 @@ { "a.html": 346, "a.html.gz": 255, - "a.js": 18191, - "a.js.gz": 9823, - "total": 18537, - "total_gz": 10078 + "a.js": 18226, + "a.js.gz": 9832, + "total": 18572, + "total_gz": 10087 } diff --git a/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm_singlefile.json b/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm_singlefile.json index aa58289152c9e..a096f193ca6ee 100644 --- a/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm_singlefile.json +++ b/test/codesize/test_minimal_runtime_code_size_hello_webgl2_wasm_singlefile.json @@ -1,4 +1,4 @@ { "a.html": 15132, - "a.html.gz": 9079 + "a.html.gz": 9075 } diff --git a/test/codesize/test_minimal_runtime_code_size_hello_webgl_wasm.json b/test/codesize/test_minimal_runtime_code_size_hello_webgl_wasm.json index 8d5ae7dd43da5..25ca8471f2af1 100644 --- a/test/codesize/test_minimal_runtime_code_size_hello_webgl_wasm.json +++ b/test/codesize/test_minimal_runtime_code_size_hello_webgl_wasm.json @@ -2,9 +2,9 @@ "a.html": 454, "a.html.gz": 321, "a.js": 3975, - "a.js.gz": 2123, + "a.js.gz": 2121, "a.wasm": 8308, "a.wasm.gz": 5651, "total": 12737, - "total_gz": 8095 + "total_gz": 8093 } diff --git a/test/codesize/test_minimal_runtime_code_size_hello_webgl_wasm2js.json b/test/codesize/test_minimal_runtime_code_size_hello_webgl_wasm2js.json index ad1f76dc4f832..390ce53c532d4 100644 --- a/test/codesize/test_minimal_runtime_code_size_hello_webgl_wasm2js.json +++ b/test/codesize/test_minimal_runtime_code_size_hello_webgl_wasm2js.json @@ -1,8 +1,8 @@ { "a.html": 346, "a.html.gz": 255, - "a.js": 17717, - "a.js.gz": 9661, - "total": 18063, - "total_gz": 9916 + "a.js": 17752, + "a.js.gz": 9665, + "total": 18098, + "total_gz": 9920 } diff --git a/test/codesize/test_minimal_runtime_code_size_hello_world_wasm2js.json b/test/codesize/test_minimal_runtime_code_size_hello_world_wasm2js.json index 17b64e9973b30..26a4d0ac4a4e8 100644 --- a/test/codesize/test_minimal_runtime_code_size_hello_world_wasm2js.json +++ b/test/codesize/test_minimal_runtime_code_size_hello_world_wasm2js.json @@ -2,7 +2,7 @@ "a.html": 323, "a.html.gz": 246, "a.js": 965, - "a.js.gz": 588, + "a.js.gz": 589, "total": 1288, - "total_gz": 834 + "total_gz": 835 } diff --git a/test/codesize/test_minimal_runtime_code_size_math.json b/test/codesize/test_minimal_runtime_code_size_math.json index 335283d0603f5..9dae9b0b694bd 100644 --- a/test/codesize/test_minimal_runtime_code_size_math.json +++ b/test/codesize/test_minimal_runtime_code_size_math.json @@ -2,9 +2,9 @@ "a.html": 552, "a.html.gz": 373, "a.js": 847, - "a.js.gz": 505, + "a.js.gz": 506, "a.wasm": 2715, "a.wasm.gz": 1674, "total": 4114, - "total_gz": 2552 + "total_gz": 2553 } diff --git a/test/codesize/test_minimal_runtime_code_size_random_printf_wasm.json b/test/codesize/test_minimal_runtime_code_size_random_printf_wasm.json index 61f7f42ba4aff..eddf83fe3ecb2 100644 --- a/test/codesize/test_minimal_runtime_code_size_random_printf_wasm.json +++ b/test/codesize/test_minimal_runtime_code_size_random_printf_wasm.json @@ -1,4 +1,4 @@ { "a.html": 10982, - "a.html.gz": 5743 + "a.html.gz": 5746 } diff --git a/test/codesize/test_minimal_runtime_code_size_random_printf_wasm2js.json b/test/codesize/test_minimal_runtime_code_size_random_printf_wasm2js.json index beaa381257a2e..47464e46a80d2 100644 --- a/test/codesize/test_minimal_runtime_code_size_random_printf_wasm2js.json +++ b/test/codesize/test_minimal_runtime_code_size_random_printf_wasm2js.json @@ -1,4 +1,4 @@ { "a.html": 17173, - "a.html.gz": 7510 + "a.html.gz": 7513 } diff --git a/test/codesize/test_small_js_flags.json b/test/codesize/test_small_js_flags.json index 258ceaa4a17cf..643a5bd80cd8f 100644 --- a/test/codesize/test_small_js_flags.json +++ b/test/codesize/test_small_js_flags.json @@ -1,4 +1,4 @@ { "a.out.js": 2726, - "a.out.js.gz": 1495 + "a.out.js.gz": 1494 } diff --git a/tools/building.py b/tools/building.py index dcdc03fc458ef..cda7a00ec607d 100644 --- a/tools/building.py +++ b/tools/building.py @@ -579,6 +579,9 @@ def closure_compiler(filename, advanced=True, extra_closure_args=None): if extra_closure_args: user_args += extra_closure_args + def uses_webgpu_externs(args): + return any('webgpu-externs.js' in arg for arg in args) + closure_cmd, env = get_closure_compiler_and_env(user_args) # Closure externs file contains known symbols to be extern to the minification, Closure @@ -627,6 +630,10 @@ def closure_compiler(filename, advanced=True, extra_closure_args=None): if name.endswith('.js')] CLOSURE_EXTERNS += BROWSER_EXTERNS + if uses_webgpu_externs(user_args): + # TODO: remove once Dawn fixes webgpu-externs.js (https://issues.chromium.org/issues/472022911). + CLOSURE_EXTERNS += [path_from_root('src/closure-externs/webgpu-externs-fixes.js')] + if settings.DYNCALLS: CLOSURE_EXTERNS += [path_from_root('src/closure-externs/dyncall-externs.js')]