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

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

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
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 deoptimziation caused by lazy finalization. 4 // Test deoptimziation caused by lazy finalization.
5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-co mpilation 5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-co mpilation
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 main() { 9 main() {
10 Expect.equals(20000, part1()); 10 Expect.equals(20000, part1());
(...skipping 21 matching lines...) Expand all
32 32
33 loop() { 33 loop() {
34 var sum = 0; 34 var sum = 0;
35 for (int i = 0; i < 10000; i++) { 35 for (int i = 0; i < 10000; i++) {
36 sum += foo(); 36 sum += foo();
37 } 37 }
38 return sum; 38 return sum;
39 } 39 }
40 } 40 }
41 41
42 class Aa extends A { 42 class Aa extends A {}
43
44 }
45 43
46 class B extends Aa { 44 class B extends Aa {
47 foo() => -2; 45 foo() => -2;
48 } 46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698