• vitalyr@chromium.org's avatar
    Custom call IC-s for String.prototype.{charAt,charCodeAt}. · ad0e3890
    vitalyr@chromium.org authored
    These string methods can be composed from two basic blocks: charCodeAt
    and fromCharCode, both of which have fast cases for certain types of
    inputs. In this patch these two blocks are refactored to allow
    generating the fast cases without having to jump around the slow
    cases. In the slow cases since they can now be invoked both from
    inline runtime functions and from IC stubs we either have to
    save/restore state of the current frame or enter/leave a new internal
    frame. This is handled by new RuntimeCallHelper interface. Its
    implementation for virtual frame is based on FrameRegisterState class
    extracted from DeferredCode class.
    
    Review URL: http://codereview.chromium.org/2087009
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4733 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    ad0e3890
objects.h 183 KB