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

Unified Diff: test/cctest/test-types.cc

Issue 813813003: Revert of Remove obsolete V8_INFINITY macro. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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/test-strtod.cc ('k') | test/cctest/types-fuzz.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-types.cc
diff --git a/test/cctest/test-types.cc b/test/cctest/test-types.cc
index 4fc32e9219975458dc0f7c66c39bd4ef65538f99..ebef527dd0b3a64b019bdcf739e59f9ceef6f73d 100644
--- a/test/cctest/test-types.cc
+++ b/test/cctest/test-types.cc
@@ -339,14 +339,10 @@
CHECK(!T.Constant(fac->NewNumber(10e60))->Is(T.Integral32));
CHECK(T.Constant(fac->NewNumber(-1.0*0.0))->Is(T.MinusZero));
CHECK(T.Constant(fac->NewNumber(v8::base::OS::nan_value()))->Is(T.NaN));
- CHECK(T.Constant(fac->NewNumber(std::numeric_limits<double>::infinity()))
- ->Is(T.PlainNumber));
- CHECK(!T.Constant(fac->NewNumber(std::numeric_limits<double>::infinity()))
- ->Is(T.Integral32));
- CHECK(T.Constant(fac->NewNumber(-std::numeric_limits<double>::infinity()))
- ->Is(T.PlainNumber));
- CHECK(!T.Constant(fac->NewNumber(-std::numeric_limits<double>::infinity()))
- ->Is(T.Integral32));
+ CHECK(T.Constant(fac->NewNumber(V8_INFINITY))->Is(T.PlainNumber));
+ CHECK(!T.Constant(fac->NewNumber(V8_INFINITY))->Is(T.Integral32));
+ CHECK(T.Constant(fac->NewNumber(-V8_INFINITY))->Is(T.PlainNumber));
+ CHECK(!T.Constant(fac->NewNumber(-V8_INFINITY))->Is(T.Integral32));
}
void Range() {
« no previous file with comments | « test/cctest/test-strtod.cc ('k') | test/cctest/types-fuzz.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698