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 fe3684afbe7aee6aac962eace26304451347359d..6ac1c1565c33a6a71461114535f1fa09e9a05d09 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -2490,9 +2490,11 @@ class JavaScriptBackend extends Backend { |
return; |
} |
- if ((element.isFunction || element.isConstructor) && |
- annotations.noInline(element)) { |
- inlineCache.markAsNonInlinable(element); |
+ Element implementation = element.implementation; |
+ if (element.isFunction || element.isConstructor) { |
+ if (annotations.noInline(implementation)) { |
+ inlineCache.markAsNonInlinable(implementation); |
+ } |
} |
LibraryElement library = element.library; |