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

Unified Diff: test/cctest/compiler/test-representation-change.cc

Issue 604693002: Fix windows build after r24191. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-representation-change.cc
diff --git a/test/cctest/compiler/test-representation-change.cc b/test/cctest/compiler/test-representation-change.cc
index bad9dfa8391dcd0d3ba92971c0b5db0d7fe48958..9bf3b371f942cc88dfc5d29f54736a4b3be34249 100644
--- a/test/cctest/compiler/test-representation-change.cc
+++ b/test/cctest/compiler/test-representation-change.cc
@@ -273,7 +273,7 @@ TEST(ToFloat32_constant) {
Node* n = r.jsgraph()->Int32Constant(*i);
Node* c = r.changer()->GetRepresentationFor(n, kRepWord32 | kTypeInt32,
kRepFloat32);
- r.CheckFloat32Constant(c, *i);
+ r.CheckFloat32Constant(c, static_cast<float>(*i));
}
}
@@ -283,7 +283,7 @@ TEST(ToFloat32_constant) {
Node* n = r.jsgraph()->Int32Constant(*i);
Node* c = r.changer()->GetRepresentationFor(n, kRepWord32 | kTypeUint32,
kRepFloat32);
- r.CheckFloat32Constant(c, *i);
+ r.CheckFloat32Constant(c, static_cast<float>(*i));
}
}
}
@@ -304,7 +304,7 @@ TEST(ToInt32_constant) {
{
FOR_INT32_INPUTS(i) {
if (!IsFloat32Int32(*i)) continue;
- Node* n = r.jsgraph()->Float32Constant(*i);
+ Node* n = r.jsgraph()->Float32Constant(static_cast<float>(*i));
Node* c = r.changer()->GetRepresentationFor(n, kRepFloat32 | kTypeInt32,
kRepWord32);
r.CheckInt32Constant(c, *i);
@@ -346,7 +346,7 @@ TEST(ToUint32_constant) {
{
FOR_UINT32_INPUTS(i) {
if (!IsFloat32Uint32(*i)) continue;
- Node* n = r.jsgraph()->Float32Constant(*i);
+ Node* n = r.jsgraph()->Float32Constant(static_cast<float>(*i));
Node* c = r.changer()->GetRepresentationFor(n, kRepFloat32 | kTypeUint32,
kRepWord32);
r.CheckUint32Constant(c, *i);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698