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

Unified Diff: tests/lib/math/double_pow_test.dart

Issue 220723017: Add optimization for pow(base, 0.5) to the other architectures as well. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/math/double_pow_test.dart
===================================================================
--- tests/lib/math/double_pow_test.dart (revision 34708)
+++ tests/lib/math/double_pow_test.dart (working copy)
@@ -1,6 +1,7 @@
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// 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.
+// VMOptions=--optimization-counter-threshold=5
library math_test;
import "package:expect/expect.dart";
@@ -53,7 +54,7 @@
Infinity
];
-main() {
+test() {
// Tests of pow(x, y):
for (var d in samples) {
// if `y` is zero (0.0 or -0.0), the result is always 1.0.
@@ -156,3 +157,6 @@
Expect.identical(Infinity, pow(-0.0, -9223372036854775809));
}
+main() {
+ for (int i = 0; i < 10; i++) test();
+}
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698