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

Unified Diff: src/ic-inl.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/ic.cc ('k') | src/incremental-marking.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic-inl.h
diff --git a/src/ic-inl.h b/src/ic-inl.h
index 59dfeddaeae96b543e1bfde254f01e29833974bc..4a3edbe3f9bdcc59f2d7510ce3a967ba92092323 100644
--- a/src/ic-inl.h
+++ b/src/ic-inl.h
@@ -88,7 +88,7 @@ Code* IC::GetTargetAtAddress(Address address,
// Convert target address to the code object. Code::GetCodeFromTargetAddress
// is safe for use during GC where the map might be marked.
Code* result = Code::GetCodeFromTargetAddress(target);
- ASSERT(result->is_inline_cache_stub());
+ DCHECK(result->is_inline_cache_stub());
return result;
}
@@ -96,7 +96,7 @@ Code* IC::GetTargetAtAddress(Address address,
void IC::SetTargetAtAddress(Address address,
Code* target,
ConstantPoolArray* constant_pool) {
- ASSERT(target->is_inline_cache_stub() || target->is_compare_ic_stub());
+ DCHECK(target->is_inline_cache_stub() || target->is_compare_ic_stub());
Heap* heap = target->GetHeap();
Code* old_target = GetTargetAtAddress(address, constant_pool);
#ifdef DEBUG
@@ -104,7 +104,7 @@ void IC::SetTargetAtAddress(Address address,
// ICs as strict mode. The strict-ness of the IC must be preserved.
if (old_target->kind() == Code::STORE_IC ||
old_target->kind() == Code::KEYED_STORE_IC) {
- ASSERT(StoreIC::GetStrictMode(old_target->extra_ic_state()) ==
+ DCHECK(StoreIC::GetStrictMode(old_target->extra_ic_state()) ==
StoreIC::GetStrictMode(target->extra_ic_state()));
}
#endif
« no previous file with comments | « src/ic.cc ('k') | src/incremental-marking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698