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

Function emitWorker

test/fixtures/snapshot/typescript.js:103932–103946  ·  view source on GitHub ↗

* Emits an operation. * * @param code The OpCode for the operation. * @param args The optional arguments for the operation.

(code, args, location)

Source from the content-addressed store, hash-verified

103930 * @param args The optional arguments for the operation.
103931 */
103932 function emitWorker(code, args, location) {
103933 if (operations === undefined) {
103934 operations = [];
103935 operationArguments = [];
103936 operationLocations = [];
103937 }
103938 if (labelOffsets === undefined) {
103939 // mark entry point
103940 markLabel(defineLabel());
103941 }
103942 var operationIndex = operations.length;
103943 operations[operationIndex] = code;
103944 operationArguments[operationIndex] = args;
103945 operationLocations[operationIndex] = location;
103946 }
103947 /**
103948 * Builds the generator function body.
103949 */

Callers 14

visitFunction · 0.85
visitCommaListExpressionFunction · 0.85
emitNopFunction · 0.85
emitStatementFunction · 0.85
emitAssignmentFunction · 0.85
emitBreakFunction · 0.85
emitBreakWhenTrueFunction · 0.85
emitBreakWhenFalseFunction · 0.85
emitYieldStarFunction · 0.85
emitYieldFunction · 0.85
emitReturnFunction · 0.85
emitThrowFunction · 0.85

Calls 7

markLabelFunction · 0.85
defineLabelFunction · 0.85
handleNoEmitOptionsFunction · 0.85
getTypeCheckerFunction · 0.85
getEmitHostFunction · 0.85
measureMethod · 0.80
markMethod · 0.45

Tested by

no test coverage detected