Searched defs:replacement_function (Results 1 - 10 of 10) sorted by relevance

/external/chromium_org/sandbox/win/src/sidestep/
H A Dpreamble_patcher.h61 // Patches target_function to point to replacement_function using a provided
65 static SideStepError Patch(T target_function, T replacement_function, argument
67 return RawPatchWithStub(target_function, replacement_function,
85 // replacement_function: A pointer to the function that should
103 void *replacement_function,
H A Dpreamble_patcher_with_stub.cpp51 void* replacement_function,
56 (NULL == replacement_function) ||
150 reinterpret_cast<unsigned char*>(replacement_function) -
49 RawPatchWithStub( void* target_function, void* replacement_function, unsigned char* preamble_stub, size_t stub_size, size_t* bytes_needed) argument
/external/chromium_org/third_party/tcmalloc/chromium/src/windows/
H A Dauto_testing_hook.h89 T replacement_function,
91 return AutoTestingHookImpl<T>(target_function, replacement_function, do_it);
95 T replacement_function,
98 replacement_function, do_it);
117 AutoTestingHookImpl(T target_function, T replacement_function, bool do_it) argument
120 replacement_function_(replacement_function),
124 replacement_function,
88 MakeTestingHook(T target_function, T replacement_function, bool do_it) argument
94 MakeTestingHookHolder(T target_function, T replacement_function, bool do_it) argument
H A Dpreamble_patcher.h168 T replacement_function,
174 (void*)(replacement_function),
192 // @param replacement_function Your replacement function which
204 T replacement_function,
227 return RawPatch((void*)existing_function, (void*)replacement_function,
240 // @param replacement_function A pointer to the function that should
265 void* replacement_function,
277 // @param replacement_function Pointer to the function target_function
293 void* replacement_function,
372 // @param replacement_function
167 Patch(T target_function, T replacement_function, T* original_function_stub) argument
202 Patch(LPCTSTR module_name, LPCSTR function_name, T replacement_function, T* original_function_stub) argument
[all...]
H A Dpreamble_patcher_with_stub.cc57 void* replacement_function,
62 (NULL == replacement_function) ||
113 // mov rax, <replacement_function>
117 replacement_function) - reinterpret_cast<__int64>(target) - 5;
236 reinterpret_cast<void*>(&replacement_function),
241 // Now update replacement_function to point to the trampoline
242 replacement_function = preamble_stub + trampoline_pos;
260 reinterpret_cast<unsigned char*>(replacement_function) -
55 RawPatchWithStub( void* target_function, void* replacement_function, unsigned char* preamble_stub, unsigned long stub_size, unsigned long* bytes_needed) argument
H A Dpreamble_patcher.cc79 // mov rax, <replacement_function>
157 void* target_function, void *replacement_function,
174 replacement_function,
222 void* replacement_function,
224 if (!target_function || !replacement_function || !original_function_stub ||
225 (*original_function_stub) || target_function == replacement_function) {
256 target_function, replacement_function, preamble_stub,
291 void* replacement_function,
293 SIDESTEP_ASSERT(target_function && replacement_function &&
295 if (!target_function || !replacement_function ||
156 RawPatchWithStubAndProtections( void* target_function, void *replacement_function, unsigned char* preamble_stub, unsigned long stub_size, unsigned long* bytes_needed) argument
221 RawPatch(void* target_function, void* replacement_function, void** original_function_stub) argument
290 Unpatch(void* target_function, void* replacement_function, void* original_function_stub) argument
[all...]
/external/chromium_org/third_party/tcmalloc/vendor/src/windows/
H A Dauto_testing_hook.h89 T replacement_function,
91 return AutoTestingHookImpl<T>(target_function, replacement_function, do_it);
95 T replacement_function,
98 replacement_function, do_it);
117 AutoTestingHookImpl(T target_function, T replacement_function, bool do_it) argument
120 replacement_function_(replacement_function),
124 replacement_function,
88 MakeTestingHook(T target_function, T replacement_function, bool do_it) argument
94 MakeTestingHookHolder(T target_function, T replacement_function, bool do_it) argument
H A Dpreamble_patcher.h168 T replacement_function,
174 (void*)(replacement_function),
192 // @param replacement_function Your replacement function which
204 T replacement_function,
227 return RawPatch((void*)existing_function, (void*)replacement_function,
240 // @param replacement_function A pointer to the function that should
265 void* replacement_function,
277 // @param replacement_function Pointer to the function target_function
293 void* replacement_function,
372 // @param replacement_function
167 Patch(T target_function, T replacement_function, T* original_function_stub) argument
202 Patch(LPCTSTR module_name, LPCSTR function_name, T replacement_function, T* original_function_stub) argument
[all...]
H A Dpreamble_patcher_with_stub.cc57 void* replacement_function,
62 (NULL == replacement_function) ||
113 // mov rax, <replacement_function>
117 replacement_function) - reinterpret_cast<__int64>(target) - 5;
236 reinterpret_cast<void*>(&replacement_function),
241 // Now update replacement_function to point to the trampoline
242 replacement_function = preamble_stub + trampoline_pos;
260 reinterpret_cast<unsigned char*>(replacement_function) -
55 RawPatchWithStub( void* target_function, void* replacement_function, unsigned char* preamble_stub, unsigned long stub_size, unsigned long* bytes_needed) argument
H A Dpreamble_patcher.cc79 // mov rax, <replacement_function>
157 void* target_function, void *replacement_function,
174 replacement_function,
222 void* replacement_function,
224 if (!target_function || !replacement_function || !original_function_stub ||
225 (*original_function_stub) || target_function == replacement_function) {
256 target_function, replacement_function, preamble_stub,
291 void* replacement_function,
293 SIDESTEP_ASSERT(target_function && replacement_function &&
295 if (!target_function || !replacement_function ||
156 RawPatchWithStubAndProtections( void* target_function, void *replacement_function, unsigned char* preamble_stub, unsigned long stub_size, unsigned long* bytes_needed) argument
221 RawPatch(void* target_function, void* replacement_function, void** original_function_stub) argument
290 Unpatch(void* target_function, void* replacement_function, void* original_function_stub) argument
[all...]

Completed in 369 milliseconds