Lines Matching refs:trampoline
699 uptr trampoline = AllocateMemoryForTrampoline(old_func, kDirectBranchLength); in OverrideFunctionWithRedirectJump() local
700 if (!trampoline) in OverrideFunctionWithRedirectJump()
702 WriteDirectBranch(trampoline, new_func); in OverrideFunctionWithRedirectJump()
711 WriteJumpInstruction(old_func, FIRST_32_SECOND_64(new_func, trampoline)); in OverrideFunctionWithRedirectJump()
736 uptr trampoline = AllocateMemoryForTrampoline(old_func, trampoline_length); in OverrideFunctionWithHotPatch() local
737 if (!trampoline) in OverrideFunctionWithHotPatch()
739 if (!CopyInstructions(trampoline, old_func, instruction_size)) in OverrideFunctionWithHotPatch()
741 WriteDirectBranch(trampoline + instruction_size, in OverrideFunctionWithHotPatch()
743 *orig_old_func = trampoline; in OverrideFunctionWithHotPatch()
786 uptr trampoline = AllocateMemoryForTrampoline(old_func, trampoline_length); in OverrideFunctionWithTrampoline() local
787 if (!trampoline) in OverrideFunctionWithTrampoline()
789 if (!CopyInstructions(trampoline, old_func, instructions_length)) in OverrideFunctionWithTrampoline()
791 WriteDirectBranch(trampoline + instructions_length, in OverrideFunctionWithTrampoline()
793 *orig_old_func = trampoline; in OverrideFunctionWithTrampoline()