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

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

Issue 2316033002: [turbofan] Remove a DCHECK from the register allocator. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | 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 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 first_interval_ = interval; 1107 first_interval_ = interval;
1108 last_interval_ = interval; 1108 last_interval_ = interval;
1109 } else { 1109 } else {
1110 if (end == first_interval_->start()) { 1110 if (end == first_interval_->start()) {
1111 first_interval_->set_start(start); 1111 first_interval_->set_start(start);
1112 } else if (end < first_interval_->start()) { 1112 } else if (end < first_interval_->start()) {
1113 UseInterval* interval = new (zone) UseInterval(start, end); 1113 UseInterval* interval = new (zone) UseInterval(start, end);
1114 interval->set_next(first_interval_); 1114 interval->set_next(first_interval_);
1115 first_interval_ = interval; 1115 first_interval_ = interval;
1116 } else { 1116 } else {
1117 // Order of instruction's processing (see ProcessInstructions) guarantees
1118 // that each new use interval either precedes or intersects with
1119 // last added interval.
1120 DCHECK(start < first_interval_->end());
1121 first_interval_->set_start(Min(start, first_interval_->start())); 1117 first_interval_->set_start(Min(start, first_interval_->start()));
1122 first_interval_->set_end(Max(end, first_interval_->end())); 1118 first_interval_->set_end(Max(end, first_interval_->end()));
1123 } 1119 }
1124 } 1120 }
1125 } 1121 }
1126 1122
1127 1123
1128 void TopLevelLiveRange::AddUsePosition(UsePosition* use_pos) { 1124 void TopLevelLiveRange::AddUsePosition(UsePosition* use_pos) {
1129 LifetimePosition pos = use_pos->pos(); 1125 LifetimePosition pos = use_pos->pos();
1130 TRACE("Add to live range %d use position %d\n", vreg(), pos.value()); 1126 TRACE("Add to live range %d use position %d\n", vreg(), pos.value());
(...skipping 2492 matching lines...) Expand 10 before | Expand all | Expand 10 after
3623 } 3619 }
3624 } 3620 }
3625 } 3621 }
3626 } 3622 }
3627 } 3623 }
3628 3624
3629 3625
3630 } // namespace compiler 3626 } // namespace compiler
3631 } // namespace internal 3627 } // namespace internal
3632 } // namespace v8 3628 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698