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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart

Issue 12218007: Implement substitution for type variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/ssa/codegen.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
index e5caac120db18b73c4aee20e5b69d5e4ecce2b6a..002d178a5f9120ec4a37c89c5dd9ad080e589ef7 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
@@ -2358,17 +2358,6 @@ abstract class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
checkType(input, type);
attachLocationToLast(node);
}
- if (node.hasArgumentChecks()) {
- InterfaceType interfaceType = type;
- ClassElement cls = type.element;
- Link<DartType> arguments = interfaceType.typeArguments;
- js.Expression result = pop();
- for (int i = 0; i < node.checkCount; i++) {
- use(node.getCheck(i));
- result = new js.Binary('&&', result, pop());
- }
- push(result, node);
- }
if (node.nullOk) {
checkNull(input);
push(new js.Binary('||', pop(), pop()), node);

Powered by Google App Engine
This is Rietveld 408576698