| 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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 UNREACHABLE(); | 878 UNREACHABLE(); |
| 879 } | 879 } |
| 880 | 880 |
| 881 | 881 |
| 882 void InstructionSelector::VisitFloat32RoundTiesEven(Node* node) { | 882 void InstructionSelector::VisitFloat32RoundTiesEven(Node* node) { |
| 883 UNREACHABLE(); | 883 UNREACHABLE(); |
| 884 } | 884 } |
| 885 | 885 |
| 886 | 886 |
| 887 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { | 887 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { |
| 888 UNREACHABLE(); | 888 X87OperandGenerator g(this); |
| 889 Emit(kX87Float64Round | MiscField::encode(kRoundToNearest), |
| 890 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); |
| 889 } | 891 } |
| 890 | 892 |
| 891 | 893 |
| 892 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, | 894 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, |
| 893 const CallDescriptor* descriptor, | 895 const CallDescriptor* descriptor, |
| 894 Node* node) { | 896 Node* node) { |
| 895 X87OperandGenerator g(this); | 897 X87OperandGenerator g(this); |
| 896 | 898 |
| 897 // Prepare for C function call. | 899 // Prepare for C function call. |
| 898 if (descriptor->IsCFunctionCall()) { | 900 if (descriptor->IsCFunctionCall()) { |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 MachineOperatorBuilder::kFloat32Min | | 1302 MachineOperatorBuilder::kFloat32Min | |
| 1301 MachineOperatorBuilder::kFloat64Max | | 1303 MachineOperatorBuilder::kFloat64Max | |
| 1302 MachineOperatorBuilder::kFloat64Min | | 1304 MachineOperatorBuilder::kFloat64Min | |
| 1303 MachineOperatorBuilder::kWord32ShiftIsSafe; | 1305 MachineOperatorBuilder::kWord32ShiftIsSafe; |
| 1304 if (CpuFeatures::IsSupported(POPCNT)) { | 1306 if (CpuFeatures::IsSupported(POPCNT)) { |
| 1305 flags |= MachineOperatorBuilder::kWord32Popcnt; | 1307 flags |= MachineOperatorBuilder::kWord32Popcnt; |
| 1306 } | 1308 } |
| 1307 | 1309 |
| 1308 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1310 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
| 1309 MachineOperatorBuilder::kFloat64RoundUp | | 1311 MachineOperatorBuilder::kFloat64RoundUp | |
| 1310 MachineOperatorBuilder::kFloat64RoundTruncate; | 1312 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1313 MachineOperatorBuilder::kFloat64RoundTiesEven; |
| 1311 return flags; | 1314 return flags; |
| 1312 } | 1315 } |
| 1313 | 1316 |
| 1314 } // namespace compiler | 1317 } // namespace compiler |
| 1315 } // namespace internal | 1318 } // namespace internal |
| 1316 } // namespace v8 | 1319 } // namespace v8 |
| OLD | NEW |