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

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

Issue 1759973002: Add --no-background-compilation to tests that expect to run code in optimized form (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: more Created 4 years, 9 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
« no previous file with comments | « tests/language/mega_load_test.dart ('k') | tests/language/mint_arithmetic_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) 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 program for correct optimizations related to types fo allocated lists. 4 // Test program for correct optimizations related to types fo allocated lists.
5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr 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 // Classes to induce polymorphism of degree 10. 9 // Classes to induce polymorphism of degree 10.
10 class A0 { 10 class A0 {
11 test() => 0; 11 test() => 0;
12 } 12 }
13 13
14 class A1 { 14 class A1 {
15 test() => 1; 15 test() => 1;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Trigger optimization of 'test' function. 58 // Trigger optimization of 'test' function.
59 List list = [new A0(), new A1(), new A2(), new A3(), new A4(), 59 List list = [new A0(), new A1(), new A2(), new A3(), new A4(),
60 new A5(), new A6(), new A7(), new A8(), new A9()]; 60 new A5(), new A6(), new A7(), new A8(), new A9()];
61 for (int i = 0; i < 20; i++) { 61 for (int i = 0; i < 20; i++) {
62 for (var obj in list) { 62 for (var obj in list) {
63 test(obj); 63 test(obj);
64 } 64 }
65 } 65 }
66 Expect.throws(() => test(new B()), (e) => e is NoSuchMethodError); 66 Expect.throws(() => test(new B()), (e) => e is NoSuchMethodError);
67 } 67 }
OLDNEW
« no previous file with comments | « tests/language/mega_load_test.dart ('k') | tests/language/mint_arithmetic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698