Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index b12463c9fa408f2b1408e50944f93bdd1f68cf81..2bd6651fd63acfbdbbaf3a6a9a212a233899139a 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -1613,7 +1613,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(); |
@@ -1629,7 +1629,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. |
@@ -1652,7 +1652,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. |