| Index: src/compiler/representation-change.cc
|
| diff --git a/src/compiler/representation-change.cc b/src/compiler/representation-change.cc
|
| index 3c9beff781d10081ae60ba186fd00df6eaaa89d8..0439c536de012445b0eb3b6f567b8145630d6af9 100644
|
| --- a/src/compiler/representation-change.cc
|
| +++ b/src/compiler/representation-change.cc
|
| @@ -436,7 +436,10 @@ Node* RepresentationChanger::GetTaggedRepresentationFor(
|
| } else if (output_rep ==
|
| MachineRepresentation::kFloat32) { // float32 -> float64 -> tagged
|
| node = InsertChangeFloat32ToFloat64(node);
|
| - op = simplified()->ChangeFloat64ToTagged();
|
| + op = simplified()->ChangeFloat64ToTagged(
|
| + output_type->Maybe(Type::MinusZero())
|
| + ? CheckForMinusZeroMode::kCheckForMinusZero
|
| + : CheckForMinusZeroMode::kDontCheckForMinusZero);
|
| } else if (output_rep == MachineRepresentation::kFloat64) {
|
| if (output_type->Is(Type::Signed31())) { // float64 -> int32 -> tagged
|
| node = InsertChangeFloat64ToInt32(node);
|
| @@ -450,7 +453,10 @@ Node* RepresentationChanger::GetTaggedRepresentationFor(
|
| node = InsertChangeFloat64ToUint32(node);
|
| op = simplified()->ChangeUint32ToTagged();
|
| } else {
|
| - op = simplified()->ChangeFloat64ToTagged();
|
| + op = simplified()->ChangeFloat64ToTagged(
|
| + output_type->Maybe(Type::MinusZero())
|
| + ? CheckForMinusZeroMode::kCheckForMinusZero
|
| + : CheckForMinusZeroMode::kDontCheckForMinusZero);
|
| }
|
| } else {
|
| return TypeError(node, output_rep, output_type,
|
|
|