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

Function setTrampolineEntry

src/e9patch/e9optimize.cpp:175–189  ·  view source on GitHub ↗

* Set the corresponding trampoline entry. */

Source from the content-addressed store, hash-verified

173 * Set the corresponding trampoline entry.
174 */
175void setTrampolineEntry(EntrySet &Es, const Instr *I, intptr_t entry)
176{
177 auto i = Es.find(I->addr);
178 if (i == Es.end())
179 {
180 if (entry != INTPTR_MIN)
181 {
182 EntryPoint E = {I, entry, false, false};
183 Es.insert({I->addr, E});
184 }
185 return;
186 }
187 EntryPoint &E = i->second;
188 E.entry = entry;
189}
190
191/*
192 * Find the instruction at the given address.

Callers 2

buildPrologueFunction · 0.85
commitFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected