where is inline cache in assembly in code ?

22 views
Skip to first unread message

이원준

unread,
Mar 30, 2015, 10:54:08 AM3/30/15
to v8-u...@googlegroups.com

EX) Point function
function Point(x, y) {
this.x = x;
this.y = y;
}
var p = new Point(0, 1);
var q = new Point(2, 3);

EX) access property x
mov ecx, x
mov eax
, obj
cmp
[eax + kMapOffset], 0xdeadbeef
jne miss
mov eax
, [eax + kPropertiesOffset]
mov eax
, [eax + 0xdeadbeef]
jmp
done
miss
:
call IC_Miss
done:

]
Uninitialized state -> Monomorphic state

I read manual mentioned above. But, I don't find 'access property x' compare part in the real source code (*.cpp file).

I think that compare part is in ic-64.cpp or stub-cache-x64.cpp. ( currently, i used x64 machine) 

where is inline cache miss part ??

Holly Pettit

unread,
Mar 30, 2015, 11:13:14 AM3/30/15
to v8-u...@googlegroups.com

이원준

unread,
Mar 30, 2015, 11:38:28 AM3/30/15
to v8-u...@googlegroups.com
?? I can't see ur reply.


2015년 3월 31일 화요일 오전 12시 13분 14초 UTC+9, Holly Pettit 님의 말:
Reply all
Reply to author
Forward
0 new messages