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

Unified Diff: tests/language/div_with_power_of_two_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/div_with_power_of_two_test.dart
===================================================================
--- tests/language/div_with_power_of_two_test.dart (revision 24922)
+++ tests/language/div_with_power_of_two_test.dart (working copy)
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
// Test division by power of two.
// Test that results before and after optimization are the same.
+// VMOptions=--optimization-counter-threshold=10 --no-use-osr
import "package:expect/expect.dart";
@@ -87,7 +88,7 @@
divByNeg549755813888(a) => a ~/ -549755813888;
main() {
- for (int i = 0; i < 8000; i++) {
+ for (int i = 0; i < 20; i++) {
for (var e in expectedResults) {
Function f = e[0];
List values = e[1];
« no previous file with comments | « tests/language/deoptimized_function_on_stack_test.dart ('k') | tests/language/double_int_addition_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698