javascript - Inline Caching in v8 -
i understand inline caching helpful when particular accesses repeatedly executed @ same location. not consider accesses made seperately.
for example,
for(i=0;i<1000;i++) obj.x;
here inline caching helpful since each access made independently. consider following
obj.x; obj.x; .... 1000 times..
in case, inline caching not helpful. true?
if case, point of patching inline caching stub @ locations/accesses not repeated.
inline caches persist across function calls single accesses benefit when inside function. it's not possible know how many times function called.
Comments
Post a Comment