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

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

Issue 1123343008: Implement raw list checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update test expectations. Created 5 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: pkg/compiler/lib/src/js_backend/codegen/codegen.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
index a1b623fc25ece50a7c8c89729d428ab957b9f194..2998a5bc2f8db96bc219513f6f25360d220b7a74 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
@@ -358,7 +358,7 @@ class CodeGenerator extends tree_ir.StatementVisitor
giveup(node, 'type casts not implemented.');
}
DartType type = node.type;
- if (type is InterfaceType && type.typeArguments.isEmpty) {
+ if (type is InterfaceType && type.isRaw) {
glue.registerIsCheck(type, registry);
js.Expression value = visitExpression(node.receiver);
return emitSubtypeTest(node, value, type);

Powered by Google App Engine
This is Rietveld 408576698