| Index: pkg/compiler/lib/src/ssa/builder.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
|
| index 913a8a1c27f2c51c3cf4a949fd448695b5ce77f1..c5afc8db7641c93e470b9014b65fbf98f014c5d4 100644
|
| --- a/pkg/compiler/lib/src/ssa/builder.dart
|
| +++ b/pkg/compiler/lib/src/ssa/builder.dart
|
| @@ -431,8 +431,6 @@ class SsaAstGraphBuilder extends ast.Visitor
|
| bool tryInlineMethod(MethodElement element, Selector selector, TypeMask mask,
|
| List<HInstruction> providedArguments, ast.Node currentNode,
|
| {ResolutionInterfaceType instanceType}) {
|
| - registry.registerStaticUse(new StaticUse.inlining(element));
|
| -
|
| if (nativeData.isJsInteropMember(element) &&
|
| !element.isFactoryConstructor) {
|
| // We only inline factory JavaScript interop constructors.
|
| @@ -582,6 +580,8 @@ class SsaAstGraphBuilder extends ast.Visitor
|
| }
|
|
|
| void doInlining() {
|
| + registry.registerStaticUse(new StaticUse.inlining(declaration));
|
| +
|
| // Add an explicit null check on the receiver before doing the
|
| // inlining. We use [element] to get the same name in the
|
| // NoSuchMethodError message as if we had called it.
|
|
|