Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
index 9ca821b66d4d2e83218b6ebabd495f6adb829e3f..558b6fbfb4ba9bd0d057347ddfb8ae5a266e215f 100644 |
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
@@ -129,7 +129,7 @@ class KernelAstAdapter extends KernelToElementMapMixin |
} |
@override |
- CommonElements get commonElements => _compiler.commonElements; |
+ CommonElements get commonElements => _compiler.resolution.commonElements; |
@override |
ElementEnvironment get elementEnvironment => _compiler.elementEnvironment; |
@@ -241,7 +241,7 @@ class KernelAstAdapter extends KernelToElementMapMixin |
js.Name getNameForJsGetName(ir.Node argument, ConstantValue constant) { |
int index = _extractEnumIndexFromConstantValue( |
- constant, _compiler.commonElements.jsGetNameEnum); |
+ constant, _compiler.resolution.commonElements.jsGetNameEnum); |
if (index == null) return null; |
return _backend.namer |
.getNameForJsGetName(getNode(argument), JsGetName.values[index]); |
@@ -249,7 +249,7 @@ class KernelAstAdapter extends KernelToElementMapMixin |
js.Template getJsBuiltinTemplate(ConstantValue constant) { |
int index = _extractEnumIndexFromConstantValue( |
- constant, _compiler.commonElements.jsBuiltinEnum); |
+ constant, _compiler.resolution.commonElements.jsBuiltinEnum); |
if (index == null) return null; |
return _backend.emitter.builtinTemplateFor(JsBuiltin.values[index]); |
} |