Chromium Code Reviews| 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 5bd42a15262408b0890760448a291889624241d7..dc0b7a3e5d4e25f7131b79baa57506720ba4b43b 100644 |
| --- a/pkg/compiler/lib/src/js_backend/backend.dart |
| +++ b/pkg/compiler/lib/src/js_backend/backend.dart |
| @@ -2425,6 +2425,8 @@ class JavaScriptBackend extends Backend { |
| } |
| void onElementResolved(Element element, TreeElements elements) { |
| + if (element.isMalformed) return; |
|
sigurdm
2015/12/16 13:20:38
Add comment when this can happen
Johnni Winther
2015/12/18 13:28:17
Done.
|
| + |
| if ((element.isFunction || element.isConstructor) && |
| annotations.noInline(element)) { |
| inlineCache.markAsNonInlinable(element); |