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

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

Issue 12018015: Implement substitution for type variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed obsolete function. Created 7 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: 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 3f0a0b6652d1dc57b8f5a80a520b7a6abbea840f..78dc24afdd99aa6e422519ae17d28510f6bd3672 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
@@ -2395,15 +2395,13 @@ abstract class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
checkType(input, type);
attachLocationToLast(node);
}
- if (node.hasArgumentChecks()) {
+ if (node.hasArgumentsCheck()) {
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());
- }
+ use(node.checkCall);
+ result = new js.Binary('&&', result, pop());
push(result, node);
}
if (node.nullOk) {

Powered by Google App Engine
This is Rietveld 408576698