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

Function safeHeapTransform

tools/acorn-optimizer.mjs:1292–1294  ·  view source on GitHub ↗
(node, action)

Source from the content-addressed store, hash-verified

1290}
1291
1292function safeHeapTransform(node, action) {
1293 makeCallExpression(node.property, 'SAFE_HEAP_INDEX', [{ ...node.object }, { ...node.property }, createLiteral(action)]);
1294}
1295// Add SAFE_HEAP_INDEX check to heap access
1296function safeHeap(ast) {
1297 recursiveWalk(ast, {

Callers 2

AssignmentExpressionFunction · 0.85
MemberExpressionFunction · 0.85

Calls 2

makeCallExpressionFunction · 0.85
createLiteralFunction · 0.85

Tested by

no test coverage detected