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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/namer.dart

Issue 304153014: Remove element from DynamicType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix infinite loop. Created 6 years, 7 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: sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
index db55415182e84b9ad8f634441a81c8e36507756f..6c1efd080bcd37905cec337cf1fe5a31a206f81a 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
@@ -725,7 +725,7 @@ class Namer implements ClosureNamer {
/// Returns the runtime name for [element]. The result is not safe as an id.
String getRuntimeTypeName(Element element) {
- if (identical(element, compiler.dynamicClass)) return 'dynamic';
+ if (element == null) return 'dynamic';
return getNameForRti(element);
}
@@ -910,7 +910,7 @@ class Namer implements ClosureNamer {
}
String operatorIsType(DartType type) {
- if (type.kind == TypeKind.FUNCTION) {
+ if (type.isFunctionType) {
// TODO(erikcorry): Reduce from $isx to ix when we are minifying.
return '${operatorIsPrefix()}_${getFunctionTypeName(type)}';
}

Powered by Google App Engine
This is Rietveld 408576698