Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index 1ac72a04b50802af9d399350c15aeb7b91ffd8f8..8617d385347a889430f0a86492cc3250da6f7a35 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -416,10 +416,8 @@ |
void MarkDependsOnEmptyArrayProtoElements() { |
// Add map dependency if not already added. |
if (depends_on_empty_array_proto_elements_) return; |
- info()->dependencies()->AssumeElementsCantBeAdded( |
- handle(isolate()->initial_object_prototype()->map())); |
- info()->dependencies()->AssumeElementsCantBeAdded( |
- handle(isolate()->initial_array_prototype()->map())); |
+ info()->dependencies()->AssumePropertyCell( |
+ isolate()->factory()->array_protector()); |
depends_on_empty_array_proto_elements_ = true; |
} |