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

Unified Diff: src/contexts.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/x64/instruction-selector-x64.cc ('k') | src/contexts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/contexts.h
diff --git a/src/contexts.h b/src/contexts.h
index b1237370c45e2edf8db59fc353d8bdf4aa874258..b33baaef930cf8c8ca769581d9adf222ef678c30 100644
--- a/src/contexts.h
+++ b/src/contexts.h
@@ -251,7 +251,7 @@ class Context: public FixedArray {
public:
// Conversions.
static Context* cast(Object* context) {
- ASSERT(context->IsContext());
+ DCHECK(context->IsContext());
return reinterpret_cast<Context*>(context);
}
@@ -414,7 +414,7 @@ class Context: public FixedArray {
Context* previous() {
Object* result = unchecked_previous();
- ASSERT(IsBootstrappingOrValidParentContext(result, this));
+ DCHECK(IsBootstrappingOrValidParentContext(result, this));
return reinterpret_cast<Context*>(result);
}
void set_previous(Context* context) { set(PREVIOUS_INDEX, context); }
@@ -432,7 +432,7 @@ class Context: public FixedArray {
GlobalObject* global_object() {
Object* result = get(GLOBAL_OBJECT_INDEX);
- ASSERT(IsBootstrappingOrGlobalObject(this->GetIsolate(), result));
+ DCHECK(IsBootstrappingOrGlobalObject(this->GetIsolate(), result));
return reinterpret_cast<GlobalObject*>(result);
}
void set_global_object(GlobalObject* object) {
@@ -507,15 +507,15 @@ class Context: public FixedArray {
#define NATIVE_CONTEXT_FIELD_ACCESSORS(index, type, name) \
void set_##name(type* value) { \
- ASSERT(IsNativeContext()); \
+ DCHECK(IsNativeContext()); \
set(index, value); \
} \
bool is_##name(type* value) { \
- ASSERT(IsNativeContext()); \
+ DCHECK(IsNativeContext()); \
return type::cast(get(index)) == value; \
} \
type* name() { \
- ASSERT(IsNativeContext()); \
+ DCHECK(IsNativeContext()); \
return type::cast(get(index)); \
}
NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSORS)
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | src/contexts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698