| 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 d6932e56cbd7d72fc8e13a556d07016b8f17c963..a60666070a0cf83438a3abc8167e44f6a4fd6da8 100644
|
| --- a/pkg/compiler/lib/src/js_backend/backend.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/backend.dart
|
| @@ -764,7 +764,7 @@ class JavaScriptBackend extends Backend {
|
|
|
| void registerCompileTimeConstantInternal(ConstantValue constant,
|
| Registry registry) {
|
| - DartType type = constant.computeType(compiler);
|
| + DartType type = constant.getType(compiler.coreTypes);
|
| registerInstantiatedConstantType(type, registry);
|
|
|
| if (constant.isFunction) {
|
| @@ -1951,7 +1951,7 @@ class JavaScriptBackend extends Backend {
|
| metadata.ensureResolved(compiler);
|
| ConstantValue value = metadata.constant.value;
|
| if (value == null) continue;
|
| - DartType type = value.computeType(compiler);
|
| + DartType type = value.getType(compiler.coreTypes);
|
| if (metaTargetsUsed.contains(type.element)) return true;
|
| }
|
| return false;
|
|
|