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

Side by Side Diff: tests/language/load_to_load_forwarding_vm_test.dart

Issue 18053013: Fixes bug in mips left shift. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/language/language.status ('k') | tests/standalone/standalone.status » ('j') | 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 // Test correctness of side effects tracking used by load to load forwarding. 4 // Test correctness of side effects tracking used by load to load forwarding.
5 5
6 // VMOptions=--optimization-counter-threshold=10
7
6 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
7 import "dart:typed_data"; 9 import "dart:typed_data";
8 10
9 class A { 11 class A {
10 var x, y; 12 var x, y;
11 A(this.x, this.y); 13 A(this.x, this.y);
12 } 14 }
13 15
14 foo(a) { 16 foo(a) {
15 var value1 = a.x; 17 var value1 = a.x;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 testImmutableVMFields(fixed, true); 201 testImmutableVMFields(fixed, true);
200 testImmutableVMFields(growable, false); 202 testImmutableVMFields(growable, false);
201 testImmutableVMFields(growable, false); 203 testImmutableVMFields(growable, false);
202 204
203 final f64List = new Float64List(2); 205 final f64List = new Float64List(2);
204 testPhiRepresentation(true, f64List); 206 testPhiRepresentation(true, f64List);
205 testPhiRepresentation(false, f64List); 207 testPhiRepresentation(false, f64List);
206 208
207 final obj = new X(new X(new X(null))); 209 final obj = new X(new X(new X(null)));
208 210
209 for (var i = 0; i < 2000; i++) { 211 for (var i = 0; i < 20; i++) {
210 Expect.listEquals([0x02010000, 0x03020100], foo(new A(0, 0))); 212 Expect.listEquals([0x02010000, 0x03020100], foo(new A(0, 0)));
211 Expect.listEquals([0x02010000, 0x03020100], bar(new A(0, 0), false)); 213 Expect.listEquals([0x02010000, 0x03020100], bar(new A(0, 0), false));
212 Expect.listEquals([0x04020000, 0x03020100], bar(new A(0, 0), true)); 214 Expect.listEquals([0x04020000, 0x03020100], bar(new A(0, 0), true));
213 testImmutableVMFields(fixed, true); 215 testImmutableVMFields(fixed, true);
214 testPhiRepresentation(true, f64List); 216 testPhiRepresentation(true, f64List);
215 testPhiForwarding(obj); 217 testPhiForwarding(obj);
216 testPhiForwarding2(obj); 218 testPhiForwarding2(obj);
217 testPhiForwarding3(); 219 testPhiForwarding3();
218 testPhiForwarding4(); 220 testPhiForwarding4();
219 testEqualPhisElimination(); 221 testEqualPhisElimination();
(...skipping 12 matching lines...) Expand all
232 for (var i = 0; i < 4000; i++) { 234 for (var i = 0; i < 4000; i++) {
233 testPhiConvertions(true, u32List); 235 testPhiConvertions(true, u32List);
234 testPhiConvertions(false, u32List); 236 testPhiConvertions(false, u32List);
235 } 237 }
236 238
237 final escape = new List(1); 239 final escape = new List(1);
238 for (var i = 0; i < 10000; i++) { 240 for (var i = 0; i < 10000; i++) {
239 fakeAliasing(escape); 241 fakeAliasing(escape);
240 } 242 }
241 } 243 }
OLDNEW
« no previous file with comments | « tests/language/language.status ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698