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

Unified Diff: src/preparse-data.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/perf-jit.cc ('k') | src/preparse-data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparse-data.h
diff --git a/src/preparse-data.h b/src/preparse-data.h
index caae0ef3eaa924f6f9fd1ff74c566979bcac6707..c1331d044fcfd6148cd9dbb30846c76e3fc1d8bb 100644
--- a/src/preparse-data.h
+++ b/src/preparse-data.h
@@ -55,7 +55,7 @@ class SingletonLogger : public ParserRecorder {
int literals,
int properties,
StrictMode strict_mode) {
- ASSERT(!has_error_);
+ DCHECK(!has_error_);
start_ = start;
end_ = end;
literals_ = literals;
@@ -85,24 +85,24 @@ class SingletonLogger : public ParserRecorder {
int start() const { return start_; }
int end() const { return end_; }
int literals() const {
- ASSERT(!has_error_);
+ DCHECK(!has_error_);
return literals_;
}
int properties() const {
- ASSERT(!has_error_);
+ DCHECK(!has_error_);
return properties_;
}
StrictMode strict_mode() const {
- ASSERT(!has_error_);
+ DCHECK(!has_error_);
return strict_mode_;
}
int is_reference_error() const { return is_reference_error_; }
const char* message() {
- ASSERT(has_error_);
+ DCHECK(has_error_);
return message_;
}
const char* argument_opt() const {
- ASSERT(has_error_);
+ DCHECK(has_error_);
return argument_opt_;
}
@@ -157,7 +157,7 @@ class CompleteParserRecorder : public ParserRecorder {
return static_cast<bool>(preamble_[PreparseDataConstants::kHasErrorOffset]);
}
Vector<unsigned> ErrorMessageData() {
- ASSERT(HasError());
+ DCHECK(HasError());
return function_store_.ToVector();
}
« no previous file with comments | « src/perf-jit.cc ('k') | src/preparse-data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698