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

Unified Diff: src/compiler/frame.h

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/gap-resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/frame.h
diff --git a/src/compiler/frame.h b/src/compiler/frame.h
index 251bd49f5d8ffe5a7460e4268b1b9aa71e8b5d3e..afcbc3706ae6ee868bcac8fea6f18066e95c5c94 100644
--- a/src/compiler/frame.h
+++ b/src/compiler/frame.h
@@ -30,12 +30,12 @@ class Frame {
inline int GetDoubleSpillSlotCount() { return double_spill_slot_count_; }
void SetAllocatedRegisters(BitVector* regs) {
- ASSERT(allocated_registers_ == NULL);
+ DCHECK(allocated_registers_ == NULL);
allocated_registers_ = regs;
}
void SetAllocatedDoubleRegisters(BitVector* regs) {
- ASSERT(allocated_double_registers_ == NULL);
+ DCHECK(allocated_double_registers_ == NULL);
allocated_double_registers_ = regs;
}
@@ -44,7 +44,7 @@ class Frame {
}
void SetRegisterSaveAreaSize(int size) {
- ASSERT(IsAligned(size, kPointerSize));
+ DCHECK(IsAligned(size, kPointerSize));
register_save_area_size_ = size;
}
@@ -54,7 +54,7 @@ class Frame {
// If 32-bit, skip one if the new slot is a double.
if (is_double) {
if (kDoubleSize > kPointerSize) {
- ASSERT(kDoubleSize == kPointerSize * 2);
+ DCHECK(kDoubleSize == kPointerSize * 2);
spill_slot_count_++;
spill_slot_count_ |= 1;
}
@@ -80,12 +80,12 @@ class FrameOffset {
inline int offset() { return offset_ & ~1; }
inline static FrameOffset FromStackPointer(int offset) {
- ASSERT((offset & 1) == 0);
+ DCHECK((offset & 1) == 0);
return FrameOffset(offset | kFromSp);
}
inline static FrameOffset FromFramePointer(int offset) {
- ASSERT((offset & 1) == 0);
+ DCHECK((offset & 1) == 0);
return FrameOffset(offset | kFromFp);
}
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/gap-resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698