Speed up creation of Objects whose prototype has dictionary elements
authoradamk@chromium.org <adamk@chromium.org>
Wed, 22 Oct 2014 18:16:35 +0000 (18:16 +0000)
committeradamk@chromium.org <adamk@chromium.org>
Wed, 22 Oct 2014 18:16:35 +0000 (18:16 +0000)
commit98e0eac76f3f5f1334fb45b321995de1c13902e1
tree72636a0d72c3d1fad9774bbd62a8b1c96c5d33e8
parent04db7c8793d50bc64125a31539a458153f14f8aa
Speed up creation of Objects whose prototype has dictionary elements

This speeds up both the case from the bug (using Object.create) but also
takes care ofthe "{ __proto__: obj  }" syntax, which was previously (and
erroneously) being treated the same as setting the prototype dynamically
from script using the __proto__ setter or Object.setPrototypeOf.

BUG=chromium:422754
LOG=y
R=mvstanton@chromium.org

Review URL: https://codereview.chromium.org/667253002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24814 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/full-codegen-arm.cc
src/arm64/full-codegen-arm64.cc
src/compiler/ast-graph-builder.cc
src/ia32/full-codegen-ia32.cc
src/mips/full-codegen-mips.cc
src/mips64/full-codegen-mips64.cc
src/objects.cc
src/x64/full-codegen-x64.cc
src/x87/full-codegen-x87.cc
test/mjsunit/fast-prototype.js