Inline Caches: First Time
machine instructions
call A.f
call ic_miss
NULL
B obj = new C(3);
…
A.f()
inline cache
obj.g(3)
void VM::ic_miss() {
// 1. lookup target
// 2. update inline cache
// 3. continue at target
}
Previous slide
Next slide
Back to first slide
View graphic version