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 e45cc79e84e776a198cfefc2d17ca3535b97bee6..f74993dfb75e9daceb4ba4e752bb4b580bc68fcf 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -2627,6 +2627,11 @@ class JavaScriptImpactTransformer extends ImpactTransformer { |
BackendImpacts get impacts => backend.impacts; |
+ // TODO(johnniwinther): Avoid this dependency. |
+ ResolutionEnqueuer get resolutionEnqueuer { |
+ return backend.compiler.enqueuer.resolution; |
+ } |
+ |
@override |
WorldImpact transformResolutionImpact(ResolutionImpact worldImpact) { |
TransformedWorldImpact transformed = |
@@ -2786,8 +2791,7 @@ class JavaScriptImpactTransformer extends ImpactTransformer { |
registerBackendImpact(transformed, impacts.closure); |
LocalFunctionElement closure = staticUse.element; |
if (closure.type.containsTypeVariables) { |
- backend.compiler.enqueuer.resolution.universe |
- .closuresWithFreeTypeVariables |
+ resolutionEnqueuer.universe.closuresWithFreeTypeVariables |
.add(closure); |
registerBackendImpact(transformed, impacts.computeSignature); |
} |
@@ -2817,6 +2821,11 @@ class JavaScriptImpactTransformer extends ImpactTransformer { |
} |
} |
+ for (native.NativeBehavior behavior in worldImpact.nativeData) { |
+ resolutionEnqueuer.nativeEnqueuer |
+ .registerNativeBehavior(behavior, worldImpact); |
+ } |
+ |
return transformed; |
} |