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

Unified Diff: src/lithium-allocator.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/lithium.cc ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lithium-allocator.h
diff --git a/src/lithium-allocator.h b/src/lithium-allocator.h
index b7d6d09dbd1ad1e482a9f5c467f8f1b528baef94..f63077e19d77a285351173ffe33ef3481b897dd5 100644
--- a/src/lithium-allocator.h
+++ b/src/lithium-allocator.h
@@ -51,7 +51,7 @@ class LifetimePosition {
// Returns the index of the instruction to which this lifetime position
// corresponds.
int InstructionIndex() const {
- ASSERT(IsValid());
+ DCHECK(IsValid());
return value_ / kStep;
}
@@ -64,28 +64,28 @@ class LifetimePosition {
// Returns the lifetime position for the start of the instruction which
// corresponds to this lifetime position.
LifetimePosition InstructionStart() const {
- ASSERT(IsValid());
+ DCHECK(IsValid());
return LifetimePosition(value_ & ~(kStep - 1));
}
// Returns the lifetime position for the end of the instruction which
// corresponds to this lifetime position.
LifetimePosition InstructionEnd() const {
- ASSERT(IsValid());
+ DCHECK(IsValid());
return LifetimePosition(InstructionStart().Value() + kStep/2);
}
// Returns the lifetime position for the beginning of the next instruction.
LifetimePosition NextInstruction() const {
- ASSERT(IsValid());
+ DCHECK(IsValid());
return LifetimePosition(InstructionStart().Value() + kStep);
}
// Returns the lifetime position for the beginning of the previous
// instruction.
LifetimePosition PrevInstruction() const {
- ASSERT(IsValid());
- ASSERT(value_ > 1);
+ DCHECK(IsValid());
+ DCHECK(value_ > 1);
return LifetimePosition(InstructionStart().Value() - kStep);
}
@@ -122,7 +122,7 @@ class UseInterval: public ZoneObject {
public:
UseInterval(LifetimePosition start, LifetimePosition end)
: start_(start), end_(end), next_(NULL) {
- ASSERT(start.Value() < end.Value());
+ DCHECK(start.Value() < end.Value());
}
LifetimePosition start() const { return start_; }
@@ -243,7 +243,7 @@ class LiveRange: public ZoneObject {
bool IsSpilled() const { return spilled_; }
LOperand* current_hint_operand() const {
- ASSERT(current_hint_operand_ == FirstHint());
+ DCHECK(current_hint_operand_ == FirstHint());
return current_hint_operand_;
}
LOperand* FirstHint() const {
@@ -254,12 +254,12 @@ class LiveRange: public ZoneObject {
}
LifetimePosition Start() const {
- ASSERT(!IsEmpty());
+ DCHECK(!IsEmpty());
return first_interval()->start();
}
LifetimePosition End() const {
- ASSERT(!IsEmpty());
+ DCHECK(!IsEmpty());
return last_interval_->end();
}
@@ -364,7 +364,7 @@ class LAllocator BASE_EMBEDDED {
void MarkAsOsrEntry() {
// There can be only one.
- ASSERT(!has_osr_entry_);
+ DCHECK(!has_osr_entry_);
// Simply set a flag to find and process instruction later.
has_osr_entry_ = true;
}
« no previous file with comments | « src/lithium.cc ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698