| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/hydrogen.h" | 7 #include "src/hydrogen.h" |
| 8 #include "src/lithium-inl.h" | 8 #include "src/lithium-inl.h" |
| 9 #include "src/lithium-allocator-inl.h" | 9 #include "src/lithium-allocator-inl.h" |
| 10 #include "src/string-stream.h" | 10 #include "src/string-stream.h" |
| (...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1512 AddToInactive(current); | 1512 AddToInactive(current); |
| 1513 } | 1513 } |
| 1514 } | 1514 } |
| 1515 } | 1515 } |
| 1516 | 1516 |
| 1517 while (!unhandled_live_ranges_.is_empty()) { | 1517 while (!unhandled_live_ranges_.is_empty()) { |
| 1518 DCHECK(UnhandledIsSorted()); | 1518 DCHECK(UnhandledIsSorted()); |
| 1519 LiveRange* current = unhandled_live_ranges_.RemoveLast(); | 1519 LiveRange* current = unhandled_live_ranges_.RemoveLast(); |
| 1520 DCHECK(UnhandledIsSorted()); | 1520 DCHECK(UnhandledIsSorted()); |
| 1521 LifetimePosition position = current->Start(); | 1521 LifetimePosition position = current->Start(); |
| 1522 #ifdef DEBUG | 1522 #if DCHECK_IS_ON |
| 1523 allocation_finger_ = position; | 1523 allocation_finger_ = position; |
| 1524 #endif | 1524 #endif |
| 1525 TraceAlloc("Processing interval %d start=%d\n", | 1525 TraceAlloc("Processing interval %d start=%d\n", |
| 1526 current->id(), | 1526 current->id(), |
| 1527 position.Value()); | 1527 position.Value()); |
| 1528 | 1528 |
| 1529 if (current->HasAllocatedSpillOperand()) { | 1529 if (current->HasAllocatedSpillOperand()) { |
| 1530 TraceAlloc("Live range %d already has a spill operand\n", current->id()); | 1530 TraceAlloc("Live range %d already has a spill operand\n", current->id()); |
| 1531 LifetimePosition next_pos = position; | 1531 LifetimePosition next_pos = position; |
| 1532 if (IsGapAt(next_pos.InstructionIndex())) { | 1532 if (IsGapAt(next_pos.InstructionIndex())) { |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2185 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); | 2185 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); |
| 2186 } | 2186 } |
| 2187 | 2187 |
| 2188 #ifdef DEBUG | 2188 #ifdef DEBUG |
| 2189 if (allocator_ != NULL) allocator_->Verify(); | 2189 if (allocator_ != NULL) allocator_->Verify(); |
| 2190 #endif | 2190 #endif |
| 2191 } | 2191 } |
| 2192 | 2192 |
| 2193 | 2193 |
| 2194 } } // namespace v8::internal | 2194 } } // namespace v8::internal |
| OLD | NEW |