Quantcast
Channel: 睿论坛 - 最新话题
Viewing all articles
Browse latest Browse all 5702

发现了一个汇编函数违背了objc_msgsend的参数顺序,这样对吗?

$
0
0

@cris wrote:

+ (instancetype)dateWithTimeInterval:(NSTimeInterval)secsToBeAdded sinceDate:(NSDate *)date;

这是函数原型,按理说x2 是个NSTimeInterval的参数,可是这里x2是[NSDate date].

另外这里还需要一个参数x3,从反汇编来看,从头到脚都没有x3这个寄存器。这是64位的反汇编。。。

经过测试,这里第二个参数应该是6000秒,也就是100分钟。
假如一个参数是一个宏:#define secsToBeAdded 6000
这样汇编会能看到吗?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5702

Trending Articles