Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 1525423002: Handle malformed elements in onElementResolved. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « no previous file | tests/compiler/dart2js/analyze_all_test.dart » ('j') | tests/compiler/dart2js/analyze_all_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698