| Index: src/compiler/ia32/code-generator-ia32.cc
|
| diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc
|
| index e004896ea2b627c9b8841a9feacf4b1b3c76afbf..33f02a439ca7e2e5118cb417affe29b19db6f1d2 100644
|
| --- a/src/compiler/ia32/code-generator-ia32.cc
|
| +++ b/src/compiler/ia32/code-generator-ia32.cc
|
| @@ -2106,7 +2106,7 @@
|
| __ Move(dst, g.ToImmediate(source));
|
| } else if (src_constant.type() == Constant::kFloat32) {
|
| // TODO(turbofan): Can we do better here?
|
| - uint32_t src = src_constant.ToFloat32AsInt();
|
| + uint32_t src = bit_cast<uint32_t>(src_constant.ToFloat32());
|
| if (destination->IsFPRegister()) {
|
| XMMRegister dst = g.ToDoubleRegister(destination);
|
| __ Move(dst, src);
|
| @@ -2117,7 +2117,7 @@
|
| }
|
| } else {
|
| DCHECK_EQ(Constant::kFloat64, src_constant.type());
|
| - uint64_t src = src_constant.ToFloat64AsInt();
|
| + uint64_t src = bit_cast<uint64_t>(src_constant.ToFloat64());
|
| uint32_t lower = static_cast<uint32_t>(src);
|
| uint32_t upper = static_cast<uint32_t>(src >> 32);
|
| if (destination->IsFPRegister()) {
|
|
|