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/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/ppc/frames-ppc.h" | 9 #include "src/ppc/frames-ppc.h" |
10 | 10 |
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1775 } // namespace | 1775 } // namespace |
1776 | 1776 |
1777 | 1777 |
1778 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, | 1778 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, |
1779 BasicBlock* fbranch) { | 1779 BasicBlock* fbranch) { |
1780 FlagsContinuation cont(kNotEqual, tbranch, fbranch); | 1780 FlagsContinuation cont(kNotEqual, tbranch, fbranch); |
1781 VisitWord32CompareZero(this, branch, branch->InputAt(0), &cont); | 1781 VisitWord32CompareZero(this, branch, branch->InputAt(0), &cont); |
1782 } | 1782 } |
1783 | 1783 |
1784 void InstructionSelector::VisitDeoptimizeIf(Node* node) { | 1784 void InstructionSelector::VisitDeoptimizeIf(Node* node) { |
1785 DeoptimizeParameters p = DeoptimizeParametersOf(node->op()); | |
1786 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( | 1785 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( |
1787 kNotEqual, p.kind(), p.reason(), node->InputAt(1)); | 1786 kNotEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); |
1788 VisitWordCompareZero(this, node, node->InputAt(0), &cont); | 1787 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); |
1789 } | 1788 } |
1790 | 1789 |
1791 void InstructionSelector::VisitDeoptimizeUnless(Node* node) { | 1790 void InstructionSelector::VisitDeoptimizeUnless(Node* node) { |
1792 DeoptimizeParameters p = DeoptimizeParametersOf(node->op()); | |
1793 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( | 1791 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( |
1794 kEqual, p.kind(), p.reason(), node->InputAt(1)); | 1792 kEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); |
1795 VisitWordCompareZero(this, node, node->InputAt(0), &cont); | 1793 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); |
1796 } | 1794 } |
1797 | 1795 |
1798 void InstructionSelector::VisitTrapIf(Node* node, Runtime::FunctionId func_id) { | 1796 void InstructionSelector::VisitTrapIf(Node* node, Runtime::FunctionId func_id) { |
1799 FlagsContinuation cont = | 1797 FlagsContinuation cont = |
1800 FlagsContinuation::ForTrap(kNotEqual, func_id, node->InputAt(1)); | 1798 FlagsContinuation::ForTrap(kNotEqual, func_id, node->InputAt(1)); |
1801 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); | 1799 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); |
1802 } | 1800 } |
1803 | 1801 |
1804 void InstructionSelector::VisitTrapUnless(Node* node, | 1802 void InstructionSelector::VisitTrapUnless(Node* node, |
1805 Runtime::FunctionId func_id) { | 1803 Runtime::FunctionId func_id) { |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2119 // static | 2117 // static |
2120 MachineOperatorBuilder::AlignmentRequirements | 2118 MachineOperatorBuilder::AlignmentRequirements |
2121 InstructionSelector::AlignmentRequirements() { | 2119 InstructionSelector::AlignmentRequirements() { |
2122 return MachineOperatorBuilder::AlignmentRequirements:: | 2120 return MachineOperatorBuilder::AlignmentRequirements:: |
2123 FullUnalignedAccessSupport(); | 2121 FullUnalignedAccessSupport(); |
2124 } | 2122 } |
2125 | 2123 |
2126 } // namespace compiler | 2124 } // namespace compiler |
2127 } // namespace internal | 2125 } // namespace internal |
2128 } // namespace v8 | 2126 } // namespace v8 |
OLD | NEW |