| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 3c4ff159eb22b9b92595a5843f83c492c6c2d589..031fbb1341f087774eaa11cca936d001e1a026c9 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -9477,15 +9477,11 @@ HInstruction* HOptimizedGraphBuilder::BuildFastLiteral(
|
| HValue* object_size_constant = Add<HConstant>(
|
| boilerplate_object->map()->instance_size());
|
|
|
| - // We should pull pre-tenure mode from the allocation site.
|
| - // For now, just see what it says, and remark on it if it sez
|
| - // we should pretenure. That means the rudimentary counting in the garbage
|
| - // collector is having an effect.
|
| PretenureFlag pretenure_flag = isolate()->heap()->GetPretenureMode();
|
| if (FLAG_allocation_site_pretenuring) {
|
| - pretenure_flag = site_context->current()->GetPretenureMode()
|
| - ? TENURED
|
| - : NOT_TENURED;
|
| + pretenure_flag = site_context->current()->GetPretenureMode();
|
| + site_context->current()->AddDependentCompilationInfo(
|
| + AllocationSite::TENURING, top_info());
|
| }
|
|
|
| HInstruction* object = Add<HAllocate>(object_size_constant, type,
|
|
|