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/compiler/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1466 void InstructionSelector::VisitFloat32Sqrt(Node* node) { | 1466 void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
1467 VisitRR(this, kArm64Float32Sqrt, node); | 1467 VisitRR(this, kArm64Float32Sqrt, node); |
1468 } | 1468 } |
1469 | 1469 |
1470 | 1470 |
1471 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 1471 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
1472 VisitRR(this, kArm64Float64Sqrt, node); | 1472 VisitRR(this, kArm64Float64Sqrt, node); |
1473 } | 1473 } |
1474 | 1474 |
1475 | 1475 |
| 1476 void InstructionSelector::VisitFloat32RoundDown(Node* node) { |
| 1477 VisitRR(this, kArm64Float32RoundDown, node); |
| 1478 } |
| 1479 |
| 1480 |
1476 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 1481 void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
1477 VisitRR(this, kArm64Float64RoundDown, node); | 1482 VisitRR(this, kArm64Float64RoundDown, node); |
1478 } | 1483 } |
1479 | 1484 |
1480 | 1485 |
1481 void InstructionSelector::VisitFloat64RoundUp(Node* node) { | 1486 void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
1482 VisitRR(this, kArm64Float64RoundUp, node); | 1487 VisitRR(this, kArm64Float64RoundUp, node); |
1483 } | 1488 } |
1484 | 1489 |
1485 | 1490 |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2057 Emit(kArm64Float64InsertHighWord32, g.DefineAsRegister(node), | 2062 Emit(kArm64Float64InsertHighWord32, g.DefineAsRegister(node), |
2058 g.UseRegister(left), g.UseRegister(right)); | 2063 g.UseRegister(left), g.UseRegister(right)); |
2059 } | 2064 } |
2060 | 2065 |
2061 | 2066 |
2062 // static | 2067 // static |
2063 MachineOperatorBuilder::Flags | 2068 MachineOperatorBuilder::Flags |
2064 InstructionSelector::SupportedMachineOperatorFlags() { | 2069 InstructionSelector::SupportedMachineOperatorFlags() { |
2065 return MachineOperatorBuilder::kFloat32Max | | 2070 return MachineOperatorBuilder::kFloat32Max | |
2066 MachineOperatorBuilder::kFloat32Min | | 2071 MachineOperatorBuilder::kFloat32Min | |
| 2072 MachineOperatorBuilder::kFloat32RoundDown | |
2067 MachineOperatorBuilder::kFloat64Max | | 2073 MachineOperatorBuilder::kFloat64Max | |
2068 MachineOperatorBuilder::kFloat64Min | | 2074 MachineOperatorBuilder::kFloat64Min | |
2069 MachineOperatorBuilder::kFloat64RoundDown | | 2075 MachineOperatorBuilder::kFloat64RoundDown | |
2070 MachineOperatorBuilder::kFloat64RoundUp | | 2076 MachineOperatorBuilder::kFloat64RoundUp | |
2071 MachineOperatorBuilder::kFloat64RoundTruncate | | 2077 MachineOperatorBuilder::kFloat64RoundTruncate | |
2072 MachineOperatorBuilder::kFloat64RoundTiesAway | | 2078 MachineOperatorBuilder::kFloat64RoundTiesAway | |
2073 MachineOperatorBuilder::kFloat64RoundTiesEven | | 2079 MachineOperatorBuilder::kFloat64RoundTiesEven | |
2074 MachineOperatorBuilder::kWord32ShiftIsSafe | | 2080 MachineOperatorBuilder::kWord32ShiftIsSafe | |
2075 MachineOperatorBuilder::kInt32DivIsSafe | | 2081 MachineOperatorBuilder::kInt32DivIsSafe | |
2076 MachineOperatorBuilder::kUint32DivIsSafe; | 2082 MachineOperatorBuilder::kUint32DivIsSafe; |
2077 } | 2083 } |
2078 | 2084 |
2079 } // namespace compiler | 2085 } // namespace compiler |
2080 } // namespace internal | 2086 } // namespace internal |
2081 } // namespace v8 | 2087 } // namespace v8 |
OLD | NEW |