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

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

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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/nodes.dart ('k') | lib/compiler/implementation/util/uri_extras.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/tracer.dart
diff --git a/lib/compiler/implementation/ssa/tracer.dart b/lib/compiler/implementation/ssa/tracer.dart
index 4c3fcffa2fe2fa4e447e104bd1b2754681f497a0..b08bfd0a2bd5cfb563777136519a6c0014d13ce1 100644
--- a/lib/compiler/implementation/ssa/tracer.dart
+++ b/lib/compiler/implementation/ssa/tracer.dart
@@ -446,7 +446,7 @@ class HInstructionStringifier implements HVisitor<String> {
buf.add(", ");
}
buf.add("default: B");
- buf.add(node.block.successors.last().id);
+ buf.add(node.block.successors.last.id);
return buf.toString();
}
@@ -472,7 +472,7 @@ class HInstructionStringifier implements HVisitor<String> {
}
return "Try: $tryBlock, Catch: $catchBlock, Finally: $finallyBlock, "
- "Join: B${successors.last().id}";
+ "Join: B${successors.last.id}";
}
String visitTypeGuard(HTypeGuard node) {
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | lib/compiler/implementation/util/uri_extras.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698