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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 } | 835 } |
836 | 836 |
837 | 837 |
838 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 838 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
839 X87OperandGenerator g(this); | 839 X87OperandGenerator g(this); |
840 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); | 840 Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); |
841 Emit(kX87Float64Sqrt, g.DefineAsFixed(node, stX_0), 0, NULL); | 841 Emit(kX87Float64Sqrt, g.DefineAsFixed(node, stX_0), 0, NULL); |
842 } | 842 } |
843 | 843 |
844 | 844 |
| 845 void InstructionSelector::VisitFloat32RoundDown(Node* node) { UNIMPLEMENTED(); } |
| 846 |
| 847 |
845 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 848 void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
846 X87OperandGenerator g(this); | 849 X87OperandGenerator g(this); |
847 Emit(kX87Float64Round | MiscField::encode(kRoundDown), | 850 Emit(kX87Float64Round | MiscField::encode(kRoundDown), |
848 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); | 851 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); |
849 } | 852 } |
850 | 853 |
851 | 854 |
852 void InstructionSelector::VisitFloat64RoundUp(Node* node) { UNREACHABLE(); } | 855 void InstructionSelector::VisitFloat64RoundUp(Node* node) { UNREACHABLE(); } |
853 | 856 |
854 | 857 |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1283 MachineOperatorBuilder::kWord32ShiftIsSafe; | 1286 MachineOperatorBuilder::kWord32ShiftIsSafe; |
1284 if (CpuFeatures::IsSupported(POPCNT)) { | 1287 if (CpuFeatures::IsSupported(POPCNT)) { |
1285 flags |= MachineOperatorBuilder::kWord32Popcnt; | 1288 flags |= MachineOperatorBuilder::kWord32Popcnt; |
1286 } | 1289 } |
1287 return flags; | 1290 return flags; |
1288 } | 1291 } |
1289 | 1292 |
1290 } // namespace compiler | 1293 } // namespace compiler |
1291 } // namespace internal | 1294 } // namespace internal |
1292 } // namespace v8 | 1295 } // namespace v8 |
OLD | NEW |