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

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

Issue 1312473018: [turbofan] Greedy: live range grouping. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « src/compiler/register-allocator.h ('k') | 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 bits_(0), 240 bits_(0),
241 last_interval_(nullptr), 241 last_interval_(nullptr),
242 first_interval_(nullptr), 242 first_interval_(nullptr),
243 first_pos_(nullptr), 243 first_pos_(nullptr),
244 top_level_(top_level), 244 top_level_(top_level),
245 next_(nullptr), 245 next_(nullptr),
246 current_interval_(nullptr), 246 current_interval_(nullptr),
247 last_processed_use_(nullptr), 247 last_processed_use_(nullptr),
248 current_hint_position_(nullptr), 248 current_hint_position_(nullptr),
249 size_(kInvalidSize), 249 size_(kInvalidSize),
250 weight_(kInvalidWeight) { 250 weight_(kInvalidWeight),
251 group_(nullptr) {
251 DCHECK(AllocatedOperand::IsSupportedMachineType(machine_type)); 252 DCHECK(AllocatedOperand::IsSupportedMachineType(machine_type));
252 bits_ = AssignedRegisterField::encode(kUnassignedRegister) | 253 bits_ = AssignedRegisterField::encode(kUnassignedRegister) |
253 MachineTypeField::encode(machine_type); 254 MachineTypeField::encode(machine_type);
254 } 255 }
255 256
256 257
257 void LiveRange::Verify() const { 258 void LiveRange::Verify() const {
258 // Walk the positions, verifying that each is in an interval. 259 // Walk the positions, verifying that each is in an interval.
259 auto interval = first_interval_; 260 auto interval = first_interval_;
260 for (auto pos = first_pos_; pos != nullptr; pos = pos->next()) { 261 for (auto pos = first_pos_; pos != nullptr; pos = pos->next()) {
(...skipping 3058 matching lines...) Expand 10 before | Expand all | Expand 10 after
3319 auto eliminate = moves->PrepareInsertAfter(move); 3320 auto eliminate = moves->PrepareInsertAfter(move);
3320 to_insert.push_back(move); 3321 to_insert.push_back(move);
3321 if (eliminate != nullptr) to_eliminate.push_back(eliminate); 3322 if (eliminate != nullptr) to_eliminate.push_back(eliminate);
3322 } 3323 }
3323 } 3324 }
3324 3325
3325 3326
3326 } // namespace compiler 3327 } // namespace compiler
3327 } // namespace internal 3328 } // namespace internal
3328 } // namespace v8 3329 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698