| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 Graph* graph() const { return sequence()->graph(); } | 191 Graph* graph() const { return sequence()->graph(); } |
| 192 Linkage* linkage() const { return sequence()->linkage(); } | 192 Linkage* linkage() const { return sequence()->linkage(); } |
| 193 Schedule* schedule() const { return sequence()->schedule(); } | 193 Schedule* schedule() const { return sequence()->schedule(); } |
| 194 InstructionSequence* sequence() const { return sequence_; } | 194 InstructionSequence* sequence() const { return sequence_; } |
| 195 Zone* instruction_zone() const { return sequence()->zone(); } | 195 Zone* instruction_zone() const { return sequence()->zone(); } |
| 196 Zone* zone() { return &zone_; } | 196 Zone* zone() { return &zone_; } |
| 197 | 197 |
| 198 // =========================================================================== | 198 // =========================================================================== |
| 199 | 199 |
| 200 typedef zone_allocator<Instruction*> InstructionPtrZoneAllocator; | |
| 201 typedef std::deque<Instruction*, InstructionPtrZoneAllocator> Instructions; | |
| 202 | |
| 203 Zone zone_; | 200 Zone zone_; |
| 204 InstructionSequence* sequence_; | 201 InstructionSequence* sequence_; |
| 205 SourcePositionTable* source_positions_; | 202 SourcePositionTable* source_positions_; |
| 206 Features features_; | 203 Features features_; |
| 207 BasicBlock* current_block_; | 204 BasicBlock* current_block_; |
| 208 Instructions instructions_; | 205 ZoneDeque<Instruction*> instructions_; |
| 209 BoolVector defined_; | 206 BoolVector defined_; |
| 210 BoolVector used_; | 207 BoolVector used_; |
| 211 }; | 208 }; |
| 212 | 209 |
| 213 } // namespace compiler | 210 } // namespace compiler |
| 214 } // namespace internal | 211 } // namespace internal |
| 215 } // namespace v8 | 212 } // namespace v8 |
| 216 | 213 |
| 217 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 214 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
| OLD | NEW |