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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 switch (TruncationModeOf(node->op())) { | 585 switch (TruncationModeOf(node->op())) { |
586 case TruncationMode::kJavaScript: | 586 case TruncationMode::kJavaScript: |
587 return VisitRR(this, kArchTruncateDoubleToI, node); | 587 return VisitRR(this, kArchTruncateDoubleToI, node); |
588 case TruncationMode::kRoundToZero: | 588 case TruncationMode::kRoundToZero: |
589 return VisitRR(this, kMips64TruncWD, node); | 589 return VisitRR(this, kMips64TruncWD, node); |
590 } | 590 } |
591 UNREACHABLE(); | 591 UNREACHABLE(); |
592 } | 592 } |
593 | 593 |
594 | 594 |
| 595 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) { |
| 596 VisitRR(this, kMips64CvtSL, node); |
| 597 } |
| 598 |
| 599 |
595 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { | 600 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { |
596 VisitRR(this, kMips64CvtDL, node); | 601 VisitRR(this, kMips64CvtDL, node); |
597 } | 602 } |
598 | 603 |
599 | 604 |
600 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { | 605 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { |
601 VisitRR(this, kMips64Float64ExtractLowWord32, node); | 606 VisitRR(this, kMips64Float64ExtractLowWord32, node); |
602 } | 607 } |
603 | 608 |
604 | 609 |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1356 MachineOperatorBuilder::kFloat64Max | | 1361 MachineOperatorBuilder::kFloat64Max | |
1357 MachineOperatorBuilder::kFloat32Min | | 1362 MachineOperatorBuilder::kFloat32Min | |
1358 MachineOperatorBuilder::kFloat32Max | | 1363 MachineOperatorBuilder::kFloat32Max | |
1359 MachineOperatorBuilder::kFloat64RoundDown | | 1364 MachineOperatorBuilder::kFloat64RoundDown | |
1360 MachineOperatorBuilder::kFloat64RoundTruncate; | 1365 MachineOperatorBuilder::kFloat64RoundTruncate; |
1361 } | 1366 } |
1362 | 1367 |
1363 } // namespace compiler | 1368 } // namespace compiler |
1364 } // namespace internal | 1369 } // namespace internal |
1365 } // namespace v8 | 1370 } // namespace v8 |
OLD | NEW |