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

Unified Diff: tests/language/deopt_no_feedback_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
Index: tests/language/deopt_no_feedback_test.dart
===================================================================
--- tests/language/deopt_no_feedback_test.dart (revision 24895)
+++ tests/language/deopt_no_feedback_test.dart (working copy)
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
// Test deoptimization caused by running code that did not collect type
// feedback before.
+// VMOptions=--optimization-counter-threshold=10 --no-use-osr
import "package:expect/expect.dart";
@@ -17,7 +18,7 @@
}
var a = new List(10);
- for (var i = 0; i < 2000; i++) {
+ for (var i = 0; i < 20; i++) {
var r = test(a, 3, 888, false);
Expect.equals(3, r);
Expect.equals(3, a[3]);
@@ -38,7 +39,7 @@
}
}
- for (var i = 0; i < 2000; i++) {
+ for (var i = 0; i < 20; i++) {
var r = test(10, false);
Expect.equals(-1, r);
}
@@ -49,7 +50,7 @@
main() {
- for (var i = 0; i < 2000; i++) {}
+ for (var i = 0; i < 20; i++) {}
testStoreIndexed();
testIncrLocal();
}

Powered by Google App Engine
This is Rietveld 408576698