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

Side by Side Diff: src/lithium-allocator.cc

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years 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/lithium-allocator.h ('k') | src/mips/codegen-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/lithium-allocator.h ('k') | src/mips/codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698