| 1574 | } |
| 1575 | |
| 1576 | void 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 | |
| 1589 | void N64Recomp::LiveGenerator::emit_switch(const Context& recompiler_context, const JumpTable& jtbl, int reg) const { |
| 1590 | // Populate the switch's labels. |
nothing calls this directly
no outgoing calls
no test coverage detected