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

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

Issue 12211012: Revert "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 5c663a67dbf04b91001fdbcf7ec7541e159916fe..81641181999efaadb306102e2660daa81908fb31 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
@@ -2363,13 +2363,15 @@ abstract class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
checkType(input, type);
attachLocationToLast(node);
}
- if (node.hasArgumentsCheck()) {
+ if (node.hasArgumentChecks()) {
InterfaceType interfaceType = type;
ClassElement cls = type.element;
Link<DartType> arguments = interfaceType.typeArguments;
js.Expression result = pop();
- use(node.checkCall);
- result = new js.Binary('&&', 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) {
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | sdk/lib/_internal/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698