seniorObjective-C
Explain objc_msgSend fast path in ARM64 in detail
Updated May 17, 2026
Short answer
objc_msgSend uses cache lookup → hash bucket → direct branch to IMP via registers.
Deep explanation
On ARM64, objc_msgSend uses x0=receiver, x1=selector. It computes cache bucket index via selector hash. If hit, loads IMP into x17 and branches (br x17). No stack frame is created. On miss, slow path triggers method resolution and forwarding.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro