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/base/bits.h" | 6 #include "src/base/bits.h" |
7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
10 | 10 |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 810 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
811 VisitRR(this, kMips64Float64RoundTruncate, node); | 811 VisitRR(this, kMips64Float64RoundTruncate, node); |
812 } | 812 } |
813 | 813 |
814 | 814 |
815 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { | 815 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
816 UNREACHABLE(); | 816 UNREACHABLE(); |
817 } | 817 } |
818 | 818 |
819 | 819 |
| 820 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { |
| 821 VisitRR(this, kMips64Float64RoundTiesEven, node); |
| 822 } |
| 823 |
| 824 |
820 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, | 825 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, |
821 const CallDescriptor* descriptor, | 826 const CallDescriptor* descriptor, |
822 Node* node) { | 827 Node* node) { |
823 Mips64OperandGenerator g(this); | 828 Mips64OperandGenerator g(this); |
824 | 829 |
825 // Prepare for C function call. | 830 // Prepare for C function call. |
826 if (descriptor->IsCFunctionCall()) { | 831 if (descriptor->IsCFunctionCall()) { |
827 Emit(kArchPrepareCallCFunction | | 832 Emit(kArchPrepareCallCFunction | |
828 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), | 833 MiscField::encode(static_cast<int>(descriptor->CParameterCount())), |
829 0, nullptr, 0, nullptr); | 834 0, nullptr, 0, nullptr); |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1391 | 1396 |
1392 // static | 1397 // static |
1393 MachineOperatorBuilder::Flags | 1398 MachineOperatorBuilder::Flags |
1394 InstructionSelector::SupportedMachineOperatorFlags() { | 1399 InstructionSelector::SupportedMachineOperatorFlags() { |
1395 return MachineOperatorBuilder::kFloat64Min | | 1400 return MachineOperatorBuilder::kFloat64Min | |
1396 MachineOperatorBuilder::kFloat64Max | | 1401 MachineOperatorBuilder::kFloat64Max | |
1397 MachineOperatorBuilder::kFloat32Min | | 1402 MachineOperatorBuilder::kFloat32Min | |
1398 MachineOperatorBuilder::kFloat32Max | | 1403 MachineOperatorBuilder::kFloat32Max | |
1399 MachineOperatorBuilder::kFloat64RoundDown | | 1404 MachineOperatorBuilder::kFloat64RoundDown | |
1400 MachineOperatorBuilder::kFloat64RoundUp | | 1405 MachineOperatorBuilder::kFloat64RoundUp | |
1401 MachineOperatorBuilder::kFloat64RoundTruncate; | 1406 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1407 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1402 } | 1408 } |
1403 | 1409 |
1404 } // namespace compiler | 1410 } // namespace compiler |
1405 } // namespace internal | 1411 } // namespace internal |
1406 } // namespace v8 | 1412 } // namespace v8 |
OLD | NEW |