Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index b02c6661f22db3b62391c67a47bbe47d612c9a9f..1ac72a04b50802af9d399350c15aeb7b91ffd8f8 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -416,12 +416,10 @@ class HGraph final : public ZoneObject { |
void MarkDependsOnEmptyArrayProtoElements() { |
// Add map dependency if not already added. |
if (depends_on_empty_array_proto_elements_) return; |
- Map::AddDependentCompilationInfo( |
- handle(isolate()->initial_object_prototype()->map()), |
- DependentCode::kElementsCantBeAddedGroup, info()); |
- Map::AddDependentCompilationInfo( |
- handle(isolate()->initial_array_prototype()->map()), |
- DependentCode::kElementsCantBeAddedGroup, info()); |
+ info()->dependencies()->AssumeElementsCantBeAdded( |
+ handle(isolate()->initial_object_prototype()->map())); |
+ info()->dependencies()->AssumeElementsCantBeAdded( |
+ handle(isolate()->initial_array_prototype()->map())); |
depends_on_empty_array_proto_elements_ = true; |
} |