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

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

Issue 10834061: Resolve typedefs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated scope handling and type resolution Created 8 years, 5 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: lib/compiler/implementation/ssa/codegen.dart
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
index f9618acb09f095f284ea38eda5b77116c8318f99..c96933db2c25a0d7bcc6987c5f64957662cec382 100644
--- a/lib/compiler/implementation/ssa/codegen.dart
+++ b/lib/compiler/implementation/ssa/codegen.dart
@@ -2572,16 +2572,17 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
if (compiler.codegenWorld.rti.hasTypeArguments(type)) {
InterfaceType interfaceType = type;
ClassElement cls = type.element;
- Link<Type> arguments = interfaceType.arguments;
+ Link<Type> arguments = interfaceType.typeArguments;
buffer.add(' && ');
checkObject(node.typeInfoCall, '===');
- cls.typeParameters.forEach((name, _) {
+ for (TypeVariableType typeVariable in cls.typeVariables) {
buffer.add(' && ');
beginExpression(JSPrecedence.LOGICAL_AND_PRECEDENCE);
use(node.typeInfoCall, JSPrecedence.EQUALITY_PRECEDENCE);
- buffer.add(".${name.slowToString()} === '${arguments.head}'");
+ buffer.add(
+ ".${typeVariable} === '${arguments.head}'");
endExpression(JSPrecedence.LOGICAL_AND_PRECEDENCE);
- });
+ }
}
if (node.nullOk) {
expectedPrecedence = oldPrecedence;

Powered by Google App Engine
This is Rietveld 408576698