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

Unified Diff: pkg/kernel/lib/target/targets.dart

Issue 2918593003: Pass ClassHierarchy instead of creating it. (Closed)
Patch Set: 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
Index: pkg/kernel/lib/target/targets.dart
diff --git a/pkg/kernel/lib/target/targets.dart b/pkg/kernel/lib/target/targets.dart
index 0743b6716185611ca19e60f73c8627896956b09c..a6ea8ae1d3b4626a0a4f0f839c98890c6068c531 100644
--- a/pkg/kernel/lib/target/targets.dart
+++ b/pkg/kernel/lib/target/targets.dart
@@ -4,6 +4,7 @@
library kernel.target.targets;
import '../ast.dart';
+import '../class_hierarchy.dart';
import '../core_types.dart';
import '../transformations/treeshaker.dart' show ProgramRoot;
import 'flutter.dart';
@@ -71,7 +72,8 @@ abstract class Target {
///
/// These transformations should not be whole-program transformations. They
/// should expect that the program will contain external libraries.
- void performModularTransformations(CoreTypes coreTypes, Program program);
+ void performModularTransformations(
+ CoreTypes coreTypes, ClassHierarchy hierarchy, Program program);
/// Perform target-specific whole-program transformations.
///
@@ -96,7 +98,8 @@ class NoneTarget extends Target {
bool get strongMode => flags.strongMode;
String get name => 'none';
List<String> get extraRequiredLibraries => <String>[];
- void performModularTransformations(CoreTypes coreTypes, Program program) {}
+ void performModularTransformations(
+ CoreTypes coreTypes, ClassHierarchy hierarchy, Program program) {}
void performGlobalTransformations(CoreTypes coreTypes, Program program) {}
@override

Powered by Google App Engine
This is Rietveld 408576698