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

Unified Diff: tests/language/modulo_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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/mint_compares_test.dart ('k') | tests/language/mul_recipr_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/modulo_test.dart
diff --git a/tests/language/modulo_test.dart b/tests/language/modulo_test.dart
index f14d3c556845613d08d32d668010126c4d526b34..f94d7568229e6fbd5f8fafb615a7a3e1d6a25241 100644
--- a/tests/language/modulo_test.dart
+++ b/tests/language/modulo_test.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test optimization of modulo operator on Smi.
-// VMOptions=--optimization-counter-threshold=10 --no-use-osr
+// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
import "package:expect/expect.dart";
@@ -15,7 +15,7 @@ main() {
Expect.equals(i % 256, foo(i));
Expect.equals(i % -256, boo(i));
Expect.throws(() => hoo(i), (e) => e is IntegerDivisionByZeroException);
-
+
Expect.equals(i ~/ 254 + i % 254, fooTwo(i));
Expect.equals(i ~/ -254 + i % -254, booTwo(i));
Expect.throws(() => hooTwo(i), (e) => e is IntegerDivisionByZeroException);
@@ -26,7 +26,7 @@ main() {
}
Expect.equals((i ~/ 10) + (i % 10) + (i % 10), threeOp(i));
Expect.equals((i ~/ 10) + (i ~/ 12) + (i % 10) + (i % 12), fourOp(i));
-
+
// Zero test is done outside the loop.
if (i < 0) {
Expect.equals(i % -i, foo2(i));
@@ -69,13 +69,13 @@ threeOp(a) {
fourOp(a) {
var x0 = a ~/ 10;
var x1 = a ~/ 12;
- var y0 = a % 10;
+ var y0 = a % 10;
var y1 = a % 12;
return x0 + x1 + y0 + y1;
}
foo2(i) {
- // Make sure x has a range computed.
+ // Make sure x has a range computed.
var x = 0;
if (i < 0) {
x = -i;
@@ -87,7 +87,7 @@ foo2(i) {
fooTwo2(i) {
- // Make sure x has a range computed.
+ // Make sure x has a range computed.
var x = 0;
if (i < 0) {
x = -i;
« no previous file with comments | « tests/language/mint_compares_test.dart ('k') | tests/language/mul_recipr_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698