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.h" | 5 #include "src/compiler/instruction-selector.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/base/adapters.h" | 9 #include "src/base/adapters.h" |
10 #include "src/compiler/instruction-selector-impl.h" | 10 #include "src/compiler/instruction-selector-impl.h" |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 default: | 772 default: |
773 V8_Fatal(__FILE__, __LINE__, "Unexpected operator #%d:%s @ node #%d", | 773 V8_Fatal(__FILE__, __LINE__, "Unexpected operator #%d:%s @ node #%d", |
774 node->opcode(), node->op()->mnemonic(), node->id()); | 774 node->opcode(), node->op()->mnemonic(), node->id()); |
775 break; | 775 break; |
776 } | 776 } |
777 } | 777 } |
778 | 778 |
779 | 779 |
780 #if V8_TURBOFAN_BACKEND | 780 #if V8_TURBOFAN_BACKEND |
781 | 781 |
782 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { | |
783 OperandGenerator g(this); | |
784 Emit(kArchTruncateDoubleToI, g.DefineAsRegister(node), | |
785 g.UseRegister(node->InputAt(0))); | |
786 } | |
787 | |
788 | |
789 void InstructionSelector::VisitLoadStackPointer(Node* node) { | 782 void InstructionSelector::VisitLoadStackPointer(Node* node) { |
790 OperandGenerator g(this); | 783 OperandGenerator g(this); |
791 Emit(kArchStackPointer, g.DefineAsRegister(node)); | 784 Emit(kArchStackPointer, g.DefineAsRegister(node)); |
792 } | 785 } |
793 | 786 |
794 | 787 |
795 void InstructionSelector::VisitLoadFramePointer(Node* node) { | 788 void InstructionSelector::VisitLoadFramePointer(Node* node) { |
796 OperandGenerator g(this); | 789 OperandGenerator g(this); |
797 Emit(kArchFramePointer, g.DefineAsRegister(node)); | 790 Emit(kArchFramePointer, g.DefineAsRegister(node)); |
798 } | 791 } |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 MachineOperatorBuilder::Flags | 1152 MachineOperatorBuilder::Flags |
1160 InstructionSelector::SupportedMachineOperatorFlags() { | 1153 InstructionSelector::SupportedMachineOperatorFlags() { |
1161 return MachineOperatorBuilder::Flag::kNoFlags; | 1154 return MachineOperatorBuilder::Flag::kNoFlags; |
1162 } | 1155 } |
1163 | 1156 |
1164 #endif // !V8_TURBOFAN_BACKEND | 1157 #endif // !V8_TURBOFAN_BACKEND |
1165 | 1158 |
1166 } // namespace compiler | 1159 } // namespace compiler |
1167 } // namespace internal | 1160 } // namespace internal |
1168 } // namespace v8 | 1161 } // namespace v8 |
OLD | NEW |