MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / emit_branch_close

Method emit_branch_close

LiveRecomp/live_generator.cpp:1576–1587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1574}
1575
1576void N64Recomp::LiveGenerator::emit_branch_close() const {
1577 // Make sure there's a pending branch jump.
1578 if(context->cur_branch_jump == nullptr) {
1579 assert(false);
1580 errored = true;
1581 return;
1582 }
1583
1584 // Assign a label at this point to the pending branch jump and clear it.
1585 sljit_set_label(context->cur_branch_jump, sljit_emit_label(compiler));
1586 context->cur_branch_jump = nullptr;
1587}
1588
1589void N64Recomp::LiveGenerator::emit_switch(const Context& recompiler_context, const JumpTable& jtbl, int reg) const {
1590 // Populate the switch's labels.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected