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 "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/node-properties-inl.h" | 9 #include "src/compiler/node-properties-inl.h" |
10 #include "src/compiler/pipeline.h" | 10 #include "src/compiler/pipeline.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 } | 140 } |
141 | 141 |
142 | 142 |
143 Instruction* InstructionSelector::Emit(Instruction* instr) { | 143 Instruction* InstructionSelector::Emit(Instruction* instr) { |
144 instructions_.push_back(instr); | 144 instructions_.push_back(instr); |
145 return instr; | 145 return instr; |
146 } | 146 } |
147 | 147 |
148 | 148 |
149 bool InstructionSelector::IsNextInAssemblyOrder(const BasicBlock* block) const { | 149 bool InstructionSelector::IsNextInAssemblyOrder(const BasicBlock* block) const { |
150 return current_block_->GetRpoNumber().IsNext(block->GetRpoNumber()); | 150 return current_block_->GetAoNumber().IsNext(block->GetAoNumber()); |
151 } | 151 } |
152 | 152 |
153 | 153 |
154 bool InstructionSelector::CanCover(Node* user, Node* node) const { | 154 bool InstructionSelector::CanCover(Node* user, Node* node) const { |
155 return node->OwnedBy(user) && | 155 return node->OwnedBy(user) && |
156 schedule()->block(node) == schedule()->block(user); | 156 schedule()->block(node) == schedule()->block(user); |
157 } | 157 } |
158 | 158 |
159 | 159 |
160 bool InstructionSelector::IsDefined(Node* node) const { | 160 bool InstructionSelector::IsDefined(Node* node) const { |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, | 1039 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, |
1040 BasicBlock* fbranch) { | 1040 BasicBlock* fbranch) { |
1041 UNIMPLEMENTED(); | 1041 UNIMPLEMENTED(); |
1042 } | 1042 } |
1043 | 1043 |
1044 #endif // !V8_TURBOFAN_BACKEND | 1044 #endif // !V8_TURBOFAN_BACKEND |
1045 | 1045 |
1046 } // namespace compiler | 1046 } // namespace compiler |
1047 } // namespace internal | 1047 } // namespace internal |
1048 } // namespace v8 | 1048 } // namespace v8 |
OLD | NEW |