OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/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 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 #include "src/s390/frames-s390.h" | 9 #include "src/s390/frames-s390.h" |
10 | 10 |
(...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1779 kNotEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); | 1779 kNotEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); |
1780 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); | 1780 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); |
1781 } | 1781 } |
1782 | 1782 |
1783 void InstructionSelector::VisitDeoptimizeUnless(Node* node) { | 1783 void InstructionSelector::VisitDeoptimizeUnless(Node* node) { |
1784 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( | 1784 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( |
1785 kEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); | 1785 kEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); |
1786 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); | 1786 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); |
1787 } | 1787 } |
1788 | 1788 |
| 1789 void InstructionSelector::VisitTrapIf(Node* node) { UNREACHABLE(); } |
| 1790 |
| 1791 void InstructionSelector::VisitTrapUnless(Node* node) { UNREACHABLE(); } |
| 1792 |
1789 void InstructionSelector::VisitSwitch(Node* node, const SwitchInfo& sw) { | 1793 void InstructionSelector::VisitSwitch(Node* node, const SwitchInfo& sw) { |
1790 S390OperandGenerator g(this); | 1794 S390OperandGenerator g(this); |
1791 InstructionOperand value_operand = g.UseRegister(node->InputAt(0)); | 1795 InstructionOperand value_operand = g.UseRegister(node->InputAt(0)); |
1792 | 1796 |
1793 // Emit either ArchTableSwitch or ArchLookupSwitch. | 1797 // Emit either ArchTableSwitch or ArchLookupSwitch. |
1794 size_t table_space_cost = 4 + sw.value_range; | 1798 size_t table_space_cost = 4 + sw.value_range; |
1795 size_t table_time_cost = 3; | 1799 size_t table_time_cost = 3; |
1796 size_t lookup_space_cost = 3 + 2 * sw.case_count; | 1800 size_t lookup_space_cost = 3 + 2 * sw.case_count; |
1797 size_t lookup_time_cost = sw.case_count; | 1801 size_t lookup_time_cost = sw.case_count; |
1798 if (sw.case_count > 0 && | 1802 if (sw.case_count > 0 && |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2068 // static | 2072 // static |
2069 MachineOperatorBuilder::AlignmentRequirements | 2073 MachineOperatorBuilder::AlignmentRequirements |
2070 InstructionSelector::AlignmentRequirements() { | 2074 InstructionSelector::AlignmentRequirements() { |
2071 return MachineOperatorBuilder::AlignmentRequirements:: | 2075 return MachineOperatorBuilder::AlignmentRequirements:: |
2072 FullUnalignedAccessSupport(); | 2076 FullUnalignedAccessSupport(); |
2073 } | 2077 } |
2074 | 2078 |
2075 } // namespace compiler | 2079 } // namespace compiler |
2076 } // namespace internal | 2080 } // namespace internal |
2077 } // namespace v8 | 2081 } // namespace v8 |
OLD | NEW |