* Emits an operation. * * @param code The OpCode for the operation. * @param args The optional arguments for the operation.
(code, args, location)
| 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 | */ |
no test coverage detected