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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |