| Index: src/hydrogen-instructions.cc
|
| diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
|
| index b6cdd05c08cabc751d538092505cb9f9664c160c..6da6774aa8e87302bdd2a03a9f4f31f88d8216e7 100644
|
| --- a/src/hydrogen-instructions.cc
|
| +++ b/src/hydrogen-instructions.cc
|
| @@ -3308,10 +3308,7 @@ void HAllocate::HandleSideEffectDominator(GVNFlag side_effect,
|
| HValue* dominator) {
|
| ASSERT(side_effect == kChangesNewSpacePromotion);
|
| Zone* zone = block()->zone();
|
| - if (!FLAG_use_allocation_folding ||
|
| - isolate()->heap_profiler()->is_tracking_allocations()) {
|
| - return;
|
| - }
|
| + if (!FLAG_use_allocation_folding) return;
|
|
|
| // Try to fold allocations together with their dominating allocations.
|
| if (!dominator->IsAllocate()) {
|
|
|