| 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_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_H_ |
| 6 #define V8_COMPILER_INSTRUCTION_H_ | 6 #define V8_COMPILER_INSTRUCTION_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 } | 258 } |
| 259 | 259 |
| 260 // [lifetime]: Only for non-FIXED_SLOT. | 260 // [lifetime]: Only for non-FIXED_SLOT. |
| 261 bool IsUsedAtStart() { | 261 bool IsUsedAtStart() { |
| 262 ASSERT(basic_policy() == EXTENDED_POLICY); | 262 ASSERT(basic_policy() == EXTENDED_POLICY); |
| 263 return LifetimeField::decode(value_) == USED_AT_START; | 263 return LifetimeField::decode(value_) == USED_AT_START; |
| 264 } | 264 } |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 | 267 |
| 268 class MoveOperands V8_FINAL BASE_EMBEDDED { | 268 class MoveOperands V8_FINAL { |
| 269 public: | 269 public: |
| 270 MoveOperands(InstructionOperand* source, InstructionOperand* destination) | 270 MoveOperands(InstructionOperand* source, InstructionOperand* destination) |
| 271 : source_(source), destination_(destination) {} | 271 : source_(source), destination_(destination) {} |
| 272 | 272 |
| 273 InstructionOperand* source() const { return source_; } | 273 InstructionOperand* source() const { return source_; } |
| 274 void set_source(InstructionOperand* operand) { source_ = operand; } | 274 void set_source(InstructionOperand* operand) { source_ = operand; } |
| 275 | 275 |
| 276 InstructionOperand* destination() const { return destination_; } | 276 InstructionOperand* destination() const { return destination_; } |
| 277 void set_destination(InstructionOperand* operand) { destination_ = operand; } | 277 void set_destination(InstructionOperand* operand) { destination_ = operand; } |
| 278 | 278 |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 DeoptimizationVector deoptimization_entries_; | 837 DeoptimizationVector deoptimization_entries_; |
| 838 }; | 838 }; |
| 839 | 839 |
| 840 OStream& operator<<(OStream& os, const InstructionSequence& code); | 840 OStream& operator<<(OStream& os, const InstructionSequence& code); |
| 841 | 841 |
| 842 } // namespace compiler | 842 } // namespace compiler |
| 843 } // namespace internal | 843 } // namespace internal |
| 844 } // namespace v8 | 844 } // namespace v8 |
| 845 | 845 |
| 846 #endif // V8_COMPILER_INSTRUCTION_H_ | 846 #endif // V8_COMPILER_INSTRUCTION_H_ |
| OLD | NEW |