Index: src/typing.cc |
diff --git a/src/typing.cc b/src/typing.cc |
index 2eca59eeabfc48adfdcfc460899659c7d93c7f3b..136f72271c8029409cfa60e543309dff259aaffb 100644 |
--- a/src/typing.cc |
+++ b/src/typing.cc |
@@ -28,7 +28,7 @@ AstTyper::AstTyper(CompilationInfo* info) |
#define RECURSE(call) \ |
do { \ |
- ASSERT(!visitor->HasStackOverflow()); \ |
+ DCHECK(!visitor->HasStackOverflow()); \ |
call; \ |
if (visitor->HasStackOverflow()) return; \ |
} while (false) |
@@ -76,7 +76,7 @@ void AstTyper::ObserveTypesAtOsrEntry(IterationStatement* stmt) { |
Scope* scope = info_->scope(); |
// Assert that the frame on the stack belongs to the function we want to OSR. |
- ASSERT_EQ(*info_->closure(), frame->function()); |
+ DCHECK_EQ(*info_->closure(), frame->function()); |
int params = scope->num_parameters(); |
int locals = scope->StackLocalCount(); |
@@ -119,7 +119,7 @@ void AstTyper::ObserveTypesAtOsrEntry(IterationStatement* stmt) { |
#define RECURSE(call) \ |
do { \ |
- ASSERT(!HasStackOverflow()); \ |
+ DCHECK(!HasStackOverflow()); \ |
call; \ |
if (HasStackOverflow()) return; \ |
} while (false) |
@@ -436,7 +436,7 @@ void AstTyper::VisitAssignment(Assignment* expr) { |
if (!expr->IsUninitialized()) { |
if (prop->key()->IsPropertyName()) { |
Literal* lit_key = prop->key()->AsLiteral(); |
- ASSERT(lit_key != NULL && lit_key->value()->IsString()); |
+ DCHECK(lit_key != NULL && lit_key->value()->IsString()); |
Handle<String> name = Handle<String>::cast(lit_key->value()); |
oracle()->AssignmentReceiverTypes(id, name, expr->GetReceiverTypes()); |
} else { |
@@ -484,7 +484,7 @@ void AstTyper::VisitProperty(Property* expr) { |
if (!expr->IsUninitialized()) { |
if (expr->key()->IsPropertyName()) { |
Literal* lit_key = expr->key()->AsLiteral(); |
- ASSERT(lit_key != NULL && lit_key->value()->IsString()); |
+ DCHECK(lit_key != NULL && lit_key->value()->IsString()); |
Handle<String> name = Handle<String>::cast(lit_key->value()); |
oracle()->PropertyReceiverTypes(id, name, expr->GetReceiverTypes()); |
} else { |