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

Unified Diff: src/natives-external.cc

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/mksnapshot.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/natives-external.cc
diff --git a/src/natives-external.cc b/src/natives-external.cc
index dc34cf003bccaa7610658bfa5a15aa994f468012..dfe3f826503868203dd61a6564bbc53e94850b89 100644
--- a/src/natives-external.cc
+++ b/src/natives-external.cc
@@ -38,17 +38,17 @@ class NativesStore {
return i;
}
}
- ASSERT(false);
+ DCHECK(false);
return -1;
}
int GetRawScriptsSize() {
- ASSERT(false); // Used for compression. Doesn't really make sense here.
+ DCHECK(false); // Used for compression. Doesn't really make sense here.
return 0;
}
Vector<const byte> GetScriptsSource() {
- ASSERT(false); // Used for compression. Doesn't really make sense here.
+ DCHECK(false); // Used for compression. Doesn't really make sense here.
return Vector<const byte>();
}
@@ -103,11 +103,11 @@ template<NativeType type>
class NativesHolder {
public:
static NativesStore* get() {
- ASSERT(holder_);
+ DCHECK(holder_);
return holder_;
}
static void set(NativesStore* store) {
- ASSERT(store);
+ DCHECK(store);
holder_ = store;
}
@@ -124,16 +124,16 @@ NativesStore* NativesHolder<type>::holder_ = NULL;
* system.
*/
void SetNativesFromFile(StartupData* natives_blob) {
- ASSERT(natives_blob);
- ASSERT(natives_blob->data);
- ASSERT(natives_blob->raw_size > 0);
+ DCHECK(natives_blob);
+ DCHECK(natives_blob->data);
+ DCHECK(natives_blob->raw_size > 0);
SnapshotByteSource bytes(
reinterpret_cast<const byte*>(natives_blob->data),
natives_blob->raw_size);
NativesHolder<CORE>::set(NativesStore::MakeFromScriptsSource(&bytes));
NativesHolder<EXPERIMENTAL>::set(NativesStore::MakeFromScriptsSource(&bytes));
- ASSERT(!bytes.HasMore());
+ DCHECK(!bytes.HasMore());
}
« no previous file with comments | « src/mksnapshot.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698