| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index 75ea18d7edb33cdc9f143210041dc194741ad693..e43e5259e89cb5fae5f2669089781e8524c0af1d 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -1716,7 +1716,8 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| Handle<FixedArrayBase> constant_elements_values(
|
| FixedArrayBase::cast(constant_elements->get(1)));
|
|
|
| - AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE;
|
| + AllocationSiteMode allocation_site_mode = FLAG_track_allocation_sites
|
| + ? TRACK_ALLOCATION_SITE : DONT_TRACK_ALLOCATION_SITE;
|
| if (has_constant_fast_elements && !FLAG_allocation_site_pretenuring) {
|
| // If the only customer of allocation sites is transitioning, then
|
| // we can turn it off if we don't have anywhere else to transition to.
|
|
|