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/bits.h" | 5 #include "src/base/bits.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 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 } | 602 } |
603 | 603 |
604 | 604 |
605 void InstructionSelector::VisitFloat64Sqrt(Node* node) { | 605 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
606 Mips64OperandGenerator g(this); | 606 Mips64OperandGenerator g(this); |
607 Emit(kMips64SqrtD, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); | 607 Emit(kMips64SqrtD, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); |
608 } | 608 } |
609 | 609 |
610 | 610 |
611 void InstructionSelector::VisitFloat64Floor(Node* node) { | 611 void InstructionSelector::VisitFloat64Floor(Node* node) { |
612 VisitRR(this, kMips64FloorD, node); | 612 VisitRR(this, kMips64Float64Floor, node); |
613 } | 613 } |
614 | 614 |
615 | 615 |
616 void InstructionSelector::VisitFloat64Ceil(Node* node) { | 616 void InstructionSelector::VisitFloat64Ceil(Node* node) { |
617 VisitRR(this, kMips64CeilD, node); | 617 VisitRR(this, kMips64Float64Ceil, node); |
618 } | 618 } |
619 | 619 |
620 | 620 |
621 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 621 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
622 VisitRR(this, kMips64RoundTruncateD, node); | 622 VisitRR(this, kMips64Float64RoundTruncate, node); |
623 } | 623 } |
624 | 624 |
625 | 625 |
626 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { | 626 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
627 UNREACHABLE(); | 627 UNREACHABLE(); |
628 } | 628 } |
629 | 629 |
630 | 630 |
631 void InstructionSelector::VisitCall(Node* node) { | 631 void InstructionSelector::VisitCall(Node* node) { |
632 Mips64OperandGenerator g(this); | 632 Mips64OperandGenerator g(this); |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 | 1062 |
1063 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { | 1063 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { |
1064 FlagsContinuation cont(kUnorderedLessThanOrEqual, node); | 1064 FlagsContinuation cont(kUnorderedLessThanOrEqual, node); |
1065 VisitFloat64Compare(this, node, &cont); | 1065 VisitFloat64Compare(this, node, &cont); |
1066 } | 1066 } |
1067 | 1067 |
1068 | 1068 |
1069 // static | 1069 // static |
1070 MachineOperatorBuilder::Flags | 1070 MachineOperatorBuilder::Flags |
1071 InstructionSelector::SupportedMachineOperatorFlags() { | 1071 InstructionSelector::SupportedMachineOperatorFlags() { |
1072 return MachineOperatorBuilder::kNoFlags; | 1072 return MachineOperatorBuilder::kFloat64Floor | |
| 1073 MachineOperatorBuilder::kFloat64Ceil | |
| 1074 MachineOperatorBuilder::kFloat64RoundTruncate; |
1073 } | 1075 } |
1074 | 1076 |
1075 } // namespace compiler | 1077 } // namespace compiler |
1076 } // namespace internal | 1078 } // namespace internal |
1077 } // namespace v8 | 1079 } // namespace v8 |
OLD | NEW |