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

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

Issue 2616653003: Use elements/types.dart in codegen.dart (Closed)
Patch Set: dartfmt Created 3 years, 11 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/compiler/lib/src/elements/types.dart ('k') | pkg/compiler/lib/src/ssa/codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index e0cc2538821e599128969aafb10c9f75e528386a..dba5003f7da64737b084a925ca598651bc43ad49 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -1099,11 +1099,8 @@ class JavaScriptBackend extends Backend {
void computeImpactForInstantiatedConstantType(
DartType type, WorldImpactBuilder impactBuilder) {
- DartType instantiatedType =
- type.isFunctionType ? commonElements.functionType : type;
if (type is InterfaceType) {
- impactBuilder
- .registerTypeUse(new TypeUse.instantiation(instantiatedType));
+ impactBuilder.registerTypeUse(new TypeUse.instantiation(type));
if (classNeedsRtiField(type.element)) {
impactBuilder.registerStaticUse(new StaticUse.staticInvoke(
// TODO(johnniwinther): Find the right [CallStructure].
« no previous file with comments | « pkg/compiler/lib/src/elements/types.dart ('k') | pkg/compiler/lib/src/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698