• danno@chromium.org's avatar
    Better support for 'polymorphic' JS and external arrays · 5a9b2b3c
    danno@chromium.org authored
    Allow  keyed store/load stubs to switch between external array and fast JS arrays without forcing a state transition to the generic stub.
    
    There CL consists of two pieces of functionality. First, code stubs for fast element arrays don't immediately transition to the MEGAMORPHIC state when there's a map mismatch. Second, two ICs are cached per map for fast elements, the MONOMORPHIC version, and a new MEGAMORPHIC version that handles two or more different maps. Currently, the only array types supported by the MEGAMORPHIC stub are fast elements for objects and JSArrays.
    
    BUG=
    TEST=
    
    Review URL: http://codereview.chromium.org/6894003
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7917 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    5a9b2b3c
builtins.cc 54 KB