Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index f08c56e1f79856a4e445eb60fb1a072e1b3785b4..1211277bc65a0227e207c82759389150c658ea16 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -100,6 +100,12 @@ void LCodeGen::FinishCode(Handle<Code> code) { |
transition_maps_.at(i)->AddDependentCode( |
DependentCode::kTransitionGroup, code); |
} |
+ if (graph()->depends_on_empty_array_proto_elements()) { |
+ isolate()->initial_object_prototype()->map()->AddDependentCode( |
+ DependentCode::kElementsCantBeAddedGroup, code); |
+ isolate()->initial_array_prototype()->map()->AddDependentCode( |
+ DependentCode::kElementsCantBeAddedGroup, code); |
+ } |
} |