Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: src/compiler/register-allocator.cc

Issue 893533003: Revert "Make GCC happy again." and "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/register-allocator-verifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(spill_range); 186 DCHECK_NE(spill_range, nullptr);
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
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
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/register-allocator-verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698