Index: pkg/compiler/lib/src/js_backend/element_strategy.dart |
diff --git a/pkg/compiler/lib/src/js_backend/element_strategy.dart b/pkg/compiler/lib/src/js_backend/element_strategy.dart |
index b58b3c446df1850d9ed78d7bb953334937658850..dbc044cda9046f4ff01d6776f317c36047e49804 100644 |
--- a/pkg/compiler/lib/src/js_backend/element_strategy.dart |
+++ b/pkg/compiler/lib/src/js_backend/element_strategy.dart |
@@ -51,12 +51,8 @@ class ElementBackendStrategy implements BackendStrategy { |
NativeBasicData nativeBasicData, |
ClosedWorld closedWorld, |
SelectorConstraintsStrategy selectorConstraintsStrategy) { |
- return new ElementCodegenWorldBuilderImpl( |
- _compiler.backend.constants, |
- closedWorld.elementEnvironment, |
- nativeBasicData, |
- closedWorld, |
- selectorConstraintsStrategy); |
+ return new ElementCodegenWorldBuilderImpl(closedWorld.elementEnvironment, |
+ nativeBasicData, closedWorld, selectorConstraintsStrategy); |
} |
@override |
@@ -159,7 +155,7 @@ class ElementCodegenWorkItem extends CodegenWorkItem { |
MemberElement get element => resolvedAst.element; |
WorldImpact run() { |
- registry = new CodegenRegistry(_closedWorld.elementEnvironment, element); |
+ registry = new CodegenRegistry(element); |
return _backend.codegen(this, _closedWorld); |
} |