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

Function getTrampolineEntry

src/e9patch/e9optimize.cpp:164–170  ·  view source on GitHub ↗

* Get the corresponding trampoline entry if it exists, else INTPTR_MIN. */

Source from the content-addressed store, hash-verified

162 * Get the corresponding trampoline entry if it exists, else INTPTR_MIN.
163 */
164intptr_t getTrampolineEntry(const EntrySet &Es, const Instr *I)
165{
166 auto i = Es.find(I->addr);
167 if (i == Es.end())
168 return INTPTR_MIN;
169 return i->second.entry;
170}
171
172/*
173 * Set the corresponding trampoline entry.

Callers 2

optimizeJumpFunction · 0.85
patchFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected