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 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 Emit(kX87Float64Round | MiscField::encode(kRoundToZero), | 857 Emit(kX87Float64Round | MiscField::encode(kRoundToZero), |
858 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); | 858 g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); |
859 } | 859 } |
860 | 860 |
861 | 861 |
862 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { | 862 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
863 UNREACHABLE(); | 863 UNREACHABLE(); |
864 } | 864 } |
865 | 865 |
866 | 866 |
| 867 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { |
| 868 UNREACHABLE(); |
| 869 } |
| 870 |
| 871 |
867 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, | 872 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, |
868 const CallDescriptor* descriptor, | 873 const CallDescriptor* descriptor, |
869 Node* node) { | 874 Node* node) { |
870 X87OperandGenerator g(this); | 875 X87OperandGenerator g(this); |
871 | 876 |
872 // Prepare for C function call. | 877 // Prepare for C function call. |
873 if (descriptor->IsCFunctionCall()) { | 878 if (descriptor->IsCFunctionCall()) { |
874 InstructionOperand temps[] = {g.TempRegister()}; | 879 InstructionOperand temps[] = {g.TempRegister()}; |
875 size_t const temp_count = arraysize(temps); | 880 size_t const temp_count = arraysize(temps); |
876 Emit(kArchPrepareCallCFunction | | 881 Emit(kArchPrepareCallCFunction | |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 MachineOperatorBuilder::kWord32ShiftIsSafe; | 1283 MachineOperatorBuilder::kWord32ShiftIsSafe; |
1279 if (CpuFeatures::IsSupported(POPCNT)) { | 1284 if (CpuFeatures::IsSupported(POPCNT)) { |
1280 flags |= MachineOperatorBuilder::kWord32Popcnt; | 1285 flags |= MachineOperatorBuilder::kWord32Popcnt; |
1281 } | 1286 } |
1282 return flags; | 1287 return flags; |
1283 } | 1288 } |
1284 | 1289 |
1285 } // namespace compiler | 1290 } // namespace compiler |
1286 } // namespace internal | 1291 } // namespace internal |
1287 } // namespace v8 | 1292 } // namespace v8 |
OLD | NEW |