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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 } | 842 } |
843 | 843 |
844 | 844 |
845 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 845 void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
846 X87OperandGenerator g(this); | 846 X87OperandGenerator g(this); |
847 Emit(kX87Float64Round | MiscField::encode(kRoundDown), | 847 Emit(kX87Float64Round | MiscField::encode(kRoundDown), |
848 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); | 848 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); |
849 } | 849 } |
850 | 850 |
851 | 851 |
| 852 void InstructionSelector::VisitFloat64RoundUp(Node* node) { UNREACHABLE(); } |
| 853 |
| 854 |
852 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 855 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
853 X87OperandGenerator g(this); | 856 X87OperandGenerator g(this); |
854 Emit(kX87Float64Round | MiscField::encode(kRoundToZero), | 857 Emit(kX87Float64Round | MiscField::encode(kRoundToZero), |
855 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); | 858 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); |
856 } | 859 } |
857 | 860 |
858 | 861 |
859 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { | 862 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
860 UNREACHABLE(); | 863 UNREACHABLE(); |
861 } | 864 } |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1275 MachineOperatorBuilder::kWord32ShiftIsSafe; | 1278 MachineOperatorBuilder::kWord32ShiftIsSafe; |
1276 if (CpuFeatures::IsSupported(POPCNT)) { | 1279 if (CpuFeatures::IsSupported(POPCNT)) { |
1277 flags |= MachineOperatorBuilder::kWord32Popcnt; | 1280 flags |= MachineOperatorBuilder::kWord32Popcnt; |
1278 } | 1281 } |
1279 return flags; | 1282 return flags; |
1280 } | 1283 } |
1281 | 1284 |
1282 } // namespace compiler | 1285 } // namespace compiler |
1283 } // namespace internal | 1286 } // namespace internal |
1284 } // namespace v8 | 1287 } // namespace v8 |
OLD | NEW |