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

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

Issue 882713008: Move computation of method flags into model. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months 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/namer.dart
diff --git a/pkg/compiler/lib/src/js_backend/namer.dart b/pkg/compiler/lib/src/js_backend/namer.dart
index 7508513cf928d26777bb6a429275d172d3920e01..814f038d51d9d8cf8237d1d074ab7b9473ef5e94 100644
--- a/pkg/compiler/lib/src/js_backend/namer.dart
+++ b/pkg/compiler/lib/src/js_backend/namer.dart
@@ -865,7 +865,7 @@ class Namer implements ClosureNamer {
}
String getStaticClosureName(Element element) {
- assert(Elements.isStaticOrTopLevelFunction(element));
+ assert(invariant(element, Elements.isStaticOrTopLevelFunction(element)));
return getMappedGlobalName("${getNameX(element)}\$closure");
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/model.dart » ('j') | pkg/compiler/lib/src/js_emitter/model.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698