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

Unified Diff: src/mksnapshot.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/mips64/stub-cache-mips64.cc ('k') | src/natives-external.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mksnapshot.cc
diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc
index 57880e20b95dcf877b22d47a217bb8961e6039fd..37b174e207f21e2406712605dc0a50accda6812c 100644
--- a/src/mksnapshot.cc
+++ b/src/mksnapshot.cc
@@ -148,7 +148,7 @@ class SnapshotWriter {
exit(1);
}
- ASSERT(data_to_be_written);
+ DCHECK(data_to_be_written);
MaybeWriteRawFile(data_to_be_written, raw_file);
WriteData(prefix, source_data, data_to_be_written);
}
@@ -159,7 +159,7 @@ class SnapshotWriter {
// Sanity check, whether i::List iterators truly return pointers to an
// internal array.
- ASSERT(data->end() - data->begin() == data->length());
+ DCHECK(data->end() - data->begin() == data->length());
size_t written = fwrite(data->begin(), 1, data->length(), raw_file);
if (written != (size_t)data->length()) {
@@ -272,7 +272,7 @@ class BZip2Decompressor : public StartupDataDecompressor {
int* raw_data_size,
const char* compressed_data,
int compressed_data_size) {
- ASSERT_EQ(StartupData::kBZip2,
+ DCHECK_EQ(StartupData::kBZip2,
V8::GetCompressedStartupDataAlgorithm());
unsigned int decompressed_size = *raw_data_size;
int result =
« no previous file with comments | « src/mips64/stub-cache-mips64.cc ('k') | src/natives-external.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698