MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / emit_jump

Method emit_jump

aiscript-vm/src/compiler/codegen.rs:1599–1602  ·  view source on GitHub ↗
(&mut self, instruction: OpCode)

Source from the content-addressed store, hash-verified

1597 }
1598
1599 fn emit_jump(&mut self, instruction: OpCode) -> usize {
1600 self.emit(instruction);
1601 self.function.code_size()
1602 }
1603
1604 fn patch_jump(&mut self, offset: usize) {
1605 let jump = self.function.code_size() - offset;

Callers 4

generate_stmtMethod · 0.80
generate_exprMethod · 0.80
generate_matchMethod · 0.80

Calls 2

emitMethod · 0.80
code_sizeMethod · 0.80

Tested by

no test coverage detected