MCPcopy Index your code
hub / github.com/nodejs/node / callRuntimeCallbacks

Function callRuntimeCallbacks

deps/v8/test/mjsunit/asm/embenchen/copy.js:1120–1138  ·  view source on GitHub ↗
(callbacks)

Source from the content-addressed store, hash-verified

1118Module['HEAPF64'] = HEAPF64;
1119
1120function callRuntimeCallbacks(callbacks) {
1121 while(callbacks.length > 0) {
1122 var callback = callbacks.shift();
1123 if (typeof callback == 'function') {
1124 callback();
1125 continue;
1126 }
1127 var func = callback.func;
1128 if (typeof func === 'number') {
1129 if (callback.arg === undefined) {
1130 Runtime.dynCall('v', func);
1131 } else {
1132 Runtime.dynCall('vi', func, [callback.arg]);
1133 }
1134 } else {
1135 func(callback.arg === undefined ? null : callback.arg);
1136 }
1137 }
1138}
1139
1140var __ATPRERUN__ = []; // functions called before the runtime is initialized
1141var __ATINIT__ = []; // functions called during startup

Callers 5

preRunFunction · 0.70
ensureInitRuntimeFunction · 0.70
preMainFunction · 0.70
exitRuntimeFunction · 0.70
postRunFunction · 0.70

Calls 3

callbackFunction · 0.50
funcFunction · 0.50
shiftMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…