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 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2002 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, | 2002 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, |
2003 BasicBlock* fbranch) { | 2003 BasicBlock* fbranch) { |
2004 FlagsContinuation cont(kNotEqual, tbranch, fbranch); | 2004 FlagsContinuation cont(kNotEqual, tbranch, fbranch); |
2005 VisitWord32CompareZero(this, branch, branch->InputAt(0), &cont); | 2005 VisitWord32CompareZero(this, branch, branch->InputAt(0), &cont); |
2006 } | 2006 } |
2007 | 2007 |
2008 void InstructionSelector::VisitDeoptimizeIf(Node* node) { | 2008 void InstructionSelector::VisitDeoptimizeIf(Node* node) { |
2009 DeoptimizeParameters p = DeoptimizeParametersOf(node->op()); | 2009 DeoptimizeParameters p = DeoptimizeParametersOf(node->op()); |
2010 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( | 2010 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( |
2011 kNotEqual, p.kind(), p.reason(), node->InputAt(1)); | 2011 kNotEqual, p.kind(), p.reason(), node->InputAt(1)); |
2012 VisitWordCompareZero(this, node, node->InputAt(0), &cont); | 2012 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); |
2013 } | 2013 } |
2014 | 2014 |
2015 void InstructionSelector::VisitDeoptimizeUnless(Node* node) { | 2015 void InstructionSelector::VisitDeoptimizeUnless(Node* node) { |
2016 DeoptimizeParameters p = DeoptimizeParametersOf(node->op()); | 2016 DeoptimizeParameters p = DeoptimizeParametersOf(node->op()); |
2017 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( | 2017 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( |
2018 kEqual, p.kind(), p.reason(), node->InputAt(1)); | 2018 kEqual, p.kind(), p.reason(), node->InputAt(1)); |
2019 VisitWordCompareZero(this, node, node->InputAt(0), &cont); | 2019 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); |
2020 } | 2020 } |
2021 | 2021 |
2022 void InstructionSelector::VisitTrapIf(Node* node, Runtime::FunctionId func_id) { | 2022 void InstructionSelector::VisitTrapIf(Node* node, Runtime::FunctionId func_id) { |
2023 FlagsContinuation cont = | 2023 FlagsContinuation cont = |
2024 FlagsContinuation::ForTrap(kNotEqual, func_id, node->InputAt(1)); | 2024 FlagsContinuation::ForTrap(kNotEqual, func_id, node->InputAt(1)); |
2025 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); | 2025 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); |
2026 } | 2026 } |
2027 | 2027 |
2028 void InstructionSelector::VisitTrapUnless(Node* node, | 2028 void InstructionSelector::VisitTrapUnless(Node* node, |
2029 Runtime::FunctionId func_id) { | 2029 Runtime::FunctionId func_id) { |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2319 // static | 2319 // static |
2320 MachineOperatorBuilder::AlignmentRequirements | 2320 MachineOperatorBuilder::AlignmentRequirements |
2321 InstructionSelector::AlignmentRequirements() { | 2321 InstructionSelector::AlignmentRequirements() { |
2322 return MachineOperatorBuilder::AlignmentRequirements:: | 2322 return MachineOperatorBuilder::AlignmentRequirements:: |
2323 FullUnalignedAccessSupport(); | 2323 FullUnalignedAccessSupport(); |
2324 } | 2324 } |
2325 | 2325 |
2326 } // namespace compiler | 2326 } // namespace compiler |
2327 } // namespace internal | 2327 } // namespace internal |
2328 } // namespace v8 | 2328 } // namespace v8 |
OLD | NEW |