OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/base/adapters.h" | 5 #include "src/base/adapters.h" |
6 #include "src/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 } | 623 } |
624 | 624 |
625 | 625 |
626 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { | 626 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { |
627 X87OperandGenerator g(this); | 627 X87OperandGenerator g(this); |
628 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0), | 628 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0), |
629 g.Use(node->InputAt(0))); | 629 g.Use(node->InputAt(0))); |
630 } | 630 } |
631 | 631 |
632 | 632 |
| 633 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { |
| 634 UNIMPLEMENTED(); |
| 635 } |
| 636 |
| 637 |
633 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { | 638 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { |
634 X87OperandGenerator g(this); | 639 X87OperandGenerator g(this); |
635 Emit(kX87Uint32ToFloat64, g.DefineAsFixed(node, stX_0), | 640 Emit(kX87Uint32ToFloat64, g.DefineAsFixed(node, stX_0), |
636 g.UseRegister(node->InputAt(0))); | 641 g.UseRegister(node->InputAt(0))); |
637 } | 642 } |
638 | 643 |
639 | 644 |
640 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { | 645 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { |
641 X87OperandGenerator g(this); | 646 X87OperandGenerator g(this); |
642 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 647 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1252 MachineOperatorBuilder::kWord32ShiftIsSafe; | 1257 MachineOperatorBuilder::kWord32ShiftIsSafe; |
1253 if (CpuFeatures::IsSupported(POPCNT)) { | 1258 if (CpuFeatures::IsSupported(POPCNT)) { |
1254 flags |= MachineOperatorBuilder::kWord32Popcnt; | 1259 flags |= MachineOperatorBuilder::kWord32Popcnt; |
1255 } | 1260 } |
1256 return flags; | 1261 return flags; |
1257 } | 1262 } |
1258 | 1263 |
1259 } // namespace compiler | 1264 } // namespace compiler |
1260 } // namespace internal | 1265 } // namespace internal |
1261 } // namespace v8 | 1266 } // namespace v8 |
OLD | NEW |