Lines Matching refs:trampoline
692 uptr trampoline = AllocateMemoryForTrampoline(old_func, kDirectBranchLength); in OverrideFunctionWithRedirectJump() local
693 if (!trampoline) in OverrideFunctionWithRedirectJump()
695 WriteDirectBranch(trampoline, new_func); in OverrideFunctionWithRedirectJump()
704 WriteJumpInstruction(old_func, FIRST_32_SECOND_64(new_func, trampoline)); in OverrideFunctionWithRedirectJump()
729 uptr trampoline = AllocateMemoryForTrampoline(old_func, trampoline_length); in OverrideFunctionWithHotPatch() local
730 if (!trampoline) in OverrideFunctionWithHotPatch()
732 if (!CopyInstructions(trampoline, old_func, instruction_size)) in OverrideFunctionWithHotPatch()
734 WriteDirectBranch(trampoline + instruction_size, in OverrideFunctionWithHotPatch()
736 *orig_old_func = trampoline; in OverrideFunctionWithHotPatch()
779 uptr trampoline = AllocateMemoryForTrampoline(old_func, trampoline_length); in OverrideFunctionWithTrampoline() local
780 if (!trampoline) in OverrideFunctionWithTrampoline()
782 if (!CopyInstructions(trampoline, old_func, instructions_length)) in OverrideFunctionWithTrampoline()
784 WriteDirectBranch(trampoline + instructions_length, in OverrideFunctionWithTrampoline()
786 *orig_old_func = trampoline; in OverrideFunctionWithTrampoline()