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

Unified Diff: src/snapshot-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/smart-pointers.h ('k') | src/snapshot-source-sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot-external.cc
diff --git a/src/snapshot-external.cc b/src/snapshot-external.cc
index 2747081fa29dbec9529c85f00c1db261195d1648..38b7cf414c66ee012a22167f98cef1b47bf6ead1 100644
--- a/src/snapshot-external.cc
+++ b/src/snapshot-external.cc
@@ -105,10 +105,10 @@ Handle<Context> Snapshot::NewContextFromSnapshot(Isolate* isolate) {
void SetSnapshotFromFile(StartupData* snapshot_blob) {
- ASSERT(snapshot_blob);
- ASSERT(snapshot_blob->data);
- ASSERT(snapshot_blob->raw_size > 0);
- ASSERT(!snapshot_impl_);
+ DCHECK(snapshot_blob);
+ DCHECK(snapshot_blob->data);
+ DCHECK(snapshot_blob->raw_size > 0);
+ DCHECK(!snapshot_impl_);
snapshot_impl_ = new SnapshotImpl;
SnapshotByteSource source(reinterpret_cast<const byte*>(snapshot_blob->data),
@@ -134,7 +134,7 @@ void SetSnapshotFromFile(StartupData* snapshot_blob) {
snapshot_impl_->context_cell_space_used = source.GetInt();
snapshot_impl_->context_property_cell_space_used = source.GetInt();
- ASSERT(success);
+ DCHECK(success);
}
} } // namespace v8::internal
« no previous file with comments | « src/smart-pointers.h ('k') | src/snapshot-source-sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698