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 cff4aafb278d8c3d5de8a82fcf2dea54f5f45035..34b53ed7a827817ca431eec4550767d0afdfa303 100644 |
--- a/src/compiler/x87/instruction-selector-x87.cc |
+++ b/src/compiler/x87/instruction-selector-x87.cc |
@@ -669,6 +669,12 @@ void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { |
} |
+void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) { |
+ X87OperandGenerator g(this); |
+ Emit(kX87Float32ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
+} |
+ |
+ |
void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { |
X87OperandGenerator g(this); |
Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |