Re: Register/Function Parm Mapping for 64-bit Was: isTemporaryID unrecognized selector…

2010-09-04 Thread Jerry Krinock
On 2010 Sep 04, at 18:48, Chris Parker wrote: > On x86_64: > > $rdi == arg0 (ObjC: self) > $rsi == arg1 (ObjC: op, or _cmd) > $rdx == arg2 (ObjC: first arg of method) > $rcx == arg3 (ObjC: second arg of method) > $r8 == arg4 > etc. > > On armv6/7: > > $r0 == arg0 (ObjC: self) > $r1 == arg1 (O

Re: Register/Function Parm Mapping for 64-bit Was : isTemporaryID unrecognized selector…

2010-09-04 Thread Kyle Sluder
On Sep 4, 2010, at 4:16 PM, Gideon King wrote: > I'm afraid the abi documentation was above my head. Seems strange to me that > we should be looking at a *draft* document for *AMD64*, which contains no > mention of objective-c methods, to try to understand how to interpret what's > going on -

Re: Register/Function Parm Mapping for 64-bit Was: isTemporaryID unrecognized selector…

2010-09-04 Thread Chris Parker
On 4 Sep 2010, at 4:16 PM, Gideon King wrote: > I'm afraid the abi documentation was above my head. Seems strange to me that > we should be looking at a *draft* document for *AMD64*, which contains no > mention of objective-c methods, to try to understand how to interpret what's > going on - s

Re: Register/Function Parm Mapping for 64-bit Was: isTemporaryID unrecognized selector…

2010-09-04 Thread Gideon King
I poked around blindly :-) I'm afraid the abi documentation was above my head. Seems strange to me that we should be looking at a *draft* document for *AMD64*, which contains no mention of objective-c methods, to try to understand how to interpret what's going on - surely there's some documenta

Re: Register/Function Parm Mapping for 64-bit Was: isTemporaryID unrecognized selector…

2010-09-04 Thread Nick Zitzmann
On Sep 4, 2010, at 1:50 PM, Jerry Krinock wrote: > So did you ever find out the mapping between function parameters and > registers on the 64-bit Intel architecture, or did you just poke around > blindly in all the registers? Read this: Basic

Re: Register/Function Parm Mapping for 64-bit Was: isTemporaryID unrecognized selector…

2010-09-04 Thread Velocityboy
On Sep 4, 2010, at 12:50 PM, Jerry Krinock wrote: > > On 2010 Sep 03, at 21:25, Gideon King wrote: > >> I was able to track it down by going to the >> maintainInverseRelationship:forProperty:oldDestination:newDestination: >> method call in the stack, and finding the entity in register 12. > >

Register/Function Parm Mapping for 64-bit Was : isTemporaryID unrecognized selector…

2010-09-04 Thread Jerry Krinock
On 2010 Sep 03, at 21:25, Gideon King wrote: > I was able to track it down by going to the > maintainInverseRelationship:forProperty:oldDestination:newDestination: method > call in the stack, and finding the entity in register 12. So did you ever find out the mapping between function parameter