Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Unified Diff: src/hydrogen.h

Issue 1099473004: Reland "Refactor compilation dependency handling." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/compiler.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698