MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / minify

Function minify

tools/acorn-optimizer.mjs:1588–1594  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1586 const minified = new Map();
1587
1588 function minify(name) {
1589 if (!minified.has(name)) {
1590 minified.set(name, getNewMinifiedName());
1591 }
1592 assert(minified.get(name));
1593 return minified.get(name);
1594 }
1595
1596 // Start with the declared things in the lowest indices. Things like HEAP8
1597 // can have very high use counts.

Callers 2

minifyGlobalsFunction · 0.85
IdentifierFunction · 0.85

Calls 5

getNewMinifiedNameFunction · 0.85
hasMethod · 0.80
setMethod · 0.65
getMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected