Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index f555b6d62fb2da5536b4ba7e7cde3f1842b389e1..004956688b7c8463f5bd63582f8fb6af59a1202f 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -1612,7 +1612,7 @@ SequenceNode* Parser::ParseImplicitClosure(const Function& func) { |
const Class& owner = Class::Handle(parent.Owner()); |
Function& target = Function::ZoneHandle(owner.LookupFunction(func_name)); |
if (target.raw() != parent.raw()) { |
- ASSERT(Isolate::Current()->HasAttemptedReload()); |
+ NOT_IN_PRODUCT(ASSERT(Isolate::Current()->HasAttemptedReload())); |
if (target.IsNull() || (target.is_static() != parent.is_static()) || |
(target.kind() != parent.kind())) { |
target = Function::null(); |
@@ -1628,7 +1628,7 @@ SequenceNode* Parser::ParseImplicitClosure(const Function& func) { |
(parent.num_fixed_parameters() == target.num_fixed_parameters())) { |
call = new StaticCallNode(token_pos, target, func_args); |
} else if (!parent.is_static()) { |
- ASSERT(Isolate::Current()->HasAttemptedReload()); |
+ NOT_IN_PRODUCT(ASSERT(Isolate::Current()->HasAttemptedReload())); |
// If a subsequent reload reintroduces the target in the middle of the |
// Invocation object being constructed, we won't be able to successfully |
// deopt because the generated AST will change. |
@@ -1651,7 +1651,7 @@ SequenceNode* Parser::ParseImplicitClosure(const Function& func) { |
} |
call = new StaticCallNode(token_pos, no_such_method, arguments); |
} else { |
- ASSERT(Isolate::Current()->HasAttemptedReload()); |
+ NOT_IN_PRODUCT(ASSERT(Isolate::Current()->HasAttemptedReload())); |
// If a subsequent reload reintroduces the target in the middle of the |
// arguments array being constructed, we won't be able to successfully |
// deopt because the generated AST will change. |