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

Unified Diff: pkg/compiler/lib/src/js_backend/enqueuer.dart

Issue 2916893002: Handle int constant (Closed)
Patch Set: Updated cf. comments 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/compiler/lib/src/js_backend/enqueuer.dart
diff --git a/pkg/compiler/lib/src/js_backend/enqueuer.dart b/pkg/compiler/lib/src/js_backend/enqueuer.dart
index 9d0c36a65ed9ed38c8f008d942e058cc1ba6176c..245c7ec04c686a8fdee857742deb293347ddf3bd 100644
--- a/pkg/compiler/lib/src/js_backend/enqueuer.dart
+++ b/pkg/compiler/lib/src/js_backend/enqueuer.dart
@@ -10,9 +10,8 @@ import '../common/tasks.dart' show CompilerTask;
import '../common/work.dart' show WorkItem;
import '../common.dart';
import '../common_elements.dart' show ElementEnvironment;
-import '../elements/resolution_types.dart'
- show ResolutionDartType, ResolutionInterfaceType;
import '../elements/entities.dart';
+import '../elements/types.dart';
import '../enqueue.dart';
import '../options.dart';
import '../universe/world_builder.dart';
@@ -98,7 +97,7 @@ class CodegenEnqueuer extends EnqueuerImpl {
impactSource, worldImpact, _impactVisitor, impactUse);
}
- void _registerInstantiatedType(ResolutionInterfaceType type,
+ void _registerInstantiatedType(InterfaceType type,
{bool mirrorUsage: false, bool nativeUsage: false}) {
task.measure(() {
_worldBuilder.registerTypeInstantiation(type, _applyClassUse,
@@ -173,7 +172,7 @@ class CodegenEnqueuer extends EnqueuerImpl {
}
void processTypeUse(TypeUse typeUse) {
- ResolutionDartType type = typeUse.type;
+ DartType type = typeUse.type;
switch (typeUse.kind) {
case TypeUseKind.INSTANTIATION:
_registerInstantiatedType(type);
@@ -208,7 +207,7 @@ class CodegenEnqueuer extends EnqueuerImpl {
});
}
- void _registerIsCheck(ResolutionDartType type) {
+ void _registerIsCheck(DartType type) {
_worldBuilder.registerIsCheck(type);
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/element_strategy.dart ('k') | pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698