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

Unified Diff: src/stub-cache.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/strtod.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/stub-cache.h
diff --git a/src/stub-cache.h b/src/stub-cache.h
index ba8dacbd24ec96dbde5b568beadb2583ec956fc9..997319a35d14efac57e5544e8ec143a070808502 100644
--- a/src/stub-cache.h
+++ b/src/stub-cache.h
@@ -125,7 +125,7 @@ class StubCache {
static int PrimaryOffset(Name* name, Code::Flags flags, Map* map) {
STATIC_ASSERT(kCacheIndexShift == Name::kHashShift);
// Compute the hash of the name (use entire hash field).
- ASSERT(name->HasHashCode());
+ DCHECK(name->HasHashCode());
uint32_t field = name->hash_field();
// Using only the low bits in 64-bit mode is unlikely to increase the
// risk of collision even if the heap is spread over an area larger than
@@ -356,7 +356,7 @@ class PropertyICCompiler : public PropertyAccessCompiler {
return code->ic_state() == MONOMORPHIC ? Logger::STORE_IC_TAG
: Logger::STORE_POLYMORPHIC_IC_TAG;
} else {
- ASSERT_EQ(Code::KEYED_STORE_IC, kind());
+ DCHECK_EQ(Code::KEYED_STORE_IC, kind());
return code->ic_state() == MONOMORPHIC
? Logger::KEYED_STORE_IC_TAG
: Logger::KEYED_STORE_POLYMORPHIC_IC_TAG;
@@ -642,7 +642,7 @@ class CallOptimization BASE_EMBEDDED {
}
Handle<JSFunction> constant_function() const {
- ASSERT(is_constant_call());
+ DCHECK(is_constant_call());
return constant_function_;
}
@@ -651,12 +651,12 @@ class CallOptimization BASE_EMBEDDED {
}
Handle<FunctionTemplateInfo> expected_receiver_type() const {
- ASSERT(is_simple_api_call());
+ DCHECK(is_simple_api_call());
return expected_receiver_type_;
}
Handle<CallHandlerInfo> api_call_info() const {
- ASSERT(is_simple_api_call());
+ DCHECK(is_simple_api_call());
return api_call_info_;
}
« no previous file with comments | « src/strtod.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698