Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index a4451d7a0891bc2a07d8b9f3117053b1c644886c..b162328be0162ee5574f6a1c840e2413d3d7606e 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; |
} |