On Mon, Dec 30, 2013 at 5:25 PM, wei wang <[email protected]> wrote: > Hello, > > I learnt from somewhere (http://www.html5rocks.com/en/tutorials/speed/v8/ > the array section) that V8 will switch the array storage (for example from > array to hashtable) based on type-feedback. > > Could someone kindly point out that which source code files in V8 do this > "switching"? > > Thanks in advance. > > Wei
As Gregory mentioned in another reply, there is no single place that does that. You can try grepping the source tree for use sites of 'ElementsKind' and reading through the files that deal with object transitions (src/ic.cc, src/objects.cc, etc.) It's probably worth mentioning that the internal representation for arrays is used both for user-created arrays and for V8's hidden classes mechanism (and a bunch of other stuff besides.) -- -- v8-users mailing list [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
