Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index d94f40e299dd47cbb312dee087f90c0cb18958ab..c74df50b3c6d4ad98c5b40c467807f9d0c2a2232 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -95,6 +95,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); |
+ } |
} |