| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index 13f24d5d1076e2950ff25208614cae91169c96b0..f1b30ef0d3e4dfef09a33aa4b1481e345af59424 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -1737,7 +1737,11 @@ 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_allocation_site_transitioning || FLAG_allocation_site_pretenuring)
|
| + ? 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.
|
|
|