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

Unified Diff: src/global-handles.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/gdb-jit.cc ('k') | src/global-handles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/global-handles.h
diff --git a/src/global-handles.h b/src/global-handles.h
index f469f3bbbcd0e82faec04a1b57e8ff9c02cef55b..ff34821ce7de2d8b1b1059bc46b4b5143f4c0a2d 100644
--- a/src/global-handles.h
+++ b/src/global-handles.h
@@ -37,7 +37,7 @@ class ObjectVisitor;
struct ObjectGroup {
explicit ObjectGroup(size_t length)
: info(NULL), length(length) {
- ASSERT(length > 0);
+ DCHECK(length > 0);
objects = new Object**[length];
}
~ObjectGroup();
@@ -51,7 +51,7 @@ struct ObjectGroup {
struct ImplicitRefGroup {
ImplicitRefGroup(HeapObject** parent, size_t length)
: parent(parent), length(length) {
- ASSERT(length > 0);
+ DCHECK(length > 0);
children = new Object**[length];
}
~ImplicitRefGroup();
@@ -335,7 +335,7 @@ class EternalHandles {
// Grab the handle for an existing SingletonHandle.
inline Handle<Object> GetSingleton(SingletonHandle singleton) {
- ASSERT(Exists(singleton));
+ DCHECK(Exists(singleton));
return Get(singleton_handles_[singleton]);
}
@@ -367,7 +367,7 @@ class EternalHandles {
// Gets the slot for an index
inline Object** GetLocation(int index) {
- ASSERT(index >= 0 && index < size_);
+ DCHECK(index >= 0 && index < size_);
return &blocks_[index >> kShift][index & kMask];
}
« no previous file with comments | « src/gdb-jit.cc ('k') | src/global-handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698