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

Method populate_import_symbol_jumps

LiveRecomp/live_generator.cpp:222–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void N64Recomp::LiveGeneratorOutput::populate_import_symbol_jumps(size_t import_index, recomp_func_t* func) {
223 auto find_range = import_jumps_by_index.equal_range(import_index);
224 for (auto it = find_range.first; it != find_range.second; ++it) {
225 sljit_set_jump_addr(reinterpret_cast<sljit_uw>(it->second), reinterpret_cast<sljit_uw>(func), executable_offset);
226 }
227}
228
229constexpr int get_gpr_context_offset(int gpr_index) {
230 return offsetof(recomp_context, r0) + sizeof(recomp_context::r0) * gpr_index;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected