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

Unified Diff: runtime/vm/parser.cc

Issue 2984883002: Remove fields from Isolate in Product mode (Closed)
Patch Set: Created 3 years, 5 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
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.
« runtime/vm/pages.cc ('K') | « runtime/vm/pages.cc ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698