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

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

Issue 10095014: Implement interface types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/nodes.dart
diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
index 43e19ffc4ef6f394b57c69f82497bd927ed1a65c..b284027b422b6e5515835ec825b78b0e43d3943a 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -2079,11 +2079,10 @@ class HIndexAssign extends HInvokeStatic {
}
class HIs extends HInstruction {
- // TODO(ahe): This should be a Type, not Element.
- final Element typeExpression;
+ final Type typeName;
final bool nullOk;
- HIs(this.typeExpression, HInstruction expression, [nullOk = false])
+ HIs(this.typeName, HInstruction expression, [nullOk = false])
: this.nullOk = nullOk, super(<HInstruction>[expression]);
HInstruction get expression() => inputs[0];
@@ -2093,7 +2092,7 @@ class HIs extends HInstruction {
accept(HVisitor visitor) => visitor.visitIs(this);
- toString() => "$expression is $typeExpression";
+ toString() => "$expression is $typeName";
}
class HIfBlockInformation {
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698