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; |
} |