[turbofan] Use FastCloneShallow[Array|Object]Stub if possible.
authormstarzinger <mstarzinger@chromium.org>
Tue, 21 Apr 2015 15:43:31 +0000 (08:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 21 Apr 2015 15:43:15 +0000 (15:43 +0000)
commitd1597b7d22d4bd7790715d486b4ceb404310adad
treeaa899cfea3ab4cd13663d6df40d204c5c58cfbb0
parentd20660e05eb9329cd7a0349b6afcbc794bc737c1
[turbofan] Use FastCloneShallow[Array|Object]Stub if possible.

This allows the JSIntrinsicLowering to optimize the cloning of literal
boilerplate objects using either the FastCloneShallowArrayStub or the
FastCloneShallowObjectStub when applicable.

R=mvstanton@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#27974}
src/ast.h
src/code-factory.cc
src/code-factory.h
src/compiler/ast-graph-builder.cc
src/compiler/js-intrinsic-lowering.cc
src/compiler/js-intrinsic-lowering.h
src/compiler/linkage.cc
src/full-codegen.cc
test/unittests/compiler/js-intrinsic-lowering-unittest.cc