Home
last modified time | relevance | path

Searched refs:preamble_stub (Results 1 – 11 of 11) sorted by relevance

/external/chromium_org/third_party/tcmalloc/vendor/src/windows/
Dpreamble_patcher_with_stub.cc58 unsigned char* preamble_stub, in RawPatchWithStub() argument
63 (NULL == preamble_stub)) { in RawPatchWithStub()
94 memset(preamble_stub, 0xcc, stub_size); in RawPatchWithStub()
122 __int64 trampoline_offset = reinterpret_cast<__int64>(preamble_stub) in RawPatchWithStub()
150 preamble_stub + stub_bytes, in RawPatchWithStub()
158 preamble_stub + stub_bytes, &jump_bytes, in RawPatchWithStub()
176 preamble_stub + stub_bytes, &mov_bytes, in RawPatchWithStub()
183 memcpy(reinterpret_cast<void*>(preamble_stub + stub_bytes), in RawPatchWithStub()
219 (preamble_stub + stub_bytes + kRequiredStubJumpBytes)); in RawPatchWithStub()
224 preamble_stub[stub_bytes] = ASM_JMP32REL; in RawPatchWithStub()
[all …]
Dpreamble_patcher.cc158 unsigned char* preamble_stub, unsigned long stub_size, in RawPatchWithStubAndProtections() argument
175 preamble_stub, in RawPatchWithStubAndProtections()
246 unsigned char* preamble_stub = AllocPreambleBlockNear(target_function); in RawPatch() local
247 if (!preamble_stub) { in RawPatch()
253 DeleteUnsignedCharArray guard_preamble_stub(preamble_stub); in RawPatch()
256 target_function, replacement_function, preamble_stub, in RawPatch()
334 unsigned char* preamble_stub = reinterpret_cast<unsigned char*>( in Unpatch() local
346 disassembler.Disassemble(preamble_stub + preamble_bytes, cur_bytes); in Unpatch()
350 if (IsNearConditionalJump(preamble_stub + preamble_bytes, cur_bytes) || in Unpatch()
351 IsNearRelativeJump(preamble_stub + preamble_bytes, cur_bytes) || in Unpatch()
[all …]
Dpreamble_patcher.h392 unsigned char* preamble_stub,
422 unsigned char* preamble_stub,
/external/chromium_org/third_party/tcmalloc/chromium/src/windows/
Dpreamble_patcher_with_stub.cc58 unsigned char* preamble_stub, in RawPatchWithStub() argument
63 (NULL == preamble_stub)) { in RawPatchWithStub()
94 memset(preamble_stub, 0xcc, stub_size); in RawPatchWithStub()
122 __int64 trampoline_offset = reinterpret_cast<__int64>(preamble_stub) in RawPatchWithStub()
150 preamble_stub + stub_bytes, in RawPatchWithStub()
158 preamble_stub + stub_bytes, &jump_bytes, in RawPatchWithStub()
176 preamble_stub + stub_bytes, &mov_bytes, in RawPatchWithStub()
183 memcpy(reinterpret_cast<void*>(preamble_stub + stub_bytes), in RawPatchWithStub()
219 (preamble_stub + stub_bytes + kRequiredStubJumpBytes)); in RawPatchWithStub()
224 preamble_stub[stub_bytes] = ASM_JMP32REL; in RawPatchWithStub()
[all …]
Dpreamble_patcher.cc158 unsigned char* preamble_stub, unsigned long stub_size, in RawPatchWithStubAndProtections() argument
175 preamble_stub, in RawPatchWithStubAndProtections()
246 unsigned char* preamble_stub = AllocPreambleBlockNear(target_function); in RawPatch() local
247 if (!preamble_stub) { in RawPatch()
253 DeleteUnsignedCharArray guard_preamble_stub(preamble_stub); in RawPatch()
256 target_function, replacement_function, preamble_stub, in RawPatch()
334 unsigned char* preamble_stub = reinterpret_cast<unsigned char*>( in Unpatch() local
346 disassembler.Disassemble(preamble_stub + preamble_bytes, cur_bytes); in Unpatch()
350 if (IsNearConditionalJump(preamble_stub + preamble_bytes, cur_bytes) || in Unpatch()
351 IsNearRelativeJump(preamble_stub + preamble_bytes, cur_bytes) || in Unpatch()
[all …]
Dpreamble_patcher.h392 unsigned char* preamble_stub,
422 unsigned char* preamble_stub,
/external/chromium_org/tools/memory_watcher/
Dpreamble_patcher.cc20 unsigned char* preamble_stub, unsigned long stub_size, in RawPatchWithStubAndProtections() argument
39 preamble_stub, in RawPatchWithStubAndProtections()
91 unsigned char* preamble_stub = in RawPatch() local
94 if (!preamble_stub) { in RawPatch()
104 BOOL succeeded = VirtualProtect(preamble_stub, MAX_PREAMBLE_STUB_SIZE, in RawPatch()
108 delete[] preamble_stub; in RawPatch()
114 preamble_stub, in RawPatch()
119 delete[] preamble_stub; in RawPatch()
123 *original_function_stub = reinterpret_cast<void*>(preamble_stub); in RawPatch()
Dpreamble_patcher_with_stub.cc22 unsigned char* preamble_stub, in RawPatchWithStub() argument
27 (NULL == preamble_stub)) { in RawPatchWithStub()
69 replacement_function, preamble_stub, in RawPatchWithStub()
109 memcpy(reinterpret_cast<void*>(preamble_stub), in RawPatchWithStub()
121 (preamble_stub + preamble_bytes + 5)); in RawPatchWithStub()
126 preamble_stub[preamble_bytes] = ASM_JMP32REL; in RawPatchWithStub()
128 memcpy(reinterpret_cast<void*>(preamble_stub + preamble_bytes + 1), in RawPatchWithStub()
Dpreamble_patcher.h277 unsigned char* preamble_stub,
286 unsigned char* preamble_stub,
/external/chromium_org/sandbox/win/src/sidestep/
Dpreamble_patcher_with_stub.cpp52 unsigned char* preamble_stub, in RawPatchWithStub() argument
57 (NULL == preamble_stub)) { in RawPatchWithStub()
118 RawMemcpy(reinterpret_cast<void*>(preamble_stub), in RawPatchWithStub()
129 (preamble_stub + preamble_bytes + 5)); in RawPatchWithStub()
132 preamble_stub[preamble_bytes] = ASM_JMP32REL; in RawPatchWithStub()
134 RawMemcpy(reinterpret_cast<void*>(preamble_stub + preamble_bytes + 1), in RawPatchWithStub()
Dpreamble_patcher.h66 void* preamble_stub, size_t stub_size) { in Patch() argument
68 reinterpret_cast<unsigned char*>(preamble_stub), in Patch()
104 unsigned char* preamble_stub,