| 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/linkage.h" | 5 #include "src/compiler/linkage.h" |
| 6 #include "src/compiler/register-allocator.h" | 6 #include "src/compiler/register-allocator.h" |
| 7 #include "src/string-stream.h" | 7 #include "src/string-stream.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 void LiveRange::SetSpillOperand(InstructionOperand* operand) { | 176 void LiveRange::SetSpillOperand(InstructionOperand* operand) { |
| 177 DCHECK(HasNoSpillType()); | 177 DCHECK(HasNoSpillType()); |
| 178 DCHECK(!operand->IsUnallocated()); | 178 DCHECK(!operand->IsUnallocated()); |
| 179 spill_type_ = SpillType::kSpillOperand; | 179 spill_type_ = SpillType::kSpillOperand; |
| 180 spill_operand_ = operand; | 180 spill_operand_ = operand; |
| 181 } | 181 } |
| 182 | 182 |
| 183 | 183 |
| 184 void LiveRange::SetSpillRange(SpillRange* spill_range) { | 184 void LiveRange::SetSpillRange(SpillRange* spill_range) { |
| 185 DCHECK(HasNoSpillType() || HasSpillRange()); | 185 DCHECK(HasNoSpillType() || HasSpillRange()); |
| 186 DCHECK_NE(spill_range, nullptr); | 186 DCHECK(spill_range); |
| 187 spill_type_ = SpillType::kSpillRange; | 187 spill_type_ = SpillType::kSpillRange; |
| 188 spill_range_ = spill_range; | 188 spill_range_ = spill_range; |
| 189 } | 189 } |
| 190 | 190 |
| 191 | 191 |
| 192 void LiveRange::CommitSpillOperand(InstructionOperand* operand) { | 192 void LiveRange::CommitSpillOperand(InstructionOperand* operand) { |
| 193 DCHECK(HasSpillRange()); | 193 DCHECK(HasSpillRange()); |
| 194 DCHECK(!operand->IsUnallocated()); | 194 DCHECK(!operand->IsUnallocated()); |
| 195 DCHECK(!IsChild()); | 195 DCHECK(!IsChild()); |
| 196 spill_type_ = SpillType::kSpillOperand; | 196 spill_type_ = SpillType::kSpillOperand; |
| (...skipping 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2475 } else { | 2475 } else { |
| 2476 DCHECK(range->Kind() == GENERAL_REGISTERS); | 2476 DCHECK(range->Kind() == GENERAL_REGISTERS); |
| 2477 assigned_registers_->Add(reg); | 2477 assigned_registers_->Add(reg); |
| 2478 } | 2478 } |
| 2479 range->set_assigned_register(reg, code_zone()); | 2479 range->set_assigned_register(reg, code_zone()); |
| 2480 } | 2480 } |
| 2481 | 2481 |
| 2482 } // namespace compiler | 2482 } // namespace compiler |
| 2483 } // namespace internal | 2483 } // namespace internal |
| 2484 } // namespace v8 | 2484 } // namespace v8 |
| OLD | NEW |