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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 switch (TruncationModeOf(node->op())) { | 577 switch (TruncationModeOf(node->op())) { |
578 case TruncationMode::kJavaScript: | 578 case TruncationMode::kJavaScript: |
579 return VisitRR(this, kArchTruncateDoubleToI, node); | 579 return VisitRR(this, kArchTruncateDoubleToI, node); |
580 case TruncationMode::kRoundToZero: | 580 case TruncationMode::kRoundToZero: |
581 return VisitRR(this, kMips64TruncWD, node); | 581 return VisitRR(this, kMips64TruncWD, node); |
582 } | 582 } |
583 UNREACHABLE(); | 583 UNREACHABLE(); |
584 } | 584 } |
585 | 585 |
586 | 586 |
| 587 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { |
| 588 VisitRR(this, kMips64CvtDL, node); |
| 589 } |
| 590 |
| 591 |
587 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { | 592 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { |
588 VisitRR(this, kMips64Float64ExtractLowWord32, node); | 593 VisitRR(this, kMips64Float64ExtractLowWord32, node); |
589 } | 594 } |
590 | 595 |
591 | 596 |
592 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) { | 597 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) { |
593 VisitRR(this, kMips64BitcastDL, node); | 598 VisitRR(this, kMips64BitcastDL, node); |
594 } | 599 } |
595 | 600 |
596 | 601 |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 // static | 1296 // static |
1292 MachineOperatorBuilder::Flags | 1297 MachineOperatorBuilder::Flags |
1293 InstructionSelector::SupportedMachineOperatorFlags() { | 1298 InstructionSelector::SupportedMachineOperatorFlags() { |
1294 return MachineOperatorBuilder::kFloat64RoundDown | | 1299 return MachineOperatorBuilder::kFloat64RoundDown | |
1295 MachineOperatorBuilder::kFloat64RoundTruncate; | 1300 MachineOperatorBuilder::kFloat64RoundTruncate; |
1296 } | 1301 } |
1297 | 1302 |
1298 } // namespace compiler | 1303 } // namespace compiler |
1299 } // namespace internal | 1304 } // namespace internal |
1300 } // namespace v8 | 1305 } // namespace v8 |
OLD | NEW |