• mstarzinger@chromium.org's avatar
    Implement crankshaft support for nested object literals. · 7e7d4dfd
    mstarzinger@chromium.org authored
    This generates optimized code for deep-copying of nested object literal
    boilerplates which are statically known. Most of the boilerplates have
    already been generated at crankshaft time, so this optimization should
    kick in for virtually every object literal. Only nested object literal
    graphs up to a certain depth and containing up to a certain total number
    of properties are considered for this optimization. This will prevent
    explosion of code size due to large object literals (e.g. eval on JSON).
    Improves splay performance because object literals are created often.
    
    R=fschneider@chromium.org
    
    Review URL: http://codereview.chromium.org/8640001
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10061 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    7e7d4dfd
hydrogen-instructions.cc 54.8 KB