Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 0d06209b613db0f9dc46d32dbab532591edd720d..c874e70a7db7640f1e627f4737a05fc71445bbd8 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -473,6 +473,11 @@ HValue* CodeStubGraphBuilder<CreateAllocationSiteStub>::BuildCodeStub() { |
HObjectAccess::ForAllocationSiteTransitionInfo(), |
initial_elements_kind); |
+ // Unlike literals, constructed arrays don't have nested sites |
+ Add<HStoreNamedField>(object, |
+ HObjectAccess::ForAllocationSiteNestedSite(), |
+ graph()->GetConstant0()); |
+ |
// Store an empty fixed array for the code dependency. |
HConstant* empty_fixed_array = |
Add<HConstant>(isolate()->factory()->empty_fixed_array()); |