• lrn@chromium.org's avatar
    Avoid size increase of snapshot. · 2c8680cc
    lrn@chromium.org authored
    The prototype of builtin functions is already unwritable, so we don't
    have to make it so (the default map for functions changes after builtins
    are initialized).
    
    We no longer need to make the prototype non-extensible, since all properties
    that are ever read by the bultins code has been added and frozen already.
    Adding properties to the prototype, or changing its __proto__, cannot affect
    code.
    
    Removing these two pieces of initialization code reduces the snapshot size
    by a few Kb.
    
    Review URL: http://codereview.chromium.org/7839028
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9166 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    2c8680cc
builtins.js 3.53 KB