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

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

Issue 11418113: Substitution added to DartType (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 8 years, 1 month 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/builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index f4f1de817f9c49c6eb2ece0dc0bab0f2d42b0a2e..bee005e2e385e4054675a9e1b0e9dac4f852d9ff 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -1965,7 +1965,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
// } else {
// // We always create an empty else block to avoid critical edges.
// }
- //
+ //
// If there is any break in the body, we attach a synthetic
// label to the if.
HBasicBlock elseBlock = addNewBlock();
@@ -3119,12 +3119,12 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
} else if (type is InterfaceType) {
bool isFirstVariable = true;
InterfaceType interfaceType = type;
- bool hasTypeArguments = !interfaceType.arguments.isEmpty;
+ bool hasTypeArguments = !interfaceType.typeArguments.isEmpty;
if (!isInQuotes) template.add("'");
template.add(backend.namer.getName(type.element));
if (hasTypeArguments) {
template.add("<");
- for (DartType argument in interfaceType.arguments) {
+ for (DartType argument in interfaceType.typeArguments) {
if (!isFirstVariable) {
template.add(", ");
} else {
@@ -3157,7 +3157,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
HInstruction newObject) {
if (!compiler.world.needsRti(type.element)) return;
List<HInstruction> inputs = <HInstruction>[];
- type.arguments.forEach((DartType argument) {
+ type.typeArguments.forEach((DartType argument) {
inputs.add(analyzeTypeArgument(argument, currentNode));
});
callSetRuntimeTypeInfo(type.element, inputs, newObject);
@@ -3229,8 +3229,8 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
return;
}
if (compiler.world.needsRti(constructor.enclosingElement)) {
- if (!type.arguments.isEmpty) {
- type.arguments.forEach((DartType argument) {
+ if (!type.typeArguments.isEmpty) {
+ type.typeArguments.forEach((DartType argument) {
inputs.add(analyzeTypeArgument(argument, node));
});
}

Powered by Google App Engine
This is Rietveld 408576698