| Index: src/parser.h
|
| diff --git a/src/parser.h b/src/parser.h
|
| index c3d2a70658762ae15a2e1fed9a4698855e496025..2d5ce2f3760bc929fa04eb967c54ef39db691e63 100644
|
| --- a/src/parser.h
|
| +++ b/src/parser.h
|
| @@ -47,7 +47,7 @@ class FunctionEntry BASE_EMBEDDED {
|
| int literal_count() { return backing_[kLiteralCountIndex]; }
|
| int property_count() { return backing_[kPropertyCountIndex]; }
|
| StrictMode strict_mode() {
|
| - ASSERT(backing_[kStrictModeIndex] == SLOPPY ||
|
| + DCHECK(backing_[kStrictModeIndex] == SLOPPY ||
|
| backing_[kStrictModeIndex] == STRICT);
|
| return static_cast<StrictMode>(backing_[kStrictModeIndex]);
|
| }
|
| @@ -120,12 +120,12 @@ class BufferedZoneList {
|
| }
|
|
|
| T* last() {
|
| - ASSERT(last_ != NULL);
|
| + DCHECK(last_ != NULL);
|
| return last_;
|
| }
|
|
|
| T* RemoveLast() {
|
| - ASSERT(last_ != NULL);
|
| + DCHECK(last_ != NULL);
|
| T* result = last_;
|
| if ((list_ != NULL) && (list_->length() > 0))
|
| last_ = list_->RemoveLast();
|
| @@ -135,13 +135,13 @@ class BufferedZoneList {
|
| }
|
|
|
| T* Get(int i) {
|
| - ASSERT((0 <= i) && (i < length()));
|
| + DCHECK((0 <= i) && (i < length()));
|
| if (list_ == NULL) {
|
| - ASSERT_EQ(0, i);
|
| + DCHECK_EQ(0, i);
|
| return last_;
|
| } else {
|
| if (i == list_->length()) {
|
| - ASSERT(last_ != NULL);
|
| + DCHECK(last_ != NULL);
|
| return last_;
|
| } else {
|
| return list_->at(i);
|
| @@ -400,7 +400,7 @@ class ParserTraits {
|
| static bool IsIdentifier(Expression* expression);
|
|
|
| static const AstRawString* AsIdentifier(Expression* expression) {
|
| - ASSERT(IsIdentifier(expression));
|
| + DCHECK(IsIdentifier(expression));
|
| return expression->AsVariableProxy()->raw_name();
|
| }
|
|
|
|
|