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

Unified Diff: pkg/compiler/lib/src/universe/world_builder.dart

Issue 2742283002: Add ConstantUse to WorldImpact (Closed)
Patch Set: Cleanup. Created 3 years, 9 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/compiler/lib/src/universe/world_builder.dart
diff --git a/pkg/compiler/lib/src/universe/world_builder.dart b/pkg/compiler/lib/src/universe/world_builder.dart
index 3bb4478a6b4a6171b16735a3b5713e859ef77e24..d066bfece3b6a7e599c3f07b26377672919c5a2e 100644
--- a/pkg/compiler/lib/src/universe/world_builder.dart
+++ b/pkg/compiler/lib/src/universe/world_builder.dart
@@ -10,11 +10,14 @@ import '../common.dart';
import '../common/names.dart' show Identifiers;
import '../common/resolution.dart' show Resolution;
import '../common_elements.dart';
+import '../constants/values.dart';
import '../elements/elements.dart';
import '../elements/entities.dart';
import '../elements/resolution_types.dart';
import '../elements/types.dart';
import '../js_backend/backend.dart' show JavaScriptBackend;
+import '../js_backend/constant_handler_javascript.dart'
+ show JavaScriptConstantCompiler;
import '../js_backend/native_data.dart' show NativeClassData;
import '../universe/class_set.dart';
import '../universe/function_set.dart' show FunctionSetBuilder;
@@ -22,7 +25,14 @@ import '../util/enumset.dart';
import '../util/util.dart';
import '../world.dart' show World, ClosedWorld, ClosedWorldImpl, OpenWorld;
import 'selector.dart' show Selector;
-import 'use.dart' show DynamicUse, DynamicUseKind, StaticUse, StaticUseKind;
+import 'use.dart'
+ show
+ ConstantUse,
+ ConstantUseKind,
+ DynamicUse,
+ DynamicUseKind,
+ StaticUse,
+ StaticUseKind;
part 'codegen_world_builder.dart';
part 'member_usage.dart';
@@ -163,12 +173,11 @@ abstract class WorldBuilder {
Iterable<DartType> get isChecks;
/// All directly instantiated types, that is, the types of the directly
+ /// instantiated classes.
+ // TODO(johnniwinther): Improve semantic precision.
+ Iterable<InterfaceType> get instantiatedTypes;
/// Registers that [type] is checked in this world builder. The unaliased type
/// is returned.
void registerIsCheck(DartType type);
-
- /// instantiated classes.
- // TODO(johnniwinther): Improve semantic precision.
- Iterable<InterfaceType> get instantiatedTypes;
}

Powered by Google App Engine
This is Rietveld 408576698