On Fri, Feb 13, 2015 at 12:03 AM, Malek Musleh <malek.mus...@gmail.com> wrote:
> Hi, > > Is it possible to vary the size/ #of entries of the inline cache? I see > that its possible to enable/disable use of the IC, but I don't see an > option to adjust its size. > There's no such thing as *the* inline cache. In an average program, there are hundreds or thousands of ICs. Is there a hard limit to the table size, and if so, how is an entry marked > for replacement? > There is no table either. I'm not sure what your definition of "inline cache" is, but your questions are making it pretty obvious that V8 is using the term with a different meaning. > On Fri, Feb 13, 2015 at 10:52 AM, Ben Noordhuis <i...@bnoordhuis.nl> wrote: > > I believe the relevant code is in IC::UpdatePolymorphicIC() in > src/ic/ic.cc. The inline cache's size is hard-coded at 3 live > entries, after that it becomes megamorphic. Not quite. The size of a polymorphic IC is not hard-coded; it can grow to at most 4 entries. -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.