Index: pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart |
diff --git a/pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart b/pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart |
index 04c4a66cd9804b47df197deff3dd96f3fee891d2..f09c86b210d6969bb55f4de14d8bda76bde7bce1 100644 |
--- a/pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart |
+++ b/pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart |
@@ -73,8 +73,13 @@ class KernelBackendStrategy implements BackendStrategy { |
NativeBasicData nativeBasicData, |
ClosedWorld closedWorld, |
SelectorConstraintsStrategy selectorConstraintsStrategy) { |
- return new KernelCodegenWorldBuilder(closedWorld.elementEnvironment, |
- nativeBasicData, closedWorld, selectorConstraintsStrategy); |
+ KernelFrontEndStrategy frontendStrategy = _compiler.frontendStrategy; |
+ return new KernelCodegenWorldBuilder( |
+ frontendStrategy.elementMap, |
+ closedWorld.elementEnvironment, |
+ nativeBasicData, |
+ closedWorld, |
+ selectorConstraintsStrategy); |
} |
@override |
@@ -119,7 +124,8 @@ class KernelCodegenWorkItem extends CodegenWorkItem { |
final CodegenRegistry registry; |
KernelCodegenWorkItem(this._backend, this._closedWorld, this.element) |
- : registry = new CodegenRegistry(element); |
+ : registry = |
+ new CodegenRegistry(_closedWorld.elementEnvironment, element); |
@override |
WorldImpact run() { |