Searched refs:old_func (Results 1 - 3 of 3) sorted by relevance

/external/compiler-rt/lib/interception/
H A Dinterception_win.cc59 bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func) { argument
64 // We write 5 bytes (jmp-to-new_func) at the beginning of the 'old_func'
65 // to override it. We want to be able to execute the original 'old_func' from
67 // original instructions somewhere with a "jmp old_func+head".
84 char* old_bytes = (char*)old_func;
129 if (!VirtualProtect((void*)old_func, head, PAGE_EXECUTE_READWRITE,
139 // Intercept the 'old_func'.
143 if (!VirtualProtect((void*)old_func, head, old_prot, &unused_prot))
H A Dinterception_win.h29 bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func);
/external/clang/utils/VtableTest/
H A Dgen.cc153 int old_func = -1; local
155 int fn = old_func + random() % FUNCSPACING + 1;
182 old_func = fn;

Completed in 510 milliseconds