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

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

Issue 1578723002: [turbofan] Build s/NULL/nullptr/g and CHECK(x != nullptr) to CHECK_NOT_NULL(x). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/raw-machine-assembler.cc ('k') | src/compiler/representation-change.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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/linkage.h" 6 #include "src/compiler/linkage.h"
7 #include "src/compiler/register-allocator.h" 7 #include "src/compiler/register-allocator.h"
8 #include "src/string-stream.h" 8 #include "src/string-stream.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 RepresentationField::encode(rep); 280 RepresentationField::encode(rep);
281 } 281 }
282 282
283 283
284 void LiveRange::VerifyPositions() const { 284 void LiveRange::VerifyPositions() const {
285 // Walk the positions, verifying that each is in an interval. 285 // Walk the positions, verifying that each is in an interval.
286 UseInterval* interval = first_interval_; 286 UseInterval* interval = first_interval_;
287 for (UsePosition* pos = first_pos_; pos != nullptr; pos = pos->next()) { 287 for (UsePosition* pos = first_pos_; pos != nullptr; pos = pos->next()) {
288 CHECK(Start() <= pos->pos()); 288 CHECK(Start() <= pos->pos());
289 CHECK(pos->pos() <= End()); 289 CHECK(pos->pos() <= End());
290 CHECK(interval != nullptr); 290 CHECK_NOT_NULL(interval);
291 while (!interval->Contains(pos->pos()) && interval->end() != pos->pos()) { 291 while (!interval->Contains(pos->pos()) && interval->end() != pos->pos()) {
292 interval = interval->next(); 292 interval = interval->next();
293 CHECK(interval != nullptr); 293 CHECK_NOT_NULL(interval);
294 } 294 }
295 } 295 }
296 } 296 }
297 297
298 298
299 void LiveRange::VerifyIntervals() const { 299 void LiveRange::VerifyIntervals() const {
300 DCHECK(first_interval()->start() == Start()); 300 DCHECK(first_interval()->start() == Start());
301 LifetimePosition last_end = first_interval()->end(); 301 LifetimePosition last_end = first_interval()->end();
302 for (UseInterval* interval = first_interval()->next(); interval != nullptr; 302 for (UseInterval* interval = first_interval()->next(); interval != nullptr;
303 interval = interval->next()) { 303 interval = interval->next()) {
(...skipping 3179 matching lines...) Expand 10 before | Expand all | Expand 10 after
3483 MoveOperands* eliminate = moves->PrepareInsertAfter(move); 3483 MoveOperands* eliminate = moves->PrepareInsertAfter(move);
3484 to_insert.push_back(move); 3484 to_insert.push_back(move);
3485 if (eliminate != nullptr) to_eliminate.push_back(eliminate); 3485 if (eliminate != nullptr) to_eliminate.push_back(eliminate);
3486 } 3486 }
3487 } 3487 }
3488 3488
3489 3489
3490 } // namespace compiler 3490 } // namespace compiler
3491 } // namespace internal 3491 } // namespace internal
3492 } // namespace v8 3492 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/raw-machine-assembler.cc ('k') | src/compiler/representation-change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698