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

Unified Diff: lib/compiler/implementation/ssa/codegen.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/builder.dart ('k') | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/codegen.dart
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
index 09f624da902f16300122bbe88e5b5f642baab321..9fa33e8abc921a8b3e4925c63eae9764471fea4a 100644
--- a/lib/compiler/implementation/ssa/codegen.dart
+++ b/lib/compiler/implementation/ssa/codegen.dart
@@ -351,7 +351,7 @@ abstract class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
}
attachLocationToLast(HInstruction instruction) {
- attachLocation(expressionStack.last(), instruction);
+ attachLocation(expressionStack.last, instruction);
}
js.Node attachLocation(js.Node jsNode, HInstruction instruction) {
@@ -2693,7 +2693,7 @@ class SsaUnoptimizedCodeGenerator extends SsaCodeGenerator {
}
String currentLabel() {
- return labels.last();
+ return labels.last;
}
js.VariableUse generateStateUse()
@@ -2822,7 +2822,7 @@ class SsaUnoptimizedCodeGenerator extends SsaCodeGenerator {
void startBailoutCase(List<HBailoutTarget> bailouts1,
[List<HBailoutTarget> bailouts2 = const []]) {
- if (!defaultClauseUsedInBailoutStack.last() &&
+ if (!defaultClauseUsedInBailoutStack.last &&
bailouts1.length + bailouts2.length >= 2) {
currentContainer = new js.Block.empty();
currentBailoutSwitch.cases.add(new js.Default(currentContainer));
@@ -2831,7 +2831,7 @@ class SsaUnoptimizedCodeGenerator extends SsaCodeGenerator {
} else {
_handleBailoutCase(bailouts1);
_handleBailoutCase(bailouts2);
- currentContainer = currentBailoutSwitch.cases.last().body;
+ currentContainer = currentBailoutSwitch.cases.last.body;
}
}
« no previous file with comments | « lib/compiler/implementation/ssa/builder.dart ('k') | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698