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

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

Issue 10559044: Remove old code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | « no previous file | no next file » | 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 ac2b3e8476ea3ec39edf122906df7d7c2fc4d7a3..512fbdc98d5563f20133e0e5bc29a36466838cbd 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -1262,7 +1262,7 @@ class HFieldGet extends HFieldAccess {
: super(element, <HInstruction>[receiver]);
HFieldGet.fromActivation(receiver) : this(null, receiver);
- HInstruction get receiver() => inputs.length == 1 ? inputs[0] : null;
+ HInstruction get receiver() => inputs[0];
accept(HVisitor visitor) => visitor.visitFieldGet(this);
@@ -1282,8 +1282,8 @@ class HFieldSet extends HFieldAccess {
HFieldSet.fromActivation(receiver, value)
: this(null, receiver, value);
- HInstruction get receiver() => inputs.length == 2 ? inputs[0] : null;
- HInstruction get value() => inputs.length == 2 ? inputs[1] : inputs[0];
+ HInstruction get receiver() => inputs[0];
+ HInstruction get value() => inputs[1];
accept(HVisitor visitor) => visitor.visitFieldSet(this);
void prepareGvn() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698