| 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 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
| 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 void VisitCall(Node* call, BasicBlock* continuation, | 186 void VisitCall(Node* call, BasicBlock* continuation, |
| 187 BasicBlock* deoptimization); | 187 BasicBlock* deoptimization); |
| 188 void VisitGoto(BasicBlock* target); | 188 void VisitGoto(BasicBlock* target); |
| 189 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch); | 189 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch); |
| 190 void VisitReturn(Node* value); | 190 void VisitReturn(Node* value); |
| 191 void VisitThrow(Node* value); | 191 void VisitThrow(Node* value); |
| 192 void VisitDeoptimize(Node* deopt); | 192 void VisitDeoptimize(Node* deopt); |
| 193 | 193 |
| 194 // =========================================================================== | 194 // =========================================================================== |
| 195 | 195 |
| 196 Graph* graph() const { return sequence()->graph(); } | |
| 197 Linkage* linkage() const { return sequence()->linkage(); } | 196 Linkage* linkage() const { return sequence()->linkage(); } |
| 198 Schedule* schedule() const { return sequence()->schedule(); } | 197 Schedule* schedule() const { return sequence()->schedule(); } |
| 199 InstructionSequence* sequence() const { return sequence_; } | 198 InstructionSequence* sequence() const { return sequence_; } |
| 200 Zone* instruction_zone() const { return sequence()->zone(); } | 199 Zone* instruction_zone() const { return sequence()->zone(); } |
| 201 Zone* zone() { return &zone_; } | 200 Zone* zone() { return &zone_; } |
| 202 | 201 |
| 203 // =========================================================================== | 202 // =========================================================================== |
| 204 | 203 |
| 205 Zone zone_; | 204 Zone zone_; |
| 206 InstructionSequence* sequence_; | 205 InstructionSequence* sequence_; |
| 207 SourcePositionTable* source_positions_; | 206 SourcePositionTable* source_positions_; |
| 208 Features features_; | 207 Features features_; |
| 209 BasicBlock* current_block_; | 208 BasicBlock* current_block_; |
| 210 ZoneDeque<Instruction*> instructions_; | 209 ZoneDeque<Instruction*> instructions_; |
| 211 BoolVector defined_; | 210 BoolVector defined_; |
| 212 BoolVector used_; | 211 BoolVector used_; |
| 213 }; | 212 }; |
| 214 | 213 |
| 215 } // namespace compiler | 214 } // namespace compiler |
| 216 } // namespace internal | 215 } // namespace internal |
| 217 } // namespace v8 | 216 } // namespace v8 |
| 218 | 217 |
| 219 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 218 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
| OLD | NEW |