Lines Matching refs:trampoline
613 uptr trampoline = AllocateMemoryForTrampoline(old_func, kDirectBranchLength); in OverrideFunctionWithRedirectJump() local
614 if (!trampoline) in OverrideFunctionWithRedirectJump()
616 WriteDirectBranch(trampoline, new_func); in OverrideFunctionWithRedirectJump()
625 WriteJumpInstruction(old_func, FIRST_32_SECOND_64(new_func, trampoline)); in OverrideFunctionWithRedirectJump()
650 uptr trampoline = AllocateMemoryForTrampoline(old_func, trampoline_length); in OverrideFunctionWithHotPatch() local
651 if (!trampoline) in OverrideFunctionWithHotPatch()
653 CopyInstructions(trampoline, old_func, instruction_size); in OverrideFunctionWithHotPatch()
654 WriteDirectBranch(trampoline + instruction_size, in OverrideFunctionWithHotPatch()
656 *orig_old_func = trampoline; in OverrideFunctionWithHotPatch()
699 uptr trampoline = AllocateMemoryForTrampoline(old_func, trampoline_length); in OverrideFunctionWithTrampoline() local
700 if (!trampoline) in OverrideFunctionWithTrampoline()
702 CopyInstructions(trampoline, old_func, instructions_length); in OverrideFunctionWithTrampoline()
703 WriteDirectBranch(trampoline + instructions_length, in OverrideFunctionWithTrampoline()
705 *orig_old_func = trampoline; in OverrideFunctionWithTrampoline()