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

Unified Diff: pkg/kernel/test/class_hierarchy_bench.dart

Issue 2904203002: Extract ClassHierarchyImpl implementation from ClassHierarchy. (Closed)
Patch Set: Rename ClassHierarchyImpl to ClosedWorldClassHierarchy. Created 3 years, 7 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 | « pkg/kernel/lib/transformations/treeshaker.dart ('k') | pkg/kernel/test/class_hierarchy_membench.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/test/class_hierarchy_bench.dart
diff --git a/pkg/kernel/test/class_hierarchy_bench.dart b/pkg/kernel/test/class_hierarchy_bench.dart
index 5f2f34f9ff18d2de545d2a0ab6e3e68ab3ee86ba..02d6b0cc93150004aaa917a1441ea1f0f5dfc434 100644
--- a/pkg/kernel/test/class_hierarchy_bench.dart
+++ b/pkg/kernel/test/class_hierarchy_bench.dart
@@ -55,13 +55,13 @@ main(List<String> args) {
int hotBuildTime = watch.elapsedMilliseconds ~/ numBuildTrials;
int hierarchyCount = int.parse(options['cycle']);
- var hierarchies = <ClassHierarchy>[];
+ var hierarchies = <ClosedWorldClassHierarchy>[];
for (int i = 0; i < hierarchyCount; i++) {
hierarchies.add(buildHierarchy());
}
int currentHierarchy = 0;
- ClassHierarchy getClassHierarchy() {
+ ClosedWorldClassHierarchy getClassHierarchy() {
currentHierarchy = (currentHierarchy + 1) % hierarchies.length;
return hierarchies[currentHierarchy];
}
« no previous file with comments | « pkg/kernel/lib/transformations/treeshaker.dart ('k') | pkg/kernel/test/class_hierarchy_membench.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698