| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index 95e95d4126599679e07c84db2d851ac7330ffc60..4bac8f5e95143e3d246060e1832aa7a9e97c654c 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -1678,6 +1678,14 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| FastCloneShallowArrayStub::Mode mode = has_constant_fast_elements
|
| ? FastCloneShallowArrayStub::CLONE_ELEMENTS
|
| : FastCloneShallowArrayStub::CLONE_ANY_ELEMENTS;
|
| +
|
| + // Tracking allocation info allows us to pre-transition later if it makes
|
| + // sense.
|
| + if (mode == FastCloneShallowArrayStub::CLONE_ANY_ELEMENTS &&
|
| + FLAG_use_allocation_site_info) {
|
| + mode = FastCloneShallowArrayStub::CLONE_ANY_ELEMENTS_WITH_ALLOCATION_INFO;
|
| + }
|
| +
|
| FastCloneShallowArrayStub stub(mode, length);
|
| __ CallStub(&stub);
|
| }
|
|
|