• bmeurer's avatar
    [runtime] Migrate Object.create to C++. · 6a51d311
    bmeurer authored
    There's no point in keeping the ObjectCreate JavaScript wrapper
    function, which even does allocation site pretenuring for the
    instances created via Object.create (where ObjectCreate itself is
    the AllocationSite), and does not offer any sane way forward.
    
    Instead introduce a new ObjectCreate C++ builtin, which currently
    serves as a baseline implementation, on top of which we can think
    about ways to optimize Object.create for the common case (i.e.
    frameworks such as Ember.js make heavy use of Object.create).
    
    R=cbruni@chromium.org
    TBR=hpayer@chromium.org
    
    Review URL: https://codereview.chromium.org/1558433002
    
    Cr-Commit-Position: refs/heads/master@{#33061}
    6a51d311
builtins.h 20.6 KB