MCPcopy Create free account
hub / github.com/GJDuck/e9patch / saveJump

Function saveJump

src/e9patch/e9trampoline.cpp:144–150  ·  view source on GitHub ↗

* Save a jump instruction for future optimization. */

Source from the content-addressed store, hash-verified

142 * Save a jump instruction for future optimization.
143 */
144static void saveJump(const Binary *B, intptr_t addr, uint8_t *bytes,
145 size_t size)
146{
147 if (!option_Opeephole || bytes == nullptr || !isCFT(bytes, size, CFT_JMP))
148 return;
149 B->Js.push_back({addr, bytes, size});
150}
151
152/*
153 * Relocate an instruction to the given address.

Callers 2

buildBreakFunction · 0.85
buildPrologueFunction · 0.85

Calls 1

isCFTFunction · 0.85

Tested by

no test coverage detected