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

Unified Diff: runtime/vm/cha_test.cc

Issue 1186113011: Some cleanup and be more conservative when guessing cids: use only current leaf classes; otherwise … (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: y Created 5 years, 6 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 | « runtime/vm/cha.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cha_test.cc
diff --git a/runtime/vm/cha_test.cc b/runtime/vm/cha_test.cc
index 1cd95dc4e306ab9920c2135e55cabf7103618616..a7c998df3999b576aad8bcb9885e8bb829b26ee6 100644
--- a/runtime/vm/cha_test.cc
+++ b/runtime/vm/cha_test.cc
@@ -86,11 +86,11 @@ TEST_CASE(ClassHierarchyAnalysis) {
EXPECT(!cha.HasSubclasses(kSmiCid));
EXPECT(!cha.HasSubclasses(kNullCid));
- EXPECT(cha.HasSubclasses(class_a));
- EXPECT(cha.HasSubclasses(class_b));
- EXPECT(!cha.HasSubclasses(class_c));
+ EXPECT(CHA::HasSubclasses(class_a));
+ EXPECT(CHA::HasSubclasses(class_b));
+ EXPECT(!CHA::HasSubclasses(class_c));
cha.AddToLeafClasses(class_c);
- EXPECT(!cha.HasSubclasses(class_d));
+ EXPECT(!CHA::HasSubclasses(class_d));
cha.AddToLeafClasses(class_d);
EXPECT(!ContainsCid(cha.leaf_classes(), class_a.id()));
« no previous file with comments | « runtime/vm/cha.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698