From 35a0296f6fef98e4197db496a3ee330103cf57eb Mon Sep 17 00:00:00 2001 From: Eric Buehl Date: Tue, 28 Apr 2015 21:20:21 -0700 Subject: [PATCH 1/2] support x86_64 return calling conventions --- Classes/Stubbing/KWIntercept.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/Stubbing/KWIntercept.m b/Classes/Stubbing/KWIntercept.m index b1a46ffe..e272cea2 100644 --- a/Classes/Stubbing/KWIntercept.m +++ b/Classes/Stubbing/KWIntercept.m @@ -62,6 +62,8 @@ IMP KWForwardingImplementationForMethodEncoding(const char* encoding) { const NSUInteger stretLengthThreshold = 4; #elif TARGET_CPU_X86 const NSUInteger stretLengthThreshold = 8; +#elif TARGET_CPU_X86_64 + const NSUInteger stretLengthThreshold = 16; #else // TODO: This just makes an assumption right now. Expand to support all // official architectures correctly. From ff4aed117d7fb78eaf49d495c164ae3ce9b2d744 Mon Sep 17 00:00:00 2001 From: Eric Buehl Date: Tue, 28 Apr 2015 21:32:32 -0700 Subject: [PATCH 2/2] spacing --- Classes/Stubbing/KWIntercept.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Stubbing/KWIntercept.m b/Classes/Stubbing/KWIntercept.m index e272cea2..79107895 100644 --- a/Classes/Stubbing/KWIntercept.m +++ b/Classes/Stubbing/KWIntercept.m @@ -63,7 +63,7 @@ IMP KWForwardingImplementationForMethodEncoding(const char* encoding) { #elif TARGET_CPU_X86 const NSUInteger stretLengthThreshold = 8; #elif TARGET_CPU_X86_64 - const NSUInteger stretLengthThreshold = 16; + const NSUInteger stretLengthThreshold = 16; #else // TODO: This just makes an assumption right now. Expand to support all // official architectures correctly.