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

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

Issue 1957343002: Register NativeBehavior from WorldImpact. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. Created 4 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
« no previous file with comments | « pkg/compiler/lib/src/common/resolution.dart ('k') | pkg/compiler/lib/src/native/enqueue.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 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;
}
« no previous file with comments | « pkg/compiler/lib/src/common/resolution.dart ('k') | pkg/compiler/lib/src/native/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698