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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |