Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 62e19e12755bab3cd7d410e613bc421f468b12b0..64a2817ef92aa3452928d9f84dbf572a9ea073b1 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -511,6 +511,22 @@ HValue* CodeStubGraphBuilder<CreateAllocationSiteStub>::BuildCodeStub() { |
AllocationSite::kNestedSiteOffset), |
graph()->GetConstant0()); |
+ // Pretenuring calculation fields. |
+ Add<HStoreNamedField>(object, |
+ HObjectAccess::ForAllocationSiteOffset( |
+ AllocationSite::kMementoFoundCountOffset), |
+ graph()->GetConstant0()); |
+ |
+ Add<HStoreNamedField>(object, |
+ HObjectAccess::ForAllocationSiteOffset( |
+ AllocationSite::kMementoCreateCountOffset), |
+ graph()->GetConstant0()); |
+ |
+ Add<HStoreNamedField>(object, |
+ HObjectAccess::ForAllocationSiteOffset( |
+ AllocationSite::kPretenureDecisionOffset), |
+ graph()->GetConstant0()); |
+ |
// Store an empty fixed array for the code dependency. |
HConstant* empty_fixed_array = |
Add<HConstant>(isolate()->factory()->empty_fixed_array()); |