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

Unified Diff: src/interface.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/incremental-marking-inl.h ('k') | src/interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interface.h
diff --git a/src/interface.h b/src/interface.h
index 2076364a466e529701f5c404bf4a24c870809bff..598d0381427095c4c9f31de6365385757ac328b0 100644
--- a/src/interface.h
+++ b/src/interface.h
@@ -95,7 +95,7 @@ class Interface : public ZoneObject {
// Assign an index.
void Allocate(int index) {
- ASSERT(IsModule() && IsFrozen() && Chase()->index_ == -1);
+ DCHECK(IsModule() && IsFrozen() && Chase()->index_ == -1);
Chase()->index_ = index;
}
@@ -124,14 +124,14 @@ class Interface : public ZoneObject {
}
int Length() {
- ASSERT(IsModule() && IsFrozen());
+ DCHECK(IsModule() && IsFrozen());
ZoneHashMap* exports = Chase()->exports_;
return exports ? exports->occupancy() : 0;
}
// The context slot in the hosting global context pointing to this module.
int Index() {
- ASSERT(IsModule() && IsFrozen());
+ DCHECK(IsModule() && IsFrozen());
return Chase()->index_;
}
@@ -149,11 +149,11 @@ class Interface : public ZoneObject {
public:
bool done() const { return entry_ == NULL; }
const AstRawString* name() const {
- ASSERT(!done());
+ DCHECK(!done());
return static_cast<const AstRawString*>(entry_->key);
}
Interface* interface() const {
- ASSERT(!done());
+ DCHECK(!done());
return static_cast<Interface*>(entry_->value);
}
void Advance() { entry_ = exports_->Next(entry_); }
« no previous file with comments | « src/incremental-marking-inl.h ('k') | src/interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698