Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 6ec5ed9a5c300640993447ce5e130d91813214bf..a9a9e9666c91238d91d682e6ab58390cc0a58d14 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -117,6 +117,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); |
+ } |
} |