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

Side by Side Diff: tests/language/assert_assignable_type_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/arithmetic_test.dart ('k') | tests/language/assign_op_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 // Dart test program to test arithmetic operations. 4 // Dart test program to test arithmetic operations.
5 // VMOptions=--optimization-counter-threshold=10 --checked 5 // VMOptions=--optimization-counter-threshold=10 --checked --no-background-compi lation
6 6
7 // This test crashes if we recompute type of AssertAssignableInstr based on its 7 // This test crashes if we recompute type of AssertAssignableInstr based on its
8 // output types. By doing that we would eliminate not only the unnecessary 8 // output types. By doing that we would eliminate not only the unnecessary
9 // AssertAssignableInstr but also the trailing class check. 9 // AssertAssignableInstr but also the trailing class check.
10 10
11 main() { 11 main() {
12 // Foul up IC data in integer's unary minus. 12 // Foul up IC data in integer's unary minus.
13 var y = -0x80000000; 13 var y = -0x80000000;
14 testInt64List(); 14 testInt64List();
15 } 15 }
16 16
17 testInt64List() { 17 testInt64List() {
18 var array = new List(10); 18 var array = new List(10);
19 testInt64ListImpl(array); 19 testInt64ListImpl(array);
20 } 20 }
21 21
22 22
23 testInt64ListImpl(array) { 23 testInt64ListImpl(array) {
24 for (int i = 0; i < 10; ++i) { 24 for (int i = 0; i < 10; ++i) {
25 } 25 }
26 int sum = 0; 26 int sum = 0;
27 for (int i = 0; i < 10; ++i) { 27 for (int i = 0; i < 10; ++i) {
28 array[i] = -0x80000000000000 + i; 28 array[i] = -0x80000000000000 + i;
29 } 29 }
30 } 30 }
31 31
OLDNEW
« no previous file with comments | « tests/language/arithmetic_test.dart ('k') | tests/language/assign_op_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698