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

Function CallExpression

tools/acorn-optimizer.mjs:1032–1051  ·  view source on GitHub ↗
(node, c)

Source from the content-addressed store, hash-verified

1030 }
1031 },
1032 CallExpression(node, c) {
1033 if (node.arguments) {
1034 for (var a of node.arguments) c(a);
1035 }
1036 if (
1037 // Atomics.X(args) -> LE_ATOMICS_X(args)
1038 node.callee.type === 'MemberExpression' &&
1039 node.callee.object.type === 'Identifier' &&
1040 node.callee.object.name === 'Atomics' &&
1041 !node.callee.computed
1042 ) {
1043 makeCallExpression(
1044 node,
1045 'LE_ATOMICS_' + node.callee.property.name.toUpperCase(),
1046 node.arguments,
1047 );
1048 } else {
1049 c(node.callee);
1050 }
1051 },
1052 MemberExpression(node, c) {
1053 c(node.property);
1054 const heap = isHEAPAccess(node);

Callers

nothing calls this directly

Calls 4

makeCallExpressionFunction · 0.85
assertAtFunction · 0.85
isLocalNameFunction · 0.85
cFunction · 0.50

Tested by

no test coverage detected