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

Side by Side Diff: tests/compiler/dart2js/value_range_test.dart

Issue 11316241: Put back the unit test on optimizing removeLast to pop. Also don't forget that jsArrayRemoveLast mi… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'compiler_helper.dart'; 5 import 'compiler_helper.dart';
6 6
7 const int REMOVED = 0; 7 const int REMOVED = 0;
8 const int ABOVE_ZERO = 1; 8 const int ABOVE_ZERO = 1;
9 const int BELOW_LENGTH = 2; 9 const int BELOW_LENGTH = 2;
10 const int KEPT = 3; 10 const int KEPT = 3;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 """, 58 """,
59 KEPT, 59 KEPT,
60 60
61 """ 61 """
62 main() { 62 main() {
63 var a = new List(); 63 var a = new List();
64 return a.removeLast(); 64 return a.removeLast();
65 } 65 }
66 """, 66 """,
67 REMOVED, // TODO(6829): Put it back to KEPT 67 KEPT,
68 68
69 """ 69 """
70 main() { 70 main() {
71 var a = new List(4); 71 var a = new List(4);
72 return a[0]; 72 return a[0];
73 } 73 }
74 """, 74 """,
75 REMOVED, 75 REMOVED,
76 76
77 """ 77 """
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 break; 254 break;
255 } 255 }
256 } 256 }
257 257
258 258
259 main() { 259 main() {
260 for (int i = 0; i < TESTS.length; i += 2) { 260 for (int i = 0; i < TESTS.length; i += 2) {
261 expect(TESTS[i], TESTS[i + 1]); 261 expect(TESTS[i], TESTS[i + 1]);
262 } 262 }
263 } 263 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698