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

Unified Diff: test/cctest/compiler/value-helper.h

Issue 1507703002: [turbofan] Change TruncateFloat64ToUint64 to TryTruncateFloatToUint64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added mips64 implementation, fixed nits. Created 5 years 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 | « test/cctest/compiler/test-run-machops.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/value-helper.h
diff --git a/test/cctest/compiler/value-helper.h b/test/cctest/compiler/value-helper.h
index 6a9df71e2e48b877b42317651c4a9b2f7d9d4bb9..6ef83abdee089d1d88c52cd957f2aa166674f86c 100644
--- a/test/cctest/compiler/value-helper.h
+++ b/test/cctest/compiler/value-helper.h
@@ -99,13 +99,40 @@ class ValueHelper {
static std::vector<double> float64_vector() {
static const double nan = std::numeric_limits<double>::quiet_NaN();
- static const double values[] = {
- 0.125, 0.25, 0.375, 0.5, 1.25, -1.75, 2, 5.125, 6.25, 0.0, -0.0,
- 982983.25, 888, 2147483647.0, -999.75, 3.1e7, -2e66, 3e-88,
- -2147483648.0, V8_INFINITY, -V8_INFINITY, -nan, nan, 2147483647.375,
- 2147483647.75, 2147483648.0, 2147483648.25, 2147483649.25,
- -2147483647.0, -2147483647.125, -2147483647.875, -2147483648.25,
- -2147483649.5};
+ static const double values[] = {0.125,
+ 0.25,
+ 0.375,
+ 0.5,
+ 1.25,
+ -1.75,
+ 2,
+ 5.125,
+ 6.25,
+ 0.0,
+ -0.0,
+ 982983.25,
+ 888,
+ 2147483647.0,
+ -999.75,
+ 3.1e7,
+ -2e66,
+ 2e66,
+ 3e-88,
+ -2147483648.0,
+ V8_INFINITY,
+ -V8_INFINITY,
+ -nan,
+ nan,
+ 2147483647.375,
+ 2147483647.75,
+ 2147483648.0,
+ 2147483648.25,
+ 2147483649.25,
+ -2147483647.0,
+ -2147483647.125,
+ -2147483647.875,
+ -2147483648.25,
+ -2147483649.5};
return std::vector<double>(&values[0], &values[arraysize(values)]);
}
« no previous file with comments | « test/cctest/compiler/test-run-machops.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698