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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -