| 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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 void InstructionSelector::VisitFloat32RoundDown(Node* node) { UNIMPLEMENTED(); } | 845 void InstructionSelector::VisitFloat32RoundDown(Node* node) { UNIMPLEMENTED(); } |
| 846 | 846 |
| 847 | 847 |
| 848 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 848 void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
| 849 X87OperandGenerator g(this); | 849 X87OperandGenerator g(this); |
| 850 Emit(kX87Float64Round | MiscField::encode(kRoundDown), | 850 Emit(kX87Float64Round | MiscField::encode(kRoundDown), |
| 851 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); | 851 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); |
| 852 } | 852 } |
| 853 | 853 |
| 854 | 854 |
| 855 void InstructionSelector::VisitFloat32RoundUp(Node* node) { UNREACHABLE(); } |
| 856 |
| 857 |
| 855 void InstructionSelector::VisitFloat64RoundUp(Node* node) { UNREACHABLE(); } | 858 void InstructionSelector::VisitFloat64RoundUp(Node* node) { UNREACHABLE(); } |
| 856 | 859 |
| 857 | 860 |
| 858 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 861 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
| 859 X87OperandGenerator g(this); | 862 X87OperandGenerator g(this); |
| 860 Emit(kX87Float64Round | MiscField::encode(kRoundToZero), | 863 Emit(kX87Float64Round | MiscField::encode(kRoundToZero), |
| 861 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); | 864 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); |
| 862 } | 865 } |
| 863 | 866 |
| 864 | 867 |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1286 MachineOperatorBuilder::kWord32ShiftIsSafe; | 1289 MachineOperatorBuilder::kWord32ShiftIsSafe; |
| 1287 if (CpuFeatures::IsSupported(POPCNT)) { | 1290 if (CpuFeatures::IsSupported(POPCNT)) { |
| 1288 flags |= MachineOperatorBuilder::kWord32Popcnt; | 1291 flags |= MachineOperatorBuilder::kWord32Popcnt; |
| 1289 } | 1292 } |
| 1290 return flags; | 1293 return flags; |
| 1291 } | 1294 } |
| 1292 | 1295 |
| 1293 } // namespace compiler | 1296 } // namespace compiler |
| 1294 } // namespace internal | 1297 } // namespace internal |
| 1295 } // namespace v8 | 1298 } // namespace v8 |
| OLD | NEW |