| Index: src/compiler/x87/instruction-selector-x87.cc
|
| diff --git a/src/compiler/x87/instruction-selector-x87.cc b/src/compiler/x87/instruction-selector-x87.cc
|
| index 34b3139b6f5983fa49a2ef0229a22cdbe934be66..3c2a4b63744edfe4b5661a4694db3bdae697953e 100644
|
| --- a/src/compiler/x87/instruction-selector-x87.cc
|
| +++ b/src/compiler/x87/instruction-selector-x87.cc
|
| @@ -846,18 +846,13 @@ void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) {
|
|
|
| void InstructionSelector::VisitTruncateFloat64ToWord32(Node* node) {
|
| X87OperandGenerator g(this);
|
| + Emit(kArchTruncateDoubleToI, g.DefineAsRegister(node),
|
| + g.Use(node->InputAt(0)));
|
| +}
|
|
|
| - switch (TruncationModeOf(node->op())) {
|
| - case TruncationMode::kJavaScript:
|
| - Emit(kArchTruncateDoubleToI, g.DefineAsRegister(node),
|
| - g.Use(node->InputAt(0)));
|
| - return;
|
| - case TruncationMode::kRoundToZero:
|
| - Emit(kX87Float64ToInt32, g.DefineAsRegister(node),
|
| - g.Use(node->InputAt(0)));
|
| - return;
|
| - }
|
| - UNREACHABLE();
|
| +void InstructionSelector::VisitRoundFloat64ToInt32(Node* node) {
|
| + X87OperandGenerator g(this);
|
| + Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
|
| }
|
|
|
|
|
|
|