| Index: src/compiler/instruction-selector.cc
|
| diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc
|
| index 335d85ad08fbee5772978d9a61752e5bc76b5af3..bec9f5dd39e2638705b9dc633c68aaf05b6c08ea 100644
|
| --- a/src/compiler/instruction-selector.cc
|
| +++ b/src/compiler/instruction-selector.cc
|
| @@ -587,6 +587,8 @@ void InstructionSelector::VisitNode(Node* node) {
|
| return VisitChangeInt32ToInt64(node);
|
| case IrOpcode::kChangeUint32ToUint64:
|
| return VisitChangeUint32ToUint64(node);
|
| + case IrOpcode::kTruncateFloat64ToInt32:
|
| + return VisitTruncateFloat64ToInt32(node);
|
| case IrOpcode::kTruncateInt64ToInt32:
|
| return VisitTruncateInt64ToInt32(node);
|
| case IrOpcode::kFloat64Add:
|
| @@ -690,6 +692,13 @@ void InstructionSelector::VisitInt64LessThanOrEqual(Node* node) {
|
| }
|
|
|
|
|
| +void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) {
|
| + OperandGenerator g(this);
|
| + Emit(kArchTruncateDoubleToI, g.DefineAsRegister(node),
|
| + g.UseDoubleRegister(node->InputAt(0)));
|
| +}
|
| +
|
| +
|
| void InstructionSelector::VisitFloat64Equal(Node* node) {
|
| FlagsContinuation cont(kUnorderedEqual, node);
|
| VisitFloat64Compare(node, &cont);
|
|
|