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

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

Issue 2939033002: Towards compiling Hello World! (Closed)
Patch Set: Fix parameter ordering Created 3 years, 6 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
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 cef1cb3e42ee0eae78813859d12324df9fc16ac7..9ab811484f4c5ebb9a1aef0f579baceedb2fb83e 100644
--- a/pkg/compiler/lib/src/js_backend/element_strategy.dart
+++ b/pkg/compiler/lib/src/js_backend/element_strategy.dart
@@ -52,8 +52,12 @@ class ElementBackendStrategy implements BackendStrategy {
NativeBasicData nativeBasicData,
ClosedWorld closedWorld,
SelectorConstraintsStrategy selectorConstraintsStrategy) {
- return new ElementCodegenWorldBuilderImpl(closedWorld.elementEnvironment,
- nativeBasicData, closedWorld, selectorConstraintsStrategy);
+ return new ElementCodegenWorldBuilderImpl(
+ _compiler.backend.constants,
+ closedWorld.elementEnvironment,
+ nativeBasicData,
+ closedWorld,
+ selectorConstraintsStrategy);
}
@override
@@ -156,7 +160,7 @@ class ElementCodegenWorkItem extends CodegenWorkItem {
MemberElement get element => resolvedAst.element;
WorldImpact run() {
- registry = new CodegenRegistry(element);
+ registry = new CodegenRegistry(_closedWorld.elementEnvironment, element);
return _backend.codegen(this, _closedWorld);
}

Powered by Google App Engine
This is Rietveld 408576698