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

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

Issue 18563006: More tests updated to optimize code (Part 2). (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/instanceof4_test.dart ('k') | tests/language/issue7513_test.dart » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Regression test for VM's IfConverted pass not keeping graph structure and 5 // Regression test for VM's IfConverted pass not keeping graph structure and
6 // use lists in sync. 6 // use lists in sync.
7 7
8 // VMOptions=--optimization-counter-threshold=10
9
8 class A { 10 class A {
9 int x; 11 int x;
10 } 12 }
11 13
12 f() { 14 f() {
13 var a = new A(); 15 var a = new A();
14 a.x = (true ? 2 : 4); 16 a.x = (true ? 2 : 4);
15 return a.x; 17 return a.x;
16 } 18 }
17 19
18 main() { 20 main() {
19 for (var i = 0; i < 10000; i++) f(); 21 for (var i = 0; i < 20; i++) f();
20 } 22 }
21 23
OLDNEW
« no previous file with comments | « tests/language/instanceof4_test.dart ('k') | tests/language/issue7513_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698