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

Unified Diff: tests/language/branch_canonicalization_test.dart

Issue 19034002: Add VMOptions to optimize tests that need to be (Part I). (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/bit_operations_test.dart ('k') | tests/language/compound_assignment_operator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/branch_canonicalization_test.dart
===================================================================
--- tests/language/branch_canonicalization_test.dart (revision 24922)
+++ tests/language/branch_canonicalization_test.dart (working copy)
@@ -4,6 +4,7 @@
// Test that branch fusion correctly sets branch environment for comparisons
// that require unboxing and does not fuse branches that can deoptimize.
+// VMOptions=--optimization-counter-threshold=10 --no-use-osr
import "package:expect/expect.dart";
@@ -48,7 +49,7 @@
final a = 1.0;
final b = 1 << 62;
final x = new A(), y = new B(), z = new C();
- for (var i = 0; i < 10000; i++) {
+ for (var i = 0; i < 20; i++) {
Expect.equals(1, fooDouble(a, a));
Expect.isTrue(sideEffect);
Expect.equals(0, fooMint(b, 0));
« no previous file with comments | « tests/language/bit_operations_test.dart ('k') | tests/language/compound_assignment_operator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698