Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index b6498b1dbbce8786fa2d021df5196e7e274e0df6..bdd2f43c54dc897f6180f520455b226f564119a9 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -9344,16 +9344,10 @@ 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; |
- } |
+ PretenureFlag pretenure_flag = site_context->current()->GetPretenureMode(); |
+ |
+ site_context->current()->AddDependentCompilationInfo( |
+ AllocationSite::TENURING, top_info()); |
HInstruction* object = Add<HAllocate>(object_size_constant, type, |
pretenure_flag, instance_type, site_context->current()); |